/* 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);
}

@media (max-aspect-ratio: 1/1){

    .vertical{
        display: flex;
    }

    .horizontal, #hideBtnDiv #sombre, #sombre1, #settings{
        display: none;
    }

    #cacheH{
        width: 0;
    }

    #settingsDiv, #helpPannel{
        width: 0;
        left: -1000px;
    }

    #audio-container{
        visibility: visible;
        opacity: 1;
    }

    #accueil{
        margin: 20px;
    }

    #accueil p{
        max-width: 100%;
    }

    /* Général */
    body{
        text-align: center;
        margin: 0;
        font-family: 'Tiza';
    }

    #bgVertical{
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 0;
        background-size:cover;
        background-position-x: center;
        background-position-y: center;
        background-repeat: no-repeat;
        background-image: url('../images/mobile/imageFond.jpg');
    }

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

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


    /* Page index.html Fins et Crédits */
    .texteEnd{
        background-color: rgba(255, 255, 255, .7);
        font-family: 'RomAntique';
        font-size: 25px;
        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;
    }

    #txtFin{
        display: block;
    }

    #txtFin.hidden{
        display: hidden;
    }

    #EndButton{
        font-family: 'Tiza';
        font-size: 30px;
        margin: auto;
        text-decoration: none;
        padding: 7px 10px 13px 10px;
    }

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

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


    /* Boutons & Footer*/
    .button{
        border-radius: 5px;
        background-color: antiquewhite;
        color: #181818;
        border: solid #181818 2px;
        width: fit-content;
        padding: 5px;
        font-family: 'BtnFont';
        font-weight: bold;
    }

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

    /* Transition */
    #noirTransi{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        background-color: #181818;
        z-index: 1000;
    }

    #noirTransi.fade-in{
        opacity: 1;
    }

    #noirTransi.fade-out{
        opacity: 0;
    }


    /* Boutons Accueil - Indice */
    #ChapBtnBG{
        height: 500px;
        background: linear-gradient(to bottom, #181818, rgba(0,0,0,0));
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
    }

    #ChapBtn{
        width: 100%;
        height: 50px;
        padding: 20px 0;
        display: flex;
        justify-content: space-between;
        vertical-align: middle;
        z-index: 2;
    }

    #ChapBtn button{
        display: flex;
        vertical-align: middle;
        justify-content: center;
    }

    #accueilBtn{
        width: 25%;
    }

    #indice{
        width: 75%;
    }

    /* Accueil */
    #imgLogo{
        border-radius: 100px;
        height: 110%;
    }

    #croix{
        padding: 5px;
        width: auto;
        border-radius: 100px;
    }

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

    #indiceDiv{
        position: absolute;
        top: 0px;
        left: 0;
        margin: auto;
        z-index: 90;
        justify-content: center;
        vertical-align: middle;
        width: 100%;
        height: 100%;
        display: none;
    }

    #indicePannel{
        width: 80%;
        padding: 10px;
        padding-bottom: 20px;
        background-color: antiquewhite;
        border: 2px solid #181818;
        border-radius: 15px;
        font-family: 'RomAntique';
        font-size: 25px;
        display: flex;
        align-items: center;
        flex-direction: column;
        position: absolute;
        top: 200px;
        left: 8%;
    }

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

    button #imgIndice{
        padding: 20px 20px 20px 20px;
        font-size: 35px;
        font-family: 'Tiza';
        border-radius: 30px;
        border: #181818 2px solid;
        height: 50%;
        margin: auto;
    }

    #indiceClose{
        position: absolute;
        right: 5px;
        top: 5px;
        z-index: 10;
    }

    #croix{
        width: 50px;
    }

    .indice{
        width: 90%;
        height: 180px;
        padding: 5px;
        border: 2px 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{
        border-radius: 15px;
        width: 96%;
        position: absolute;
        top: 10px;
        z-index: 5;
    }

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


    /* Player Audio */
    #s_audio{
        position: fixed;
        width: 100%;
        bottom: 0;
        padding-bottom: 40px;
        z-index: 400;
        height: 170px;
        background: linear-gradient(to top, #181818, rgba(0,0,0,0));
    }

    #audio-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

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

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

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

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

    .controls {
        display: flex;
        margin: auto;
        margin-top: 20px;
    }

    .controls button{
        width: 40px;
        height: 40px;
        font-family: 'Tiza';
        display: flex;
        vertical-align: middle;
        justify-content: center;
        background-color: antiquewhite;
        color: #181818;
        border: none;
        border-radius: 25%;
        cursor: pointer;
        font-size: 30px;
        padding: 20px 10px 0px 10px;
        transition: background-color 0.3s;
        margin: 10px;
    }

    #playPauseBtn{
        padding: 10px;
    }

    /* Zone de Choix */
    #s_choix{
        display: flex;
        justify-content: space-around;
        vertical-align: middle;
        align-items: center;
        align-content: center;
        flex-wrap: wrap;
        z-index: 3;
        background-image: url('../images/mobile/imageChoixFond.jpg');
        background-position-x: center;
        background-position-y: center;
        background-size: cover;
        background-repeat: no-repeat;
        box-shadow: 0 0 15px 15px rgba(0,0, 0, .6);;
        border-radius: 10%;
        border: #181818 solid 2px;
        padding: 0;
        width: 75%;
        aspect-ratio: 1/1;
        position: fixed;
        left: 12.5%;
        top: 200px;
        margin: 0;
    }

    #secChoix{
        min-height: 0;
    }

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

    #s_choix button{
        height: min-content;
        width: min-content;
        margin: auto;
    }

    .choix{
        display: flex;
        justify-content: center;
        vertical-align: middle;
        align-items: center;
        align-content: center;
        margin: 10px;
        border: solid 5px white;
        border-radius: 5px;
        min-width: 350px;
        max-width: 80%;
        max-height: 35%;
        width: auto;
        height: auto;
        background-size: contain;
        box-shadow: 0 0 5px 5px rgba(0,0, 0, .6);
    }

    .choix p{
        background-color: rgba(255,255, 255, .6);
        padding: 15px 5px 10px 5px;
        margin: 5px auto;
        font-size: 20px;
        font-weight: bold;
        width: 90%;
        border-radius: 35px;
    }

    #hideBtnDiv {
        position: fixed;
        top: 220px;
        right: 15%;
        justify-content: right;
        z-index: 3;
    }

    #hideBtnDiv #hideBtnV{
        width: fit-content;
        height: auto;
        font-size: 20px;
        padding: 5px;
        border-radius: 20px;
        background-color: rgb(218, 155, 79);
        border: #181818 solid 2px;
        margin: 0;
    }


    /* Cache */
    #cacheV{
        background-size: cover;
        background-image: url('../images/mobile/imageCache.jpg');
        border-radius: 10%;
        border: #181818 solid 1px;
        width: 75%;
        aspect-ratio: 1/1;
        height: 0;
        padding-top: 25%;
        padding-bottom: 50%;
        opacity: 1;
        transition: opacity 1s ease-in-out;
        position: fixed;
        left: 12.5%;
        top: 200px;
        z-index: 5;
        vertical-align: middle;
    }

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

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

    #cacheV.hidden{
        display: none;
    }

    #cacheV p{
        background-color: rgba(250, 235, 215, 0.8);
        color: black;
        padding: 20px 20px 20px 20px;
        margin: auto;
        font-size: 25px;
        border-radius: 40px;
        height: 100px;
        margin: auto 2.5%;
    }

    @media (max-width: 550px){
        .choix{
            min-width: 200px;
        }

        .choix p{
            padding: 15px 5px 10px 5px;
            font-size: 16px;
            margin: 5px 0;
        }

        #cacheV p{
            font-size: 20px;
        }
    }

    @media (max-width: 350px){
        .choix{
            min-width: 75px;
        }

        .choix p{
            padding: 15px 5px 10px 5px;
            font-size: 12px;
            margin: 5px 0;
        }

        #cacheV p{
            font-size: 11px;
        }
    }
}