/* Grundlegende Stile */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('shared/hintergrund/chinese-start2.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

/* Container für Login/Register */
.menu-container {
    background: rgba(44, 62, 80, 0.95);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #d2b48c;
    text-align: center;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    width: 380px; /* Etwas breiter für bessere Optik */
}

/* Überschrift in der Login-Box */
.menu-container h1 {
    color: white;
    margin-bottom: 30px;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Eingabegruppen (Label + Input) */
.input-group {
    margin-bottom: 25px; /* Mehr Platz zwischen den Feldern */
    text-align: center; /* Zentriert alles innerhalb der Gruppe */
}

.input-group label {
    display: block;
    margin-bottom: 8px; /* Abstand zum Input darunter */
    color: #d2b48c;
    font-size: 1em;
    font-weight: bold;
}

/* Styling der Eingabefelder */
input[type="text"], 
input[type="password"] {
    background: #1a252f;
    border: 1px solid #769091;
    padding: 14px; /* Mehr Höhe durch Padding */
    color: white;
    width: 90%; /* Etwas schmaler als 100% für besseren Look im Container */
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 1.1em;
    text-align: center; /* Text im Feld mittig */
}

/* Login-Button */
.menu-btn {
    width: 90%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #000;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    background-color: #4CAF50;
    transition: background 0.3s;
}

.menu-btn:hover {
    background-color: #45a049;
}

.reg-link {
    color: #d2b48c;
    text-decoration: none;
    font-weight: bold;
}

/* --- LOBBY STILE (bleiben erhalten) --- */

.lobby-container-flex {
    background: rgba(44, 62, 80, 0.95);
    padding: 20px 40px;
    border-radius: 20px;
    border: 3px solid #d2b48c;
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
    width: 90vw;
    max-width: 1200px;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.top-title {
    color: #d2b48c;
    margin: 10px 0 20px 0;
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.lobby-content-row {
    display: flex;
    gap: 20px;
    flex-grow: 1;
    min-height: 0;
    margin-bottom: 25px;
}

.chat-area { flex: 3; }
.user-area { flex: 1; min-width: 200px; }

.chat-area, .user-area {
    background: rgba(26, 37, 47, 0.85);
    border: 1px solid #769091;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.area-label {
    background: #d2b48c;
    color: #1a252f;
    font-weight: bold;
    padding: 8px;
    font-size: 0.85em;
    text-transform: uppercase;
}

#chat-messages, #user-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    text-align: left;
}

.chat-input-row {
    display: flex;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid #444;
}

.chat-input-row input {
    flex-grow: 1;
    padding: 10px;
    border-radius: 5px 0 0 5px;
    border: 1px solid #769091;
    background: #0d141b;
    color: white;
}

.send-btn {
    background: #d2b48c;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
}

.lobby-footer-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.nav-btn {
    padding: 12px;
    border-radius: 8px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s;
}

.nav-btn:hover { transform: scale(1.02); }

.btn-1 { background-color: #3498db; }/* Blau*/
.btn-2 { background-color: #f39c12; }/* Orange*/
.btn-3 { background-color: #9b59b6; }/* Lila*/
.btn-4 { background-color: #c0392b; }/* Rot*/

.login-info {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 10px;
}

/* Erweitert die bestehende style.css */

/* Der Overlay-Hintergrund, der standardmäßig unsichtbar ist */
.overlay-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* Abdunkelung des Hintergrundbildes */
    display: none; /* Initial versteckt */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Klick-Aufforderung im leeren Zustand */
.start-prompt {
    font-size: 1.5em;
    color: #d2b48c;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    cursor: pointer;
    user-select: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Hilfsklasse zum Umschalten zwischen Login und Register */
.hidden {
    display: none !important;
}

/* Positionierung des Schließen-Buttons */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #d2b48c;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ffffff;
}

/* Wichtig: Der Container braucht relative Positionierung, damit das X darin ausgerichtet bleibt */
.menu-container {
    position: relative; /* Neu hinzugefügt */
    background: rgba(44, 62, 80, 0.95);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #d2b48c;
    text-align: center;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    width: 380px;
}