/* Lesson specific styles */
.lesson-header {
    background: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.lesson-header h1, .lesson-header i, .lesson-header .subject-badge {
    color: var(--primary-color);
}
.lesson-header .subject-badge {
    background: rgba(57, 255, 20, 0.2);
}
.back-btn-header {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s;
}
.back-btn-header:hover {
    transform: scale(1.1);
}

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 10px;
}
.tab-btn {
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    background: var(--secondary-color);
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: 2px 2px 0px rgba(57, 255, 20, 0.5);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Orbitron', 'Cairo', sans-serif;
    flex: 1 1 auto;
    min-width: 150px;
    max-width: 100%;
}
.tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary-color);
    background: rgba(57, 255, 20, 0.1);
}
.tab-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.tab-content.active-tab {
    display: block;
}

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

.lesson-card-large, .exercise-card {
    background: rgba(20, 30, 20, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 0;
    padding: 40px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5), inset 0 0 15px rgba(57, 255, 20, 0.1);
    margin-bottom: 30px;
}

.lesson-title, .exercise-title {
    font-family: 'Orbitron', 'Cairo', sans-serif;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 3px dashed var(--primary-color);
    padding-bottom: 15px;
}

.info-box {
    background: rgba(0, 0, 0, 0.5);
    border-right: 5px solid var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 20px;
    border-radius: 0;
    margin-bottom: 25px;
}
.definition-box h3 {
    color: var(--grammar-color);
    margin-bottom: 10px;
}

.qa-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    padding: 20px;
    margin-bottom: 25px;
}
.question {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.q-mark { color: #EF4444; margin-left: 5px; }
.answer {
    font-size: 1.1rem;
    color: var(--text-main);
}
.a-mark { color: #10B981; margin-left: 5px; font-weight: bold; }

.equation-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    align-items: center;
}
.equation {
    background: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 0;
    box-shadow: 2px 2px 0px rgba(57, 255, 20, 0.5);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--primary-color);
}
.equation small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: normal;
}
.equation .result {
    color: var(--grammar-color);
    font-size: 1.8rem;
}

.highlight-text {
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid var(--primary-color);
}
.final-sentence {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin: 15px 0;
    font-family: 'Orbitron', 'Cairo', sans-serif;
    text-shadow: 0 0 10px var(--primary-color);
}

