.quiz-body {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    overflow-y: auto;
}

.quiz-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    padding: 100px 40px 30px;
}

.quiz-container .quiz-main {
    padding-bottom: 100px;
}

.quiz-container .quiz-main, .quiz-progress-bar {
    width: 800px;
}

.quiz-intro {
    position: relative;
    height: 100%;
    width: 100%;
    background: 
        linear-gradient(270deg, #1d1c1cb1, transparent),
        url('../img/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.quiz-intro-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
    left: auto;
    right: 0;
    padding: 40px 30px;
    color: #fff !important;
}

.quiz-intro-text p {
    color: #fff !important;
}

.quiz-intro-text-header, .quiz-question {
    font-weight: 700 !important;
    font-size: 34px !important;
    line-height: 40px !important;
}

.quiz-intro-text-header {
    text-shadow: 3px 3px 15px #616161;
}

.quiz-intro-text-secondary {
    font-size: 20px !important;
    text-shadow: 1px 1px 0px #616161, 0px 0px 15px #ffffff;
    margin-bottom: 35px !important;
}

.quiz-start-button, .quiz-end-button {
    width: max-content;
    padding: 13px 28px;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    border-radius: 4px;
    background: #F07C00;
    color: #fff;
    transition: .3s all ease-in-out;
    cursor: pointer;
}
.quiz-end-button { 
    margin-top: 20px;
}

.quiz-start-button:hover, .quiz-end-button:hover {
    background: #F07C00;
    color: #fff;
    opacity: 0.7;
}

a.quiz-end-button:visited {
    color: #fff;
}

.quiz-question {
    text-align: justify;
}

.quiz-options {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.quiz-options-text {
    display: flex;
    flex-direction: column;
}

.quiz-options-text > a {
    all: unset;
    padding: 14px 20px;
    font-size: 20px;
    line-height: 24px;
    color: #F07C00;
    border: 1px solid #F07C00;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: .3s all ease-in-out;
    cursor: pointer;
}

.quiz-options-text > a.correct-answer, .quiz-options-text > a.correct-answer:hover {
    color: #fff;
    background: #5ea825;
    border: 1px solid #5ea825;
}

.quiz-options-text > a.wrong-answer, .quiz-options-text > a.wrong-answer:hover {
    color: #fff;
    background: #dd2929;
    border: 1px solid #dd2929;
}

@media (min-width: 767px) {
    .quiz-options-text > a:hover {
        color: #fff;
        background: #F07C00;
    }
}

.quiz-options-image {
    text-align: center;
}

.quiz-options-image img {
    width: auto;
    border-radius: 4px;
    max-height: 260px;
}

.quiz-options-text, .quiz-options-image {
    width: 50%;
}

.quiz-result {
    align-items: center;
    flex-direction: column;
}

.quiz-result > p {
    font-size: 20px;
}

.quiz-result input, .quiz-result button {
    border-radius: 4px;
    font-size: 20px;
    padding: 14px 20px;
    line-height: 1.5;
    margin: 5px;
    border: 1px solid;
}

.quiz-result input {
    border-color: grey;
}

.quiz-result button {
    background: #F07C00;
    color: #fff;
    transition: .3s all ease-in-out;
    cursor: pointer;
}

.quiz-result button:hover, .quiz-result button:hover::after {
    background: #F07C00;
    color: #fff;
    opacity: 0.7;
}

.quiz-result span {
    color: grey;
}

.quiz-bottom-bar {
    position: fixed;
    bottom: 0;
    border-top: 1px solid lightgrey;
    padding: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 1;
    box-shadow: 0 0 15px #ddd;
}

.quiz-progress-bar {
    height: 25px;
    background: lightgray;
    border-radius: 4px;
}

.quiz-progress-bar-full {
    width: 1%;
    height: 25px;
    border-radius: 4px 0 0 4px;
    background: #5ea825;
}

/* MOBILE */

@media (max-width: 760px) {
    .quiz-intro-text {
        width: 100%;
    }
    .quiz-container {
        padding: 25px 35px;
    }
    .quiz-container .quiz-main, .quiz-progress-bar  {
        width: 100%;
    }
    .quiz-intro-text-header {
        font-size: 28px;
        line-height: 34px;
    }
    .quiz-question {
        font-size: 23px !important;
        line-height: 30px !important;
    }
    .quiz-result {
        text-align: justify;
    }
    .quiz-result input, .quiz-result button, .quiz-start-button {
        width: 100%;
        text-align: center;
    }
    .quiz-options-text, .quiz-options-image {
        width: 100%;
    }
    .quiz-options {
        flex-direction: column;
    }
    .quiz-options .quiz-options-image {
        order: 1;
    }
    .quiz-options .quiz-options-text {
        order: 2;
    }
    .quiz-question {
        text-align: left;
    }
    .quiz-options-image img {
        width: inherit;
    }
    .quiz-bottom-bar {
        padding: 15px;
    }
    .quiz-progress-bar, .quiz-progress-bar-full {
        height: 18px;
    }
    .quiz-options-text > a {
        font-size: 18px;
        line-height: 22px;
    }
}

#errorQuizMailMessage {
    color: #dd2929;
    font-size: 15px;
    padding: 10px;
}

#successQuizMailMessage {
    color: #5ea825;
    font-size: 20px;
    padding: 10px;
}
