/* styles.css */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    text-align: center;
    color: #f4e4bc;
    padding: 20px;
    box-sizing: border-box;
    max-width: 1200px;
    width: 100%;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.photos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.photo {
    width: 30vw;
    max-width: 150px;
    height: 30vw;
    max-height: 150px;
    margin: 10px;
    border-radius: 10%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: zoomInOut 5s infinite;
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.animation-container {
    position: relative;
    width: 100%;
    height: 20vh;
}

.balloon {
    position: absolute;
    bottom: -100px;
    width: 50px;
    height: auto;
    animation: floatUp 8s ease-in-out infinite;
}

.balloon:nth-child(2) {
    left: 20%;
    animation-duration: 4s;
}

.balloon:nth-child(3) {
    left: 40%;
    animation-duration: 6s;
}

.balloon:nth-child(4) {
    left: 60%;
    animation-duration: 3.5s;
}

.balloon:nth-child(5) {
    left: 80%;
    animation-duration: 5.5s;
}

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

.cake-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.cake {
    width: 20vw;
    max-width: 100px;
    margin: 10px;
    animation: bounce 2s infinite;
}

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

/* Responsive Design */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8em;
    }

    .photo {
        width: 40vw;
        height: 40vw;
    }

    .cake {
        width: 30vw;
    }

    .animation-container {
        height: 15vh;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .photo {
        width: 42vw;
        height: 42vw;
        margin: 5px;
    }

    .cake {
        width: 35vw;
        margin: 5px;
    }
    .container{
        padding-top: 20px;
    }
    body{
        justify-content: flex-start;
        padding-top: 20px;
    }
    .cake-container{
        margin-top: 10px;
        padding-bottom: 30px;
    }
}
