/* SET YOUR GAME'S COLOR THEME HERE */
:root {
    --primary-color: #1e30f3;
    --primary-hover: #1a2bd9;
    --hero-gradient-start: rgba(30, 48, 243, 0.1);
    --hero-gradient-end: rgba(226, 30, 128, 0.1);
    --section-bg-start: rgba(30, 48, 243, 0.05);
    --section-bg-end: rgba(226, 30, 128, 0.05);
    --primary-shadow: rgba(30, 48, 243, 0.3);
    --feature-shadow: rgba(30, 48, 243, 0.15);
    --focus-shadow: rgba(30, 48, 243, 0.25);
    --mode-shadow: rgba(30, 48, 243, 0.2);
    --btn-shadow: rgba(30, 48, 243, 0.4);
    --summary-bg-start: rgba(30, 48, 243, 0.1);
    --summary-bg-end: rgba(226, 30, 128, 0.05);
    --accordion-icon-filter: invert(25%) sepia(91%) saturate(4527%) hue-rotate(237deg) brightness(96%) contrast(95%);
}

.game-stats {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
}

.game-stats .stat-card {
    flex: 1;
    min-width: 0;
}

/* Override for 4-column stats in this game */
@media (min-width: 769px) {
    .game-stats.four-column {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .game-stats.four-column {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Override default 3-column stats to show 5 columns on left sidebar */
.left-column .stats-card {
    margin-bottom: 1rem;
}

/* Table Grid Styles */
.times-table-grid {
    border-collapse: collapse;
    margin: 0 auto;
    font-size: 16px;
}

.times-table-grid th,
.times-table-grid td {
    border: 2px solid #333;
    width: 60px;
    height: 60px;
    text-align: center;
    vertical-align: middle;
    padding: 0;
}

.times-table-grid th {
    background-color: #1e30f3;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.times-table-grid .row-header {
    background-color: #1e30f3;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.times-table-grid input {
    width: 100%;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 14px;
    padding: 4px;
    background-color: white;
    color: #333;
}

.times-table-grid input:focus {
    outline: 3px solid #0d6efd;
    outline-offset: -3px;
}

/* Base correct/incorrect styling */
.cell-correct {
    background-color: #d4edda !important;
}

.cell-correct input {
    background-color: #d4edda !important;
    color: #155724 !important;
    font-weight: bold !important;
}

.cell-incorrect {
    background-color: #f8d7da !important;
}

.cell-incorrect input {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    font-weight: bold !important;
}

/* Yellow cross-hair highlighting - higher priority than correct/incorrect */
.highlight-row {
    background-color: #fff59d !important;
}

.highlight-row input {
    background-color: #fff59d !important;
    color: #333 !important;
}

.highlight-col {
    background-color: #fff59d !important;
}

.highlight-col input {
    background-color: #fff59d !important;
    color: #333 !important;
}

/* Current focused cell gets slightly darker yellow */
.highlight-current {
    background-color: #fff176 !important;
}

.highlight-current input {
    background-color: #fff176 !important;
    color: #333 !important;
    font-weight: bold !important;
}

.game-grid-container {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto 2rem auto;
    display: block;
    width: fit-content;
    text-align: center;
}

#finishBtn {
    background: linear-gradient(135deg, #1e30f3, #1a2bd9);
    animation: pulse-button 2s ease-in-out infinite;
}

@keyframes pulse-button {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(30, 48, 243, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 25px rgba(30, 48, 243, 0.6); }
}

#finishBtn:hover {
    animation: none;
    transform: scale(1.05);
}

#startSection {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#startSection h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.navigation-instructions {
    background-color: #e7f3ff;
    border: 1px solid #bee5eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.review-mistakes {
    margin-top: 2rem;
}

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.mistakes-grid.wide {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .mistakes-grid,
    .mistakes-grid.wide {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mistake-item {
    background: #fff;
    border: 2px solid #f8d7da;
    border-radius: 0.5rem;
    padding: 1rem;
}

.mistake-item.corrected {
    border-color: #d4edda;
}

.no-mistakes {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    border-radius: 1rem;
    border: 2px dashed #28a745;
}

@keyframes flash-correct {
    0%, 100% {
        background-color: transparent;
        border-color: transparent;
    }
    50% {
        background-color: rgba(76, 175, 80, 0.2);
        border: 3px solid #4caf50;
    }
}

@keyframes flash-wrong {
    0%, 100% {
        background-color: transparent;
        border-color: transparent;
    }
    50% {
        background-color: rgba(244, 67, 54, 0.2);
        border: 3px solid #f44336;
    }
}

.content-card.flash-correct {
    animation: flash-correct 0.6s ease;
}

.content-card.flash-wrong {
    animation: flash-wrong 0.6s ease;
}

/* Clickable steps */
.step.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.step.clickable:hover {
    transform: scale(1.05);
}

.step.clickable:hover .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Locked steps (non-clickable) */
.step.locked {
    cursor: not-allowed;
    opacity: 0.5;
}

.step.locked:hover {
    transform: none;
}

@media (max-width: 1199px) {
    .times-table-grid th,
    .times-table-grid td {
        width: 50px;
        height: 50px;
    }

    .times-table-grid th {
        font-size: 14px;
    }

    .times-table-grid .row-header {
        font-size: 14px;
    }

    .times-table-grid input {
        font-size: 12px;
        padding: 3px;
    }
}

@media (max-width: 991px) {
    .times-table-grid {
        font-size: 14px;
    }

    .times-table-grid th,
    .times-table-grid td {
        width: 45px;
        height: 45px;
    }

    .times-table-grid th {
        font-size: 13px;
    }

    .times-table-grid .row-header {
        font-size: 13px;
    }

    .times-table-grid input {
        font-size: 11px;
        padding: 2px;
    }
}

@media (max-width: 768px) {
    .times-table-grid {
        font-size: 12px;
    }

    .times-table-grid th,
    .times-table-grid td {
        width: 35px;
        height: 35px;
    }

    .times-table-grid th {
        font-size: 11px;
    }

    .times-table-grid .row-header {
        font-size: 11px;
    }

    .times-table-grid input {
        font-size: 10px;
        padding: 1px;
    }

    .navigation-instructions {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .times-table-grid th,
    .times-table-grid td {
        width: 30px;
        height: 30px;
    }

    .times-table-grid th {
        font-size: 10px;
    }

    .times-table-grid .row-header {
        font-size: 10px;
    }

    .times-table-grid input {
        font-size: 9px;
        padding: 1px;
    }
}
