/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb); /* softer gradient */
    color: #2d3436;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(to right, #c62828, #b71c1c);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    font-family: 'Festive', cursive;
    font-size: 3.5em;
    letter-spacing: 2px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M0 10 Q25 2 50 10 T100 10" fill="%23ffffff" opacity="0.85"/></svg>') repeat-x;
    z-index: -1;
}

/* Navigation */
nav {
    background: #2e7d32;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    margin: 0 20px;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: #ffeb3b;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #ffeb3b;
}

nav a:hover::after {
    width: 100%;
}

/* Sections */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* About */
#about {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

#about h1, #games h1, #tips h1 {
    color: #b71c1c;
    text-align: center;
    font-family: 'Festive', cursive;
    font-size: 2.8em;
    margin-bottom: 25px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15);
}

/* Games */
#games {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: linear-gradient(to bottom, #ffffff, #f1f8e9);
    border: 2px solid #2e7d32;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card h2 {
    color: #b71c1c;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.card p {
    font-size: 1em;
    line-height: 1.6;
    color: #424242;
    margin-bottom: 20px;
}

.card button {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card button:hover {
    background: #1b5e20;
    transform: scale(1.05);
}

/* Tips */
#tips {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

#tips ul {
    list-style: none;
    padding: 0;
}

#tips li {
    background: #f1f8e9;
    margin: 18px 0;
    padding: 20px;
    border-radius: 12px;
    font-size: 1.1em;
    color: #424242;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, background 0.3s ease;
}

#tips li:hover {
    transform: translateX(12px);
    background: #e8f5e9;
}

/* Footer */
footer {
    background: linear-gradient(to right, #b71c1c, #c62828);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.95em;
}

footer a {
    color: #ffeb3b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

/* Fullscreen */
#fullscreen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#gameframe {
    width: 100%;
    height: 90%;
    border: none;
    border-radius: 12px;
}

#closeBtn {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s ease, transform 0.3s ease;
}

#closeBtn:hover {
    background: #1b5e20;
    transform: scale(1.05);
}

/* Snow animation */
@keyframes snow {
    0% { transform: translateY(-10vh); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0.5; }
}

.snowflake {
    position: absolute;
    top: -10px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    animation: snow linear infinite;
    z-index: 0;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        font-size: 2.4em;
        padding: 40px 15px;
    }

    #about h1, #games h1, #tips h1 {
        font-size: 2.2em;
    }

    .games-container {
        grid-template-columns: 1fr;
    }

    nav a {
        display: block;
        margin: 12px 0;
        font-size: 1.1em;
    }

    .card {
        padding: 25px;
    }

    #gameframe {
        height: 85%;
    }
}

@media (max-width: 480px) {
    header {
        font-size: 2em;
    }

    .card h2 {
        font-size: 1.4em;
    }

    .card p {
        font-size: 0.9em;
    }
}
footer {
    background: linear-gradient(to right, #b71c1c, #c62828);
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.95em;
}

footer p {
    margin-bottom: 8px;
}

footer .disclaimer {
    display: block;
    font-size: 0.8em;
    color: #ffeb3b;
    opacity: 0.85;
}
