@font-face{
    font-family: Wondercity;
    src: url(Wondercity.otf);
}

body{
    margin: 0;
    padding: 0;
    /* background-color: grey; */
    /* background: linear-gradient(to right, #8c52ff, #ff914d); */
    background-image: url("../IMG/prism.png");
    color: white;
    font-size: 1.2em;
}

body, button {
    font-family: "Wondercity", Arial, Helvetica, sans-serif;
}

/* La taille du texte des boutons ne réagit pas pareil que pour le reste */
button{
    font-size: 1.1em;
}

body,header,main,footer,div{
    display: flex;
    flex: 1;
}

header{
    flex: none;
    max-height: 15vh;
}

a{
    color: white;
}

.cadreHamburger{
    align-items: center;
    /* display: none; */
}

.cadreHamburger img{
    margin-left: 0.5em;
    height: 60%;
    cursor: pointer;
}

.cadreLogo{
    justify-content: center;
    max-width: 20vw;
    overflow: visible;
}

.cadreLogo img{
    /* souci ici, l'image dépasse de la div en mobile et élargit la page */
    height: 100%;
    /* max-width: 100%; */
}

.cadreNumeroQuestion{
    justify-content: center;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    padding: 0.5em;
    /* text-decoration: underline; */
}

.cadreQuestion{
    /* Change selon la météo et l'alignement des astres */
    text-align: center;
    justify-content: center;
}

.cadreReponses input{
    appearance: none;
}

.cadreScore{
    justify-content: center;
    font-size: 1.5em;
}

.cadreRecap{
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    margin: 0.5em 0;
    padding: 0.5em;
    align-items: center;
}

.cadreReponses .reponses:has(input:checked){
    /* border-color: blue; */
    background-color: white;
    color: black;
}

.cadreReponsesVerif .reponses:has(input:checked){
    background-color: none;
    color: white;
}

.cadreReponsesVerif input{
    appearance: none;
}

.reponses{
    border: 2px solid white;
    border-radius: 1em;
}

.reponses label{
    width: 100%;
    text-align: center;
    padding: 0.5em 0;
    cursor: pointer;
}

.boutonQuestion{
    border: 2px solid white;
    width: 100%;
    padding: 0.2em 0;
    background-color: transparent;
    color: white;
    height: fit-content;
    cursor: pointer;
}

.boutonQuestionSuivante{
    border: 2px solid white;
    width: 100%;
    padding: 0.2em 0;
    background-color: white;
    color: black;
    height: fit-content;
    cursor: pointer;
}

.boutonRetour{
    border: 2px solid white;
    border-radius: 1em;
    text-align: center;
    padding: 0.5em 0;
    cursor: pointer;
    margin: 1em;
    text-decoration: none;
    width: 100%;
}

.vert{
    background-color: green;
}

.rouge{
    background-color: red;
}

.boutonLien{
    border: 2px solid white;
    border-radius: 1em;
    text-align: center;
    padding: 0.5em 0;
    cursor: pointer;
    margin: 1em;
    text-decoration: none;
}

/* Main et animation venant de lootbar.gg */
.main{
    position: absolute;
    right: 25%;
    bottom: 0px;
    width: 50px;
    height: 50px;
    animation: handScale 1.5s ease-in-out infinite;
}

.accueilQuiz{
    position: relative;
    justify-content: center;
}

.accueilQuiz a{
    width: 60%;
}

@keyframes handScale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3) translate(20%, 28%);
    }
    100% {
        transform: scale(1);
    }
}

/* Menu mobile */
.menuMobile{
    position: absolute;
    height: 100vh;
    width: 20vw;
    background-color: rgba(76, 76, 76, 0.92);
    /* background-color: rgba(255, 145, 77, 0.92); */
    font-size: 1.5em;
    z-index: 1;
}

.cadreCroixMenu{
    max-height: 15vh;
}

.cadreCroixMenu img{
    margin-left: 0.5em;
    margin-top: 1em;
    height: 50%;
    cursor: pointer;
}

.menuLiens a{
    text-decoration: none;
    color: white;
}

.menuLiens ul{
    list-style-type: none;
    padding: 0;
    width: 100%;
    text-align: center;
}

.menuLiens li{
    border: 2px solid white;
    margin: 0.5em;
}

.cadreConnexion form{
    font-size: 0.8em;
    width: 100%;
    margin: 0 1em;
}

.cadreConnexion input{
    width: 100%;
    height: 2em;
}

.cadreConnexion button{
    width: 100%;
    border: 2px solid white;
    padding: 0.2em 0;
    background-color: transparent;
    color: white;
}

/* Outils */

.justifyContentCenter{
    justify-content: center;
}

.textAlignCenter{
    text-align: center;
}

.displayNone{
    display: none;
}

.colonne{
    flex-direction: column;
}

.flexNone{
    flex: none;
}
.flex05{flex: 0.5;}
.flex1{flex: 1;}
.flex2{flex: 2;}
.flex3{flex: 3;}
.flex4{flex: 4;}
.flex5{flex: 5;}
.flex6{flex: 6;}
.flex7{flex: 7;}
.flex8{flex: 8;}
.flex9{flex: 9;}
.flex10{flex: 10;}
.espaceH1{
    flex: none;
    height: 1vh;
}
.espaceH2{
    flex: none;
    height: 2vh;
}
.espaceH3{
    flex: none;
    height: 3vh;
}
.espaceH5{
    flex: none;
    height: 5vh;
}
.espaceH7{
    flex: none;
    height: 7vh;
}
.espaceH10{
    flex: none;
    height: 10vh;
}

/* Smartphone */

@media screen and (max-width: 1220px) {
    .bords{
        /* flex:0.05; */
        display: none;
    }

    .contenu{
        margin: 0 1em;
    }

    header, .cadreCroixMenu{
        max-height: 12vh;
    }

    .cadreHamburger{
        display: flex;
    }

    .menuMobile{
        height: 100vh;
        width: 100vw;
    }

    .accueilQuiz a{
        width: 100%;
    }
    
    @media (orientation: landscape) {
        header {
            max-height: 30vh;
        }
    }
}