body{
	background-color: whitesmoke;
	margin: auto;
	justify-content: center;
	max-width: 1280px;
	min-width: 475px;
}
h1 {
	color: #e01304;
	font-family: arial;
	font-size: 40px;
	text-align: center;
	margin-bottom: 50px;
}

h2{
	color: #e01304;
	font-size: 20px;
	font-family: arial;
	text-align: left;
	margin: 0px;
	margin-bottom: 0px;
	margin-left: 10px;

}

h3{
	color: black;
	font-size: 17px;
	font-family: arial;
	text-align: center;
	margin: 0px;
	margin-bottom: 0px;
}

p{
	margin: 0px;
	margin-top: 10px;
	font-family: arial;
}

dt{
	font-family: arial;
}

dd{
	font-family: arial;
}

div.portfolio {
	display: grid;
	grid-template-columns:1fr;
	gap: 10px;
	h2{
		margin-top: 0px;
		margin-bottom: 10px;
		margin-left: 15px;
	}
	p{
		margin-top: -10px;
		margin-right: 15px;
		margin-left: 15px;
	}
	img:hover{
	filter: grayscale(100%);
	transform: scale(105%);
	}
}

div.portfolio img{
	width: 100%;
	margin-top: 15px;
	margin-left: 15px;
	margin-right: 15px;

}

div.menucv {
	display: flex;
	align-items: ;
	justify-content: space-between;
	margin-left: 15px;
	margin-right: 15px;
	align-items: center;
}

a{
	color: black;
	text-decoration: none;
}

a:hover{
	color: red;
	text-decoration: underline;
}	
}


div.animaciofoto img{ 
	animation-name: animaciofoto;
	animation-duration: 4s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
}

div.animaciofoto:hover img{
	animation: animaciofoto 4s ease-in-out forwards; 
}

@keyframes animaciofoto{
	0% {
		opacity: 0;
	}
	10%{
		opacity: 1;
		filter: brightness(2); 
	}
	13%{
		opacity: 0;
		filter: brightness(0);
	}
	15%{
		opacity: 1;
		filter: contrast(10%);

	}
	100% {
		transform: rotate(0deg);
	}
}

div.animaciotext{
	animation-name: animaciotext;
	animation-duration: 4s;
	animation-iteration-count: 1;
}

div.animaciotext:hover{
	animation: animaciotext 4s;
	transform: scale(110%);
	transition: 0.2s;
}

div.introcv {
	grid-template-columns: 1fr;
	justify-items: center;
	margin: 90px;
	text-align: center;
	/*h2{
		text-align: center;
	}*/
	display: grid;
	img{
		width: 200px;
		margin: auto;
		padding: 30px;

	}
	p{
		margin-bottom: 50px;
		margin-top: 50px;
		/*text-align: center;*/
		margin-left: auto;
		margin-right: auto;
	}
	h4{
		/*text-align: center;*/
	}
	img:hover{
	transform: scale(105%); rotate: 10deg;
	}
}


div.seccioprimera{
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	max-width: 1280px;
	width: 100%;

	margin: 0 auto 110px auto;
	margin-left: 15px;
	margin-right: 15px;
	margin-bottom: 110px;
	margin-top: 110px;

	align-items: start;
	justify-items: center;
	text-align: center;
	justify-content: center;

	h2{
		/*margin-left: 0px;*/
		/*text-align: center;*/
	}
	.columna{
		display: flex;
  		flex-direction: column;
  		align-items: center;
  		justify-content: center;
  		list-style: none;
	}
	.columna dl dt {
  		font-weight: bold;
  		margin-top: 10px;
  		text-align: center;
  		margin-top: 0px;
	}
	.columna dl dd {
 	 	margin: 2px 0 8px 0;
 	 	margin-top: 0px;
 	 	margin-bottom: 0px;
	}
}


div.footer{
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;¡
	text-align: left;
	/*background-color: #e01304;*/
	background-image: linear-gradient(70deg, #e01304, #66030e);
	margin-left: none;
	margin-right: none;
	margin-top: 60px;
	h1{
		margin-left: 15px;
		margin-right: 15px;
		text-align: left;
		color: whitesmoke;
	}
	/*h2{
		text-align: right;
		color: black;
		margin-top: 80px;
		margin-right: 15px;
	}*/
	h3{
		text-align: left;
		color: whitesmoke;
		margin-left: 15px;
		margin-top: -40px;
	}
}



div.index{
		grid-template-columns: 1fr 1fr 1fr;
		margin-top: 100px;
	}

@media screen and (min-width: 768px) {
	div.portfolio{
		grid-template-columns: 1fr 1fr 1fr;
		margin-top: 100px;
		margin-left: auto;
		margin-right: auto;
	}

	div.index{
		grid-template-columns: 1fr 1fr 1fr;
		margin-top: 100px;
	}

	div.seccioprimera {
		grid-template-columns: 1fr 1fr 1fr;
	}
}


