/* Allgemeines */
:root {
    --bg-dark: #282c34;
    --bg-container: #3e4451;
    --text-light: #f8f8f8;
    --accent-color: #61dafb;
}
body {
    background-color: var(--bg-dark); /* Dunkelgrau */
    color: var(--text-light); /* Sehr helles Grau für Text */
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}
.container {
	margin: auto;
    display: flex;
    flex-direction: column; /* Anordnen der Elemente innerhalb des Containers */
    align-items: center; /* Horizontale Zentrierung */
    justify-content: center; /* Vertikale Zentrierung */
	background-color: var(--bg-container); /* Etwas helleres Dunkelgrau für Container */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Deutlicherer Schatten */
    width: 80%;
    max-width: 900px;
}

h1 {
    color: var(--accent-color);
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
}

/* Host-spezifisch */
#connected-players {
    margin-bottom: 20px;
}

.panel {
    background-color: #383e4a; /* Leicht abweichende Hintergrundfarbe */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-bottom: 20px;
    width: 90%;
    max-width: 800px;
    box-sizing: border-box;
}
.panel h2 {
    margin-top: 0;
    margin-bottom: 15px;
}
#player-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
#player-list li {
    background-color: #4b515e;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #555;
    color: #f8f8f8;
    white-space: nowrap;
}
#player-list li.blink {
  animation: blink 1s steps(2, start) 3; /* 1 Sekunde Dauer, 2 Schritte, 3 Wiederholungen */
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}
#player-table {
    width: 100%;
    border-collapse: collapse;
}
#player-table th, #player-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #555;
}
#player-table th {
    background-color: #4b515e;
    font-weight: 700;
    color: #61dafb;
}
#player-table tbody tr:nth-child(even) {
    background-color: #434954; /* Abwechselnde Zeilenfarben */
}
#player-table tbody tr.highlighted {
  background-color: #BDBDBD; /* Beispiel-Highlight-Farbe */
  transition: background-color 0.5s ease;
}
#reset-buzzer-button, #reset-button {
    background-color: #61dafb;
    color: #282c34;
    font-size: 16px;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    margin-right: 10px;
}
#reset-buzzer-button:hover, #reset-button:hover {
    background-color: #4aa7c4;
}

/* Spieler-spezifisch */
#login-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#ranking-display {
            /* Deine Ranking-Display-Styles (optional) */
            margin-top: 20px; /* Fügt etwas Abstand hinzu */
            font-weight: bold; /* Macht den Text fett (optional) */
            font-size: 1.2em; /* Vergrößert den Text (optional) */
        }

input[type="text"] {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #777; /* Dunklerer Rahmen */
    border-radius: 5px;
    box-sizing: border-box;
    width: 100%;
    background-color: #4b515e; /* Dunklerer Hintergrund */
    color: #f8f8f8; /* Sehr helles Grau für Text */
}

#login-button {
    background-color: #61dafb;
    color: #282c34;
    font-size: 16px;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px; /* Optional: Passe den Abstand an */
}

#buzzer-button {
    background-color: #20242b; /* Etwas dunkleres Dunkelgrau */
    color: #f8f8f8; /* Sehr helles Grau für Text */
    font-size: 24px;
    padding: 20px 40px;
    width: 280px;
    max-width: 100%;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Deutlicherer Schatten für Buzzer */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}


#buzzer-button:hover {
    background-color: #a71d24; /* Dunkleres Rot */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Noch deutlicherer Schatten bei Hover */
}
.button-container { /* Neuer Container für die Buttons */
    display: flex;
    justify-content: center; /* Zentriert die Buttons horizontal */
    gap: 10px; /* Fügt Abstand zwischen den Buttons hinzu */
    margin-top: 20px;
    width: 90%; /* Breite anpassen */
    max-width: 800px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}
.button-group button {
    background-color: #61dafb;
    color: #282c34;
    font-size: 18px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Animation für Hover */
}
.button-group button:hover {
    background-color: #4aa7c4;
    transform: translateY(-3px); /* Leichte Bewegung nach oben beim Hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Leichter Schatten beim Hover */
}
.button-group button.disabled {
    background-color: #aaa;
    color: #ccc;
    cursor: default;
    opacity: 0.6;
}
.coming-soon {
    font-size: 0.8em;
    display: block;
    margin-top: 5px;
}
		
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
    }

    input[type="text"], button {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    #buzzer-button {
        font-size: 20px;
        padding: 15px 30px;
        width: 90%;
        max-width: 300px;
    }
}