* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* CUSTOMIZE: Change gradient colors for different theme */
    background: linear-gradient(-45deg, #fee9f7, #e8f5fe, #fef2e8, #f0ffe8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
    overflow: hidden;
    position: relative;
}

.cursor {
    width: 20px;
    height: 20px;
    /* CUSTOMIZE: Change cursor color */
    background: pink;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: transform 0.2s;
}

.container {
    text-align: center;
    z-index: 1;
}

/* Countdown Timer Styles */
.countdown-section {
    text-align: center;
}

.countdown-title {
    font-size: 2.5rem;
    /* CUSTOMIZE: Change primary color */
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    margin-bottom: 2rem;
    animation: fadeInScale 1s ease;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    min-width: 100px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.2);
    transition: transform 0.3s;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    /* CUSTOMIZE: Change number color */
    color: #ff69b4;
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    /* CUSTOMIZE: Change label color */
    color: #8a2be2;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.birthday-content {
    animation: fadeInScale 1s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

h1 {
    font-size: 3.5rem;
    /* CUSTOMIZE: Change title color */
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    margin-bottom: 2rem;
    opacity: 0;
}

.greeting {
    font-size: 1.5rem;
    /* CUSTOMIZE: Change greeting color */
    color: #8a2be2;
    margin-bottom: 3rem;
    min-height: 2em;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    /* CUSTOMIZE: Change button gradient */
    background: linear-gradient(45deg, #ff69b4, #ff99cc);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 105, 180, 0.7);
}

.floating {
    position: absolute;
    pointer-events: none;
    opacity: 0;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .greeting { font-size: 1.2rem; }
    .cta-button { font-size: 1rem; }
}

/* Music Toggle Button */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    /* CUSTOMIZE: Change music button gradient */
    background: linear-gradient(45deg, #ff69b4, #ff99cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

.music-toggle.playing {
    animation: pulse 1s ease-in-out infinite;
}

.music-icon {
    font-size: 1.5rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Level Up Badge */
.level-up-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ffd700, #ffed4a, #ffd700);
    background-size: 200% 200%;
    animation: shimmer 2s ease-in-out infinite, levelUpPop 0.6s ease-out;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes levelUpPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Nickname and From text */
.nickname-text {
    font-size: 1.3rem;
    /* CUSTOMIZE: Change nickname text color */
    color: #ff69b4;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

.from-text {
    font-size: 1.1rem;
    /* CUSTOMIZE: Change from text color */
    color: #8a2be2;
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #fee9f7, #e8f5fe, #fef2e8, #f0ffe8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-heart {
    font-size: 4rem;
    animation: heartbeat 1s ease-in-out infinite;
}

.loading-text {
    font-size: 1.5rem;
    /* CUSTOMIZE: Change loading text color */
    color: #ff69b4;
    margin-top: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    * { cursor: auto !important; }
    .cursor { display: none !important; }
}
