/* Polices de caractères */
@font-face {
    font-family: 'Tiza';
    src: url(../fonts/tiza.ttf);
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'RomAntique';
    src: url(../fonts/UglyQua.ttf);
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'BtnFont';
    src: url(../fonts/UglyQua.ttf);
}

/* Général */
body{
    width: 100%;
    text-align: center;
    background-color: #181818;
    margin: 0;
    font-family: 'Tiza';
    min-height: 100vh;
    background-size:contain;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
}

p, h1{
    padding-top: 10px;
}

#s_choix{
    max-width: 1400px;
    margin: auto;
}

a, a:visited{
    color: #181818;
    text-decoration: none;
}

footer a:hover{
    text-decoration: underline;
}

/* Boutons & Footer*/
footer{
    background-color: rgba(24, 24, 24);
    color: antiquewhite;
    padding: 10px 0;
}

footer.chapitre{
    padding-bottom: 140px;
}

footer a, footer a:visited, #accueil a, #accueil a:visited{
    text-decoration: none;
    color: antiquewhite;
}

.button{
    border-radius: 5px;
    background-color: antiquewhite;
    color: #181818;
    border: solid #181818 1px;
    width: fit-content;
    padding: 5px;
    font-family: 'BtnFont';
    font-weight: bold;
    font-size: 20px;
}

#retryButton{
    position: fixed;
    top: 19px;
    left: 30px;
    z-index: 30;
}

#retryButton .fade-in{
    position: fixed;
    top: 19px;
    left: 30px;
}

.button:hover{
    background-color: rgb(236, 211, 177);
    transition: background-color 0.3s;
}

#f_titre{
    font-weight: bold;
    font-size: 24px;
}

#f_credits{
    font-family: 'RomAntique';
    padding: 4px;
    font-size: 24px;
    line-height: 40px;
    margin-top: 0;
}

.img_logo{
    height: 100px;
    margin: 10px;
}

/* Zone de Choix */
.bg{
    background-size:contain;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    vertical-align: middle;
}

#secChoix{
    display: flex;
    justify-content: center;
    vertical-align: middle;
    min-height: 100vh;
}

#s_choix{
    padding: 30px 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    vertical-align: middle;
    z-index: 3;
    margin: auto;
}

button{
    all: unset;
    cursor: pointer;
    display: inline-block;
}

.choix{
    display: flex;
    margin: 20px;
    border: solid 10px white;
    border-radius: 5px;
    width: 400px;
    height: 225px;
    background-size: contain;
    box-shadow: 0 0 5px 5px rgba(0,0, 0, .6);
}

.choix:hover{
    transform: scale(1.1);
    transition-duration: .5s;
}

.choix p{
    background-color: rgba(255,255, 255, .6);
    padding: 10px 0 15px 0;
    font-size: 26px;
    font-weight: bold;
    margin: auto;
    width: 100%;
}

#hideBtnDiv {
    position: fixed;
    top: 3vh;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 3;
}

#hideBtn {
    max-width: 60%;
    bottom: 200px;
}

/* Player Audio */
#s_audio{
    position: fixed;
    width: 100%;
    bottom: 0;
    padding-bottom: 20px;
    z-index: 400;
}

#audio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10%);
    transition: visibility 0.5s, opacity 0.5s, transform 0.4s ease-in-out;
}

#sombre, #sombre1{
    background-color: #181818;
    position: fixed;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    transition: visibility .5s, opacity .5s ease-in-out;
}

#sombre1{
    z-index: 2;
}

#sombre.fade-in, #sombre1.fade-in{ 
    opacity: .3;
}

#sombre.fade-out, #sombre1.fade-out{
    opacity: 0;
}

.progress-container {
    width: 95%;
    margin-top: 20px;
    position: relative;
    cursor: pointer;
}

.hitbox {
    position: relative;
    height: 30px;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0px 10px 5px rgba(0, 0, 0, 0.9);
}

.progress {
    height: 100%;
    background-color: rgb(255, 209, 150);
    width: 0;
}

