* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a0a1a 0%, #2d1b2d 25%, #4a2040 50%, #2d1b2d 75%, #1a0a1a 100%);
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Floating Hearts */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: floatUp 6s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Container */
.container {
    text-align: center;
    z-index: 10;
    padding: 20px;
}

/* Title */
.title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #ff6b9d;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.5), 0 0 40px rgba(255, 107, 157, 0.3);
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(255, 107, 157, 0.5), 0 0 40px rgba(255, 107, 157, 0.3);
    }

    to {
        text-shadow: 0 0 30px rgba(255, 107, 157, 0.8), 0 0 60px rgba(255, 107, 157, 0.5);
    }
}

.subtitle {
    color: rgba(255, 182, 193, 0.8);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Envelope */
.envelope-wrapper {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.envelope-wrapper:hover {
    transform: scale(1.05);
}

.envelope-wrapper.opened {
    display: none;
}

.envelope {
    width: 280px;
    height: 180px;
    margin: 0 auto;
    position: relative;
    perspective: 1000px;
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ff8fab 0%, #ff6b9d 50%, #e85d8c 100%);
    border-radius: 10px;
    position: relative;
    box-shadow:
        0 15px 35px rgba(232, 93, 140, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.heart-seal {
    font-size: 3rem;
    animation: pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #ffb3c6 0%, #ff8fab 100%);
    clip-path: polygon(0 0, 50% 60%, 100% 0);
    transform-origin: top center;
    transition: transform 0.6s ease;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.envelope-wrapper:hover .envelope-flap {
    transform: rotateX(30deg);
}

.click-hint {
    color: rgba(255, 182, 193, 0.7);
    font-size: 0.9rem;
    margin-top: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Letter Content */
.letter-content {
    display: none;
    animation: fadeInUp 0.8s ease-out;
}

.letter-content.show {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.letter-paper {
    background: linear-gradient(180deg, #fff9fa 0%, #fff0f3 100%);
    width: 350px;
    padding: 40px 30px;
    border-radius: 15px;
    margin: 0 auto;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(232, 93, 140, 0.2),
        inset 0 0 100px rgba(255, 182, 193, 0.1);
    position: relative;
    overflow: hidden;
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b9d, #ff8fab, #ffb3c6, #ff8fab, #ff6b9d);
}

.letter-header {
    margin-bottom: 20px;
}

.letter-header .sparkle {
    font-size: 1.5rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

.letter-header .heart-icon {
    font-size: 2rem;
    margin: 0 10px;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Day Counter */
.day-counter {
    margin-bottom: 10px;
}

.anniversary-text {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 5px;
}

.day-count {
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b9d 0%, #e85d8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    transition: all 0.5s ease;
}

.day-count.celebrate {
    animation: countCelebrate 0.6s ease-out;
}

@keyframes countCelebrate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.day-label {
    font-size: 2rem;
    font-weight: 600;
    color: #e85d8c;
    letter-spacing: 3px;
}

.anniversary-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #ff6b9d;
    margin-bottom: 10px;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.divider .line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b9d, transparent);
}

/* Secret Question */
.secret-question {
    margin: 20px 0;
}

.secret-text {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.question-text {
    font-size: 1.4rem;
    color: #e85d8c;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-yes {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.6);
}

.btn-no {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.2s ease;
}

.btn-no:hover {
    transform: scale(0.95);
}

.tease-message {
    margin-top: 20px;
    color: #e85d8c;
    font-size: 1.1rem;
    font-weight: 500;
    min-height: 30px;
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Success Message */
.success-message {
    display: none;
    animation: fadeInUp 0.8s ease-out;
}

.success-message.show {
    display: block;
}

.secret-question.hide {
    display: none;
}

.congrats {
    font-size: 1.8rem;
    margin-bottom: 15px;
    animation: bounce 0.6s ease infinite;
}

.love-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #ff6b9d;
    margin-bottom: 20px;
}

.sweet-message {
    color: #666;
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 10px;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #ff6b9d;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
    }

    .envelope {
        width: 240px;
        height: 150px;
    }

    .letter-paper {
        width: 300px;
        padding: 30px 20px;
    }

    .day-count {
        font-size: 4rem;
    }

    .anniversary-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}