/* General Styling */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: background 0.3s, color 0.3s;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 500px;
    margin-bottom: 20px;
}

#themeToggle {
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    background: #ddd;
    border: none;
    border-radius: 5px;
}

#themeToggle:hover {
    background: #ccc;
}

/* Input Section */
.input-section {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

input, button {
    padding: 12px;
    margin: 5px;
    font-size: 18px;
    width: 90%;
    max-width: 300px;
    text-align: center;
}

/* Player List (Centered) */
.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

/* Players */
.player {
    width: 90%;
    max-width: 350px;
    padding: 12px;
    margin: 8px;
    border: 2px solid black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    font-size: 1.2em;
    transition: background 0.3s, color 0.3s;
}

.player.active {
    background-color: lightgreen;
    font-weight: bold;
}

/* Timer Text */
.player span {
    font-size: 1.2em;
}

/* Buttons */
.big-button {
    font-size: 28px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    background-color: orange;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
}

.big-button:hover {
    background-color: darkorange;
}

/* End Game Button */
.end-game-button {
    font-size: 22px;
    padding: 15px;
    width: 90%;
    max-width: 300px;
    background-color: #cc4444;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
}

.end-game-button:hover {
    background-color: #bb3333;
}

/* DARK MODE */
.dark-mode {
    background-color: #121212;
    color: #fff;
}

.dark-mode .player {
    background-color: #222;
    border-color: white;
}

.dark-mode .player.active {
    background-color: #3b7b3b;
}

.dark-mode .player span {
    color: #ddd;
}

.dark-mode .player span.red {
    color: #ff6666;
}

.dark-mode .player span.green {
    color: #66ff66;
}
