@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

:root {
    --mimi-pink: #ffd6ff;
    --mauve: #956bb3;
    --mauve-2: #c8b6ff;
    --periwinkle: #b8c0ff;
    --periwinkle-2: #bbd0ff;
    --dark-background: #000000;
}

/* General setup for the whole page */
body {
    margin: 0;
    background-color: var(--dark-background);
    color: var(--mimi-pink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* This is our room*/
#birthday-room {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* A helper class to hide elements until we need them */
.hidden {
    display: none;
}

/* This container holds our button */
.button-container {
    position: absolute;
    bottom: 50px;
}

/* This class will be added by JavaScript to make elements appear */
.visible {
    display: block;
    /* Or flex*/
    animation: fadeIn 1.5s ease-in-out;
}

/* This is for the fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Styling the button*/
#action-button {
    background-color: transparent;
    color: var(--periwinkle-2);
    border: 2px solid var(--periwinkle-2);
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    /* Smooth transitions for all changing properties */
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

/* This fills the button with color */
#action-button:hover {
    background-color: var(--periwinkle-2);
    color: var(--dark-background);
    transform: scale(1.05);
}

/* Balloon Animation Styles */

/* This is the container for the balloons */
#decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

/* Base style for all balloons */
.balloon {
    position: absolute;
    bottom: -200px;
    opacity: 0;

    animation: rise 8s ease-out forwards, float 12s ease-in-out infinite;
}

#balloon1 {
    left: 10%;
    width: 100px;
    animation-delay: 1s, 9s;
    animation-duration: 8s, 12s;
}

#balloon2 {
    left: 30%;
    width: 130px;
    animation-delay: 0s, 8s;
    animation-duration: 8s, 10s;
}

#balloon3 {
    left: 50%;
    width: 80px;
    animation-delay: 2.5s, 10.5s;
    animation-duration: 9s, 13s;
}

#balloon4 {
    left: 70%;
    width: 110px;
    animation-delay: 1.5s, 9.5s;
    animation-duration: 7s, 11s;
}

#balloon5 {
    left: 90%;
    width: 90px;
    animation-delay: 3s, 11s;
    animation-duration: 8s, 10s;
}



/* 1. Rise animation */
@keyframes rise {
    from {
        bottom: -200px;
        opacity: 0;
    }

    to {
        bottom: calc(100vh + 200px);
        opacity: 1;
    }
}

/* The 'float' animation */
@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) translateX(20px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
}
/* --- Cake, Candle, and Message Styling --- */

/* Base styling for the cake image */
#cake {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 15%;
    width: 300px;
    max-width: 80%;
    z-index: 20;
}

/* Styling for the candle flame */
#candle {
    position: absolute;
    left: 50%;
    bottom: 33%;
    transform: translateX(-50%);
    width: 95px;
    z-index: 21;
}

/* Styling for the message */
#message {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    text-align: center;

    font-family: "Lora", serif;
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--mauve);

    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 30;
}

#message.show {
    opacity: 1;
}

.visible {
    display: block;
    animation: fadeIn 1.5s ease-in-out;
}


#lights-container {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    justify-content: center;
    gap: 200px;
    z-index: 5;
}
#lights-container.visible {
    display: flex;
}

.lightbulb {
    width: 120px;
    }

/* Wall Banner Styling */

#birthday-banner {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    max-width: 90%;


    z-index: 9;
}