body {
    font-family: Arial, sans-serif;
    background-color: white; /* Light mode background */
    color: black; /* Light mode text color */
}

.night-mode {
    background-color: black; /* Dark mode background */
    color: white; /* Dark mode text color */
}

.header {
    text-align: center; /* Center the title and toggle button */
    margin-bottom: 20px; /* Space below the header */
}

#instructions {
    text-align: center; /* Center the instructions text */
    margin: 20px auto; /* Center the div and add space */
    padding: 10px; /* Padding inside the div */
    background-color: #f0f0f0; /* Light background for visibility */
    border-radius: 5px; /* Rounded corners */
    max-width: 600px; /* Limit width for readability */
}

.night-mode #instructions {
    background-color: #333; /* Dark background in night mode */
    color: white; /* Ensure text is readable in dark mode */
}

#game-container {
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center align player sections */
    margin: 20px; /* Space around the game container */
}

.player {
    border: 1px solid #ccc;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    text-align: center; /* Center align text within player sections */
    width: 300px; /* Added width to make player section broader */
}

button {
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
}

button:hover {
    background-color: #0056b3;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    text-align: center; /* Center align text in modal */
    color: black; /* Ensure text is readable in light mode */
}

.night-mode .modal-content {
    background-color: #333;
    border-color: #555;
    color: white; /* Ensure text is readable in dark mode */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.night-mode .close:hover,
.night-mode .close:focus {
    color: white;
}

#restartButton {
    background-color: blue;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.night-mode #restartButton {
    background-color: #0066cc;
}
