/* 🌌 Nature-Inspired Dark Mode */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&family=Poppins:wght@300&display=swap');

body {
    background-color: #121b14;
    color: #d4e8d4;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ✨ Soft Background Glow */
.background-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 50, 40, 0.5) 10%, rgba(0, 0, 0, 0.9) 80%);
    z-index: -1;
}

/* 🌿 Main Container */
.container {
    max-width: 900px;
    width: 90%;
    padding: 40px;
    text-align: center;
    background: rgba(43, 66, 50, 0.85);
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(8px);
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

/* 🔥 Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 🌱 Title */
.title {
    font-size: 2.5rem;
    color: #a8d5ba;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

/* 🌊 Subtitle */
.subtitle {
    font-size: 1.1rem;
    color: #b0cfae;
    opacity: 0.8;
    margin-bottom: 25px;
}

/* ✨ Decorative Divider */
.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #5a8264, #a8d5ba);
    margin: 20px auto;
    border-radius: 2px;
    opacity: 0;
    animation: fadeIn 1.8s forwards;
}

/* 🌲 Story Grid */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* 📖 Story Cards */
.story-card {
    background: rgba(80, 120, 90, 0.15);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #d4e8d4;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.story-card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 50%;
    width: 120%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 80%);
    transform: translateX(-50%);
    transition: all 0.4s ease;
}

.story-card:hover::before {
    top: 100%;
}

.story-card:hover {
    background: rgba(80, 150, 90, 0.25);
    transform: translateY(-5px);
}

.story-card h2 {
    font-size: 1.5rem;
    color: #bde3b5;
    margin-bottom: 10px;
}

.story-card p {
    font-size: 1rem;
    opacity: 0.8;
}

/* 🍃 Footer */
footer {
    margin-top: 30px;
    font-size: 1rem;
    color: #c7dec7;
    opacity: 0.8;
}

/* 🌙 Return Button */
.return-button {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(90deg, #2c543f, #3f7855);
    color: #d4e8d4;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.2s;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.return-button:hover {
    background: linear-gradient(90deg, #3b7256, #4e8b69);
    transform: translateY(-3px);
}
