/* Verberg de spinner in Chrome, Safari, Edge, en Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Verberg de spinner in Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.spel {
    text-align: center;
}

.username, .doubleButton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 31px;
}

.username {
    margin-top: 50px;
}

.inputName, .sendName {
    margin: auto;
}

.inputName, .sendName, #show-leaderboard, #restart-button, #start-button, #show-leaderboard-settings {
    width: 48%;
}

.username {
    position: relative;
}

#message, #success-message {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px; /* Pas de hoogte aan zoals gewenst */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

#game-container {
    width: 300px;
    height: 500px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

#settings {
    display: flex;
    flex-direction: column;
    height: 450px;
    padding-top: 45px;
}

#stop-button {
    margin-top: 110px;
}

.leaderTitel {
    padding-top: 20px;
    margin-bottom: -35px;
}

label {
    display: block;
    margin-top: 16px;
}

#question {
    font-size: 24px;
    margin-top: 65px;
}

#answer-container {
    margin: 20px 0;
}

input {
    padding: 10px;
    font-size: 16px;
    width: 80px;
    text-align: center;
}

select {
    text-align: center;
    text-align-last: center;
}

.fraction {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fraction-line {
    font-size: 24px;
    margin: 0 5px;
}

.hidden {
    display: none;
}

button {
    margin-top: 16px;
    width: 100%;
}

@media (min-width: 768px) {
    #game-container {
        width: 400px;
    }
}

@media (max-width: 768px) {
    #game-container {
        width: 100%;
    }
}

.filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter-group label {
}

.leaderboard-container {
    max-height: 263px; /* Pas de hoogte aan zoals gewenst */
    overflow-y: auto;
}

#leaderboard table {
    width: 100%;
    border-collapse: collapse;
}

#leaderboard th, #leaderboard td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
}

.final-details-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-detail {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    width: 250px;
}