@import url('https://fonts.googleapis.com/css2?family=Cookie&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffeff4;
    font-family: "Cookie", cursive;
    font-weight: 400;
    font-style: normal;
    overflow: hidden;
}

h2 {
    font-size: 2.5em;
}

#wrapper {
    width: 420px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.6s ease, opacity 0.6s ease;
    position: relative;
    z-index: 2;
}

#wrapper::before {
    content: "💌";
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.card-close {
    transform: scale(0.6);
    opacity: 0;
}

h2 {
    color: #ED4754;
    margin-bottom: 20px;
}

#gif {
    width: 100%;
    border-radius: 15px;
}

/* Buttons */
#btn-group {
    position: relative;
    height: 60px;
    margin-top: 40px;
}

button {
    width: 140px;
    height: 50px;
    border-radius: 30px;
    border: 2px solid #ED4754;
    font-size: 1.1em;
    cursor: pointer;
    transition:
        left 0.25s ease,
        top 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#yes-btn {
    position: absolute;
    left: 0;
    background: #ED4754;
    color: white;
}

#yes-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#no-btn {
    position: absolute;
    right: 0;
    background: white;
    color: #ED4754;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

#final {
    text-align: center;
    animation: fadeIn 0.8s ease forwards;
    position: relative;
    z-index: 2;
}

#final img {
    max-width: 300px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.heart {
    position: fixed;
    top: -20px;
    pointer-events: none;
    animation: fall linear forwards;
    z-index: 1;
}

@keyframes fall {
    to {
        transform: translateY(120vh) rotate(360deg);
        opacity: 0;
    }
}