/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main container with perfect centering */
body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Romantic background with hearts */
.romantic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    z-index: 1;
}

/* Background hearts */
.background-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bg-heart {
    position: absolute;
    font-size: 1.5rem;
    animation: floatBackground 10s ease-in-out infinite;
    opacity: 0.4;
}

.bg-heart:nth-child(1) { left: 5%; animation-delay: 0s; }
.bg-heart:nth-child(2) { left: 15%; animation-delay: 2s; }
.bg-heart:nth-child(3) { left: 25%; animation-delay: 4s; }
.bg-heart:nth-child(4) { left: 35%; animation-delay: 6s; }
.bg-heart:nth-child(5) { left: 45%; animation-delay: 8s; }
.bg-heart:nth-child(6) { left: 55%; animation-delay: 1s; }
.bg-heart:nth-child(7) { left: 65%; animation-delay: 3s; }
.bg-heart:nth-child(8) { left: 75%; animation-delay: 5s; }
.bg-heart:nth-child(9) { left: 85%; animation-delay: 7s; }
.bg-heart:nth-child(10) { left: 95%; animation-delay: 9s; }

@keyframes floatBackground {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    50% {
        transform: translateY(50vh) rotate(180deg);
    }
}

/* Main container - perfectly centered */
.main-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Content wrapper - glass effect */
.content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 40px;
    box-shadow: 0 30px 80px rgba(255, 105, 180, 0.4);
    backdrop-filter: blur(15px);
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    margin-bottom: 2rem;
}

.title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #d63384;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(214, 51, 132, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.subtitle {
    font-size: 1.1rem;
    color: #6f42c1;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Cat container - perfectly centered */
.cat-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.valentine-cat {
    max-width: 250px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.3);
    animation: bounce 3s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.cat-message {
    background: linear-gradient(45deg, #ff6b9d, #feca57);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.3);
    animation: fadeInUp 1s ease-out;
    max-width: 80%;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Question section */
.question-section {
    margin: 2.5rem 0;
}

.question {
    font-size: 2.2rem;
    color: #d63384;
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Button container - allows movement but keeps visual consistency */
.button-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    margin: 2rem 0;
}

/* Buttons */
.btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn-yes {
    background: linear-gradient(45deg, #ff6b9d, #feca57);
    color: white;
    transform: scale(1);
    transition: all 0.3s ease;
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 50px rgba(255, 107, 157, 0.5);
}

.btn-no {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    transition: all 0.3s ease;
}

.btn-no:hover {
    background: linear-gradient(45deg, #495057, #343a40);
    transform: scale(1.05);
}

/* Result section */
.result {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc8 100%);
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(168, 230, 207, 0.4);
}

.result.hidden {
    display: none;
}

.celebration h2 {
    font-size: 2.5rem;
    color: #28a745;
    margin-bottom: 1rem;
    font-family: 'Great Vibes', cursive;
}

.celebration p {
    font-size: 1.2rem;
    color: #155724;
    margin-bottom: 1.5rem;
}

.celebration-hearts {
    font-size: 2rem;
    animation: celebrationPulse 1s ease-in-out infinite;
}

@keyframes celebrationPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.celebration-hearts span {
    display: inline-block;
    animation: heartBounce 1s ease-in-out infinite;
}

.celebration-hearts span:nth-child(2) { animation-delay: 0.2s; }
.celebration-hearts span:nth-child(3) { animation-delay: 0.4s; }
.celebration-hearts span:nth-child(4) { animation-delay: 0.6s; }

@keyframes heartBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 2rem;
        margin: 1rem;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .valentine-cat {
        max-width: 180px;
    }
    
    .question {
        font-size: 1.8rem;
    }
    
    .button-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 1rem;
    }
    
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .question {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .valentine-cat {
        max-width: 150px;
    }
}

/* Special effects */
.snowflake {
    position: fixed;
    top: -10px;
    color: #ff6b9d;
    font-size: 1rem;
    animation: snowfall linear infinite;
    z-index: 5;
}

@keyframes snowfall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* No button shrinking effect */
.btn-no.shrinking {
    animation: shrinkOut 0.5s ease-out forwards;
}

@keyframes shrinkOut {
    to {
        transform: scale(0);
        opacity: 0;
    }
}

/* Ensure button scaling works properly */
.btn-yes {
    transition: all 0.3s ease;
    transform-origin: center;
}

.btn-no {
    transition: all 0.3s ease;
    transform-origin: center;
}
/* MOBİLDE DEBUG KUTULARINI KALDIR */
@media (max-width: 768px) {
    .question-section,
    .question {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: none !important;
    }
}