*{
    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);    
}
#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, 
#illustracio,
#foto {
    display: flex;
    align-items: center;
    height: 50px;
    width: 50px;  
    margin-top:15px;
}
.bt_cesc,
.bt_illustracio,
.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_illustracio img{
    margin: 3px auto auto 4px;
    width: 26px;
}
.bt_foto img{
    width: 27px;
}
.bt_cesc:active {
    box-shadow: inset 2px 2px 3px #666666;
}
.bt_illustracio:active {
    box-shadow: inset 2px 2px 3px #666666;
}
.bt_foto:active {
    box-shadow: inset 2px 2px 3px #666666;
}
#autor_mov {
    display: none;
}
#illustracio_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);}
}
#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_illustracio{
    position: absolute;
    top: 190px;
    right: 45px;
    width: 100px;  
}
#nom_illustracio 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;
}
#nom_disseny{
    position: absolute;
    margin-left: -17px;
    top: 55px;
    width: 380px; 
}
#nom_disseny img{
    animation: visibilitat .9s ease-in;
}
@keyframes trasllatLinea{
	0%{transform:translateX(-1000px);}
	100%{transform:translateX(0);}
}
hr{
    position: absolute;
    max-width: 100%;
    right: 0;
    left: 80px;
    height: 0.8px;
    border: none;
    top: 79px;
    animation: visibilitat 1s ease-in, trasllatLinea 2s ease-out;
    background-image: linear-gradient(to right, #2f67b2 95%, transparent);
}
/*SUBTEMES*/
.subtema{ 
    position: relative;
    top: 26px;
    padding: 14px 0px;
    color: var(--blaufosc);
    font-weight: 600;
    line-height: 2px;
    font-size: 1.2em;
    font-style:italic;
    text-align: right;
    animation: visibilitat 2s ease-in;
}
.subtema img{
    position: relative;
    top: 7px;
    padding-right: 5px;
    width: 30px;
}
#desplegaMenuSup, #amagaMenuSup{
    position: absolute;
    float: right;
    top: 200px;
    right: 12%;
    width: 40px;
    display: none;
}
#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: none;
}

/*BOOK*/
#bookdg{
    position: absolute;
    display: flex;
    flex-wrap:wrap;
    top:350px;
    height: auto;
    width: 70%;    
    left: 14%; 
}
.coberta{
    position: relative;    
    border-radius: 9px;
    margin: 3.5px;
    display: flex;
    justify-content: center;
    align-items:center;
    flex-grow: 1;
    flex-basis: 230px;
    overflow: hidden;  
    height: 250px;
    max-width: 300px;
}
.coberta img{
    position: relative;
    display: flex;
    justify-content:center;
    opacity: 1;
    max-height: 250px;
}
.coberta img:hover{
    opacity:.4;    
}
.coberta:hover{
    box-shadow: -4px 5px 10px #000000;
    z-index: 1;
}
@media screen and (max-width: 770px) {
    .principal{  
        width: 70%;  
    }
    .titol{  
        width: 300px;
    }
    #nom_disseny{
        top:45px;
        width: 360px; 
    }
    hr{
        left: 70px;
        height: 0.6px;
        top: 68px;
    }
}
@media screen and (max-width: 700px) {
    #info_contacte{
        font-size: .8em;
        line-height: 1.7em 
    }
    .principal{
        width: 80%;
        left: 10%;
    }
   .titol{  
        width: 250px;
    }
    #nom_disseny{
        top: 35px;
        margin-left: 0;
        width: 260px; 
    }
    hr{
        height: 0.5px;
        top: 51px;
        right: 20px;
    }
    #bookdg{
        width: 82%;    
        left: 8%;
    }
    .coberta {
        flex-basis: 180px;
    }
}
@media screen and (max-width: 600px) {   
    .principal{
        width: 83%; 
    }
    #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;
    }
    #illustracio {
        position: absolute;
        display: inline-block;
        margin-top:0;
        left: 43%;
    }
    #foto {
        position: absolute;
        display: inline-block;
        margin-top:3px;
        right: 0;
    }   
    #bookdg{
        top: 250px;
    }  
    #nom_autor{
        top: 110px;
        right: auto;
        left: 5px;
    }
    #nom_illustracio{
        top: 115px;
        right: 39%;
        width: 22%;   
    }
    #nom_foto{
        top: 110px;
        right: -20px;
    }  
}
@media screen and (max-width: 500px) {
    #menu_superior{
        width: 68%;
        left: 15%;   
    } 
    .principal{
        top: 90px;
        width: 81%;
        left: 12%;
    }
    .titol{  
        width: 200px;
    }
    #bookdg{
        left: 15%;
        display: block;
        max-width: 75%;
    }  
}

.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;
    }
}









