body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #c9204e, #f7f4e9);
  background-size: 200% 200%;
  animation: movimentFons 10s ease infinite;
}


@keyframes movimentFons {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.karela {
  display: flex;
  justify-content: center; 
  align-items: 30%;    
  padding: 1rem;
  box-sizing: border-box;
  margin-top: 5px;
}
.karela img {
  max-width: 90%;
  max-height: 90%;

}

.cara img {
  width: 70%;
  position: fixed;      
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-attachment: fixed; 
}

header{
	font-family: monospace;
}

h1 a[href="qui soc.htlm"]{
  position: absolute;      
  top: 20px;               
  left: 20px;             
  font-size: 24px;         
  font-family: courier; 
  font-weight: 100; 
  color: #c9204e            
  padding: 10px 15px;
  border-radius: 10px;     
  transition: 0.3s;        
}


.
.mesquerra {
  position: fixed;
  bottom: 20px;
  left: 20px;
  text-align: left; 
}

/* Menú esquerra */
.mesquerra h1 a {
  color: #c9204e;
  font-family: courier;
  font-weight: 100;
  font-size: 24px;
  text-decoration: none;
  display: block;
  margin: 0 0 8px 20px; 
}

/* Menú dret */
.mdret{
  position: fixed;
  bottom: 20px;
  right: 20px;
  text-align: right; 
}

/* Menú dret */
.mdret h2 a {
  color: #c9204e;
  font-family: courier;
  font-weight: 100;
  font-size: 24px;
  text-decoration: none;
  display: block; 
  margin: 0 0 8px 0; 
}

/* GRID PRESENTACIÓ*/
.grid {
  display: grid;
  grid-template-columns: 150px auto 150px; /* esq,foto,dret */
  gap: 60px;
  align-items: center;
  max-width: 9100px;
  padding: 80px;
}

/* FOTO PRESENTACIÓ*/
.foto {
  grid-column: 2;
  width: 70%;  
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}


/* TEXTOS PRESENTACIÓ*/
.text-esq {
  grid-column: 1;
  font-family: courier;
  font-weight: 100;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.text-dret {
  grid-column: 3;
  font-family: courier;
  font-weight: 100;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* TEXT CONTATCE*/
 .contacte{
  animation-name: crazybounce;
  animation-duration:5s;
  position: fixed;
  inset: 0;                    
  margin: auto;
  width: max-content;
  height: max-content;
  text-align: center;
  font-family: courier;
  font-size: 18px;
  line-height: 1.4;
}

.text-mig {
  grid-column: 2;
  font-family: courier;
  font-weight: 100;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* SKILLS*/
.skills ul {
  list-style: none; 
  margin: 0;
  padding: 0;
}

.skills {
  font-family: courier;
  font-size: 12px;
  line-height: 1.5;
  color: #000;
}

.skills ul {
  padding-left: 1em;   
}

/* ESTUDIS*/
.estudis,
.estudis ul {
  list-style: disc;   
  margin: 0;
  padding: 0;
}

.estudis {
  font-family: courier;
  font-size: 12px;
  line-height: 1.5;
  color: #000;
}


.estudis ul {
  padding-left: 1em;   
}

/* CASELLES EXP LABORAL*/
.blank {
  width: 220px;
  padding: 6px 10px;
  font-family: Courier, monospace;
  font-size: 12px;
  color: #000;
  background: #fff;
  border: 1px solid #c9204e;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.blank::placeholder {
  color: #999;
}

.blank:focus {
  border-color: #000;
}


h1 a:hover, h2 a:hover, .titol:hover {
  transform: scale(1.05);
}


h1 a:hover, h2 a:hover, .titol:hover {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.flexbox {
  display: flex;             
  align-items: center;        
  gap: 1rem;                 
  flex-direction: row;       

}

.flexbox img {
  width: 200px !important;
  height: 100%;
  object-fit: cover;
}


.flexbox2 {
  display: flex;            
  justify-content: center;   
  align-items: center;      
  gap: 1rem;                  
  flex-direction: row;        
}

.flexbox2 img {
  width: 200px !important;
  height: 100%;
  object-fit: cover;
}



/* ANIMACIÓ CONTACTE*/
@keyframes crazybounce {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  30% {
    transform: translate(0px, -100px) rotate(0deg);
  }
  50% {
    transform: translate(0px, -100px) rotate(360deg);
  }
  70% {
    transform: translate(0px, -100px) rotate(0deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
}

@media screen and (min-width: 768px) {
	div.portfolio {
		grid-template-columns: 1fr 1fr 1fr;
	}

	div.video {
		grid-column: 1 / 4;
	}
}


