body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #333;
    color: #fff;
}

body.dark-mode .container {
    background-color: #444;
}

body.dark-mode input[type="text"] {
    background-color: #555;
    color: #fff;
    border: 1px solid #777;
}

h1 {
    margin-bottom: 20px;
}

.setup {
    margin-bottom: 20px;
}

.inputs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.player-inputs,
.result-inputs {
    display: flex;
    flex-direction: column;
}

input[type="text"] {
    margin-bottom: 10px;
    padding: 5px;
}

.controls button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 10px;
}

#ladder-canvas {
    border: 1px solid #ccc;
    margin-top: 20px;
}

#game-results {
    margin-top: 20px;
    font-weight: bold;
}
