@font-face {
    font-family: "LoveFont";
    src: url("fonts/Yekan.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: "LoveFont",Tahoma, Arial, sans-serif;
    overflow: hidden;

    background:
        radial-gradient(circle at top, #ff9eb5 0%, transparent 40%),
        linear-gradient(135deg, #ff5f8f, #8f2d56);

    color: white;
}

/* Main */

.container {
    width: 100%;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

/* Card */

.card {
    width: 100%;
    max-width: 420px;

    padding: 40px 25px;

    text-align: center;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.25);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);

    animation: cardIn 0.8s ease;
}

.emoji {
    font-size: 60px;
    margin-bottom: 20px;

    animation: heartbeat 1.5s infinite;
}

h1 {
    font-size: 30px;
    margin-bottom: 20px;
}

.question {
    font-size: 17px;
    line-height: 2;

    opacity: 0.95;
}

.question.big {
    font-size: 24px;
    font-weight: bold;

    margin-top: 10px;
}

/* Buttons */

.buttons {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;

    margin-top: 35px;

    min-height: 60px;
}

button {
    border: none;

    font-family: inherit;

    font-size: 17px;
    font-weight: bold;

    padding: 14px 28px;

    border-radius: 50px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.yes {
    background: white;
    color: #e83e70;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.yes:hover {
    transform: scale(1.08);
}

.no {
    background: rgba(0, 0, 0, 0.25);
    color: white;

    position: relative;

    transition:
        left 0.25s ease,
        top 0.25s ease,
        transform 0.2s ease;
}

/* Success */

.success {
    position: fixed;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        radial-gradient(circle at center, #ffb6c8, transparent 40%),
        linear-gradient(135deg, #ff477e, #7b1e4c);

    z-index: 100;
}

.success-content {
    padding: 30px;

    animation: successIn 1s ease;
}

.success h1 {
    font-size: 38px;
}

.success h2 {
    font-size: 30px;

    margin: 20px 0;
}

.success p {
    font-size: 19px;

    line-height: 2;
}

.big-heart {
    font-size: 100px;

    animation: heartbeat 1s infinite;
}

.hidden {
    display: none;
}

/* Floating hearts */

.hearts {
    position: fixed;

    inset: 0;

    pointer-events: none;
}

.heart {
    position: absolute;

    bottom: -50px;

    animation: floatUp linear forwards;

    opacity: 0.7;
}

/* Success hearts */

.floating-hearts {
    margin-top: 30px;

    font-size: 28px;

    letter-spacing: 8px;

    animation: floating 2s infinite ease-in-out;
}

/* Animations */

@keyframes heartbeat {

    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

@keyframes cardIn {

    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes successIn {

    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatUp {

    from {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    to {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes floating {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Mobile */

@media (max-width: 480px) {

    .card {
        padding: 35px 20px;
    }

    .emoji {
        font-size: 50px;
    }

    h1 {
        font-size: 27px;
    }

    .question.big {
        font-size: 21px;
    }

    button {
        font-size: 16px;
        padding: 13px 24px;
    }

    .success h1 {
        font-size: 32px;
    }

    .success h2 {
        font-size: 25px;
    }

    .big-heart {
        font-size: 80px;
    }
}
