/* CSS Generale */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h1 {
    text-align: center;
    color: #333;
}
.selection, .tables, .quiz-section, .results {
    margin: 20px auto;
    max-width: 600px;
    flex: 1;
}
.selection label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}
.tables {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.table-container {
    margin: 10px;
    border: 2px solid transparent;
    padding: 10px;
    border-radius: 5px;
    transition: border-color 0.3s;
    width: 100%;
    max-width: 380px;
}
.table-container.selected {
    border-color: #007BFF;
    background-color: #e6f0ff;
}
table {
    border-collapse: collapse;
    width: 100%;
}
th, td {
    border: 1px solid #999;
    padding: 5px;
    text-align: center;
    width: 40px;
    height: 40px;
}
th {
    background-color: #ddd;
}
#current-kana{
    font-size:5em !important;
}
.hidden {
    display: none;
}
.challenge {
    text-align: center;
}
.challenge .options {
    margin: 20px 0;
}
.option-btn {
    padding: 10px 20px;
    font-size: 1em;
    margin: 5px;
    cursor: pointer;
}
.option-btn:hover {
    background-color: #007BFF;
    color: #fff;
}
.timer, .score {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: 600;
}
.results table {
    width: 100%;
    border-collapse: collapse;
}
.results th, .results td {
    border: 1px solid #999;
    padding: 10px;
    text-align: center;
}
.results th {
    background-color: #ddd;
}
.summary {
    margin-top: 20px;
    font-size: 1.1em;
}
.tables {  
    transform: scale(0.8);
    transform-origin: top;
}
footer {
    text-align: center;
    margin-top: 40px;
    color: #666;
    font-size: 0.9em;
    padding: 10px 0;
    border-top: 1px solid #ccc;
}
@media (max-width: 600px) {
    .tables {
        flex-direction: column;
        align-items: center;
    }
    .table-container {
        width: 100%;
        max-width: none;
    }
}
