:root {
    --primary-color: #ff4d6d;
    --secondary-color: #ff8fa3;
    --bg-color: #fff0f3;
    --text-color: #590d22;
    --gold: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(#ffccd5 2px, transparent 2px);
    background-size: 30px 30px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.container {
    text-align: center;
    padding: 2rem;
    position: relative;
    max-width: 600px;
    width: 100%;
}

.instruction-text {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.instruction-text.fade-out {
    opacity: 0;
}

.gift-container {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gift-box {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.gift-container:hover {
    transform: scale(1.05);
}

.gift-container:hover .gift-box {
    animation: shake 0.8s cubic-bezier(.36, .07, .19, .97) both infinite;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0) rotate(-1deg);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0) rotate(2deg);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0) rotate(-4deg);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0) rotate(4deg);
    }
}

.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

.message-container {
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.message-container.visible {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.proposal-text {
    font-family: 'Dancing Script', cursive;
    color: var(--primary-color);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: heartbeat 2s infinite;
}

.love-note {
    font-size: 4rem;
    margin-top: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.1);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.1);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.btn-group {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    min-height: 60px;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Poppins', sans-serif;
}

.btn:active {
    transform: scale(0.95);
}

.btn-yes {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}

.btn-yes:hover {
    transform: scale(1.1);
    background-color: #ff3355;
}

.btn-no {
    background-color: #e9ecef;
    color: #6c757d;
    position: relative;
    transition: all 0.2s ease;
}

.success-message {
    margin-top: 2rem;
    animation: zoomIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.yay-text {
    font-family: 'Dancing Script', cursive;
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.coupon-img {
    width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.meme-text {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

#prankContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.celebration-img {
    width: 200px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.hidden {
    display: none !important;
}

/* Animations for hiding the gift */
.gift-container.opened {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}