* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e8d5c4;
    position: relative;
}


/* Main Content Container */
.container {
    max-width: 1200px;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
    margin: 20px;
    margin-top: 20px;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5em;
    color: #daa520;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.2em;
    color: #d4af37;
    margin-bottom: 20px;
}

/* Word Overview Section */
.word-overview {
    background: rgba(40, 40, 40, 0.8);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(184, 134, 11, 0.3);
}

.overview-title {
    font-size: 1.8em;
    color: #daa520;
    margin-bottom: 25px;
    text-align: center;
}

.word-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.word-item {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8) 0%, rgba(160, 82, 45, 0.8) 100%);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(218, 165, 32, 0.3);
    font-weight: bold;
    color: #e8d5c4;
    font-size: 1.1em;
    text-align: center;
}

/* Activity Cards */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.activity-card {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    border: 2px solid transparent;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(218, 165, 32, 0.3);
    border-color: #daa520;
}

.activity-header {
    padding: 20px;
    text-align: center;
    color: #e8d5c4;
}

.activity-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.activity-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #e8d5c4;
}

.activity-description {
    font-size: 0.9em;
    opacity: 0.9;
    color: #e8d5c4;
}

.activity-body {
    padding: 15px;
    background: rgba(26, 26, 26, 0.8);
    border-top: 1px solid rgba(184, 134, 11, 0.3);
}

.feature-list {
    list-style: none;
}

.feature-item {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: #d4af37;
    font-size: 0.9em;
}

.feature-item:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #b8860b;
    font-weight: bold;
}

/* Activity specific colors */
.rootwords-header {
    background: linear-gradient(135deg, #2d5016 0%, #3d6e20 100%);
}

.context-header {
    background: linear-gradient(135deg, #704214 0%, #8b5a00 100%);
}

.games-header {
    background: linear-gradient(135deg, #4a0080 0%, #6a0dad 100%);
}

.flashcards-header {
    background: linear-gradient(135deg, #2874a6 0%, #1b5e8f 100%);
}

.reverse-header {
    background: linear-gradient(135deg, #b03a2e 0%, #922b21 100%);
}

.quiz-header {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
        border-radius: 15px;
        margin-top: 60px;
    }

    h1 {
        font-size: 2em;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .word-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
