Body{
	 font-family: "Roboto", sans-serif;
	background-color: whitesmoke;
}



h1{
	text-align: center;
	margin-top: 80px;
	color: dimgrey;
	font-size: 32px;
	font-family: "Libre Baskerville", serif;
	animation-name: bounce;
	animation-duration: 0.65s;
	animation-iteration-count: 4;
	animation-timing-function: linear;
}



div.header{
	display: flex;
	background-color: gainsboro;
	gap:20px;
	position: sticky;
	top: 0px;
	z-index: 10;

}

div.header p{
	flex:1;
	text-align: center;
	font-family: Roboto;
	font-weight: 600;
	color: dimgrey;
	position: sticky;
	top: 0px;
	z-index: 10;
}

div.header p a {
	color: black;
	text-decoration: none;
}

div.portfolio{
	text-align: center;
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;

}

@media screen and (min-width: 768px){
	div.portfolio{
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}	
}

/* això és un comentari en css*/

div.portfolio img {
	width: 100%;
}

div.item {
	padding:20px;
}
	

h2{
font-family: Roboto;
font-weight: 700;
font-size: 14px;
color: dimgrey;
}

P{
	font-family:Roboto;
	font-weight: 200;
	font-size: 14px;
}

img{
	 	width: 200px;
	 }

div.item img{
	filter: opacity(100%);
	transition: 0.5s;
}

div.item img:hover {
	filter: opacity(40%);
	transition: 0.5s;
	cursor: crosshair;
	transform: scale(105%);
	transform: rotate(8deg);
	cursor: url(sun.png), auto;

}

	
	div.box1 {
		display: flex;               
  	justify-content: center;     
  	align-items: center; 
  	grid-template-columns: 1fr 1fr;
		gap: 20px;
		margin: 90px auto 60px auto;

		img {
  	animation: spinOnce 1s ease 
		}
		img:hover {
  		transform: scale(1.3) rotate(-8deg);

		}


		p{
			font-family: "Roboto";
			font-weight: 350;
			font-size: 14px;
			}
	}


	div.box2 {
		
		background-color: lightgrey;
  	width: 600px;
  	padding: 20px;
  	border: 2px solid dimgrey;
  	border-radius: 8px;
  	margin: 0 auto 80px auto;
  	position: relative;
  	z-index: -1;
  	will-change: transform;
  	}

	

	/* Linia divisoria */

	.divider {
  	border: none;
  	border-top: 2px solid #ccc; 
  	width: 80%;                
  	margin: 70px auto;         
		}

 
 /* degradat */
		div.box3 {
  
  	background: linear-gradient(to bottom, #fafcfc, #d3d3d3, #fafcfc);
  	padding: 0px;
  	margin: 50px auto;
		}

div.box3 .Info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
}

div.box3 ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
  text-align: left;
}

div.box3 p {
  font-family: "Roboto", sans-serif;
  font-weight: 450;
  font-size: 16px;
  color: #222; 
}


div.box4 {

	h2{
		padding-bottom: 14px;

	}


	p{
			font-family: "Roboto";
			font-weight: 200;
			font-size: 16px;
			}

}

.box4 {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative; 
  gap: 60px;
  box-sizing: border-box;

}

.box4 .item {
  flex: 1;
  padding: 0px;
  position: center;
  margin-left: 10%;
  margin-right: 10%;
  padding-left: 20px;
  padding-right: 20px;
}


.box4::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: #ccc;
  transform: translateX(-50%);
}


/* Media Screen */

@media screen and (min-width: 768px){
		div.box1{
			transform: scale(1.2);
		}
	
}

@media screen and (max-width: 768px){
		div.box2{
			
		width: 90%;              
    max-width: 400px;        
    margin: 20px auto;       
    padding: 25px 20px;
    text-align: center;      
    display: flex;
    flex-direction: column;  
    align-items: center;     
		}
	
}

@media screen and (min-width: 768px){
		div.box2{
			
		transform: scale(1.2);  
		}
	
}

@media screen and (min-width: 768px){
		div.box3{
		display: grid;                 
    grid-template-columns: 1fr;    
    justify-items: center;         
    gap: 24px;
    transform: scale(1.2);
   
		}

}


@media screen and (max-width: 768px) {
  	div.box4 {
  	display: flex;
    flex-direction: column;
    justify-content: center;       
    align-items: center;        
    text-align: center; 
    gap: 20px;
  	}

  	div.box4 p {
  		font-size: 14px;
  	}

  .box4::before {
    display: none;
  }
}



@keyframes bounce {
	0%{
		transform: translate(0px,0px);
	}
	50%{
		transform: translate(0px,-10px);
	}
	100%{
		transform: translate(0px,0px);
	}

	 }

@keyframes spinOnce {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.3) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}


