/* Reset margins and padding, apply font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Full-screen body with center alignment and background gradient */
body {
    background: linear-gradient(to right, #a1c4fd, #c2e9fb);
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-direction: column;
}

/* Envelope (gift-box) icon style */
.gift-box {
    font-size: 10rem;
    color: #b8860b;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

/* Hover effect on gift-box */
.gift-box:hover {
    transform: scale(1.1) rotate(10deg);
    color: #f0e68c;
}

/* Hidden message box initially */
.container {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    text-align: center;
    animation: fadeInScale 1s ease-out forwards;
    position: absolute;
    z-index: 5;
    opacity: 0;
    margin-top: 2rem;
}

/* Show the message box after clicking */
.container.show {
    display: block;
    opacity: 1;
}

/* Heading inside the message box */
h1 {
    font-size: 2rem;
    color: #0e76a8;
    margin-bottom: 1rem;
}

/* Message text */
p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Signature styling */
.signature {
    margin-top: 2rem;
    font-weight: bold;
    font-size: 1.2rem;
    color: #1e3c72;
}

/* Background bubble animation container */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

/* Style for individual bubbles */
.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rise 10s infinite linear;
}

/* Different sizes and delays for bubble animation */
.bubble:nth-child(1) {
    width: 40px;
    height: 40px;
    left: 10%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 30px;
    height: 30px;
    left: 20%;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 50px;
    height: 50px;
    left: 35%;
    animation-delay: 2s;
}

.bubble:nth-child(4) {
    width: 20px;
    height: 20px;
    left: 50%;
    animation-delay: 3s;
}

.bubble:nth-child(5) {
    width: 60px;
    height: 60px;
    left: 70%;
    animation-delay: 4s;
}

.bubble:nth-child(6) {
    width: 25px;
    height: 25px;
    left: 85%;
    animation-delay: 5s;
}

/* Bubble rising animation keyframes */
@keyframes rise {
    0% {
        bottom: -100px;
        opacity: 0;
        transform: translateX(0) scale(1);
    }

    30% {
        opacity: 1;
    }

    100% {
        bottom: 120%;
        opacity: 0;
        transform: translateX(-30px) scale(1.5);
    }
}

/* Message box pop-up animation */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .container {
        max-width: 90%;
        padding: 1.5rem;
        margin-top: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    .signature {
        font-size: 1rem;
        margin-top: 1rem;
    }
}
