body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #000; /* Set background color to black */
    transition: background-color 0.5s ease;
    margin: 0;
    font-family: Arial, sans-serif;
}
.controls {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fancy-input {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #3498db; /* Border color */
    border-radius: 8px; /* Rounded corners */
    margin-bottom: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for border color */
}

.fancy-input:focus {
    outline: none;
    border-color: #e74c3c; /* Change border color on focus */
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.8); /* Add shadow on focus */
}

.controls input, .controls button {
    margin-bottom: 10px;
}
.bg-options {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.bg-option {
    margin-bottom: 5px;
    padding: 5px;
    cursor: pointer;
    border: 1px solid #000;
    border-radius: 5px;
    width: 100px; /* Adjust as needed */
    height: 100px; /* Adjust as needed */
    object-fit: cover;
}
.card {
    width: 400px;
    height: 600px;
    perspective: 1000px;
}
.card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    position: relative;
}
.card:hover .card-inner {
    transform: rotateY(180deg);
}
.card-front, .card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    background-color: rgba(247, 240, 240, 0.721);
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.card-front {
    background-image: url('front.jpg');
    background-size: cover;
    background-position: center;
}
.card-back {
    background-image: url('back.jpg');
    background-size: cover;
    background-position: center;
    transform: rotateY(180deg);
}
#cake-container {
    position: relative;
    width: 200px;
    height: auto;
    background-color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
}
#cake {
    width: 100%;
    height: auto;
    display: block;
}
.candle {
    position: absolute;
    top: -2px;
    width: 10px;
    height: 50px;
    bottom: 100px;
    background-color: #ff9999;
    border-radius: 10px;
    transform: translateX(-50%);
}
.flame {
    position: absolute;
    top: -15px;
    left: -5px;
    width: 20px;
    height: 20px;
    background-color: #ff0;
    border-radius: 50%;
    animation: flicker 0.2s infinite alternate;
}
.blown-out {
    background-color: transparent !important;
}
@keyframes flicker {
    0% { opacity: 1; }
    100% { opacity: 0.6; }
}
#message-container {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: #333;
}
.fancy-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    font-size: 24px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    z-index: 9999;
}
.balloon-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    font-size: 24px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    z-index: 9999;
}
.bulb-container {
    position: fixed;
    top: 1%; /* Adjust top position as needed */
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* Full width */
    height: 30vh; /* 30% of viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Ensure it's above other content */
}

.bulb {
    width: 50px; /* Adjust size as needed */
    position: absolute;
    top: 0;
    left: calc(50% + (var(--index) * 48%)); /* Adjust spacing between bulbs */
    animation: descend 3s forwards; /* Animation to descend */
}

@keyframes descend {
    0% {
        top: -100px; /* Start position above the viewport */
        opacity: 0; /* Initially invisible */
    }
    100% {
        top: 0; /* End position at the top of the bulb container */
        opacity: 1; /* Fully visible */
    }
}

.balloon-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks through balloons */
    z-index: 998; /* Ensure it's below the bulbs */
    border: 20px solid transparent;
    border-image-source: url('Balloon-Border.png'); /* Replace with your border image */
    border-image-slice: 40; /* Adjust as needed */
    border-image-repeat: round; /* Ensure the border image repeats around */
}


.balloon {
    width: 50px; /* Adjust size as needed */
    position: absolute;
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-100vh) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