.progress-dot {
    width: 12px;
    height: 12px;
    background-color: rgb(255, 209, 150);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.controls {
    margin-top: 20px;
    display: flex;
    margin-right: auto;
    margin-left: 3%;
}

.controls button, .volume-control button {
    padding: 10px 20px;
    font-family: 'BtnFont';
    background-color: antiquewhite;
    color: #181818;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.controls button:hover{
    background-color: rgb(255, 209, 150);
}

.volume-control {
    display: flex;
    align-items: center;
}

.volume-control.fade-in{
    display: flex;
}

.volume-control button{
    border: solid 1px black;
}

.volume-bar-container {
    width: 100px;
    margin-left: 10px;
    position: relative;
    cursor: pointer;
    height: 30px;
}

.volume-bar {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    position: relative;
    box-shadow: 0 0px 10px 5px rgba(0, 0, 0, 0.9);
    top: 50%;
    transform: translateY(-50%);
}

.volume-level {
    height: 100%;
    background-color: rgb(255, 209, 150);
    width: 100%;
}

/* Cache */

body.cache{
    overflow: hidden;
}

#cacheH, #cacheV{
    background-position-x: center;
    background-position-y: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #181818;
    display: flex;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    z-index: 5;
}

#cacheH{
    height: 100vh;
}

#cacheH.fade-in, #cacheV.fade-in{
    opacity: 1;
}

#cacheH.fade-out, #cacheV.fade-out{
    opacity: 0;
}

#cacheH.hidden, #sombre.hidden, #cacheV.hidden{
    display: none;
}

#imageHeracles{
    height: 200px;
    margin: auto;
    position: relative;
    bottom: 90px;
    opacity: 0;
    transition: opacity 4.5s ease-in-out;
}

#cacheHorizontal{
    width: auto;
    height: 100%;
    position: fixed;
    z-index: 10;
}


#cacheH p, #cacheV p{
    padding-bottom: 45px;
    padding-top: 0;
    width: 100%;
    background-color: black;
    color: antiquewhite;
}

/* Page index.html Fins et Crédits */
.InfoPage{
    background-size: cover;
    background-position-y: center;
    background-image: url('../images/image0.jpg');
}

#accueil, #credits, .texteEnd{
    background-color: rgba(255, 255, 255, .7);
    font-family: 'RomAntique';
    font-size: 21px;
    padding: 20px;
    line-height: 30px;
    margin: 20px 50px;
    height: 90vh;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 5px #181818;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 10px;
}

h1 {
    padding: 0px 0;
    font-weight: bolder;
    font-size: 36px;
    font-family: 'Tiza';
}

#accueil p{
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

#credits{
    height: auto;
}

#startButton{
    font-family: 'Tiza';
    font-size: 20px;
    margin: auto;
    text-decoration: none;
}

.texteCredits{
    position: relative;
    bottom: 23px;
}

#credits{
    line-height: 40px;
}

.texteEnd{
    width: 90%;
    height: auto;
    margin: auto;
    padding: 20px;
    padding-top: 0;
}

/*Modal travaillé*/
#chapitreBody{
    background-color: #181818;
}

.modal-container{
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s, visibility 1s ease-in-out;
}

.modal-container.fade-in{
    opacity: 1;
    visibility: visible;
}

.modal-container.fade-out{
    opacity: 0;
    visibility: hidden;
}

/* Settings - Help */
#settingsDiv, #settings{
    position: fixed;
    z-index: 100;
}

#settings{
    display: flex;
    top: 19px;
    right: 30px;
    border-radius: 55px;
    width: 40px;
    height: 40px;
}

#settingsDiv{
    display: none;
    flex-direction: column;
    border-radius: 5px;
    border: 1px solid black;
    box-shadow:  0 0 5px 5px rgba(0,0, 0, .6);
    top: 79px;
    right: 30px;
    left: auto;
    padding: 10px;
    background-color: rgb(255, 209, 150);
    width: auto;
}

#settingDivBtn{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-bottom: 10px;
}

