body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: Arial, sans-serif;
    margin: 0;
    height: 100vh;
    color: white; !important;
    background-color: #000000; !important;
}

.game-container {
    text-align: center;
}
#closeButton {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    float: right;
}
#gameCanvas {
    background-color: #000;
    display: block;
    margin: 20px auto;
    border: 2px solid #ffffff;
}

#restart {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 30px;
    transition-duration: 0.5s;
}
.b {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 30px;
    transition-duration: 0.5s;
}
a:hover {
    color: white;
    text-decoration: underline;
    font-weight: bold;
    font-size: 30px;
    transition-duration: 0.5s;
}
/* Popup container styling */
#nameInputContainer {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    color: white;
    transform: translate(-50%, -50%);
    background-color: #222452;
    border: 2px solid black;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
#playerName {
    width: auto;
}
#submitScore {
    background-color: #0d5ca6;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

input[type="text"] {
    margin: 10px 0;
    padding: 8px;
    width: 100%;
    font-size: 16px;
}

button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.button {
    padding: 10px 15px;
    background-color: #14819d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition-duration: 1s;
}
.button:hover {
    background-color: #d5820e;
    transition-duration: 1s;
}
button:hover {
    background-color: #45a049;
}

table {
    width: 50%;
    margin: 20px auto;
    border-collapse: collapse;
    text-align: left;
    background-color: black;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
}

th {
    background-color: #000000;
    max-width: 20%;
}
/* Beperk de naamkolom */
td:nth-child(2) { /* 2e kolom: Naam */
    max-width: 150px; /* Beperk de breedte */
    word-wrap: break-word; /* Breek woorden af */
    white-space: pre-wrap; /* Sta meerdere regels toe */
}
#scoreboard {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    width: 20%;
    z-index: 1000;
}
.koptekst {
    font-size: 1.2vmax;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}
#speluitleg {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    font-size: 0.7vmax;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 30px 30px 30px;
    width: 20%;
    z-index: 1000;
}
#scoreboard h3 {
    margin: 0;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

#scoreboard ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0 0;
}

#scoreboard ul li {
    font-size: 14px;
    line-height: 1.5;
}
.tekst {
    color: black;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}
#colorButtons button {
     margin: 5px;
     padding: 10px 20px;
     font-size: 16px;
     cursor: pointer;
     border: none;
    color: black;
     border-radius: 5px;
     background-color: #f0f0f0;
 }
#colorButtons button:hover {
    background-color: #ddd;
}
.score_tekst {
    font-weight: bold;
    font-size: 25px;
    background-color: white;
    color: black;
    border-radius: 10px;
}
#colorButtons button.active {
    background-color: #da0d0d; /* Actieve kleur */
    color: white; /* Optioneel: witte tekst voor contrast */
}