body {
    font-family: Arial, sans-serif;
    text-align: center;

    background-image: url("images.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    margin: 0;
    min-height: 100vh;

    padding: 40px 15px;

    box-sizing: border-box;
}


/* =========================
   GENERAL FRAME
========================= */

.quiz-box {
    background: rgba(20, 15, 25, 0.90);

    width: 90%;
    max-width: 650px;

    margin: 40px auto;

    padding: 40px 30px;

    border-radius: 30px;

    border: 3px solid rgba(255, 215, 0, 0.7);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(255, 215, 0, 0.25);

    color: white;

    position: relative;

    z-index: 10;

    box-sizing: border-box;
}


/* =========================
   HEADINGS
========================= */

.quiz-box h1 {
    color: #ffd700;

    font-size: 38px;

    margin-bottom: 25px;
}

.quiz-box h2 {
    color: white;

    font-size: 28px;

    line-height: 1.5;
}

.quiz-box p {
    color: white;

    font-size: 22px;

    line-height: 1.7;
}


/* =========================
   INPUT
========================= */

.quiz-box input[type="text"] {
    width: 90%;

    max-width: 500px;

    padding: 18px;

    margin-top: 15px;

    border-radius: 15px;

    border: 2px solid #ffd700;

    font-size: 21px;

    text-align: center;

    box-sizing: border-box;
}


/* =========================
   BUTTON
========================= */

.quiz-box > button {
    margin-top: 20px;

    padding: 16px 35px;

    border: none;

    border-radius: 15px;

    background: #ffd700;

    color: #111;

    font-size: 21px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.quiz-box > button:hover {
    transform: scale(1.05);
}


/* =========================
   BALLOONS
========================= */

#balloons {
    position: fixed;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    z-index: 1000;

    pointer-events: none;

    overflow: hidden;
}

#balloons span {
    position: absolute;

    bottom: -150px;

    display: block;

    animation-name: flyBalloon;

    animation-timing-function: ease-in-out;

    animation-fill-mode: forwards;

    opacity: 0;
}

#balloons span:nth-child(1) {
    left: 3%;
    font-size: 45px;
    animation-duration: 5s;
}

#balloons span:nth-child(2) {
    left: 10%;
    font-size: 70px;
    animation-duration: 6s;
}

#balloons span:nth-child(3) {
    left: 18%;
    font-size: 40px;
    animation-duration: 4.5s;
}

#balloons span:nth-child(4) {
    left: 27%;
    font-size: 60px;
    animation-duration: 5.5s;
}

#balloons span:nth-child(5) {
    left: 36%;
    font-size: 80px;
    animation-duration: 6.5s;
}

#balloons span:nth-child(6) {
    left: 45%;
    font-size: 50px;
    animation-duration: 5s;
}

#balloons span:nth-child(7) {
    left: 54%;
    font-size: 65px;
    animation-duration: 5.8s;
}

#balloons span:nth-child(8) {
    left: 63%;
    font-size: 42px;
    animation-duration: 4.8s;
}

#balloons span:nth-child(9) {
    left: 72%;
    font-size: 75px;
    animation-duration: 6s;
}

#balloons span:nth-child(10) {
    left: 81%;
    font-size: 55px;
    animation-duration: 5.2s;
}

#balloons span:nth-child(11) {
    left: 90%;
    font-size: 65px;
    animation-duration: 5.7s;
}

#balloons span:nth-child(12) {
    left: 14%;
    font-size: 50px;
    animation-duration: 5.3s;
}

#balloons span:nth-child(13) {
    left: 33%;
    font-size: 70px;
    animation-duration: 6.2s;
}

#balloons span:nth-child(14) {
    left: 58%;
    font-size: 45px;
    animation-duration: 4.7s;
}

#balloons span:nth-child(15) {
    left: 76%;
    font-size: 60px;
    animation-duration: 5.6s;
}

#balloons span:nth-child(16) {
    left: 94%;
    font-size: 50px;
    animation-duration: 5s;
}

@keyframes flyBalloon {

    0% {
        bottom: -150px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        transform: translateX(35px) rotate(6deg);
    }

    50% {
        transform: translateX(-35px) rotate(-6deg);
    }

    70% {
        transform: translateX(30px) rotate(5deg);
    }

    90% {
        transform: translateX(-20px) rotate(-5deg);
        opacity: 0.8;
    }

    100% {
        bottom: 110%;
        transform: translateX(20px) rotate(5deg);
        opacity: 0;
    }
}


/* =========================
   X
========================= */

#x-container {
    position: fixed;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    pointer-events: none;

    z-index: 5000;
}

.flying-x {
    position: absolute;

    bottom: -120px;

    font-weight: 900;

    line-height: 1;

    animation-name: xFlyLikeBalloon;

    animation-timing-function: ease-in-out;

    animation-fill-mode: forwards;
}

