/* Birthday Cake Color Scheme */
:root {
    --cake-pink: #ffb6c1;
    --cake-cream: #fff8dc;
    --cake-yellow: #ffd700;
    --cake-frosting: #ffe4e1;
    --cake-cherry: #dc143c;
    --cake-brown: #8b4513;
    --cake-purple: #da70d6;
    --cake-blue: #87ceeb;
    --text-dark: #4a4a4a;
    --text-light: #ffffff;
}

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

body {
    font-family: 'Comic Sans MS', 'Marker Felt', 'Arial Rounded MT Bold', sans-serif;
    background: linear-gradient(135deg, var(--cake-pink) 0%, var(--cake-cream) 50%, var(--cake-yellow) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--cake-cherry);
    animation: fall linear infinite;
    opacity: 0.7;
}

.confetti:nth-child(1) { left: 10%; animation-duration: 3s; animation-delay: 0s; background: var(--cake-cherry); }
.confetti:nth-child(2) { left: 20%; animation-duration: 4s; animation-delay: 0.5s; background: var(--cake-yellow); }
.confetti:nth-child(3) { left: 30%; animation-duration: 3.5s; animation-delay: 1s; background: var(--cake-purple); }
.confetti:nth-child(4) { left: 40%; animation-duration: 4.5s; animation-delay: 1.5s; background: var(--cake-blue); }
.confetti:nth-child(5) { left: 50%; animation-duration: 3s; animation-delay: 2s; background: var(--cake-cherry); }
.confetti:nth-child(6) { left: 60%; animation-duration: 4s; animation-delay: 0.3s; background: var(--cake-yellow); }
.confetti:nth-child(7) { left: 70%; animation-duration: 3.5s; animation-delay: 0.8s; background: var(--cake-purple); }
.confetti:nth-child(8) { left: 80%; animation-duration: 4.5s; animation-delay: 1.2s; background: var(--cake-blue); }
.confetti:nth-child(9) { left: 90%; animation-duration: 3s; animation-delay: 1.8s; background: var(--cake-cherry); }
.confetti:nth-child(10) { left: 95%; animation-duration: 4s; animation-delay: 2.3s; background: var(--cake-yellow); }

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideDown 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.title {
    font-size: 3.5em;
    color: var(--cake-cherry);
    text-shadow: 3px 3px 0px var(--cake-yellow), 6px 6px 0px rgba(0,0,0,0.1);
    margin: 0;
    animation: rainbow 3s infinite;
}

@keyframes rainbow {
    0% { color: var(--cake-cherry); }
    25% { color: var(--cake-purple); }
    50% { color: var(--cake-blue); }
    75% { color: var(--cake-yellow); }
    100% { color: var(--cake-cherry); }
}

.subtitle {
    font-size: 1.5em;
    color: var(--text-dark);
    margin-top: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.controls {
    background: var(--cake-frosting);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.date-selectors {
    display: flex;
    gap: 10px;
    width: 100%;
}

.date-selectors .day-selector {
    flex: 1;
}

.label {
    font-size: 1.2em;
    color: var(--text-dark);
    font-weight: bold;
}

.day-selector {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 3px solid var(--cake-pink);
    border-radius: 15px;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.day-selector:hover {
    border-color: var(--cake-cherry);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.day-selector:focus {
    outline: none;
    border-color: var(--cake-purple);
    box-shadow: 0 0 0 4px rgba(218, 112, 214, 0.3);
}

.btn {
    padding: 15px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cake-cherry), var(--cake-pink));
    color: var(--text-light);
}

.btn-primary:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.btn-primary:active {
    transform: scale(1.05) translateY(0);
}

.results-container {
    background: var(--cake-frosting);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    min-height: 200px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.welcome-message {
    text-align: center;
    padding: 40px;
    color: var(--text-dark);
}

.cake-icon {
    font-size: 4em;
    animation: rotate 3s infinite;
    margin-bottom: 20px;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.birthday-card {
    background: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 15px;
    border-left: 5px solid var(--cake-cherry);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: slideInLeft 0.5s ease-out;
    transition: all 0.3s ease;
}

.birthday-card:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.birthday-name {
    font-size: 1.8em;
    color: var(--cake-cherry);
    font-weight: bold;
    margin-bottom: 5px;
}

.birthday-date {
    font-size: 1.1em;
    color: var(--text-dark);
    opacity: 0.8;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: var(--text-dark);
    font-size: 1.3em;
}

#balloons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.balloon {
    position: absolute;
    width: 50px;
    height: 70px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: floatUp 5s ease-out forwards;
}

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

#sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--cake-yellow);
    border-radius: 50%;
    animation: sparkle 2s ease-out forwards;
    box-shadow: 0 0 10px var(--cake-yellow);
}

@keyframes sparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .title {
        font-size: 2.5em;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .controls {
        padding: 20px;
    }
}




