*{
    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;
}
span{
    font-weight: 600;
}
#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{
    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: 1em;
    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: 34px;
}
.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;
    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);
}
#subtitols a{
    padding: 5px;
    border-radius: 25px;
    font-size: .7em;
    color: var(--blauclar);
}
.subtitol {
    font-size: 1.7em;
    margin-top: -.5em;
    color: var(--blaufosc);
}
.subtitol .txtclar{
    font-size: .7em;
    color: var(--blauclar);
}
#subtitols a:active{
    box-shadow: inset 2px 2px 3px #666666;  
}
#desplegaMenuSup, #amagaMenuSup{
    position: absolute;
    float: right;
    top: 50px;
    right: 10%;
    width: 40px;
    display: none;
}
/*BOOK*/
#book_foto{
    position: absolute;
    top:300px;
    height: auto;
    width: 70%;    
    left: 14%;
}
#book_foto img{  
    width: 100%;
    margin-left:0;
}
.memoria_publi{
    position: relative;
    width: 70%;
    height: 1em;
    font-size: 1em;
    text-align: justify;
    margin: 70px 0px 100px 20px ;
    color: var(--blaufosc); 
    overflow-y: hidden;
}
.memoria_publi:active{
    overflow-y: visible;
}
.container_publi{
    display: flex;
    width: 100%;
    height: auto;
    justify-content: center;
    align-items: flex-end;
}
.fotopubli{
    position: relative;
    display: flex;
    width: 70%;
    height: auto;
    justify-content: center;
    align-items: center;
    padding: 10px;
    max-width: 600px;
}
.fotoa{
    position: absolute;
}
.fotoa:hover{
    opacity: 0;   
}
.fotoa:active {
    opacity: 0;
}
.fotoa img{
    border: solid 20px #cccccc;
}
.fotob img{
    border: solid 15px #ffffff;
    box-shadow: -1px 1px 3px #666666;
}
.memoria{
    /*background-color: rgba(2,5,40,.1);*/
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.memoria a{
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: underline;
}
.fotoanunci{
    max-width: 300px;
    transform: rotate(9deg);     
}
.fotoanunci img{
    box-shadow: -1px 1px 4px #666666; 
}
.txt_memoria{
    font-size: .85em;
    margin: 70px 0px 10px 20px ;
    color: var(--blaufosc);   
}
#book_foto .txt_memoria img{
    width: 15px;
    margin-top: 10px;
}
@media screen and (max-width: 860px) {
    .principal{
        width: 74%;
        left: 10%;
    }
    #book_foto{
        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_foto{
        width: 127px;
    }
    .icona_foto{
        top: 6px;
        left: 137px; 
    }
    .icona_foto img{
        width: 35px;
    }
    .linea_foto {
        top: 62px;
        left: 183px;
        height: 3px;   
    }
    #book_foto{
        top: 320px;
    }
    .subtitol {
    font-size: 1.4em;
    margin-top: -.3em;
    }
    .fotoa img{
        border: solid 15px #cccccc;
    }
    .fotob img{
        border: solid 10px #ffffff;
    }
}
@media screen and (max-width: 700px) {
    #subtitols{
        top: -30px;
        flex-direction: column;
        text-align: left;
    }
    .subtitol{
        margin: 0px 0px 12px 5px;  
    }
    .container_publi {
        flex-direction: column;
        align-items: center;
    }
    .fotopubli {
        width: 90%;
    }
    .memoria {
        margin-top: -20px;
        width: 80%;
        flex-direction:row;
    }
}
@media screen and (max-width: 650px) {
    .titol{  
        width: 250px;
    }
    .titol_tema { 
        margin-left: 130px;
    }
    #book_foto{
        width: 80%;    
        left: 8%;     
    }
}
@media screen and (max-width: 600px) {
    .principal{
        width: 80%; 
    }
    #desplegaMenuSup{
        display: block;
    }
    #menu_superior{
        top: 190px;
        height: 140px;
        width: 80%;
        left: 10%;   
        display: none;
        z-index: 1; 
    } 
    .contacte{
        position:absolute;
        top: 0;
        right: auto;
        margin-left:5px;
    }
   #info_contacte{
        font-size: 1em;
        margin-top: -40px;
        width: 100%;
        text-align: center;
        line-height: 2em;
        padding:0px;
        display: none;   
    }
    .idioma{
        position: absolute;
        top: 0;
        right: 6px;
        padding-top: 10px;   
    }
    #idiomes{
        position: absolute;
        top: 0px;
        left:43%;
        box-shadow: none;
    }
    .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, #nom_disseny, #nom_illustracio{
       display: none;
    }  
    #book_foto{
        top: 300px; 
    }   
}

@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_foto{
        width: 100px;
    }
    .icona_foto img{
        left: -25px;
        top: 8px;
        width: 30px;
    }
    .linea_foto {
        top: 75px;
        left: 0;
        height: 2px;   
    }
    #nom_illustracio{
        width: 100px;
    }
    .icona_illustracio{
        top: 3px;
        left: 110px; 
    }
    .icona_illustracio img{
        width: 32px;
    }
    .linea_pintada {
        top: -3px;
        left: 128px;
        height: 3px;  
    }
    #desplegaMenuSup, #amagaMenuSup{
        right: 12%;
        width: 30px;
    }
    .memoria{
        flex-direction: column;
    }
    .fotoanunci{
        width: 50%;
    }
}



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





