.valentine-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background-color: white;
    width: 45vw;
    height: 45vh;
    box-shadow: 2px 2px 40px black;
    position: absolute;
    transition: all 0.8s ease;
    overflow: visible;
}

html, body {
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #fee3ee 0%, #ffc0d9 50%, #ff99b9 100%);
    position: relative;
}

.section {
    /* border: 1px solid red; */
    min-height: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.image-section {
    flex: 2
}

.question-section {
    flex: 1;
    filter: drop-shadow(0 0 20px rgba(255, 25, 106, 0.5));
    animation: textGlow 2s ease-in-out infinite;
}

.buttons-section {
    flex: 1
}

.empty-section {
    flex: 0.5
}

.button-wrapper {
    display: flex;
    position: relative;
    /* border: 1px solid blue;  */
    flex: 1;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.dancing-script {
    font-family: "Dancing Script", cursive;
    font-optical-sizing: auto;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-style: normal;
    font-size: 2.5vw;
}

.yes-button {
    width: 50%;
    height: 60%;
    color: white;
    background-color: #ff196a;
    border-style: none;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-size: 1.5vw;
    border-radius: 50px;
    box-shadow: 4px 5px 5px #7c7c7c;
    transition: all 0.2s ease;
}

.yes-button:hover {
    background-color: #ff0052;
    transform: scale(1.05);
    box-shadow: 4px 8px 10px #7c7c7c;
}

.yes-button:active {
    transform: scale(0.95);
    box-shadow: 1px 3px 5px #7c7c7c;
}

.visited {
    transform: translateX(-100vw);
}

.hidden {
    transform: translateX(100vw);
    pointer-events: none;
}

.page-2 {
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.page-2 .main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
}

/* Floating hearts animation */
@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

@keyframes floatLeft {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100vh) translateX(-50px);
        opacity: 0;
    }
}

.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.heart {
    position: absolute;
    width: 40px;
    height: 40px;
    animation: float 5s ease-in infinite;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff196a"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg>');
}

.heart:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.heart:nth-child(2) {
    left: 20%;
    animation: floatLeft 6s ease-in infinite;
    animation-delay: 1s;
}

.heart:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
}

.heart:nth-child(4) {
    left: 60%;
    animation: floatLeft 7s ease-in infinite;
    animation-delay: 1.5s;
}

.heart:nth-child(5) {
    left: 80%;
    animation-delay: 3s;
}

/* Text glow animation */
@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 25, 106, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 25, 106, 0.7));
    }
}

.no-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 60%;
    color: black;
    background-color: #b0a5ff;
    color: white;
    border-style: none;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-size: 0.9vw;
    border-radius: 50px;
    box-shadow: 1px 2px 3px #7c7c7c;
    transition: left 0.3s ease-out, top 0.3s ease-out;
}
