/* 
    ========================================
    GLOBAL STYLES & VARIABLES
    The "Pink Rosy" Aesthetic
    ========================================
*/
:root {
    /* Color Palette */
    --primary-pink: #FFC0CB;       /* Classic Pink */
    --deep-rose: #FF69B4;          /* Hot Pink / Rose */
    --soft-white: #FFF0F5;         /* Lavender Blush - very light pinkish white */
    --text-color: #5D3A3A;         /* Dark brownish/red for text (softer than black) */
    --gold-accent: #FFD700;        /* Gold for sparkles/accents */
    --bg-gradient: linear-gradient(135deg, #FFF0F5 0%, #FFC0CB 100%);
}

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

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.6;
    text-align: center; /* Center everything for a lovely vibe */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* 
    ========================================
    TYPOGRAPHY
    ========================================
*/
h1, h2, h3 {
    font-family: 'Dancing Script', cursive;
    color: var(--deep-rose);
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-size: 2.5rem;
    margin-top: 1.5em;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1em;
}

/* 
    ========================================
    SECTIONS COMMON STYLES
    ========================================
*/
section {
    padding: 2rem 1rem;
    margin: 2rem auto;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.6); /* Semi-transparent white card look */
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2); /* Soft pink shadow */
    backdrop-filter: blur(5px);
}

/* 
    ========================================
    HERO SECTION
    ========================================
*/
.hero {
    min-height: 80vh; /* Takes up most of the screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.hero-content {
    animation: fadeIn 2s ease-in-out;
}

.subtitle {
    font-size: 1.5rem;
    color: #888;
    font-style: italic;
}

/* 
    ========================================
    COUNTDOWN TIMER
    ========================================
*/
#countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.time-unit {
    background: var(--deep-rose);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    width: 80px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.time-unit span {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.time-unit label {
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* 
    ========================================
    REASONS WHY I LOVE YOU
    ========================================
*/
.card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 1rem auto;
    border: 2px dashed var(--deep-rose);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#reason-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--deep-rose);
}

button {
    background: var(--deep-rose);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.4);
}

button:hover {
    background: #e05297;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

/* 
    ========================================
    LOVE LETTER
    ========================================
*/
.letter-container {
    background: #fff;
    padding: 2rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: left;
    font-family: 'Dancing Script', cursive; /* Handwritten feel for the letter */
    font-size: 1.5rem;
    line-height: 1.8;
}

/* 
    ========================================
    GIFT REVEAL
    ========================================
*/
.gift-container {
    position: relative;
    height: 250px; /* Adjust based on content */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Box Styling */
#gift-box {
    width: 150px;
    height: 150px;
    background: var(--deep-rose);
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gift-box:hover {
    animation: shake 0.5s;
}

/* Simple CSS Ribbon/Lid effect using pseudo-elements would be complex, 
   let's keep it simple with a lid div */
.box-lid {
    position: absolute;
    top: -10px;
    width: 170px;
    height: 30px;
    background: #FF85C1;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.instruction {
    color: white;
    font-weight: bold;
    margin-top: 100px; /* Push text down */
    pointer-events: none;
}

/* The Hidden Content */
.hidden {
    display: none !important;
}

#gift-content {
    animation: popUp 0.5s ease-out;
}

#gift-content img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 
    ========================================
    ANIMATIONS
    ========================================
*/
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes popUp {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 
    ========================================
    FOOTER
    ========================================
*/
footer {
    padding: 2rem;
    font-size: 0.9rem;
    color: #888;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .hero { min-height: 60vh; }
    #countdown { gap: 0.5rem; }
    .time-unit { width: 60px; padding: 0.5rem; }
    .time-unit span { font-size: 1.5rem; }
}
