
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pink: #e88eae;
    --dark-pink: #a94e73;
    --text: #654653;
    --light-pink: #ffe8f0;
    --white: #ffffff;
}

body {
    min-height: 100vh;
    font-family: "Cairo", sans-serif;
    background: linear-gradient(
        135deg,
        #fff8fb,
        #ffeaf2,
        #fbd9e6
    );
    color: var(--text);
    overflow-x: hidden;
}

.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 25px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen {
    display: none;
    width: 100%;
    max-width: 700px;
    min-height: 85vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.8s ease;
}

.screen.active {
    display: flex;
}

/* INTRO */

.intro-card,
.ending-card {
    width: 100%;
    max-width: 570px;
    padding: 55px 35px;
    text-align: center;

    background: rgba(255,255,255,0.78);
    border: 1px solid white;
    border-radius: 32px;

    box-shadow: 0 24px 80px rgba(166,89,120,0.13);
    backdrop-filter: blur(15px);
}

.heart-icon {
    font-size: 35px;
    color: var(--pink);
    animation: heartbeat 1.7s infinite;
}

.english-label {
    font-family: "Playfair Display", serif;
    font-size: 11px;
    letter-spacing: 4px;
    color: #c17b96;
    margin: 15px 0;
    direction: ltr;
}

.intro h1 {
    font-size: 75px;
    color: var(--dark-pink);
    margin: 10px 0;
}

.intro h1 span {
    color: #e9a2bb;
    font-size: 40px;
}

.intro-description {
    font-size: 17px;
    line-height: 2.2;
    color: #886977;
    margin: 15px 0 30px;
}

.main-button {
    border: none;
    border-radius: 50px;
    padding: 14px 30px;
    color: white;

    background: linear-gradient(
        135deg,
        #e99ab6,
        #c96f92
    );

    font-family: "Cairo", sans-serif;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
    transition: 0.3s;

    box-shadow: 0 10px 25px rgba(201,111,146,0.25);
}

.main-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(201,111,146,0.35);
}

.headphone-note {
    margin-top: 20px;
    font-size: 12px;
    color: #b99aa5;
}

footer {
    margin-top: 25px;
    color: #bd91a2;
    font-family: "Playfair Display", serif;
    font-size: 12px;
    letter-spacing: 2px;
    direction: ltr;
}

/* QUESTIONS */

.page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #a96a83;
    margin-bottom: 20px;
}

.page-header span {
    color: var(--pink);
}

.progress-container {
    width: 100%;
    max-width: 520px;
    height: 5px;
    background: #f3dce5;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
}

.progress-bar {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, #f1b2c8, #c96f92);
    transition: width 0.5s;
}

.question-card {
    position: relative;
    width: 100%;
    padding: 45px 35px;

    background: rgba(255,255,255,0.82);
    border: 1px solid white;
    border-radius: 28px;

    box-shadow: 0 22px 65px rgba(166,89,120,0.12);
}

.decoration {
    position: absolute;
    top: 18px;
    left: 25px;
    color: #e8a4bb;
    font-size: 25px;
}

.question-number {
    font-family: "Playfair Display", serif;
    color: #c18ca0;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    direction: ltr;
}

.question-card h2 {
    font-size: 27px;
    color: var(--dark-pink);
    line-height: 1.8;
}

.separator {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--pink);
    margin: 22px 0;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #f1d5df;
}

.answer-text {
    font-size: 16px;
    line-height: 2.25;
    color: #755b66;
    white-space: pre-line;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #f3dfe7;
    color: #c18ca0;
    font-size: 13px;
}

.navigation {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.back-button,
.replay-button {
    border: none;
    background: transparent;
    color: #a96a83;
    font-family: "Cairo", sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.back-button:disabled {
    opacity: 0.3;
    cursor: default;
}

.next-button {
    padding: 12px 23px;
}

.music-status {
    margin-top: 20px;
    font-size: 11px;
    color: #bd91a2;
}

/* ENDING */

.big-heart {
    color: #e58eac;
    font-size: 50px;
    animation: heartbeat 1.7s infinite;
}

.ending-card h2 {
    color: var(--dark-pink);
    font-size: 38px;
    margin: 15px 0;
}

.ending-message {
    color: #795e69;
    font-size: 16px;
    line-height: 2.2;
    margin-top: 20px;
}

.signature {
    color: #a96a83;
    line-height: 2;
    margin-top: 25px;
}

.signature strong {
    font-size: 23px;
}

.replay-button {
    margin-top: 20px;
    border-bottom: 1px solid #e4b4c6;
    padding: 8px;
}

/* BACKGROUND HEARTS */

.background-hearts {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    top: -30px;
    color: rgba(218,130,160,0.35);
    animation: fall linear forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* MOBILE */


/* MOBILE RESPONSIVE */

@media (max-width: 600px) {

    .container {
        min-height: 100svh;
        padding: 18px 12px;
    }

    .screen {
        width: 100%;
        min-height: 85svh;
        padding: 10px 0;
    }

    /* INTRO & ENDING */

    .intro-card,
    .ending-card {
        width: 100%;
        padding: 35px 20px;
        border-radius: 24px;
    }

    .intro h1 {
        font-size: clamp(48px, 14vw, 65px);
    }

    .intro h1 span {
        font-size: 30px;
    }

    .intro-description {
        font-size: 15px;
        line-height: 2;
    }

    .ending-card h2 {
        font-size: 29px;
    }

    .ending-message {
        font-size: 15px;
        line-height: 2.1;
    }

    /* QUESTIONS */

    .page-header {
        font-size: 14px;
        gap: 10px;
    }

    .question-card {
        width: 100%;
        padding: 35px 20px;
        border-radius: 22px;
    }

    .question-card h2 {
        font-size: 21px;
        line-height: 1.9;
    }

    .answer-text {
        font-size: 15px;
        line-height: 2.1;
        overflow-wrap: anywhere;
    }

    .decoration {
        top: 12px;
        left: 16px;
        font-size: 20px;
    }

    .card-footer {
        font-size: 11px;
        gap: 8px;
    }

    /* BUTTONS */

    .navigation {
        gap: 12px;
    }

    .next-button {
        padding: 12px 18px;
        font-size: 13px;
    }

    .back-button {
        font-size: 13px;
        padding: 10px 5px;
    }

    .main-button {
        min-height: 48px;
        max-width: 100%;
        padding: 12px 25px;
    }

    /* BACKGROUND */

    .heart-icon {
        font-size: 30px;
    }

    .big-heart {
        font-size: 42px;
    }

    footer {
        font-size: 10px;
    }
}

/* VERY SMALL PHONES */

@media (max-width: 360px) {

    .intro-card,
    .ending-card {
        padding: 28px 15px;
    }

    .question-card {
        padding: 30px 16px;
    }

    .question-card h2 {
        font-size: 19px;
    }

    .answer-text {
        font-size: 14px;
    }

    .navigation {
        gap: 6px;
    }

    .next-button {
        padding: 10px 12px;
    }
}

/* REDUCE MOTION FOR ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
