/* --- Allgemeines Layout --- */
body {
    margin: 0;
    padding: 0;
    background: #f3f5ff;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #4a4a4a;
    text-align: center;
}

/* Zentrierte Menüseite */
.menu {
    margin-top: 80px;
}

/* Eingabefelder */
.input-group {
    margin: 20px 0;
    font-size: 18px;
}

input, select {
    padding: 10px;
    margin-top: 8px;
    width: 250px;
    max-width: 80%;
    border-radius: 10px;
    border: 2px solid #cdd3ff;
    font-size: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    background: #a8c6ff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #8eb3ff;
}

.btn.secondary {
    background: #ffb4c7;
}

.btn.secondary:hover {
    background: #ff9cb5;
}

/* --- Spielbereich --- */
#game-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

/* Seitenpanel */
#side-panel {
    width: 200px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 0px 15px #d7d9f5;
}

#side-panel h3, #side-panel h2 {
    color: #5c6fb5;
}

/* Canvas */
canvas {
    background: white;
    border: 4px solid #c7d4ff;
    border-radius: 10px;
}

/* --- Overlays (Pause + GameOver) --- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(200, 210, 255, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

.overlay-box {
    background: white;
    padding: 30px 40px;
    width: 300px;
    border-radius: 15px;
    box-shadow: 0 0 20px #cdd2ff;
}

.overlay-box h2 {
    color: #5466b5;
}
