:root {
    --ff--default: 'Roboto', sans-serif;
    --ff--title: 'Pacifico', cursive;
    --ff--story: 'Caveat', cursive;

    --clrblack:  #1f1f1f;
    --clr0: #eb4747; /* Darker */
    --clr1: #FF8B8B;
    --clr2: #FFC4C4; 
    --clr3: #ffc800;
    --clr4: #FFDEDE;
    --clr5: #ffffff;
    --clrGreen: #088337;
    --bg--btn: linear-gradient(135deg, #EB4747 40%, #FF8B8B);

    --block: #777777;

    --shadow: rgba(0, 0, 0, 0.15) 3px 3px 10px; /* Décalage X / Décalage Y / Flou */

    --clr--bgd--input: #fffcf9;
    --clr--error: #fffcf9;
    --clr--error-bg: #e24141;
    
    --width: 93%;
    --radius: 8px;
    --std--height: 60px;
    --padding: 20px;
    --margin: 5px auto;
}

html {
    height: 100%;
    box-sizing: border-box;
    font-size: 100%;
    font-family: var(--ff--default);
    margin: 0;
}

*, *:before, *:after {
    box-sizing: inherit;
    -webkit-tap-highlight-color:  rgba(255, 255, 255, 0);   /* Rend le blue highligt transparent sur tout le site (ouf!) */
}

body {
    height: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--clr2);
    color: #000;
    text-align: center;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a:hover, a:visited, a:link, a:active {
    text-decoration: none;
}

/* .material-icons {
    font-size: 30px;
} */

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--clrblack);
    opacity: 0.5; /* Firefox */
  }
  
:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--clrblack);
    opacity: 0.5;
}

::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--clrblack);
    opacity: 0.5;
}

.full--div {
    display: flex;
    justify-content:flex-start;
    flex-direction: column;
    padding: 20px;
}

.titlebox {
    font-family: var(--ff--title);
    padding: 10px;
    border-radius: 30px;
    background-color: var(--clr3);
    box-shadow: 5px 5px var(--clr0);
    font-size: 30px;
    margin-bottom: 20px;
}

.margin {
    margin-top: 20px;
    margin-bottom: 5px;
}


/* INTRO */

.intro--ctn {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.score--ctn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 20px;
}

.introtext, .score--ctn {
    border-radius: 5px;
    background-color: var(--clr5);
    padding: 15px;
}

.introtext {
    font-size: 14px;
    text-align: left;
    margin-right: 10px;
    display: flex;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}

#score {
    font-size: 30px;
}

.question {
    font-family: var(--ff--story);
    text-align: left;
    font-size: 22px;
}

.indice {
    position: relative;
    border-radius: 0 0 5px 5px;
    font-size: 12px;
    background-color: var(--clr1);
    color: var(--clr5);
    left: 10px;
    width: auto;
    padding: 5px;
}

.input--ctn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.liste-deroulante {
    height: 45px;
    border-radius: 5px;
    width: 100%;
    font-size: 18px;
    outline: 0;
    box-shadow: none;
    padding: 5px;
    background-color: var(--clr5);
    cursor: pointer;
    /* overflow:scroll; */
}

.liste-deroulante:enabled {
    border: none;
}

.input--field--ctn {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
}

input {
    width: 100%;
    height: 45px;
    background-color: var(--clr5);
    border-radius: 5px;
    border: none;
    padding: 10px;
    font-family: var(--ff--default);
    font-size: 18px;
}

input:focus {
    border: solid 1px var(--clrblack);
    outline: none;
    background-color: var(--clr5);
}

.btn--validate {
    height: 45px;
    width: 45px;
    margin-left: 5px;
    border-radius: 5px;
    border: none;
    align-items: center;
    background: var(--clr3);
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.disabled {
    background: var(--clr3);
}

.fail {
    background: var(--clr1);
    border-radius: 5px;
    font-size: 12px;
    font-weight: normal;
    padding: 5px;
    margin-top: 10px;
}


/* POPUP */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }
  
.popup-content {
    background-color: var(--clr5);
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    color: var(--clr-0);
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
    border-radius: 5px;
  }

.popup-object--ctn {
    display: flex;
    justify-content: center;
}

.popup-action-btn {
    position: absolute;
    bottom: -55px;
    padding: 20px;
    height: 45px;
    border-radius: 5px;
    border: none;
    align-items: center;
    background: var(--clr3);
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    /* text-transform: uppercase; */
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.popup-text {
    text-align: center;
    /* background-color: var(--clr3); */
}

/* UTILE */

.imgban {
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 5px;
}

.imgpop {
    /* border-radius: 50%; */
    height: 50px;
    margin-bottom:10px;
}

.error--div {
    color: var(--clr5);
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--clr0);
    margin: 0px auto;
    padding: 20px 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    max-width: 800px;
}

.error--txt {
    padding: 5px;
}

.malushint {
    background: var(--clr1);
    padding: 5px;
    border-radius: 5px;
}

.techBtn {
    background: transparent;
    border: none;
    color: var(--clr0);
}

.wrongbackground {
    background-color: var(--clr0);
}

.footer {
    width: 100%;
    height: 50px;
    max-width: 800px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* .valid {
    background-color: var(--clrGreen);
} */

.hidden {
    display: none;
}