*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    
}
body{
    font-family: 'Raleway', sans-serif;
    text-decoration: none;
    min-height: 1200px;
    margin: 0;
    --blaufosc: #2f67b2;
    --blauclar: #5597ee;
    --blaucel: #99ccff;
}
a{
    text-decoration: none;
    color: var(--blaufosc);    
}
h2{
    font-size: 1.2em;
}
h3{
    font-size: 1em;
    line-height: 1em; 
}

p{
    font-size: .9em;
    line-height: 1.5em;
}
#menu_superior{
    position: absolute;
    top: 45px;
    height: 500px;
    width: auto;
    right: 5%;   
} 
.footer{
    position: fixed;
    display: flex; 
    justify-content: center;
    align-items: center;
    bottom: 0%;
    color: var(--blauclar);
    height: 50px;
    width: 100%;
    background-color: rgba(255,255,255,.8);
    box-shadow: 0px -10px 30px rgba(0,0,0,.2);
    z-index: 1;
    font-size: 0.7em;
    padding: 20px;
}
.footer a img{
    padding-top: .5em;
    padding-left: 40px;
    height: 1.5em;
}
.footer a{  
    color: var(--blauclar);
}
.footer p{
    padding-top: .5em;
}

/* CONTACTE I IDIOMES */
.contacte{
    position: absolute;
    top: 0px;
    right: 0;
    height: 42px;
    width: 42px;
    border-radius: 21px;   
}
.contacte:active {
    box-shadow: inset 2px 2px 3px #666666;
}
#info_contacte{ 
    font-size: .9em;
    margin-top: -15px;
    text-align: right;
    line-height: 1.5em;
    width: auto;
    height: auto;
    display: none;
    padding:20px 62px 20px 20px;    
}
.contacte img{
    padding-top: 10px;
    padding-left: 3px;
    width: 37px;
}
.idioma{
    position: absolute;
    top: 55px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    padding-top: 7px;   
}
.idioma img{
    margin: 1px 4px;
    width: 30px;
}
#idiomes{
    position: absolute;
    top: 55px;
    right: 0;
    height: 42px;
    width: 90px;
    border-radius: 21px;
    display: none;   
    box-shadow: inset 2px 2px 3px #666666;
}
#idiomes img{
    padding-top: 3px;
    margin-left: 8px;
    margin-top: 5px;
    width: 30px;   
}
/* TEMES */
.bt_temes{
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 95px;
    right: -4px;
}
#icon_cesc, 
#disseny,
#illustracio {
    display: flex;
    align-items: center;
    height: 50px;
    width: 50px;  
    margin-top:15px;
}
.bt_cesc,
.bt_disseny,
.bt_illustracio {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px; 
    border-radius: 30px;
    margin-left: 5px;
}
.bt_cesc img{
    margin-top: 2px;
    width: 26px;
}
.bt_disseny img{
    margin: 5px auto auto 2px;
    width: 25px;
}
.bt_illustracio img{
    margin: 3px auto auto 4px;
    width: 26px;
}
.bt_cesc:active {
    box-shadow: inset 2px 2px 3px #666666;
}
.bt_disseny:active {
    box-shadow: inset 2px 2px 3px #666666;
}
.bt_illustracio:active {
    box-shadow: inset 2px 2px 3px #666666;
}
#autor_mov {
    display: none;
}
#disseny_mov {
    display: none;   
}
#illustracio_mov {
    display: none;
}
@keyframes visibilitat{
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}
@keyframes invisibilitat{
    from {
        opacity: 1;
    } to {
        opacity: 0;
    }
}
@keyframes trasllatFoto{
	0%{transform:translateX(-30px);}
	100%{transform:translateX(0);}
}
@keyframes trasllatAutor{
	0%{transform:translateY(-15px);}
	100%{transform:translateY(0);}
}
@keyframes trasllatLlapis{
	0%{transform:translateX(800px);}
	100%{transform:translateX(0);}
}
@keyframes trasllatLineaFoto{
	0%{transform:translateX(-800px);}
    100%{transform:translateX(0);}
}
#nom_autor{
    position: absolute;
    color: var(--blaufosc);
    top: 135px;
    right: 45px;
    animation: visibilitat .3s ease-in;
    animation: trasllatAutor .5s ease-out, visibilitat .3s ease-in;
}
#nom_disseny{
    position: absolute;
    top: 200px;
    right: -40px;
    width: 330px;  
    z-index: -1;   
}
#nom_disseny img{
    animation: visibilitat .4s ease-in;
}
#nom_illustracio{
    position: absolute;
    top: 255px;
    right: 45px;
    width: 100px;  
}
#nom_illustracio img{
    animation: visibilitat .4s ease-in;
}

