/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1000px;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Countdown Page Styles */
.countdown-page {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}

.countdown-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.countdown-box {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4);
}

.countdown-box span {
    display: block;
}

.countdown-box span:first-child {
    font-size: 2.5rem;
    font-weight: bold;
    color: #444;
}

.countdown-box .label {
    font-size: 0.9rem;
    color: #777;
    margin-top: 5px;
}

.countdown-message {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
}

.skip-button {
    background: #ddd;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.skip-button:hover {
    background: #ccc;
}

/* Balloons */
.balloon-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.balloon {
    position: absolute;
    width: 40px;
    height: 60px;
    background-color: #ff6b6b;
    border-radius: 50%;
    animation: float 15s infinite;
}

.balloon::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 2px;
    height: 30px;
    background-color: #ddd;
    transform: translateX(-50%);
}

.balloon1 {
    top: -60px;
    left: 10%;
    background-color: #FF9A9E;
    animation-delay: 0s;
}

.balloon2 {
    top: -40px;
    left: 30%;
    background-color: #FECFEF;
    animation-delay: 2s;
}

.balloon3 {
    top: -70px;
    left: 50%;
    background-color: #A9C9FF;
    animation-delay: 4s;
}

.balloon4 {
    top: -50px;
    left: 70%;
    background-color: #CDDAFD;
    animation-delay: 6s;
}

.balloon5 {
    top: -60px;
    left: 90%;
    background-color: #FFD1D1;
    animation-delay: 8s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(50vh) rotate(10deg);
    }
    100% {
        transform: translateY(100vh) rotate(0);
    }
}

/* Celebration Page Styles */
.celebration-page {
    background: linear-gradient(135deg, #fccb90, #d57eeb);
    overflow: hidden;
}

.celebration-container {
    background: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

.birthday-title {
    font-size: 3rem;
    margin-bottom: 40px;
    color: #e74c3c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.celebration-message {
    margin: 30px 0;
    font-size: 1.3rem;
    color: #333;
    line-height: 1.6;
}

.continue-button {
    background: linear-gradient(to right, #ff9a9e, #fad0c4);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.continue-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    background-color: #ffd700;
    top: -20px;
    opacity: 0;
}

/* Cake Animation */
.cake-container {
    margin: 30px auto;
    position: relative;
    width: 200px;
    height: 200px;
    overflow: visible;
}

.animated-cake {
    width: 100%;
    height: 200px;
    animation: cakeBounce 2s infinite alternate;
    display: block;
}

.cake-svg {
    width: 100%;
    height: 100%;
    animation: cakeBounce 2s infinite alternate;
    object-fit: contain;
    display: block;
}

/* SVG container styles */
#svg-container {
    width: 100%;
    height: 100%;
}

#svg-container svg {
    width: 100%;
    height: 200px;
    animation: cakeBounce 2s infinite alternate;
}

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

.cake {
    position: relative;
    width: 100%;
    height: 100%;
}

.cake-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: #f39c12;
    border-radius: 10px;
}

.cake-middle {
    position: absolute;
    bottom: 50px;
    width: 90%;
    height: 50px;
    background: #e67e22;
    border-radius: 10px;
    left: 5%;
}

.cake-top {
    position: absolute;
    bottom: 100px;
    width: 80%;
    height: 50px;
    background: #d35400;
    border-radius: 10px;
    left: 10%;
}

.candle {
    position: absolute;
    bottom: 150px;
    width: 10px;
    height: 40px;
    background: linear-gradient(to bottom, #ecf0f1, #bdc3c7);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.flame {
    position: absolute;
    top: -20px;
    width: 15px;
    height: 25px;
    background: linear-gradient(to bottom, #ffeb3b, #ff5722);
    border-radius: 50% 50% 20% 20%;
    left: 50%;
    transform: translateX(-50%);
    animation: flicker 1s infinite alternate;
}

@keyframes flicker {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Wishes Page Styles */
.wishes-page {
    background: linear-gradient(135deg, #e0c3fc, #8ec5fc);
}

.wishes-container {
    background: rgba(255, 255, 255, 0.95);
    max-width: 900px;
}

.wishes-title {
    font-size: 2.5rem;
    color: #8e44ad;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.wishes-message {
    margin: 30px auto;
    max-width: 700px;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

.wishes-message p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.special-wish {
    font-size: 1.3rem !important;
    color: #8e44ad !important;
    font-weight: bold;
}

.signature {
    text-align: right;
    font-style: italic;
    margin-top: 20px !important;
}

.gallery-title {
    font-size: 2rem;
    color: #3498db;
    margin: 30px 0 20px;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.photo-card {
    width: 220px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.photo-card:hover {
    transform: translateY(-5px);
}

.photo {
    width: 100%;
    height: 180px;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.9rem;
}

.photo-caption {
    padding: 10px;
    font-size: 0.9rem;
    color: #555;
}

.final-message {
    margin: 40px 0 20px;
}

.final-message h2 {
    font-size: 2.2rem;
    color: #e74c3c;
    margin-bottom: 10px;
}

.heart-animation {
    margin: 20px auto;
    font-size: 3rem;
    color: #e74c3c;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
}

.restart-button {
    background: linear-gradient(to right, #667eea, #764ba2);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.restart-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-title, .birthday-title, .wishes-title {
        font-size: 2rem;
    }
    
    .countdown-box {
        width: 80px;
        height: 80px;
    }
    
    .countdown-box span:first-child {
        font-size: 2rem;
    }
    
    .wishes-message {
        padding: 15px;
    }
    
    .wishes-message p {
        font-size: 1rem;
    }
    
    .photo-gallery {
        gap: 15px;
    }
    
    .photo-card {
        width: 180px;
    }
    
    .photo {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .countdown-box {
        width: 70px;
        height: 70px;
        margin: 5px;
    }
    
    .countdown-box span:first-child {
        font-size: 1.8rem;
    }
    
    .countdown-box .label {
        font-size: 0.8rem;
    }
    
    .photo-card {
        width: 140px;
    }
    
    .photo {
        height: 120px;
    }
} 