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

.game-container {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
}

.game-options {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.game-options label {
    font-weight: bold;
    color: #333;
    margin: 5px;
}

.game-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 5px;
}

canvas {
    background-color: #34495e;
    border: 5px solid #2c3e50;
    display: block;
    max-width: 100%;
    max-height: 60vh;
    margin: 0 auto;
}

.controls {
    margin-top: 20px;
}

.controls button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    margin: 5px;
}

.controls button:hover {
    background-color: #2980b9;
}

.controls button:active {
    transform: scale(0.95);
    background-color: #2980b9;
}

.hidden {
    display: none;
}

#win-message {
    position: fixed; /* Use fixed to overlay properly */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    max-width: 500px;
}

#win-message h2 {
    margin: 0 0 20px 0;
}

#play-again {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
}

#play-again:hover {
    background-color: #c0392b;
}

#skip-message {
    position: static;
    margin-top: 20px;
    padding: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    border-left: 5px solid #27ae60;
}

#skip-message p {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
}

#skip-button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
}

#skip-button:hover {
    background-color: #229954;
}