button #imgHelp, #croix{
    width: 35px;
    height: 35px;
    padding: 5px;
    border-radius: 50px;
}

#helpPannel{
    display: none;
    position: fixed;
    width: 100%;
    height: 100vh;
    left: auto;
    z-index: 100;
    margin: auto;
    font-family: 'RomAntique';
    background-color: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}

#helpText{
    width: 60%;
    height: auto;
    padding: 20px;
    background-color: antiquewhite;
    border: 1px solid #181818;
    border-radius: 15px;
}

h4{
    font-family: 'Tiza';
}

/* Zone paramétrage du panneau d'indices */

#indiceDiv{
    position: fixed;
    margin: auto;
    z-index: 90;
    justify-content: center;
    vertical-align: middle;
    width: 100%;
    height: 100vh;
    display: none;
}

#indicePannel{
    width: 40%;
    margin: auto;
    padding: 10px;
    padding-bottom: 20px;
    background-color: antiquewhite;
    border: 1px solid #181818;
    border-radius: 15px;
    font-family: 'RomAntique';
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
}

#indicePannel h6{
    font-size: 24px;
    font-family: 'RomAntique';
    margin: 10px;
    margin-bottom: 20px;
    padding: 0;
}

button #imgIndice{
    width: 35x;
    height: 35px;
    padding: 5px;
    border-radius: 20px;
}

#indiceClose{
    position: absolute;
    right: 10px;
}

.indice{
    width: 400px;
    height: 100px;
    padding: 5px;
    border: 1px solid #181818;
    border-radius: 10px;
    background-color: rgb(247, 182, 97);
    margin-bottom: 20px;
}

.indiceTxt{
    padding: 0;
    margin-top: 30px;
}

#indice2{
    margin-bottom: 0;
}

.indicePannelDiv{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#indiceCachessDiv{
    position: absolute;
    top: 10px;
}

.iCache, #i1-cache, #i2-cache{
    opacity: 1;
    transition: opacity 0.35s ease-in-out;
}

.iCache.fade-out, #i1-cache.fade-out, #i2-cache.fade-out{
    opacity: 0;
}


@media (max-width: 1160px){
    #accueil{
        height: auto;
    }
}

@media (max-width: 1125px){
    body, #bg, .choix, #cache{
        background-size: cover;
    }
}

@media (max-width: 1070px){
    h1.chapitre{
        margin-left: 250px;
    }
}

@media (max-height: 945px){
    #cacheH p, #cacheV p{
        margin-top: 200px;
    }
}

@media (max-width: 876px){
    h1{
        line-height: 110%;
    }
}

@media (max-height: 765px){
    #cacheH p, #cacheV p{
        margin-top: 50px;
    }
}

@media (max-width: 605px){
    h1{
        font-size: 20px;
    }

    #accueil p{
        font-size: 14px;
        padding: 2px;
    }

    .choix{
        width: 300px;
        height: 168px;
    }

    .choix p{
        top: 33px;
    }

    #f_credits{
        font-size: 22px;
        padding: 6px;
    }

    .img_logo{
        height: 50px;
    }

    #cacheH, #cacheV{
        color: antiquewhite;
    }

    #cacheH p, #cacheV p{
        margin-top: 200px;
    }
}

/* Gestion Horizontal/Vertical */

/* Cacher Elts Vertical */

@media (min-aspect-ratio: 1/1){
    .vertical, #hideBtnDiv{
        display: none;
    }

    #cacheV, #bgVertical{
        width: 0;
    }

    .horizontal, #hideBtnDiv, #settings{
        display: flex;
    }

    #sombre, #sombre1{
        display: block;
    }

    #s_choix{
        background-image: none;
        position: static;
    }

    #cacheV{
        left: -1000px;
    }
}


@media (max-aspect-ratio: 1/1){
    .InfoPage{
        background-size:auto;
        background-position-x: center;
        background-position-y: top;
        background-image: url('../images/mobile/imageFond1.jpg');
    }

    #credits strong{
        text-decoration: underline;
    }

    .img_logo{
        height: 60px;
    }
   
}