.alphabet-table-container {
    overflow-x: auto;
}
.alphabet-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    margin-top: 20px;
}
.alphabet-table th {
    background: var(--primary-color);
    color: black;
    padding: 15px;
    border: 1px solid var(--primary-color);
}
.alphabet-table td {
    padding: 12px;
    border: 1px solid rgba(57, 255, 20, 0.3);
    font-size: 1.2rem;
    color: white;
}
.alphabet-table tr:nth-child(even) {
    background-color: rgba(57, 255, 20, 0.1);
}
.alphabet-table td:nth-child(2), .alphabet-table td:nth-child(5) {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Exercises */
.exercise-instruction {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.word-list {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}
.exercise-note {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
}
.example-note {
    background: rgba(57, 255, 20, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-right: 4px solid var(--primary-color);
    margin-top: 20px;
    color: white;
}

.table-exercise {
    display: flex;
    justify-content: center;
    gap: 0;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}
.table-exercise .column {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.table-exercise .header {
    background: rgba(57, 255, 20, 0.2);
    font-weight: bold;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    color: white;
}
.table-exercise .words-col { border-left: 2px solid var(--primary-color); }
.cell {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(57, 255, 20, 0.3);
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}
.cell:last-child { border-bottom: none; }
.cell input {
    width: 60px;
    text-align: center;
    font-size: 1.2rem;
    padding: 5px;
    border: 2px solid #9CA3AF;
    border-radius: 5px;
}

/* Match Words Exercise */
.match-words {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: 40px auto;
}
.words-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 2;
}
.word-node {
    background: #111;
    border: 2px solid var(--primary-color);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.word-node.selected {
    background: var(--grammar-color);
    color: white;
    transform: scale(1.05);
}
.word-node.matched {
    background: #10B981;
    border-color: #059669;
    color: white;
    cursor: default;
}
#lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
line {
    stroke: #9CA3AF;
    stroke-width: 3;
    stroke-linecap: round;
}
line.matched-line {
    stroke: #10B981;
    stroke-width: 4;
}

/* Exercise 3 */
.t3-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 2px solid #374151;
}
.t3-table th, .t3-table td {
    border: 1px solid #374151;
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}
.t3-table th { background: #F3F4F6; }
.t3-table input {
    width: 90%;
    padding: 10px;
    font-size: 1.1rem;
    text-align: center;
    border: 2px solid #D1D5DB;
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
}
.correct-input { border-color: #10B981 !important; background: #F0FDF4; }
.wrong-input { border-color: #EF4444 !important; background: #FEF2F2; }

.btn {
    display: block;
    margin: 20px auto 0;
    padding: 12px 30px;
    font-size: 1.2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
    transition: all 0.2s;
}
.check-btn {
    background: var(--grammar-color);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
/* Lesson 2 specific styles */
.controls-list {
    list-style: none;
    margin-top: 10px;
    padding-right: 20px;
}
.controls-list li {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 5px;
}

.control-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 1px solid var(--primary-color);
}
.control-head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Orbitron', 'Cairo', sans-serif;
}
.badge {
    background: var(--primary-color);
    color: black;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.example-item {
    background: rgba(57, 255, 20, 0.1);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
    border: 1px solid rgba(57, 255, 20, 0.3);
}
.old { color: rgba(255, 255, 255, 0.5); text-decoration: line-through; }
.new { color: var(--primary-color); font-weight: bold; text-shadow: 0 0 5px var(--primary-color); }

.example-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}
.bubble {
    background: rgba(57, 255, 20, 0.15);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.2rem;
    color: white;
    border: 1px solid var(--primary-color);
}

.highlight-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    border-right: 5px solid var(--primary-color);
    margin: 15px 0;
    color: white;
}

.word-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.word-cloud span {
    background: rgba(57, 255, 20, 0.15);
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    color: white;
    border: 1px solid var(--primary-color);
}

/* Exercise Grids */
.interactive-grid, .madda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.exercise-item-box {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--primary-color);
}
.exercise-item-box input {
    width: 100%;
    text-align: center;
    padding: 8px;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-family: 'Orbitron', 'Cairo', sans-serif;
    font-size: 1.1rem;
    background: #111;
    color: white;
}

.wasl-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.wasl-row {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(57, 255, 20, 0.1);
    padding: 10px 20px;
    border-radius: 10px;
    color: white;
    border: 1px solid var(--primary-color);
}
.wasl-row input {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    font-family: 'Orbitron', 'Cairo', sans-serif;
    text-align: center;
    background: #111;
    color: white;
}

.vowel-exercise {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.vowel-item {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    color: white;
}
.vowel-word {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--primary-color);
}
.vowel-options {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.vowel-opt {
    padding: 10px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    background: #111;
    color: white;
    transition: all 0.2s;
    font-size: 1.5rem;
}
.vowel-opt.selected {
    background: var(--primary-color);
    color: black;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}
.vowel-opt.correct { background: #10B981; color: white; border-color: #10B981; }
.vowel-opt.wrong { background: #EF4444; color: white; border-color: #EF4444; }

/* SPA View Management */
.view-section {
    animation: fadeIn 0.4s ease-out;
}

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

/* Animations */
.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Ensure lesson-viewer header is consistent */
.lesson-viewer .section-header {
    margin-bottom: 20px;
}
/* Reading Lesson Styles */
.reading-content-box {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    margin: 30px 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.reading-header {
    background: rgba(57, 255, 20, 0.2);
    color: var(--primary-color);
    padding: 12px 25px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    gap: 10px;
    font-size: 1.2rem;
}

.audio-btn {
    background: var(--primary-color);
    color: black;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', 'Cairo', sans-serif;
    transition: all 0.2s;
    font-weight: bold;
}

.audio-btn:hover {
    background: #66ff66;
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--primary-color);
}

.audio-btn.playing {
    background: #EF4444;
    color: white;
}


.reading-text-body {
    padding: 30px;
    font-size: 1.8rem;
    line-height: 2;
    text-align: center;
    color: white;
    font-family: 'Orbitron', 'Cairo', sans-serif;
    white-space: pre-line;
}

.reading-text-body strong {
    color: #B45309;
}

.reading-text-body .verse {
    font-family: 'Changa', sans-serif;
    font-size: 2rem;
    color: #065F46;
    background: #ECFDF5;
    padding: 20px;
    border-radius: 15px;
    display: block;
    margin: 15px 0;
    border: 1px solid #A7F3D0;
}

.reading-text-body .source {
    font-size: 1rem;
    color: #92400E;
    margin-top: 10px;
    font-style: italic;
}

/* Poem Styles */
.poem-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    border: 2px solid var(--primary-color);
}

.poem-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--primary-color);
}

.poem-row:last-child {
    border-bottom: none;
}

.poem-row span {
    flex: 1;
    font-size: 1.6rem;
    color: white;
    font-weight: bold;
}

.poem-row span:first-child {
    text-align: right;
}

.poem-row span:last-child {
    text-align: left;
}

.clickable-sentence {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 2px 4px;
    display: inline;
}

.clickable-sentence:hover {
    background-color: rgba(57, 255, 20, 0.2);
    text-decoration: underline decoration-style dotted;
    color: var(--primary-color);
}

.clickable-sentence.speaking-now {
    background-color: var(--primary-color);
    color: black;
    box-shadow: 0 0 15px var(--primary-color);
    font-weight: bold;
    transform: scale(1.02);
}

/* Games Section Styles */
.games-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
}

.game-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2), inset 0 0 20px rgba(57, 255, 20, 0.1);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(57, 255, 20, 0.03) 10px, rgba(57, 255, 20, 0.03) 20px);
    z-index: 0; pointer-events: none;
}

