/* =================================
   1. GENERAL SETTINGS
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #080608, #260d19);
    color: #fff;
    font-family: Tahoma, Arial, sans-serif;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 25px;
    overflow-x: hidden;
}

/* =================================
   2. FLOATING HEARTS
================================= */

#heartsContainer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    bottom: -50px;

    color: #ff709b;
    opacity: 0;

    animation: floatHeart linear forwards;
    text-shadow: 0 0 12px #ff386f;
}

@keyframes floatHeart {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    15% {
        opacity: 0.7;
    }

    85% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

/* =================================
   3. MAIN CONTAINER
================================= */

.container {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 500px;

    text-align: center;

    background: #160d13;
    padding: 40px 25px;

    border: 1px solid #63243d;
    border-radius: 25px;

    box-shadow: 0 0 30px #8b123b30;

    transition: box-shadow 0.5s ease;
}

.container:hover {
    box-shadow: 0 0 40px #a52b5450;
}

/* =================================
   4. HEART
================================= */

.heart {
    font-size: 65px;
    color: #ed7099;
    text-shadow: 0 0 15px #ff386f;
    animation: heartbeat 1.5s infinite;
}

/* =================================
   5. HEADINGS
================================= */

h1 {
    color: #ed9ab5;
    margin: 20px 0;
    font-size: 27px;
}

h2 {
    color: #ff8caf;
    font-size: 23px;
    margin: 20px 0;
    text-shadow: 0 0 12px #ff386f70;
}

/* =================================
   6. PARAGRAPHS
================================= */

p {
    color: #c9aab7;
    line-height: 2.2;
    margin-bottom: 25px;
}

#secretMessage p {
    font-size: 16px;
}

/* =================================
   7. PASSWORD BOX
================================= */

#passwordBox {
    margin-top: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 15px;
}

#passwordInput {
    width: 80%;
    max-width: 300px;

    padding: 13px;

    border: 2px solid #800020;
    border-radius: 12px;

    background: #1a1a1a;
    color: white;

    font-size: 16px;
    text-align: center;

    outline: none;
    transition: all 0.3s ease;
}

#passwordInput:focus {
    border-color: #ff4d79;
    box-shadow: 0 0 10px #800020;
    transform: scale(1.02);
}

#hint {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

/* =================================
   8. BUTTONS
================================= */

button {
    background: #800020;
    color: white;

    border: none;
    border-radius: 15px;

    padding: 12px 25px;
    font-size: 16px;

    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #b3003b;
    transform: scale(1.05);
    box-shadow: 0 0 15px #d0447350;
}

/* =================================
   9. ERROR MESSAGE
================================= */

#errorMessage {
    color: #ff4d79;
    font-size: 14px;
    margin: 0;
}

/* =================================
   10. SECRET MESSAGE
================================= */

#secretMessage {
    margin-top: 25px;
    position: relative;
    animation: fadeIn 1.5s ease;
}

#secretMessage .heart {
    margin: 15px 0;
}

/* =================================
   11. RELATIONSHIP COUNTER
================================= */

#relationshipCounter {
    margin: 35px 0;
    padding: 22px 15px;

    background: linear-gradient(145deg, #260d19, #1d1019);

    border: 1px solid #63243d;
    border-radius: 20px;

    box-shadow: 0 0 20px #8b123b20;
}

#relationshipCounter h2 {
    margin-top: 5px;
}

#relationshipCounter p {
    font-size: 13px;
    margin-bottom: 20px;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.counter-item {
    background: #351323;
    border: 1px solid #63243d;
    border-radius: 15px;

    padding: 15px 5px;

    display: flex;
    flex-direction: column;
    gap: 7px;

    transition: 0.3s;
}

.counter-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 15px #d0447350;
}

.counter-item span {
    color: #ff8caf;
    font-size: 30px;
    font-weight: bold;
    text-shadow: 0 0 12px #ff386f70;
    font-variant-numeric: tabular-nums;
}

.counter-item small {
    color: #c9aab7;
    font-size: 13px;
}

/* =================================
   12. MUSIC
================================= */

/* =================================
   13. ENVELOPE
================================= */

#envelopeSection {
    margin: 35px 0;
    padding: 20px;

    background: #1d1019;
    border: 1px solid #63243d;
    border-radius: 20px;
}

#envelopeBtn {
    background: transparent;
    padding: 10px;
    border-radius: 20px;
}

.envelope-icon {
    display: inline-block;
    font-size: 85px;
    transition: transform 0.5s ease;
}

#envelopeBtn:hover .envelope-icon {
    transform: translateY(-8px) rotate(-8deg);
}

#envelopeBtn.opened .envelope-icon {
    transform: scale(1.2) rotate(8deg);
}

#letterMessage {
    display: none;

    margin-top: 20px;
    padding: 20px;

    background: #351323;
    border: 1px solid #a52b54;
    border-radius: 18px;

    animation: fadeIn 0.8s ease;
}

#letterMessage.show {
    display: block;
}

/* =================================
   14. SURPRISE
================================= */

#surpriseBox {
    margin-top: 30px;
    padding: 20px;

    background: #260d19;
    border: 1px solid #63243d;
    border-radius: 20px;
}

#surpriseMessage {
    min-height: 65px;
    margin: 15px 0;
    color: #f3c0d1;
}

#surpriseBtn {
    margin-top: 10px;

    background: linear-gradient(135deg, #800020, #d04473);
    border-radius: 25px;
    padding: 14px 30px;

    box-shadow: 0 0 15px #d0447350;
}

/* =================================
   15. STICKER GALLERY
================================= */

#stickerBox {
    margin-top: 35px;
    padding: 20px;

    background: #1d1019;
    border: 1px solid #63243d;
    border-radius: 20px;
}

.stickers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;
    margin-top: 20px;
}

.sticker {
    font-size: 30px;
    padding: 12px;

    background: #351323;
    border: 1px solid #63243d;
    border-radius: 15px;

    cursor: pointer;
    transition: 0.3s;
}

.sticker:hover {
    transform: scale(1.2) rotate(8deg);
    background: #63243d;
}

#stickerDisplay {
    font-size: 75px;
    min-height: 100px;
    margin-top: 20px;
}

/* =================================
   16. ANIMATIONS
================================= */

@keyframes heartbeat {
    50% {
        transform: scale(1.15);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================
   17. MOBILE RESPONSIVE
================================= */

@media (max-width: 480px) {

    body {
        padding: 15px;
    }

    .container {
        padding: 30px 18px;
    }

    h1 {
        font-size: 23px;
    }

    h2 {
        font-size: 21px;
    }

    #passwordInput {
        width: 100%;
    }

    .sticker {
        font-size: 26px;
        padding: 10px;
    }

    #stickerDisplay {
        font-size: 65px;
    }

    .counter-grid {
        gap: 8px;
    }

    .counter-item {
        padding: 12px 4px;
    }

    .counter-item span {
        font-size: 25px;
    }

    .counter-item small {
        font-size: 12px;
    }

    .envelope-icon {
        font-size: 75px;
    }
}