/* ===================================
   JUST US — MIDNIGHT ROMANCE
   Gothic × Fantasy × Dreamy Romance
   =================================== */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* COLOUR PALETTE */
:root {
    --black: #05040a;
    --wine: #26000e;
    --purple: #8b35c9;
    --violet: #c77dff;
    --white: #fffafa;
    --soft-white: #e5dce8;
}

/* MAIN BACKGROUND */
body {
    min-height: 100vh;

    background:
        radial-gradient(ellipse at 20% 20%, #250d46, transparent 45%),
        radial-gradient(ellipse at 80% 80%, #430018, transparent 45%),
        linear-gradient(135deg, #03030a, #10051b, #080208);

    color: white;
    font-family: Georgia, serif;
    overflow-x: hidden;
    position: relative;
}

/* DARK CINEMATIC OVERLAY */
body::before {
    content: "";

    position: fixed;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(3, 3, 10, 0.48),
            rgba(5, 0, 10, 0.72),
            rgba(5, 0, 8, 0.88)
        ),
        radial-gradient(
            circle at 50% 45%,
            transparent 10%,
            rgba(0, 0, 0, 0.55) 100%
        );

    z-index: 0;
    pointer-events: none;
}

/* MOVING PURPLE ATMOSPHERE */
body::after {
    content: "";

    position: fixed;
    inset: -50%;

    background:
        radial-gradient(
            ellipse,
            rgba(132, 35, 180, 0.19),
            transparent 48%
        );

    animation: purpleAtmosphere 12s ease-in-out infinite alternate;

    pointer-events: none;
    z-index: 1;
}

/* MAIN CONTENT */
.container {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 35px 22px;

    position: relative;
    z-index: 2;

    animation: cinematicEntrance 2s ease both;
}

/* MAIN HEADING */
h1 {
    font-size: clamp(34px, 5vw, 46px);

    font-weight: normal;
    letter-spacing: 5px;

    margin: 12px 0;

    color: var(--white);

    text-shadow:
        0 0 18px rgba(180, 100, 255, 0.35);

    animation: titleReveal 2s ease both;
}

/* DESCRIPTION */
.description {
    color: var(--soft-white);

    font-size: 14px;
    letter-spacing: 0.7px;
    line-height: 1.9;

    max-width: 450px;
}

/* PASSWORD INTRO */
.hint-title {
    margin-top: 32px;
    margin-bottom: 5px;

    color: #e4c8f5;

    font-size: 13px;
    letter-spacing: 0.8px;
}

/* PASSWORD SECTION */
.password-box {
    width: 100%;
    max-width: 390px;

    margin-top: 23px;
    padding: 28px 25px;

    background: rgba(10, 5, 18, 0.62);

    border: 1px solid rgba(178, 100, 220, 0.4);

    border-radius: 8px;

    box-shadow:
        0 0 35px rgba(120, 30, 170, 0.18),
        inset 0 0 25px rgba(150, 50, 200, 0.08);

    backdrop-filter: blur(12px);
}

/* LABEL */
label {
    display: block;

    font-family: Arial, sans-serif;

    font-size: 9px;
    letter-spacing: 4px;

    color: #ead8f5;

    margin-bottom: 20px;
}

/* INPUT */
input {
    width: 100%;

    padding: 15px;

    background: rgba(5, 3, 10, 0.8);

    border: none;
    border-bottom: 1px solid #75418e;

    color: white;

    font-family: Georgia, serif;
    font-size: 13px;

    text-align: center;

    outline: none;

    transition: 0.4s ease;
}

input::placeholder {
    color: #a998b2;
    letter-spacing: 1px;
}

input:focus {
    border-bottom-color: #d18cff;

    box-shadow:
        0 8px 18px -12px #c77dff;
}

/* HINT */
.hint {
    font-size: 11px;

    color: #c2afce;

    margin: 20px 0;

    line-height: 1.8;
}

/* BUTTON */
button {
    width: 100%;

    padding: 15px;

    background:
        linear-gradient(
            110deg,
            #320d49,
            #7131a0,
            #320d49
        );

    background-size: 200% 100%;

    color: white;

    border: 1px solid rgba(205, 140, 255, 0.5);

    border-radius: 5px;

    font-family: Georgia, serif;

    font-size: 12px;
    letter-spacing: 2px;

    cursor: pointer;

    transition: all 0.5s ease;
}

button:hover {
    background-position: 100% 0;

    box-shadow:
        0 0 25px rgba(190, 100, 255, 0.4);

    transform: translateY(-3px);
}

/* ERROR */
#error {
    color: #ff9dbb;

    font-size: 12px;

    margin-top: 14px;
}

/* FOOTER */
.footer {
    margin-top: 35px;

    color: #e1c9ef;

    font-size: 12px;

    letter-spacing: 2px;

    font-style: italic;
}

/* HALO */
@keyframes haloPulse {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* TITLE */
@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PAGE ENTRANCE */
@keyframes cinematicEntrance {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* MOBILE */
@media (max-width: 480px) {

    body {
        background-position: center;
    }

    .top-label {
        font-size: 8px;
        letter-spacing: 4px;
    }

    .love-art {
        width: min(78vw, 270px);
    }

    h1 {
        font-size: 34px;
        letter-spacing: 3px;
    }

    .description {
        font-size: 12px;
    }

    .password-box {
        padding: 24px 18px;
    }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* LOVE ART */
.love-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 35px 0;
    animation: floatLove 4s ease-in-out infinite;
}

/* LOVE LETTER BLOCKS */
.love-letters {
    display: flex;
    gap: 7px;
}

.love-letters span {
    width: 52px;
    height: 58px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(145deg, #351333, #17091e);

    border: 1px solid #a34bba;
    border-radius: 6px;

    color: #fff0ff;
    font-family: Georgia, serif;
    font-size: 32px;

    box-shadow:
        0 0 12px #9d39bc66,
        inset 0 0 12px #c76bff22;

    text-shadow: 0 0 15px #e3a0ff;

    animation: letterGlow 3s ease-in-out infinite;
}

.love-letters span:nth-child(2) {
    animation-delay: .3s;
}

.love-letters span:nth-child(3) {
    animation-delay: .6s;
}

.love-letters span:nth-child(4) {
    animation-delay: .9s;
}

/* FLOATING HEARTS */
.mini-heart {
    position: absolute;
    font-size: 30px;
    color: #ff5b9d;

    text-shadow:
        0 0 10px #ff1493,
        0 0 25px #a020f0;

    animation: heartFloat 2.5s ease-in-out infinite;
}

.left {
    left: -40px;
}

.right {
    right: -40px;
    animation-delay: 1s;
}

/* FLOATING ANIMATION */
@keyframes floatLove {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* LETTER GLOW */
@keyframes letterGlow {
    0%, 100% {
        box-shadow: 0 0 10px #9d39bc55;
    }

    50% {
        box-shadow:
            0 0 20px #d45cff,
            0 0 35px #8a2be266;
    }
}

/* HEART ANIMATION */
@keyframes heartFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-13px) scale(1.2);
    }
}
/* ===== SLIDE 2 ===== */

.slide-two {
    display: none;
    min-height: 100vh;
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background:
        radial-gradient(circle at center, #280b3d 0%, #10051b 45%, #030308 100%);

    color: #fff;
    animation: slideReveal 1.5s ease;
}

.purple-heart {
    font-size: 65px;
    color: #d46aff;
    text-shadow:
        0 0 10px #d46aff,
        0 0 25px #a020f0,
        0 0 50px #8a2be2;

    animation: heartBeat 2s infinite;
    margin-bottom: 25px;
}

.slide-label {
    color: #d9a0ff;
    letter-spacing: 5px;
    font-size: 11px;
    margin-bottom: 20px;
}

.slide-two h2 {
    font-family: Georgia, serif;
    font-size: clamp(30px, 6vw, 48px);
    color: #fff;
    text-shadow: 0 0 20px #b44aff;
    margin: 10px 0 20px;
}

.glowing-line {
    width: 100px;
    height: 2px;
    background: #d46aff;
    box-shadow: 0 0 15px #d46aff;
    margin: 15px auto 30px;
}

.slide-message {
    max-width: 550px;
    color: #e5d6ed;
    font-family: Georgia, serif;
    font-size: 18px;
    line-height: 1.9;
}

.slide-small {
    color: #c58bdf;
    font-style: italic;
    margin: 25px 0;
}

#beginBtn {
    padding: 14px 32px;
    border: 1px solid #c66aff;
    border-radius: 30px;
    background: linear-gradient(135deg, #541078, #260b3d);
    color: white;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 0 15px #a020f055;
    transition: 1.3s;
}

#beginBtn:hover {
    transform: scale(1.07);
    box-shadow: 0 0 30px #c66aff;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes slideReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===== SLIDE 3 ===== */

.slide-three {
    display: none;
    min-height: 100vh;
    width: 100%;
    padding: 50px 20px;
    box-sizing: border-box;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background:
        radial-gradient(ellipse at top, #321047, transparent 55%),
        linear-gradient(135deg, #030308, #13051d, #08020c);

    color: white;
    animation: slideReveal 1.5s ease;
}

.slide3-label {
    color: #d69aff;
    letter-spacing: 6px;
    font-size: 12px;
}

.slide-three h2 {
    font-family: Georgia, serif;
    font-size: clamp(30px, 6vw, 48px);
    line-height: 1.4;
    text-shadow: 0 0 20px #a020f0;
    margin: 20px 0 35px;
}

.memory-card {
    max-width: 480px;
    padding: 35px 30px;
    border: 1px solid #c04a71;
    border-radius: 18px;

    background: linear-gradient(
        145deg,
        #281033cc,
        #100817ee
    );

    box-shadow:
        0 0 20px #358dcc44,
        inset 0 0 20px #a020f022;

    animation: cardFloat 4s ease-in-out infinite;
}

.memory-icon {
    font-size: 35px;
    color: #ffa4d3;
    text-shadow: 0 0 20px #ff5a9f;
}

.memory-card h3 {
    font-family: Georgia, serif;
    font-size: 27px;
    color: #f1d5ff;
}

.memory-card p {
    color: #dfd0e8;
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.9;
}

.memory-date {
    display: block;
    margin-top: 25px;
    color: #c98bea;
    font-size: 11px;
    letter-spacing: 3px;
}

.slide3-footer {
    margin: 30px 0 20px;
    color: #d6a0ed;
    font-style: italic;
}

#memoryBtn {
    padding: 14px 30px;
    border: 1px solid #c66aff;
    border-radius: 30px;
    background: linear-gradient(135deg, #541078, #260b3d);
    color: white;
    cursor: pointer;
    transition: 1.3s;
}

#memoryBtn:hover {
    transform: scale(1.07);
    box-shadow: 0 0 25px #c66aff;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}
/* ===== SLIDE 3: YOUR LITTLE TREAT ===== */

.slide-three {
    display: none;
    min-height: 100vh;
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    background:
        radial-gradient(ellipse at top, #351044, transparent 55%),
        linear-gradient(135deg, #030308, #16051e, #08020c);

    color: white;
    animation: slideReveal 3.5s ease;
}

.slide3-label {
    color: #d69aff;
    letter-spacing: 5px;
    font-size: 11px;
}

.slide-three h2 {
    font-family: Georgia, serif;
    font-size: clamp(30px, 6vw, 46px);
    color: #fff;
    text-shadow: 0 0 20px #b44aff;
    margin: 20px 0;
}

.treat-description {
    max-width: 480px;
    color: #dfd0e8;
    font-family: Georgia, serif;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 30px;
}

.treat-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    max-width: 850px;
}

.treat-btn {
    width: 220px;
    min-height: 170px;
    padding: 22px 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    border: 1px solid #a84bd0;
    border-radius: 18px;

    background: linear-gradient(145deg, #321044, #13091d);

    color: white;
    font-size: 35px;
    cursor: pointer;

    box-shadow: 0 0 15px #a020f044;
    transition: 0.35s ease;
}

.treat-btn span {
    font-size: 17px;
    font-family: Georgia, serif;
}

.treat-btn small {
    color: #d9b8e8;
    font-size: 12px;
}

.treat-btn:hover {
    transform: translateY(-8px) scale(1.04);
    border-color: #e3a4ff;
    box-shadow: 0 0 30px #ff5aaa88;
}

.treat-footer {
    color: #eda0bb;
    font-style: italic;
    margin-top: 35px;
}

#treatMessage {
    color: #ffcadf;
    font-size: 15px;
    margin-top: 15px;
}