body {
    text-align: center;
    background-color: #ffb3d9;
    font-family: Arial, sans-serif;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden; /* Prevent scrolling */
    position: relative;
}

/* Main content container */
.container {
    position: relative;
    z-index: 10; /* Keep content above gifs */
}

/* Gif containers (left, right, top, and bottom) */
.gif-container-left,
.gif-container-right,
.gif-container-top,
.gif-container-bottom,
.gif-container-center-left,
.gif-container-center-right {
    position: absolute;
    z-index: 1; /* Gifs stay behind content */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
}

.gif-container-top {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.gif-container-left {
    top: 0;
    left: 0;
}

.gif-container-right {
    top: 0;
    right: 0;
}

.gif-container-bottom {
    position: fixed;
    top:500px;
    left: 50%;
    transform: translateX(-50%);
}

.gif-container-center-left{
    left: 13%;
    transform: translateY(-50%);
}

.gif-container-center-right
 {
    right: 13%;
    transform: translateY(-50%);
}
/* Gif styling */
.gif-container-left,
.gif-container-right {
    width: 200px; 
    height: auto;
    margin: 10px;
    animation: float 5s ease-in-out infinite;
}

.gif-container-center-left,
.gif-container-center-right {
    width: 380px; 
    height: auto;
    margin: 10px;
    animation: float 5s ease-in-out infinite;
}
.gif-container-left .gif,
.gif-container-right .gif{
    width: 100%; 
    height: auto;
}

.gif-container-center-left .gif,
.gif-container-center-right .gif {
    width: 100%; 
    height: auto;
    margin-bottom: 60px;
}

.gif-container-bottom .gif {
    width: 300px; 
    height: auto;
}

/* Animation for gifs */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Styling for the button */
.button {
    background-color: #ff1a66;
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 20px;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
    margin-top: 20px;
}

.button:hover {
    background-color: #ff1a66;
}

/* Hidden state for the valentine div */
.hidden {
    display: none;
}

/* Show state for the valentine div */
.show {
    display: block;
    position: relative;
    margin-top: 20px;
}

#valentine h2 {
    margin-top: 10px;
}
.options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 100px;
}
.options button {
    background-color: #ff1a66;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    margin: 5px;
    cursor: pointer;
    width: 100px;
    height: 40px;
}

.options button:hover {
    background-color: #ff1a66;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95); /* Darker overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}

/* 🔍 Modal Styles */
.modal {
    display: none; /* Hidden at first */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}

/* 🖼️ Zoomed Image */
.modal img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease-in-out;
}

/* ❌ Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.close:hover {
    color: #ff99cc;
}

.sad-gif {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}
.play-sound-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff4d79;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 16px;
}

.play-sound-button:hover {
    background-color: #ff1a66;
    transform: scale(1.05);
}

