@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;700&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --primary-color: #ff4757;
    --secondary-color: #2f3542;
    --accent-color: #ff6b81;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #ffe6e6;
    background: radial-gradient(circle at center, #fff0f3, #ffe6e6);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    color: var(--secondary-color);
}

.bg-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 71, 87, 0.2);
    opacity: 0;
    animation: floatUp 10s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    perspective: 1000px;
}

.card {
    background: var(--glass-bg);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s;
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

p.subtitle {
    font-size: 1.8rem;
    color: #747d8c;
    margin-bottom: 2.5rem;
}

p.nop {
    font-size: 1rem;
    color: #fba2a2;
    margin-bottom: 1rem;
}

.btn-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    height: 100px;
    position: relative;
}

button {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.5px;
}

.btn-yes {
    background: var(--primary-color);
    color: white;
    z-index: 2;
}

.btn-yes:hover {
    background: #ff2e43;
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(255, 71, 87, 0.3);
}

.btn-no {
    background: #f1f2f6;
    color: #57606f;
    position: relative;
    z-index: 10;
}

#no-btn.moving {
    position: fixed;
    transition: left 0.2s ease-out, top 0.2s ease-out;
}

#gallery-section {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    background: #fff0f3;
    flex-direction: column;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.gallery-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideDown 0.8s ease-out;
}

.gallery-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    perspective: 1000px;
}

.gallery-item {
    background: white;
    padding: 15px 15px 50px 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: rotate(-2deg);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
    opacity: 0;
    animation: itemsIn 0.8s forwards;
    border-radius: 2px;
}

.gallery-item:nth-child(even) {
    transform: rotate(2deg);
}

.gallery-item:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 1px solid #eee;
}

.gallery-caption {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #2f3542;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 53, 66, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    text-align: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border: 10px solid white;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: white;
    font-family: 'Outfit', sans-serif;
    margin-top: 15px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes itemsIn {
    to {
        opacity: 1;
    }
}
