*{
    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;
}
a{
    text-decoration: none;
    color: var(--blaufosc);    
}
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;
}
.espai_100{
    width: 100%;
    height: 100px;
}
/* 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,
#foto {
    display: flex;
    align-items: center;
    height: 50px;
    width: 50px;  
    margin-top:15px;
}
.bt_cesc,
.bt_disseny,
.bt_foto {
    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_foto img{
    width: 27px;
}
.bt_cesc:active {
    box-shadow: inset 2px 2px 3px #666666;
}
.bt_disseny:active {
    box-shadow: inset 2px 2px 3px #666666;
}
.bt_foto:active {
    box-shadow: inset 2px 2px 3px #666666;
}
#autor_mov {
    display: none;
}
#disseny_mov {
    display: none;   
}
#foto_mov {
    display: none;
}
@keyframes visibilitat{
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}
@keyframes invisibilitat{
    from {
        opacity: 1;
    } to {
        opacity: 0;
    }
}
@keyframes trasllatAutor{
	0%{transform:translateY(-15px);}
	100%{transform:translateY(0);}
}
@keyframes trasllatLlapis{
	0%{transform:translateX(800px);}
	100%{transform:translateX(0);}
}
#nom_autor{
    position: absolute;
    color: var(--blaufosc);
    top: 130px;
    right: 45px;
    animation: visibilitat .3s ease-in;
    animation: trasllatAutor .5s ease-out, visibilitat .3s ease-in;
}
#nom_autor img{
    width: 20px;
    height: 20px;
}
#nom_disseny{
    position: absolute;
    top: 200px;
    right: -40px;
    width: 330px;  
    z-index: -1;   
}
#nom_disseny img{
    animation: visibilitat .4s ease-in;
}
#nom_foto{
    position: absolute;
    top: 258px;
    right: 45px;
    width: 100px;
}
#nom_foto img{
    animation: visibilitat .3s ease-in, invisibilitat .5s ease-out, visibilitat .4s ease-in, invisibilitat .3s ease-out;
}
/*TITULAR PAGINA*/
.principal{  
    position: absolute;
    top: 65px;
    width: 70%;
    height: auto;
    left:15%;    
}
.titol{  
    position: relative;
    width: 340px;
}
.titol_tema { 
    position: relative;
    margin-left: 205px;
    top: -40px;
    width: auto;
    height: 100px;
    overflow: hidden;    
}
#nom_illustracio{
    top: 45px;
    position: relative;
    width: 140px;
}
#nom_illustracio img{
    animation: visibilitat 2s ease-in;
}
.icona_illustracio{
    position: relative;
    top: -8px;
    left: 157px;    
}
.icona_illustracio img{
    position: relative;
    width: 40px;
    animation: visibilitat 1.5s ease-in, trasllatLlapis 2s ease-out;
}
.linea_pintada {
    position: relative;
    background-image: url(illustracio_linea.svg);
    background-repeat:repeat-x;
    top: -13px;
    left: 175px;
    height: 4px;  
    animation: trasllatLlapis 2s ease-out, visibilitat 1.5s ease-in;
}
#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; 
}
/*BOOK*/
#book{
    position: absolute;
    display: flex;
    flex-wrap:wrap;
    top:320px;
    height: auto;
    width: 70%;    
    left: 14%;
}
.coberta{
    position: relative;    
    border-radius: 9px;
    margin: 2px 10px;
    display: flex;
    justify-content: center;
    align-items:center;
    flex-grow: 1;
    flex-basis: 180px;
    max-width: 250px; 
    overflow: hidden;  
    height: 250px;
}
.coberta img{
    position: relative;
    display: flex;
    justify-content:center;
    opacity: 1;
    max-width: 100%;
    max-height: 250px;
    z-index: -1;
}
.coberta:hover{
    box-shadow:inset -4px 5px 10px #000000;  
}
@media screen and (max-width: 860px) {
    .principal{
        width: 74%;
        left: 10%;
    }
    #book{
        width: 80%;    
        left: 10%;
    }
}
@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_illustracio{
        width: 125px;
    }
    .icona_illustracio{
        top: 3px;
        left: 140px; 
    }
    .icona_illustracio img{
        width: 35px;
    }
    .linea_pintada {
        top: -3px;
        left: 157px;
        height: 3px;  
    }
    #book{
        top: 320px;
    }
}
@media screen and (max-width: 650px) {
    .titol{  
        width: 250px;
    }
    .titol_tema { 
        margin-left: 130px;
    }
    #book{
        width: 80%;    
        left: 8%;
        
    }
}
@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%;
    }
    #foto {
        position: absolute;
        display: inline-block;
        margin-top:3px;
        right: 0;
    }   
    #book{
        top: 250px;
    }  
    #nom_autor{
        top: 110px;
        right: auto;
        left: 5px;
    }
    #nom_disseny{
        top: 115px;
        right: 12%;
        width: 76%;   
    }
    #nom_foto{
        top: 110px;
        right: -20px;
    }  
}
@media screen and (max-width: 500px) {
    #menu_superior{
        width: 68%;
        left: 15%;   
    } 
    .principal{
        width: 76%;
        left: 12%;
    }
    .titol{  
        width: 220px;
    }
    .titol_tema { 
        margin-left: 120px;
    }
    #nom_illustracio{
        width: 100px;
    }
    #nom_disseny{
        right: 0;
        width: 100%;   
    }
    .icona_illustracio{
        top: 3px;
        left: 110px; 
    }
    .icona_illustracio img{
        width: 32px;
    }
    .linea_pintada {
        top: -3px;
        left: 128px;
        height: 3px;  
    }
    
    #desplegaMenuSup{
        right: 12%;
        width: 30px;
    }
    #book{
        left: 20%;
    } 
}
.ves_amunt_container{
    position: fixed;
    bottom: 60px;
    right: 40px;
    width: 50px;
    height: 50px;
    z-index: -1;
    
}


.bt_ves_amunt{
    width: 0px;
    height: 0px;
    background-color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .2s;
    z-index: -1; 
    box-shadow: -2px 2px 4px #666666;
}

.bt_ves_amunt img{
    position: absolute;
    width: 25px;
    top: 23px;
    left: 23px;
    transform: translate(-50%, -50%) scale(0);
    transition: .2s;
}

.show{
    z-index: 10;
}

.show .bt_ves_amunt{
    animation: popup .3s ease-in-out;
    width: 50px;
    height: 50px;
    z-index: 11;
}

.show img{
    transform: translate(-50%, -50%) scale(1);
}

@keyframes popup{
    0%{
        width: 0px;
        height: 0px;
    }
    50%{
        width: 70px;
        height: 70px;
    }
    100%{
        width: 50px;
        height: 50px;
    }
}









