/* Birthday Celebration Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

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

/* Header Styles */
.birthday-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.birthday-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 3px 3px 0px #ff6b6b, 6px 6px 0px #feca57;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.birthday-subtitle {
    font-size: 1.3rem;
    color: #f8f9fa;
    font-weight: 600;
}

/* Main Content */
.birthday-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Birthday Person Section */
.birthday-person {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #ff6b6b;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.avatar-overlay {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: #feca57;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.age-badge {
    font-size: 2rem;
    animation: rotate 3s infinite linear;
}

.person-name {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #2d3436;
    margin-bottom: 10px;
}

.birthday-date {
    font-size: 1.2rem;
    color: #636e72;
    font-weight: 600;
}

/* Birthday Message */
.birthday-message {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.message-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.message-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.main-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3436;
}

/* Activities Section */
.birthday-activities {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.activity-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.activity-card p {
    margin-top: 15px;
    font-weight: 600;
    color: #2d3436;
    font-size: 1.1rem;
}

/* Candles */
.candles-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.candle {
    position: relative;
    width: 20px;
    height: 60px;
}

.candle-body {
    width: 20px;
    height: 50px;
    background: linear-gradient(to bottom, #ff6b6b, #ee5a52);
    border-radius: 10px 10px 3px 3px;
}

.wick {
    width: 2px;
    height: 8px;
    background: #2d3436;
    margin: 0 auto;
    position: relative;
    top: -5px;
}

.flame {
    width: 10px;
    height: 15px;
    background: radial-gradient(circle, #feca57 0%, #ff6b6b 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: absolute;
    top: -15px;
    left: 5px;
    animation: flicker 1s infinite alternate;
}

@keyframes flicker {
    0% { transform: scale(1) rotate(-1deg); }
    100% { transform: scale(1.1) rotate(1deg); }
}

/* Music Note */
.music-note {
    font-size: 4rem;
    animation: musicBounce 2s infinite;
}

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

/* Gift Box */
.gift-box {
    font-size: 4rem;
    animation: giftShake 2s infinite;
}

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

/* Party Popper */
.party-popper {
    font-size: 4rem;
    animation: popperSpin 3s infinite linear;
}

@keyframes popperSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gallery */
.birthday-gallery {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 1.2s both;
}

.birthday-gallery h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #2d3436;
    text-align: center;
    margin-bottom: 30px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.photo-frame {
    text-align: center;
    transition: transform 0.3s ease;
}

.photo-frame:hover {
    transform: scale(1.05);
}

.photo-frame img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.photo-frame p {
    margin-top: 10px;
    font-weight: 600;
    color: #2d3436;
}

/* Footer */
.birthday-footer {
    margin-top: 40px;
    text-align: center;
    animation: fadeInUp 1s ease-out 1.5s both;
}

.footer-message {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.footer-message p {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: #2d3436;
    margin-bottom: 20px;
}

/* Balloons */
.balloons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.balloon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.balloon-1 {
    animation-delay: 0s;
    color: #ff6b6b;
}

.balloon-2 {
    animation-delay: 1s;
    color: #feca57;
}

.balloon-3 {
    animation-delay: 2s;
    color: #48dbfb;
}

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

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: confettiFall 3s linear infinite;
}

.confetti:nth-child(odd) {
    background: #feca57;
    animation-duration: 2.5s;
}

.confetti:nth-child(3n) {
    background: #48dbfb;
    animation-duration: 3.5s;
}

.confetti:nth-child(4n) {
    background: #ff9ff3;
    animation-duration: 2s;
}

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

/* Customize Panel */
.customize-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: transform 0.3s ease;
}

.customize-panel.closed {
    transform: translateX(calc(100% - 50px));
}

.customize-toggle {
    position: absolute;
    top: 10px;
    left: -40px;
    width: 40px;
    height: 40px;
    background: #ff6b6b;
    border: none;
    border-radius: 10px 0 0 10px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.customize-toggle:hover {
    background: #ee5a52;
}

.customize-content {
    padding: 20px;
    width: 250px;
}

.customize-content h4 {
    font-family: 'Fredoka One', cursive;
    color: #2d3436;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2d3436;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 107, 107, 0.4);
    }
    100% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .birthday-title {
        font-size: 2.5rem;
    }
    
    .birthday-subtitle {
        font-size: 1.1rem;
    }
    
    .birthday-person {
        padding: 30px 20px;
    }
    
    .avatar {
        width: 150px;
        height: 150px;
    }
    
    .person-name {
        font-size: 2rem;
    }
    
    .activity-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .customize-panel {
        position: relative;
        top: auto;
        right: auto;
        margin: 20px auto;
        transform: none;
    }
    
    .customize-panel.closed {
        transform: none;
    }
    
    .customize-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .birthday-title {
        font-size: 2rem;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .balloons {
        gap: 10px;
    }
    
    .balloon {
        font-size: 2rem;
    }
}
