/* General Styling & Mobile First Approach */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif; /* Poppins is a modern, clean font */
    background: linear-gradient(135deg, #ffc8dd 0%, #a2d2ff 100%); /* Light, festive gradient */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    text-align: center;
    overflow-x: hidden;
}

.container {
    padding: 20px;
    max-width: 90%;
}

/* Birthday Heading Style */
.heading-text {
    font-size: 2.5em; /* Mobile Font size */
    color: #e63946;
    margin-bottom: 10px;
    animation: bounce 2s infinite; /* Animation for fun */
    text-shadow: 2px 2px #fff;
}

.name {
    color: #0077b6; /* Different color for the name */
    font-weight: 700;
}

.wish-text {
    font-size: 1.2em;
    color: #457b9d;
    margin-bottom: 40px;
}

/* Gift Box Styling */
.gift-box-wrapper {
    cursor: pointer;
    margin-top: 30px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.gift-box-wrapper:hover {
    transform: scale(1.05); /* Slight enlarge on hover/tap */
}

.gift-box {
    width: 150px;
    height: 120px;
    position: relative;
    margin: 0 auto;
}

.box-body {
    width: 100%;
    height: 100%;
    background-color: #f77f00; /* Orange body */
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.box-lid {
    width: 170px;
    height: 30px;
    background-color: #fcbf49; /* Yellowish lid */
    position: absolute;
    top: -15px;
    left: -10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.box-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 100%;
    background-color: #e63946; /* Red ribbon */
    z-index: 11;
}

.box-ribbon::before { /* Horizontal ribbon */
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    transform: translateY(-50%);
    width: 200%;
    height: 20px;
    background-color: #e63946;
}

.click-text {
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: #e63946;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Desktop/Tablet Optimization (Optional but good practice) */
@media (min-width: 768px) {
    .heading-text {
        font-size: 4em; /* Larger font on desktop */
    }
    .gift-box {
        width: 200px;
        height: 160px;
    }
}