body {
background-image: url(../Fotos/BG.jpg) ;
background-repeat: repeat;
background-size: 15vw 25vh;
font-family: "Lato", sans-serif;
font-weight: 400;
font-style: normal;
max-width: 1280px;
margin: auto;
margin-top: 90px;
}

h1{

    font-family: "Instrument Serif", serif;
    font-weight: 500;
    font-style: normal;
}
h2{

    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: normal;
}
h3{

    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
    margin-top: 5px;
}
h4{

    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 25px;

}

/* AIXO ES EL HEADER */

div.header {
    background-color: rgb(200, 50, 50);
    color: rgb(255, 253, 239);
    display: flex;
    gap: 20px;
    align-content: center;
    justify-content: space-evenly;
    align-items: center;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 10;
}

div.header a {
    color: aliceblue;
    text-decoration: none;
}
div.header a:hover {
    color: rgb(127, 200, 255);
}

div.header h1 {
    margin: 0;
    margin-top: 20;
}

/* AIXO ES EL PRIMER BLOC */

div.presentacion {
    text-align: center;
    background-color:rgb(255, 253, 239);
    padding: 25px;
    border-radius: 25px;
    width: fit-content;
    margin: auto;
}



div.presentacion h1 {
    margin: 10px;
    font-size: 50px;
}
div.presentacion h2 {
    margin-top: 5px;
    font-size: 30px;
}

/* ANIMACION HOLA!! */

.animacion {
    display: inline-block;
    animation-name: saludo;
    animation-duration: 2.5s;
    animation-delay: 0.5s;
    animation-iteration-count: 3;
    font-weight: 400;
}

@keyframes saludo {
    0%{
        font-size: 50px;
    }
    50%{
        color: red;
        font-size: 75px;
        transform: rotate(-10deg)
    }
    75%{
        color: red;
        transform: rotate(10deg);
    }
    100%{
        transform: rotate(0deg);
        font-size: 50px;

    }
}

/* AIXO ENGOLBA TOTES LES FLEXBOX */

div.FLEXBOX {
    display: flex;
    gap: 40px;
    align-content: center;
    align-items: center;
    flex-direction: column;
    background-color:rgb(255, 253, 239);
    padding: 25px;
    border-radius: 25px;
    margin-top: 25px;
}



/* AIXO ENGOLBA LA FOTO I TEXT DE PRESENTACIO */

div.foto { 
    background-color: rgba(216, 202, 202, 0.577);
    padding: 10px;
    border-radius: 10px;
    height: 230;
    width: 280;
}

div.foto img { 
    width:230;
    height: 280px;
    border-radius: 10px;
}

.fotoroja {
    position: absolute;
    filter: opacity(0);
    animation-iteration-count:inherit;
}

.fotoroja:hover {
    animation-name: FadeIn;
    animation-duration: 2s;
    animation-fill-mode: both;
}

/* ANIMACION FOTOS */

@keyframes FadeIn {
    0%{
       filter: opacity(0);
    }
    100%{
       filter: opacity(100);
    }
}

div.intro {
    background-color: rgba(216, 202, 202, 0.577);
    padding: 10px;
    border-radius: 10px;
    padding-left: 25px;
    padding-right: 25px;
    height: fit-content;

}

/* AIXO ENGOLBA IDIOMES I HABILITATS
    LA FLEXBOX D'AQUI ES TRANSPARENT 
    PER FER HO MES ESTETIC
*/

div.hablidades {
    display: flex;
    gap: 20px;
    align-content: center;
    flex-direction: column;
    justify-content: space-around;
}

div.FondoColores {

    background-color:rgb(255, 253, 239);
    padding: 25px;
    padding-top: 15px;
    border-radius: 25px;
    margin-top:25px;
}

div.Idiomes {
    
    background-color: rgba(216, 202, 202, 0.577);
    padding: 10px;
    padding-right: 60px;
    padding-top: 0px;
    border-radius: 10px;
    
}


div.Idiomes td{
    padding-right: 20px;
    padding-top: 0px;        
    margin-right: 0px;
    margin-left: 0px;
}

div.competencias {
    background-color: rgba(216, 202, 202, 0.577);
    padding: 10px;
    padding-right: 60px;
    padding-top: 0px;
    border-radius: 10px;
}

div.competencias td{
    padding-right: 20px;
    padding-top: 0px;        
    margin-right: 0px;
    margin-left: 0px;
}

/* AIXO ENGOLBA EXPERIENCIA LABORAL I
    EXPERIENCIA ACDEMICA
*/

div.exp {
    background-color: rgba(216, 202, 202, 0.577);
    padding: 10px;
    padding-right: 0px;
    border-radius: 10px;
}

div.exp h4 {
    line-height: 0.8em;
    margin:0;
    margin-bottom: -5px;
}

div.exp img{
    
    width: 75px;
    height: 75px;
    
}

div.exp td{
    padding-right: 20px;
    padding-top: 0px;        
    margin-right: 0px;
    margin-left: 0px;
}
div.estudio {
    background-color: rgba(216, 202, 202, 0.577);
    padding: 10px;
    border-radius: 10px;
}
div.estudio h4 {
    line-height: 0.8em; 
    margin:0;
    margin-bottom: -5px;
}

div.estudio img{
    
    width: 75px;
    height: 75px;
    
        
  
}

div.estudio td{
    padding-right: 20px;
    
  
}


p{
    margin-bottom: 20px;
}

/* CSS DE LA PAGINA PORTFOLI */

div.Portfoli {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    background-color:rgb(255, 253, 239);
    padding: 25px;
    border-radius: 25px;
    margin-top: 25px;


}

div.text {

    background-color: rgba(216, 202, 202, 0.577);
    padding: 10px;
    border-radius: 10px;
    padding-left: 25px;
    padding-right: 25px;

}

div.projectes img {
    width: 100%;

}

/* FEM EL CODI RESPONSIVE EN 768PX I 1024PX */

@media screen and (min-width:768px) {
    div.FLEXBOX {
        flex-direction: row;
        align-items: stretch;
    }
    div.hablidades {
        flex-direction: row;
    }

    div.Portfoli {
    display: grid;
    grid-template-columns: 1fr 1fr ;
    gap: 20px;

}
}

@media screen and (min-width:1025px) {

    div.Portfoli {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;

}
}