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

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

    --block: #777777;

    --clr--bgd-circle: radial-gradient(circle, #b4b4b4 0%, #666666 100%);
    --clr--linear: radial-gradient(circle, var(--clr--main-3) 0%, var(--clr--main-1) 100%);

    --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: 1200px;
    margin: 0 auto;
    background-color: var(--clr1);
    color: #000;
    text-align: center;
    padding: 0 10px;
    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-clean {
    height: 100%;
    display: flex;
    justify-content:center;
    flex-direction: column;
    /* align-items: center; */
}

.full--div {
    /* height: 100%; */
    display: flex;
    justify-content:flex-start;
    flex-direction: column;
    padding-top: 10px;
}

input {
    background-color: var(--clr3);
}

input:focus {
    outline: none;
    background-color: var(--clr5);
}

/* TEXTE */

.btn--base--check {
    width: 100%;
    display: block;
    padding: var(--padding);
    margin: 0 10px 0 0;
    border-radius: var(--radius);
    background-color: var(--clr0);
    color: var(--clr5);
}

.txt--base--ctn, .txt--story--ctn {
    width: var(--width);
    display: block;
    padding: var(--padding);
    margin: var(--margin);
    border-radius: var(--radius);
}

.txt--base--ctn {
    background-color: var(--clr0);
    color: var(--clr5);
}

.txt--story--ctn {
    font-family: var(--ff--story);
    /* font-style: italic; */
    font-size: 22px;
    background-color: var(--clr4);
    color: var(--clrblack);
}

.name--ctn {
    background: var(--clr3);
    color: var(--clrblack);
    padding: 6px 12px 6px 12px;
    border-radius: 5px;
    position: relative;
    bottom: -15px;
    font-size: 12px;
}

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

/* INPUTS */

.dual-div {
    width: var(--width);
    margin: var(--margin);
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    align-items: center;
}

.input--ctn {
    border-radius: var(--radius);
    border: none;
    font-size: 18px;
    text-align: center;
    font-family: var(--ff--default);
    width: 100%;
    height: var(--std--height);
}

.input--margin-right {
    margin: 0 10px 0 0;
}

.input--margin-center {
    margin: 0 10px 0 10px;
}

/* MENU */ 

.menu--ctn {
    width: 100%;
    background-color: var(--clr3);
    height: 8%;
    z-index: 2;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    overflow: auto;
}

.menuBig--ctn {
    width: 100%;
    padding: 5px;
    display: none;
}

.menuBig--item, .menuBig--item--txt {
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius);
}

.menuBig--item {
    /* background-color: var(--clr1); */
    /* height: 40px; */
    color: var(--clr5);
}

.menuBig--item--txt {
    background-color: var(--clr2);
    padding: 10px;
    font-family: var(--ff--story);
    font-size: 20px;
}

.menuSmall--ctn {
    height: 100%;
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
}

.menuSmall--item {
    font-family: var(--ff--default);
    font-size: 20px;
    color: var(--clr5);
}

.opa {
    opacity: 0.3;
}

.smallMenuDone {
    color: var(--clr5);
}

.bigMenuDone {
    color: var(--clr5);
}

/* CHAPITRES */ 

