﻿html, body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    font-family: 'Poppins', sans-serif;
    color: #ffd700;
}

main {
    flex: 1;
}

/* HEADER */
.kids-header.single-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(90deg, #0b1020, #111827);
    border-bottom: 1px solid #1f2937;
}

.brand-left {
    font-size: 18px;
    font-weight: 600;
    color: #ffd166;
}

    .brand-left span {
        color: #ffffff;
    }

.brand-center {
    font-size: 16px;
    font-weight: 600;
    color: #6cf2c2;
    text-align: center;
}

.brand-right {
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: #ff9f1c;
}

/* AD */
.ad-slot {
    max-width: 728px;
    height: 90px;
    margin: 10px auto;
    background: #111;
    border: 1px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}


/*Index Pages*/
.kids-index {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.kids-heading {
    font-size: 28px;
    color: #ffd700;
    margin-bottom: 8px;
}

.kids-subtitle {
    color: #aaa;
    margin-bottom: 30px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.game-card {
    background: #111;
    border-radius: 14px;
    padding: 25px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.12);
    transition: 0.25s ease;
    border: 1px solid #222;
}

    .game-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.25);
    }

.game-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.game-card h3 {
    color: #ffd700;
    margin-bottom: 8px;
}

.game-card p {
    font-size: 14px;
    color: #bbb;
    min-height: 40px;
}

.play-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: #ffd700;
    color: #000;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.coming-soon {
    opacity: 0.6;
    pointer-events: none;
}

.disabled {
    background: #555;
    color: #ccc;
}

/* GAME */
.game-container {
    max-width: 420px;
    margin: 40px auto;
    background: #111;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(255,215,0,0.15);
    text-align: center;
}

.title {
    margin-bottom: 15px;
}

.level-select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #222;
    color: #ffd700;
    margin-bottom: 20px;
}

.question-box {
    background: #000;
    padding: 15px;
    border-radius: 10px;
    font-size: 22px;
    margin-bottom: 15px;
}

.options-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.option-btn {
    background: #1f1f1f;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
}

    .option-btn:hover {
        background: #333;
        transform: scale(1.03);
    }

.correct {
    background: #1f6f4a !important;
    color: #fff;
}

.wrong {
    background: #7a1f1f !important;
    color: #fff;
}

.result-box {
    margin-top: 15px;
    font-size: 18px;
}

/* FOOTER */
.kids-footer {
    background: #000;
    border-top: 1px solid #222;
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
    color: #aaa;
}

    .kids-footer a {
        color: #ffd700;
        text-decoration: none;
        font-weight: 500;
        margin: 0 6px;
    }

        .kids-footer a:hover {
            color: #ffffff;
        }

    .kids-footer .tagline {
        color: #888;
    }




/* Back Button Container */
.back-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-btn {
    font-size: 14px;
    color: #6cf2c2;
    background: #111;
    padding: 5px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
    border: 1px solid #6cf2c2;
}

    .back-btn:hover {
        background: #6cf2c2;
        color: #0a0a0a;
        border: 1px solid #ffd166;
    }


/* Ensure it aligns nicely with brand */
.brand-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #ffd166;
}

    .brand-left span {
        color: #ffffff;
    }
