styles.css

* { box-sizing: border-box; }

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f0f4f8;
    color: #333;
}

#page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#game-container {
    flex: 1;
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}

footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 14px;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}




h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}
#game-area {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}
#questions-area, #answers-area { width: 48%; }
.question, .answer {
    margin: 5px 0;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    text-align: center;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-weight: 600;
}
.question {
    background: #3498db;
    color: #fff;
    cursor: move;
    touch-action: none;
}
.answer { background: #ecf0f1; }
.correct { background: #2ecc71; color: #fff; }
#score-display {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}
#incorrect-answer-overlay, #completion-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.8);
    justify-content: center;
    align-items: center;
}
#incorrect-answer-box, #completion-box {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}
.highlight { background-color: #f39c12!important; }
#controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
#table-range { display: flex; align-items: center; }
#performance-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 2px;
    margin-top: 1.5rem;
}

#student-name-container {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

#student-name-container label {
    margin-right: 10px;
    font-weight: 600;
}

#student-name {
    padding: 5px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex-grow: 1;
}

.performance-summary-button {
    margin-top: 20px;
}

.grid-cell {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
}

.grid-cell .percentage {
    font-weight: bold;
}

.grid-cell .attempts {
    font-size: 10px;
    opacity: 0.7;
}

.grid-header {
    background-color: #34495e;
    color: #fff;
    font-weight: 600;
}

.grid-data { background-color: #ecf0f1; }
.green { background-color: #2ecc71; }
.yellow { background-color: #f1c40f; }
.red { background-color: #e74c3c; }
.disabled { background-color: #bdc3c7; color: #7f8c8d; }
select, button, input[type="checkbox"] {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    padding: .5rem;
    border-radius: 5px;
    border: 1px solid #bdc3c7;
    background: #fff;
    color: #333;
    transition: all .3s ease;
}
select:focus, button:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,.3);
}
button {
    cursor: pointer;
    background: #3498db;
    color: #fff;
    border: none;
    padding: .5rem 1rem;
}
button:hover { background: #2980b9; }
#progress-bar {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}
#progress {
    width: 0;
    height: 100%;
    background: #3498db;
    transition: width .3s ease;
}
@media (max-width: 768px) {
    #game-container {
        width: 95%;
        padding: 1rem;
    }
    #game-area {
        flex-direction: column;
    }
    #questions-area, #answers-area {
        width: 100%;
    }
}