.chapter--ctn {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.chapter--title--ctn {
    background-color: var(--clr4);
    height: 50%;
    width: 80%;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 20px;
}

.chapter--number, .chapter--title {
    margin: 10px auto;
}

.chapter--number {
    display: block;
    font-size: 26px;
    font-weight: 600;
    /* font-family: var(--ff--title); */
}

.chapter--title {
    display: block;
    font-size: 30px;
    font-family: var(--ff--story);
}

.chapter--btn {
    display: block;
}

/* BOUTONS */

.btn--ctn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.single--btn--ctn {
    margin: var(--margin);
    justify-content: center;
    /* width: var(--width); */
}

.btn--master--ctn {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: space-evenly;
}

button {
    width: 60px;
    height: 60px;
    border-radius: 60px;
    border: none;

    align-items: center;
    background-image: var(--bg--btn);
    border: 0;

    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-family: "Codec cold",sans-serif;
    font-size: 30px;
    font-weight: 700;

    justify-content: center;
    letter-spacing: .4px;
    line-height: 1;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 3px;
    text-decoration: none;
    text-transform: uppercase;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

button:active {
  outline: 0;
  transform: scale(.9);
}

button:hover {
  outline: 0;
}

button span {
  transition: all 200ms;
}

button:hover span {
  transform: scale(.9);
  opacity: .75;
}

.btn--validate {
    width: 100%;
    height: var(--std--height);
}

/* CHECKBOX */

.switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 34px;
    margin-left: 5px;
    margin-right: 5px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
  
.slider {
    width: 60px;
    border-radius: 20px;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--clr2);
    -webkit-transition: .4s;
    transition: .4s;
}
  
.slider:before {
    border-radius: 20px;
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 3px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
  
input:checked + .slider {
    background-color: var(--clrGreen);
}
  
input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
  
.flexbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

/* RADIO BUTTON */

.choice--master--ctn {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

}

.choice--btn {
display: flex;
flex-direction: row;
align-content: center;
justify-content: center;
align-items: center;

position: relative;
padding: 10px;

-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;

width: var(--width);
margin: var(--margin);
border-radius: var(--radius);
font-family: var(--ff--story);
font-size: 24px;
background-color: var(--clr4);
color: var(--clrblack);
}

/* Hide the browser's default radio button */
.choice--btn input {
position: absolute;
opacity: 0;
cursor: pointer;
}

.choice--btn--text {
    padding: 0 30px 0 0;
}

/* Create a custom radio button */
.checkmark {
    position: absolute;
    height: 20px;
    width: 20px;
    background-color: var(--clr5);
    border-radius: 50%;
    /* left: 0; */
    right: 15px;
}

/* When the radio button is checked, add background */
.choice--btn input:checked ~ .checkmark {
background-color: var(--clr0);
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
content: "";
position: absolute;
display: none;
}

/* Show the indicator (dot/circle) when checked */
.choice--btn input:checked ~ .checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.choice--btn .checkmark:after {
    top: 6px;
    left: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* UTILE */

.error {
    width: var(--width);
    border-radius: var(--radius);
    background: var(--clr3);
    margin: 0px auto;
    color: #000;
    padding: 10px;
    margin: 10px auto;
}

.footer {
    height: 9%;
    /* bottom: 0; */
}

/* INDICES */

.btn--indice--box:active, .btn--indice:active {
    transform: scale(0.95);
}

.btn--indice--box, .btn--indice {
    height: 60px;
    /* border-radius: 5px; */
    text-align: center;
    color: var(--clrblack);
    margin: 10px auto 0 auto;
    border: none;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
    background: white;
}

.btn--indice--box {
    align-items: center;
    appearance: none;
    background-color: #FCFCFD;
    border-radius: 5px;
    border-width: 0;
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset;
    box-sizing: border-box;
    color: #36395A;
    cursor: pointer;
    display: flex;
    font-family: "JetBrains Mono",monospace;
    justify-content: center;
    line-height: 1;
    list-style: none;
    overflow: hidden;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    text-align: left;
    text-decoration: none;
    transition: box-shadow .15s,transform .15s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    will-change: box-shadow,transform;
    font-size: 18px;

    height: 30px;
    font-size: 12px;
    
    border: none;
    margin: 10px auto;
    width: auto;
}

.btn--indice {
    z-index: 2;
    font-size: 16px;
    font-family: var(--ff--default);
    width: var(--width);
    height: 40px;
    background-color: var(--clr3);
    border-radius: 5px;
}

.indices--ctn {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
}

.indice--text, .indice--text--inside {
    z-index: 1;
    transform: translateY(-3px);
    /* font-size: 15px; */
    width: 90%;
    top: 0;
    padding: var(--padding);
    text-align: center;
    background-color: var(--clr0);   
    color: var(--clr5);
    border-radius: var(--radius);
}

.indice--text--inside {
    transform: translateY(1px)!important;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px!important;
}

.indice--box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

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

/* UTILE */

.hidden {
    display: none;
}

.matching--score--ctn {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Propriétés de la Progress Bar */
#container {
    margin: var(--margin);
    width: 130px;
    height: 130px;
}

.finale--img {
    border-radius: var(--radius);
    width: var(--width);
}

.techBtn {
    display: inline-block;
    text-align: center;
    width: auto;
    background: none;
    font-size: 12px;
    color: var(--clr2);
}