/*TITULAR PAGINA*/
.principal{  
    position: absolute;
    top: 65px;
    width: 70%;
    height: auto;
    left:15%;    
}
.titol{  
    position: relative;
    width: 340px;
    z-index: 1;
}
.titol_tema { 
    position: relative;
    margin-left: 205px;
    top: -40px;
    width: auto;
    height: 100px;
    overflow: hidden;    
}
#nom_foto{
    top: 45px;
    position: relative;
    width: 140px;
}
#nom_foto img{
    animation: visibilitat .3s ease-in, invisibilitat .5s ease-out, visibilitat .4s ease-in, invisibilitat .3s ease-out;
}
.icona_foto{
    position: relative;
    top: 4px;
    left: 150px;    
}
.icona_foto img{
    position: relative;
    width: 40px;
    animation: visibilitat 1s ease-in;
}
.linea_foto{
    background-color: aliceblue;
    position: absolute;
    top: 65px;
    width: auto;
    right: 0;
    left: 200px;
    animation: visibilitat 2s ease-in;    
}
.linea_foto img{
    position: absolute;
    height: 4px;
}
.linea_foto hr{
    position: absolute;
    left: 35px;
    right: 0;
    height: 4px;   
    border: none;
    background-image: linear-gradient(to right, #2f67b2 80%, transparent);    
}
#subtitols{
    display:flex;
    position: relative;
    margin-top: 0px;
    font-family: 'Tomorrow', sans-serif;
    text-align: center;
    letter-spacing:2px;
    justify-content: space-between;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.txtclar{
    color: var(--blaucel);
}



#book_foto {
    display:flex;
    position: absolute;
    margin-top: 150px;
    font-family: 'Tomorrow', sans-serif;
    text-align: center;
    letter-spacing:2px;
    justify-content: space-between;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.marge_foto{
    padding: 10px 10px 15px 10px;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 10px;
    box-shadow: -1px 1px 3px #111111;
}
#book_foto img {
    margin-bottom: 10px;
    width: 170px;
    border-radius: 20px;
    border: solid 1px #111111;   
}
#book_foto a{
    font-size: .8em;
    color: var(--blauclar);
}

#desplegaMenuSup{
    position: absolute;
    float: right;
    top: 50px;
    right: 10%;
    width: 35px;
    display: none;
}
#amagaMenuSup{
    position: absolute;
    float: right;
    top: 10px;
    right: 5px;
    width: 30px;
    display: block;
    display: none;
}














@media screen and (max-width: 900px) {
   #book_foto{
        width: 105%;
    } 
}


@media screen and (max-width: 860px) {
    .principal{
        width: 74%;
        left: 10%;
    }
    #book_foto{
        width: 110%;
    }
}
@media screen and (max-width: 790px) {  
    #info_contacte{
        font-size: .8em;
        line-height: 1.7em 
    }
    .principal{
        width: 70%;
        left: 10%;
    }
    .titol{  
        width: 270px;
    }
    .titol_tema { 
        margin-left: 145px;
    }
    #nom_foto{
        width: 127px;
    }
    .icona_foto{
        top: 6px;
        left: 137px; 
    }
    .icona_foto img{
        width: 35px;
    }
    .linea_foto {
        top: 62px;
        left: 183px;  
    }
    #book_foto{
        width: 120%;
    }
}
@media screen and (max-width: 750px) {
    #book_foto {
        flex-direction: column;
        left:0;
        width: auto;
        margin-top: 0px;
    }
    .marge_foto {
        margin: 15px 0;
    }
}



@media screen and (max-width: 650px) {
    .titol{  
        width: 250px;
    }
    .titol_tema { 
        margin-left: 125px;
    }
}
@media screen and (max-width: 600px) {
    .principal{
        width: 80%; 
    }
    #desplegaMenuSup{
        display: block;
    }
    #menu_superior{
        top: 250px;
        height: 140px;
        width: 70%;
        left: 15%;   
        display: none;
        z-index: 1; 
    } 
    .contacte{
        position:absolute;
        top: 0;
        right: auto;
        margin-left:5px;
    }
    #info_contacte{
        font-size: .9em;
        margin-top: -100px;
        width: 100%;
        text-align: center;
        line-height: 1.9em;
        padding: 0px;
        display: none;   
    }
    .idioma{
        position: absolute;
        left:45%;
        top: 0;
        right: auto;
        padding-top: 10px;   
    }
    #idiomes{
        width: 42px;
        height: 90px;
        top: -47px;
        left:45%;
        display: none;
    }
    #idiomes img{
        padding-top: 3px;
        margin-left: 6px;
          
    }   
    #amagaMenuSup{
        display: block;
    }
    .bt_temes{
        position: absolute;
        display: block;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;

    }
    #icon_cesc {
        position: absolute;
        display: inline-block;
        margin-top:0;
        left: 0;
    } 
    #disseny {
        position: absolute;
        display: inline-block;
        margin-top:0;
        left: 43%;
    }
    #illustracio {
        position: absolute;
        display: inline-block;
        margin-top:3px;
        right: 0;
    }   
    #nom_autor{
        top: 110px;
        right: auto;
        left: 5px;
    }
    #nom_disseny{
        top: 115px;
        right: 12%;
        width: 76%;   
    }
    #nom_illustracio{
        top: 110px;
        right: -20px;
    }  
    
    #book_foto {
        left:25%;
    }
}

@media screen and (max-width: 500px) {
    #menu_superior{
        width: 68%;
        left: 15%;   
    } 
    .principal{
        width: 76%;
        left: 12%;
    }
    .titol{  
        width: 220px;
    }
    .titol_tema { 
        margin-left: 105px;
    }
    #nom_foto{
        width: 115px;
    }
    .icona_foto{
        top: 12px;
        left: 125px; 
    }
    .icona_foto img{
        width: 32px;
    }
    .linea_foto {
        top: 62px;
        left: 173px;  
    }
    #desplegaMenuSup{
        right: 12%;
        width: 30px;
    }
}