.game-title {
    color: var(--primary-color);
    font-family: 'Orbitron', 'Cairo', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--primary-color);
    position: relative; z-index: 1;
}

.game-desc {
    color: white;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative; z-index: 1;
}

.game-msg {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    min-height: 30px;
    color: var(--primary-color);
}

/* Drag & Drop */
.drag-drop-game {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.ships-container {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}
.spaceship {
    width: 100px;
    height: 100px;
    border: 3px dashed var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    background: rgba(57, 255, 20, 0.1);
    transition: all 0.3s;
}
.spaceship.drag-over {
    background: rgba(57, 255, 20, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-color);
}
.meteors-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    min-height: 80px;
}
.meteor {
    background: #ff4444;
    color: white;
    padding: 15px 25px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: grab;
    box-shadow: 0 0 15px #ff4444;
    transition: transform 0.2s;
}
.meteor:active { cursor: grabbing; transform: scale(0.9); }
.meteor.hide { display: none; }

/* Memory Game */
.memory-game {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    perspective: 1000px;
}
.mem-card {
    width: 100%;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}
.mem-card.flip { transform: rotateY(180deg); }
.mem-face {
    position: absolute; width: 100%; height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: bold;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}
.mem-front {
    background: #111;
    color: var(--primary-color);
}
.mem-back {
    background: var(--primary-color);
    color: black;
    transform: rotateY(180deg);
}

/* Sequence Catch */
.sequence-game {
    display: flex; flex-direction: column; align-items: center; gap: 30px;
}
.portal-target {
    display: flex; gap: 10px;
}
.portal-slot {
    width: 60px; height: 60px;
    border: 2px solid #00ffff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: white;
    background: rgba(0, 255, 255, 0.1);
    box-shadow: inset 0 0 10px #00ffff;
}
.floating-orbs {
    display: flex; gap: 20px; justify-content: center; width: 100%;
}
.letter-orb {
    width: 60px; height: 60px;
    background: radial-gradient(circle, #00ffff, #005555);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: black; font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 20px #00ffff;
    transition: transform 0.2s;
}
.letter-orb:hover { transform: scale(1.2); }
.letter-orb.hidden { opacity: 0; pointer-events: none; }

/* Smash Game (Lesson 2) */
.smash-game {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.smash-item {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid #ff4444;
    border-radius: 15px;
    padding: 20px 40px;
    cursor: pointer;
    box-shadow: inset 0 0 15px rgba(255, 68, 68, 0.4), 0 0 10px rgba(255, 68, 68, 0.4);
    transition: transform 0.2s;
    user-select: none;
}
.smash-item:active { transform: scale(0.9); }
.smash-item.smashed {
    pointer-events: none;
}

/* Wasl Energy Game (Lesson 2) */
.wasl-drag-game {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}
.wasl-row-game {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}
.wasl-drop-zone {
    flex: 1;
    min-height: 80px;
    border: 3px dashed var(--primary-color);
    border-radius: 15px;
    background: rgba(57, 255, 20, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
    transition: all 0.3s;
}
.wasl-drag-over {
    background: rgba(57, 255, 20, 0.5);
    box-shadow: 0 0 20px var(--primary-color);
    transform: scale(1.05);
}
.wasl-draggable {
    flex: 1;
    min-height: 80px;
    background: linear-gradient(45deg, #111, #333);
    border: 2px solid #00ffff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #00ffff;
    font-weight: bold;
    cursor: grab;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}
.wasl-draggable:active { cursor: grabbing; transform: scale(0.95); }

/* Cannon Game (Lesson 2) */
.cannon-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}
.cannon-target-area {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}
.cannon-word {
    font-size: 2.5rem;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ffff;
    color: white;
    text-shadow: 0 0 10px #00ffff;
    transition: all 0.3s;
}
.cannons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.cannon-btn {
    background: linear-gradient(to top, #111, #333);
    border: 3px solid var(--primary-color);
    border-bottom-width: 10px;
    border-radius: 15px;
    padding: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 10px 0 rgba(57, 255, 20, 0.2);
    transition: all 0.1s;
    user-select: none;
}
.cannon-btn:active {
    transform: translateY(10px);
    border-bottom-width: 0px;
    box-shadow: none;
    background: var(--primary-color);
    color: black;
}

/* Games Menu */
.games-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 20px;
}
.game-menu-btn {
    width: 80%;
    max-width: 400px;
    background: linear-gradient(45deg, rgba(0,255,255,0.1), rgba(57,255,20,0.1));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(57,255,20,0.2);
}
.game-menu-btn i {
    font-size: 2rem;
    color: var(--primary-color);
}
.game-menu-btn:hover {
    transform: scale(1.05);
    background: rgba(57, 255, 20, 0.2);
    box-shadow: 0 0 20px var(--primary-color);
}
.game-menu-btn:active {
    transform: scale(0.95);
}
.back-to-menu-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 68, 68, 0.2);
    border: 2px solid #ff4444;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.back-to-menu-btn:hover {
    background: #ff4444;
    color: black;
    box-shadow: 0 0 15px #ff4444;
}


