body { 
    margin: 0; 
    display: flex; 
    height: 100vh;
    width: 100vw;
    /* Pfad angepasst: Eine Ebene höher als zuvor */
    background-image: url('../shared/hintergrund/chinese.png'); 
    background-size: cover; 
    background-position: center;
    overflow: hidden; 
    font-family: sans-serif; 
}

#game-container {
    flex: 5;
    position: relative;
    overflow: hidden;
}

#sidebar {
    flex: 1;
    background-color: #2c3e50; 
    color: white;
    padding: 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 20;
    border-left: 2px solid #d2b48c;
    /* Scrollbarkeit */
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}

canvas { display: block; }

.info-panel {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #d2b48c;
}

h2 { margin-top: 0; color: #d2b48c; font-size: 1.2em; }

.stat-row { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 8px; 
}

.stat-label { color: #bdc3c7; }
.stat-value { font-weight: bold; color: #d2b48c; }

/* Styles für die Buttons innerhalb der Sidebar */
#sidebar button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s;
}

#sidebar button:hover {
    filter: brightness(1.2);
}

/* Anpassung für die Schieberegler */
input[type=range] {
    cursor: pointer;
    accent-color: #d2b48c;
}

/* Beibehaltung der Modal-Styles (für Bestenliste etc.) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.85); 
}

.modal-content {
    background-color: #2c3e50;
    margin: 10% auto;
    padding: 25px;
    border: 2px solid #d2b48c;
    width: 450px;
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#highscoreTablePopup {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

#highscoreTablePopup th {
    color: #d2b48c;
    border-bottom: 2px solid #d2b48c;
    padding: 10px;
}

#highscoreTablePopup td {
    padding: 8px;
    border-bottom: 1px solid rgba(210, 180, 140, 0.3);
}