.page-title {
    margin-top: 20px;
    font-family: 'Amatic SC', cursive;
    font-size: 100px;
    font-weight: normal;
    text-align: center;
    color: #000;    
}

/*
.page-subtitle {
    margin-top: -40px;
    font-family: 'Amatic SC', cursive;
    font-size: 50px;
    font-weight: normal;
    text-align: center;
    color: #000;    
}
*/

body {
    margin: 0;
/*    background-color: #009688;*/
    background: url(../images/backgrounds/04.jpg) repeat fixed;
    font-family: sans-serif;
}

* {
    box-sizing: border-box;
}

.quiz-container {
    max-width: 800px;
    min-height: 600px;
    background-color: #FFF;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    padding: 30px;
}

.quiz-container h1 {
    font-size: 24px;
    margin-top: 0px;
}

@media (max-width: 640px) {
    .page-title {
        display: none;  
    }    
    .quiz-container {
        margin-top: 0px;
        max-width: 600px;
        min-height: 600px;  
    }
    .quiz-container h1 {
        font-size: 20px;        
    }
    .quiz-container .question {
        font-size: 20px;
    }    
    .options div {
        font-size: 30px;
    }
    .question-number h3 {
        font-size: 20px;
    }    
}

.quiz-container::after, .quiz-container::before{    /* Pour que le bulles du tracker soient contenus dans le container */
    content: '';
    clear: both;
    display: table;
}
.question-number,
.question,
.options,
.button,
.answers-tracker {
    float: left;
    width: 100%;
}

.question-number h3 {
    font-size: 20px;
    color: #009688;
    border-bottom: 1px solid #CCC;
    margin: 0;
    padding-bottom: 10px;
}

.question {
    font-size: 20px;
    color: #000;
    padding: 20px 0;
}

.options div {
    background-color: #CCC;
    font-size: 16px;
    color: #000;
    margin-bottom: 10px;
    border-radius: 5px;
    padding: 15px;
    position: relative;
    overflow-x: hidden;     /* Pour que l'arrondi s'applique aussi au background */
    cursor: pointer;
}

.options div.disabled {
    pointer-events: none;
}

.options div.wrong {
    z-index: 1;
    color: #FFF;
}

.options div.wrong::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #df0000;
    z-index: -1;
    
    animation: animateBackground 1s ease;
    animation-fill-mode: forwards;
}

@keyframes animateBackground {
    0% {
        transform: translateX(-100%)
    }
    100% {
        transform: translateX(0%)
    }
}

.options div.wrong {
    z-index: 1;
    color: #FFF;
}


.options div.correct {
    z-index: 1;
    color: #FFF;
}

.options div.correct:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #369000;
    z-index: -1;
    
    animation: animateBackground 1s ease;
    animation-fill-mode: forwards;
}

@keyframes animateBackground {
    0% {
        transform: translateX(-100%)
    }
    100% {
        transform: translateX(0%)
    }
}

.options div.wrong {
    z-index: 1;
    color: #FFF;
}

.button {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
}
 
.button .btn {
    padding: 5px 30px;
    border-radius: 5px;
    cursor: pointer;
    background-color: #009688;
    font-family: 'Amatic SC', cursive;
    font-size: 30px;
    color: #FFF;
    border: none;
    margin: 15px 0 20px;
}

.button .btn-back {
    padding: 5px 30px;
    border-radius: 5px;
    cursor: pointer;
    background-color: #FF9800;
    font-family: 'Amatic SC', cursive;
    font-size: 30px;
    text-decoration: none;
    color: #FFF;
    border: none;
    margin: 15px 0 20px 10px;
}

.answers-tracker {
    border-top: 1px solid #CCC;
    padding-top: 15px;
}

.answers-tracker div {
    height: 40px;
    width: 40px;
    background-color: #CCC;
    display: inline-block;
    border-radius: 50%;
    margin-right: 5px;
}

.answers-tracker div.correct {
    background-color: #369000;
    background-image:url("../images/correct.png");
    background-position: center;
    background-repeat: no-repeat;
}

.answers-tracker div.wrong {
    background-color: #df0000;
    background-image:url("../images/wrong.png");
    background-position: center;
    background-repeat: no-repeat;
}

.quiz-over {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color:  rgba(0,0,0,0.9);
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
}

.quiz-over.show {
    display: flex;
}

.quiz-over .box {
    background-color: #009688;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    flex-basis: 700px;
    max-width: 700px;
    color: #FFF;
}

.quiz-over .box h1 {
    font-size: 36px;
    margin: 0 0 20px;
}

.quiz-over .box button {
    padding: 5px 30px;
    border: none;
    background-color: #FF9800;
    border-radius: 5px;
    font-family: 'Amatic SC', cursive;
    font-size: 30px;
    margin: 15px 0 20px;
    color: #FFF;
}

