/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
    transition: background 0.5s ease;
}

/* Container */
.container {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9); /* Slightly more opaque for stickers */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    width: 400px;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 10; /* Above hearts */
    position: relative;
}

.sticker-container {
    margin-bottom: -20px; /* Overlap slightly */
}

#bear-sticker {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

/* Typography */
h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 0.5rem;
}

#valentine-header {
    font-size: 1.8rem;
    color: #e84393;
    margin-top: 10px;
}

h2 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem;
}

p {
    color: #666;
    margin-bottom: 1.5rem;
}

ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 1rem 0;
}

ul li {
    padding: 5px 0;
    font-size: 0.95rem;
}

ul li::before {
    content: "✨";
    margin-right: 8px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    min-width: 100px; /* Ensure text fits */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.95);
}

#refresh-btn {
    background-color: #333;
    color: white;
}

.yes {
    background-color: #ff4757;
    color: white;
    margin: 0 10px;
    z-index: 10;
}

.no {
    background-color: #2f3542;
    color: white;
    margin: 0 10px;
    z-index: 10;
}

/* Success Message */
#success-message {
    color: #2c3e50;
    padding-top: 10px;
}

#success-message.visible {
    display: block;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Floating Hearts Background */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart {
    position: absolute;
    bottom: -50px;
    background-color: rgba(255, 107, 129, 0.4);
    display: inline-block;
    height: 30px;
    width: 30px;
    margin: 0 4px;
    transform: rotate(45deg);
    animation: floatUp 6s linear infinite;
}

.heart::before, .heart::after {
    content: "";
    width: 30px;
    height: 30px;
    background-color: inherit;
    border-radius: 50%;
    position: absolute;
}

.heart::before {
    top: -15px;
    left: 0;
}

.heart::after {
    left: -15px;
    top: 0;
}

@keyframes floatUp {
    0% { transform: rotate(45deg) translateY(0) scale(0.8); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: rotate(45deg) translateY(-100vh) scale(1.2); opacity: 0; }
}