@keyframes xFlyLikeBalloon {

    0% {
        bottom: -120px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        transform: translateX(40px) rotate(10deg);
    }

    50% {
        transform: translateX(-40px) rotate(-10deg);
    }

    70% {
        transform: translateX(30px) rotate(8deg);
    }

    90% {
        transform: translateX(-25px) rotate(-8deg);
        opacity: 1;
    }

    100% {
        bottom: 110%;
        transform: translateX(20px) rotate(10deg);
        opacity: 0;
    }
}


/* =========================
   SHUT UP FRAME
========================= */

#shut-up-frame {
    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 600px;

    max-width: 85%;

    padding: 40px 25px;

    background: rgba(255, 255, 255, 0.97);

    border: 5px solid #111;

    border-radius: 25px;

    box-shadow: 0 0 35px rgba(0, 0, 0, 0.7);

    z-index: 6000;

    text-align: center;
}

.shut-up-text {
    font-size: 50px;

    font-weight: 900;

    letter-spacing: 2px;

    color: #111;
}


/* =========================
   ANSWER FRAME
========================= */

#answer-frame {
    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 650px;

    max-width: 90%;

    padding: 45px 35px;

    background: rgba(20, 15, 25, 0.96);

    border: 3px solid #ffd700;

    border-radius: 30px;

    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);

    color: white;

    text-align: center;

    z-index: 7000;

    box-sizing: border-box;
}

#answer-frame h2 {
    color: #ffd700;

    font-size: 32px;
}

.answer-text {
    font-size: 28px;

    line-height: 1.7;

    font-weight: bold;

    color: white;

    word-wrap: break-word;
}

#answer-frame button {
    margin-top: 25px;

    padding: 17px 25px;

    border: none;

    border-radius: 18px;

    font-size: 20px;

    font-weight: bold;

    cursor: pointer;

    background: #ffd700;

    color: #111;

    width: 90%;
}


/* =========================
   ANSWERS
========================= */

#answers {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 18px;

    width: 100%;

    margin-top: 30px;
}

#answers button {
    width: 90%;

    max-width: 520px;

    min-height: 75px;

    padding: 15px 20px;

    border-radius: 18px;

    border: 3px solid transparent;

    font-size: 25px;

    font-weight: bold;

    color: white;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);

    transition: transform 0.2s;
}

#answers button:nth-child(1) {
    background: #d94f70;
}

#answers button:nth-child(2) {
    background: #7656b5;
}

#answers button:nth-child(3) {
    background: #d69b32;
}

#answers button:nth-child(4) {
    background: #4387a8;
}

#answers button:nth-child(5) {
    background: #9b5c8f;
}

#answers button:nth-child(6) {
    background: #558b6e;
}

#answers button:hover {
    transform: scale(1.04);
}


/* =========================
   CORRECT / WRONG
========================= */

#question-result {
    font-size: 28px !important;

    font-weight: bold;

    margin-top: 25px;

    min-height: 40px;
}

.correct-message {
    color: #7CFC98 !important;
}

.wrong-message {
    color: #ff6b6b !important;
}


/* =========================
   NO BUTTON
========================= */

.runaway {
    background: #c0395a !important;

    position: relative;
}


/* =========================
   MARRIAGE CONTRACT
========================= */

#marriage-contract {
    width: 100%;

    display: flex;

    justify-content: center;

    padding: 30px 15px;

    box-sizing: border-box;
}

.contract-box {
    width: 90%;

    max-width: 700px;

    background: rgba(255, 250, 235, 0.97);

    color: #222;

    padding: 45px 35px;

    border-radius: 20px;

    border: 5px double #b8860b;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);

    box-sizing: border-box;
}

.contract-box h1 {
    color: #8b6508;

    font-size: 38px;
}

.contract-box p {
    font-size: 20px;

    line-height: 1.8;
}

.contract-box h3 {
    font-size: 22px;

    margin-top: 25px;
}

#contract-name {
    width: 85%;

    max-width: 450px;

    padding: 15px;

    border-radius: 12px;

    border: 2px solid #b8860b;

    font-size: 20px;

    text-align: center;
}


/* =========================
   SIGNATURE
========================= */

#signature-pad {
    display: block;

    width: 100%;

    max-width: 600px;

    height: 250px;

    margin: 15px auto;

    background: white;

    border: 3px solid #333;

    border-radius: 10px;

    cursor: crosshair;

    touch-action: none;
}

.contract-box button {
    padding: 14px 25px;

    margin: 10px 5px;

    border: none;

    border-radius: 12px;

    background: #b8860b;

    color: white;

    font-size: 18px;

    font-weight: bold;

    cursor: pointer;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .quiz-box {
        width: 95%;

        padding: 30px 18px;
    }

    .quiz-box h1 {
        font-size: 30px;
    }

    .quiz-box h2 {
        font-size: 23px;
    }

    #answers button {
        width: 95%;

        min-height: 70px;

        font-size: 22px;
    }

    .shut-up-text {
        font-size: 36px;
    }

    .answer-text {
        font-size: 24px;
    }

    .contract-box {
        padding: 30px 18px;
    }

    .contract-box h1 {
        font-size: 30px;
    }
}