:root {
    --primary-color: #77dd77;
    --secondary-color: #a8e6cf;
    --accent-color: #dcedc1;
    --light-color: #e8f5e9;
    --text-color: #2e7d32;
    --white: #ffffff;
}

* {
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #fff;
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header .navigation ul li {
    float: left;
    position: relative;
}

.header .navigation ul li a {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    padding: 22px 20px;
    display: block;
    transition: all 0.3s ease;
}

.header .navigation ul li a:hover {
    background-color: rgba(255, 255, 255, 0.733);
    transform: translateY(-2px);
    color: var(--text-color);
}

#toggle,
.header label {
    display: none;
    cursor: pointer;
}

.menu {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

@media (max-width: 950px) {
    .header label {
        display: initial;
    }

    .header {
        padding: 15px 10%;
    }

    .header .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        display: none;
        border-radius: 0 0 12px 12px;
    }

    .header .navigation ul li {
        width: 100%;
    }

    .header .navigation ul li a {
        padding: 12px 20px;
    }

    #toggle:checked ~ .navigation {
        display: block;
        animation: slideDown 0.4s ease-out;
    }
}

/* Body Styles */
body {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9, #a5d6a7);
    margin: 0;
    padding: 0;
    padding-top: 80px;
    min-height: 100vh;
    color: var(--text-color);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Game Container */
.game-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 90%;
    max-width: 800px;
    margin: 20px 0;
}

h1 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.word-bank {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.word-item {
    background-color: var(--accent-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.word-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.word-item.selected {
    background-color: var(--primary-color);
    color: white;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .food-grid {
        grid-template-columns: 1fr;
    }
}

.food-item {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.food-image {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.food-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.answer-box {
    width: 100%;
    padding: 8px;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    text-align: center;
}

.check-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
}

.check-btn:hover {
    background-color: #66bb6a;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.results {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    display: none;
}

.correct {
    background-color: #e8f5e9;
    border-left: 5px solid #4caf50;
}

.incorrect {
    background-color: #ffebee;
    border-left: 5px solid #f44336;
}

/* Sentence Ordering Activity */
.sentence-ordering {
    width: 100%;
    margin-top: 30px;
}

.sentence-ordering h3 {
    margin-bottom: 15px;
}

.sentence-pieces {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.sentence-piece {
    background-color: var(--light-color);
    padding: 12px 15px;
    border-radius: 8px;
    cursor: move;
    transition: all 0.2s;
}

.sentence-piece:hover {
    background-color: var(--accent-color);
}

.sentence-container {
    min-height: 100px;
    border: 2px dashed var(--secondary-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sentence-feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

/* Animations */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}