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

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
    background-color: #fff9e6;
    color: #333;
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 3rem;
    color: #e67e00;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Table selector */
.table-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.table-btn input {
    display: none;
}

.table-btn {
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: #4fc3f7;
    color: white;
    font-size: 2rem;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.1s;
}

.table-btn:has(input:checked) {
    background: #0288d1;
    transform: scale(1.1);
}

/* Buttons */
.start-btn, .check-btn, .next-btn, .btn {
    display: inline-block;
    padding: 20px 40px;
    font-size: 2rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background: #66bb6a;
    color: white;
    margin: 10px;
}

.btn.secondary {
    background: #bdbdbd;
}

/* Question */
.question {
    font-size: 4rem;
    margin: 30px 0;
    font-weight: bold;
    color: #333;
}

/* Number pad */
.numpad {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 10px;
    justify-content: center;
    margin: 20px auto;
}

.numpad-btn {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    border: none;
    border-radius: 15px;
    background: #fff176;
    cursor: pointer;
    transition: transform 0.1s;
}

.numpad-btn:active {
    transform: scale(0.95);
}

.delete-btn {
    background: #ef9a9a;
}

/* Feedback */
.feedback {
    font-size: 2rem;
    margin-top: 20px;
    padding: 15px;
    border-radius: 15px;
}

.feedback.correct {
    background: #c8e6c9;
    color: #2e7d32;
}

.feedback.incorrect {
    background: #ffcdd2;
    color: #c62828;
}

.hidden {
    display: none;
}

/* Progress */
.progress-bar {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 10px;
}

/* Results */
.score {
    font-size: 3rem;
    font-weight: bold;
    color: #e67e00;
    margin: 20px 0;
}

.encouragement {
    font-size: 2rem;
    margin-bottom: 30px;
}
