/**********************************************POLICES***********************************************************************/

@font-face {
    font-family: "Trajan";
    src: url('../fonts/TrajanPro-Regular.otf');
}

@font-face {
    font-family: "Raleway-ExtraLight";
    src: url('../fonts/Raleway-ExtraLight.ttf');
}


/**********************************************BACKGROUND***********************************************************************/

.body_stark {
    background-color: #2D3740;
    background-image: url(../images/stark/loup.svg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

.body_lannister {
    background-color: #822B0B;
    background-image: url(../images/lannister/lion.svg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

.body_targaryen {
    background-color: #1E4359;
    background-image: url(../images/targaryen/dragon_blason.svg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

.body_marcheurs_blancs {
    background-color: #011C26;
    background-image: url(../images/marcheurs_blancs/symbole_blason.svg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

.body_records,
.body_histoires,
.body_histoire_serie {
    background-color: #0D0D0D;
}


/**********************************************HEADER***********************************************************************/

h1 {
    font-family: 'Trajan', sans-serif;
    color: white;
    padding-top: 2%;
}

.son {
    width: 2%;
    position: fixed;
    top: 5%;
    right: 5%;
}

.precedent {
    width: 2%;
    position: fixed;
    top: 5%;
    left: 5%;
}


/**********************************************MENU***********************************************************************/

.menu {
    position: absolute;
    top: 49%;
    left: -1%;
    height: 100%;
    transform: translateY(-50%);
}

.menu img:not(.localisation) {
    width: 25%;
    align-self: center;
}

.localisation {
    width: 20%;
    align-self: center;
}

.menu a {
    text-decoration: none;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.p_active {
    color: white;
    font-family: 'Raleway-ExtraLight';
    font-size: 16px;
    opacity: 1;
}

.menu p:not(.p_active) {
    color: white;
    opacity: 0.25;
    font-family: 'Raleway-ExtraLight';
    font-size: 16px;
}


/**********************************************PAGE***********************************************************************/

.container-general {
    position: relative;
}

main {
    height: calc( 100% - 92px);
}


/**********************************************ANIMATIONS***********************************************************************/

.intro_famille,
.famille,
.carte_westeros,
.carte_essos,
.photo_lieu,
.conteneur_categories {
    animation: fade-in 1.5s cubic-bezier(0.390, 0.575, 0.565, 1.000) 0.5s both;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.modal_content,
#caption_lieu,
#caption_bataille {
    animation-name: zoomModal;
    animation-duration: 0.6s;
}

@keyframes zoomModal {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}

.contenu_categories img {
    animation: zoom 5s alternate 1;
}

@keyframes zoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

#bataille_blasons_marcheurs,
#bataille_blasons_lannister,
#bataille_blasons_stark_G,
#bataille_blasons_targaryen {
    animation: shakeDroite 1.25s cubic-bezier(.36, .07, .19, .97) both 2;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

#bataille_blasons_stark,
#bataille_blasons_baratheon,
#bataille_blasons_bolton,
#bataille_blasons_marcheurs_blancs {
    animation: shakeGauche 1.25s cubic-bezier(.36, .07, .19, .97) both 2;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shakeDroite {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }
    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

@keyframes shakeGauche {
    10%,
    90% {
        transform: translate3d(1px, 0, 0);
    }
    20%,
    80% {
        transform: translate3d(-2px, 0, 0);
    }
    30%,
    50%,
    70% {
        transform: translate3d(4px, 0, 0);
    }
    40%,
    60% {
        transform: translate3d(-4px, 0, 0);
    }
}

.suivant {
    width: 2%;
    position: fixed;
    bottom: 50%;
    right: 5%;
    animation: slide-right 1s infinite alternate both;
}

.precedent2 {
    width: 2%;
    position: fixed;
    bottom: 50%;
    left: 15%;
    animation: slide-left 1s infinite alternate both;
}

@keyframes slide-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-40px);
    }
}

@keyframes slide-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(40px);
    }
}


/**********************************************LOCALISATION***********************************************************************/

.carte_westeros {
    width: 18%;
}

.carte_essos {
    width: 30%;
}

.photo_lieu {
    margin-left: 10%;
    margin-right: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.photo_lieu p {
    color: white;
    font-family: 'Raleway-ExtraLight';
    opacity: 1;
    margin-top: 3%;
}


/**********************************************DESCRIPTION***********************************************************************/

.conteneur_categories {
    display: flex;
    width: 80%
}

h2 {
    font-family: 'Trajan', sans-serif;
    color: white;
    font-size: 22px;
    text-align: center;
}

.contenu_categories p {
    color: white;
    font-family: 'Raleway-ExtraLight';
    font-size: 16px;
}


/**********************************************BATAILLES***********************************************************************/

.blasons_batailles {
    width: 100%;
}

.blasons_batailles img {
    margin-right: 7%;
}

.contenu_batailles img {
    width: 20%;
    margin-bottom: 3%;
}

.contenu_forces_pertes h2 {
    text-align: left;
    margin-bottom: 2%;
}

.contenu_forces_pertes {
    color: white;
    font-family: 'Raleway-ExtraLight';
    font-size: 16px;
    position: absolute;
    left: 25%;
}

.listes {
    padding-bottom: 5%;
    display: flex;
    justify-content: space-between;
    padding-left: 10%;
    width: inherit;
}

.grande_liste {
    font-size: 14px;
}

.listes div {
    padding-right: 15%;
}

.photo_bataille {
    margin-left: 10%;
    margin-right: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 15%;
}

.photo_bataille a {
    color: white;
    font-family: 'Raleway-ExtraLight';
    opacity: 1;
    margin-top: 3%;
    text-decoration: none;
}

.photo_bataille a:hover {
    text-decoration: underline;
}


/**********************************************FOOTER***********************************************************************/

footer {
    position: absolute;
    bottom: 0;
    width: 100vw;
    padding-bottom: 0.5%;
    padding-left: 3%;
}

footer a {
    margin-right: 4%;
    color: white;
    opacity: 0.25;
    font-family: 'Raleway-ExtraLight';
    font-size: 14px;
    text-decoration: none;
}

footer a:hover {
    color: white;
    opacity: 0.25;
    font-size: 14px;
}

.footer_active {
    opacity: 1;
}

.footer_active:hover {
    opacity: 1;
    color: white;
}