:root {
    --main-color: rgb(147, 72, 194);
    --main-text-color: black;
    --background-header-var: #f0ebe5;
    --link-color-var: #91683e;
    --text-color-var: #372316;
    --subtitle-font-size: 24px;
    --navigation-link-color-var: #372316;
    --background-content-color: #f0ebe5;
    --preview-background: #cad6b3;
    --font-var: Montsserat;
    --font-size: 18px;
    --line-height: 22px;
    --button_border_radius: 10px;
    --button_padding_height: 20px;
    --button_padding_width: 70px;
    --button_padding_height_mob: 20px;
    --button_padding_width_mob: 70px;
    --button_text_color: #FFF;
    --button_bg_color: red;
    --image_position: Top;
    --image_height: 55vh;
    --title_color: #000;
    --title_font_size: 38px;
    --line_height_title: 46px;
    --title_font_size_mob: 30px;
    --line_height_title-mob: 36px;
    --box_shadow: 0 16px 32px 0 rgba(0,40,120,.35);
}

body {
    margin: 0;
    font-family: var(--bs-body-font-family), serif;
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    line-height: var(--bs-body-line-height);
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

#main-page {
    background-color: var(--preview-background);
}

#main-page p {
    line-height: var(--line_height_title);
    text-align: center;
    font-size: var(--title_font_size);
    color: var(--title_color);
    font-weight: 700;
    width: 80%;
    margin: 0 auto;
}

#main-page a {
    background-color: var(--button_bg_color);
    font-weight: 400;
    display: inline-block;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: none;
    box-shadow: var(--box_shadow);
    color: var(--button_text_color);
    padding: 10px 70px;
    border-radius: var(--button_border_radius);
    font-size: 30px;
    transition: all 0.2s;
    margin-top: 30px;
}

#quiz-page {
    background: url('/img/quiz-bg.jpg');
    background-size: cover;
    background-position: center;
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    height: 100%;
    width: 100vw;
}

#quiz-overlay {
    background-color: #fff;
    opacity: 0.65;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.quiz-img {
    overflow: hidden;
    display: flex;
    max-width: 500px;
    max-height: 300px;
    width: 100%;
    margin: 10px auto 0 auto;
}

.quiz-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.line {
    border-top: 3px solid var(--main-color);
    margin: 10px auto;
    max-width: 500px;
}

.quiz-block {
    padding: 0!important;
    max-width: 500px;
}

.quiz-block p {
    color: var(--main-text-color);
    font-size: 28px;
    text-align: center;
    margin: 30px auto 0;
    font-weight: 700;
}

.quiz-text-under {
    display: block;
    font-size: var(--subtitle-font-size);
    color: var(--main-color);
    text-align: center;
    margin: 30px auto;
}

.quiz-btn {
    background: var(--main-color);
    padding: 20px 40px;
    margin: 12px;
    display: inline-block;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 2.5px;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quiz-questions-block {
    padding: 15px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0px -1px 21px 0px rgba(0, 0, 0, 0.75);
    animation: fade 1.5s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 500px;
    margin: 20px auto 0 auto;
    width: 100%;
}

.quiz-question-num {
    width: 100%;
    padding: 3px;
    background: var(--main-color);
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
}

.quiz-question-p {
    color: #000;
    font-size: 17px;
    font-weight: 500;
    margin: 15px auto 8px;
}

.quiz-questions {
    color: #000;
    text-align: center;
    padding: 10px 5px;
    margin-bottom: 15px;
    width: 100%;
}

.quiz-questions li {
    list-style: none;
    max-width: 450px;
    width: 100%;
    margin: 0 auto 7px;
    display: block;
    cursor: pointer;
    border: 1px solid var(--main-color);
    border-radius: 6px;
    user-select: none;
    transition: all 0.2s linear;
    line-height: 30px;
    font-weight: 400;
    font-size: 18px;
    padding: 6px 10px;
}

.quiz-questions li:hover {
    background: var(--main-color);
    opacity: 0.8;
    color: #fff;
}

.quiz-final p {
    display: block;
    text-align: left!important;
    font-size: 18px;
    width: 100%;
}

.quiz-final-btn {
    background: var(--main-color);
    padding: 20px 40px;
    margin: 12px;
    display: inline-block;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 2.5px;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.lines span {
    position: absolute;

    &:nth-child(1) {
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(to left, rgba(43, 8, 8, 0), #e8b7db);
        animation: animateTop 2s linear infinite;
    }

    &:nth-child(2) {
        top: 0;
        right: 0;
        height: 100%;
        width: 2px;
        background: linear-gradient(to left, rgba(43, 8, 8, 0), #e8b7db);
        animation: animateRight 2s linear -1s infinite;
    }

    &:nth-child(3) {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(to left, rgba(43, 8, 8, 0), #e8b7db);
        animation: animateBottom 2s linear infinite;
    }

    &:nth-child(4) {
        top: 0;
        left: 0;
        height: 100%;
        width: 2px;
        background: linear-gradient(to left, rgba(43, 8, 8, 0), #e8b7db);
        animation: animateLeft 2s linear -1s infinite;
    }
}

@keyframes animateTop {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes animateRight {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}

@keyframes animateBottom {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes animateLeft {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.pulsing {
    animation: heart 1s infinite;
}

@keyframes heart {
    50% {
        transform: scale(1.1);
    }
}

@keyframes fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 767px) {
    #main-page {
        height: 100vh;
    }

    #main-page p {
        font-size: 30px;
        line-height: 36px;
        width: 100%;
    }

    #quiz-wrap {
        height: 100vh;
    }

    .quiz-block p {
        font-size: 20px;
    }

    .quiz-text-under {
        font-size: 20px;
    }

    .quiz-btn {
        padding: 15px 30px;
        font-size: 16px;
    }

    .quiz-final-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    #main-page > div {
        height: 100vh;
    }
}