body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0 20px;
}
#game, #leaderboard {
    flex: 1;
    max-width: 600px;
    margin: auto;
    text-align: center;
}
#diceContainer {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 50px; /* Better visibility on all devices */
}
.dice span {
    transition: transform 0.1s;
}
.dice-roll {
    transform: rotate(360deg);
}
#scores {
    text-align: left;
    margin-top: 20px;
}
.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.current-category {
    background-color: yellow; /* Highlight the current category */
    font-weight: bold;
}
.completed-category {
    display: flex;
    justify-content: space-between;
}
.completed-category::after {
    content: '✔️'; /* Green check mark */
    color: green;
}
button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    margin: 10px;
}
button:hover {
    background-color: #0056b3;
}
#languageSwitcher {
    text-align: right;
    margin-bottom: 10px;
}
#languageSwitcher select {
    padding: 5px 10px;
    font-size: 16px;
}
footer {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #ccc;
    margin-top: auto;
}
footer p {
    margin: 5px 0;
}
footer a {
    text-decoration: none;
    color: #007bff;
}
footer a:hover {
    text-decoration: underline;
}
.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
@media (max-width: 600px) {
    #diceContainer {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        font-size: 50px;
    }
    #scores {
        font-size: 14px;
    }
    .score-item {
        flex-direction: column;
        align-items: flex-start;
    }
    footer {
        padding: 5px;
    }
}
