/* Grundlegende Einstellungen für die ganze Seite */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212; /* Dunkler Garagen-Hintergrund */
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Nimmt die volle Bildschirmhöhe ein */
    margin: 0;
}

/* Die Box in der Mitte */
.login-container {
    background-color: #1e1e1e;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 350px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Abstand zwischen den Bereichen */
}

/* Die Überschrift */
h1 {
    margin: 0;
    color: #f39c12; /* Ein cooles Orange als Akzentfarbe */
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Das Formular (Label, Input, Button) */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 1.1em;
    color: #aaaaaa;
}

input {
    padding: 12px;
    border: 2px solid #333;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 1.2em;
    text-align: center;
    text-transform: none; /* Codes sehen großgeschrieben besser aus */
}

input:focus {
    outline: none;
    border-color: #f39c12; /* Leuchtet orange, wenn man reinklickt */
}

/* Der Teilnahme-Button */
.btn-primary {
    padding: 14px;
    background-color: #f39c12;
    color: #121212;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #e67e22;
}

/* Der Admin-Link ganz unten */
.admin-link {
    color: #555555;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: #f39c12;
}
/* Styling für die Event-Seite */
.event-container {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* Der schicke Kamera-Button */
.camera-btn {
    background-color: #333;
    padding: 15px;
    border: 2px dashed #f39c12;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 1.2em;
    color: #f39c12;
    transition: background 0.3s;
}

.camera-btn:hover {
    background-color: #2a2a2a;
}

.status-text {
    font-size: 0.9em;
    text-align: center;
}

/* Die Getränke-Buttons in einem Grid (Raster) */
.drink-selection {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Zwei Spalten */
    gap: 10px;
}

.drink-btn {
    background-color: #2a2a2a;
    color: #fff;
    border: 2px solid #333;
    padding: 15px 10px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Wenn ein Getränk ausgewählt wurde */
.drink-btn.active {
    border-color: #f39c12;
    background-color: rgba(243, 156, 18, 0.2);
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

/* Sekundäre Buttons (Tabelle, Download) */
.action-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.btn-secondary, button.btn-secondary {
    display: flex !important;
    justify-content: center !important; /* Zwingt den Inhalt horizontal in die Mitte */
    align-items: center !important;     /* Zwingt den Inhalt vertikal in die Mitte */
    gap: 8px;                           /* Macht einen schönen, gleichmäßigen Abstand zwischen Emoji und Text */
    width: 100%;
    background-color: #2a2a2a;
    color: #ffffff;
    border: none !important;
    outline: none !important;
    border-radius: 8px;
    padding: 14px;
    font-size: 1.1em;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover, button.btn-secondary:hover {
    background-color: #333;
}

/* Cooldown Status */
button:disabled {
    background-color: #555 !important;
    cursor: not-allowed;
    color: #aaa;
}
/* Styling für das Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.leaderboard-row {
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.user-main-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
}

.rank {
    font-weight: bold;
    color: #aaaaaa;
    width: 30px;
}

.name {
    flex-grow: 1;
    font-weight: bold;
    margin-left: 10px;
}

.score {
    color: #f39c12;
    font-weight: bold;
}

/* Der Leuchteffekt für > 15 Punkte */
.on-fire {
    border: 2px solid #e74c3c;
    background: linear-gradient(145deg, rgba(231, 76, 60, 0.1) 0%, rgba(42, 42, 42, 1) 100%);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
    position: relative;
}

.on-fire .name {
    color: #ff6b6b;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
}

.crown {
    font-size: 1.2em;
    animation: crownFloat 2s infinite ease-in-out;
    display: inline-block;
}

/* Kleine Animation für die Krone */
@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Die versteckten Getränke-Details */
.drink-details {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #444;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.drink-badge {
    background-color: #1e1e1e;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid #444;
    color: #ccc;
}
/* Styling für das Mini-Game Pop-up */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* Dunkler, halbtransparenter Hintergrund */
    z-index: 9999; /* Legt sich über alles andere */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #1e1e1e;
    border: 3px solid #f39c12;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 85%;
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.5); /* Oranges Leuchten */
}

.modal-icon {
    font-size: 4em;
    margin-bottom: 10px;
    animation: bounceIcon 1s infinite alternate ease-in-out;
}

#modal-title {
    color: #f39c12;
    font-size: 2em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#modal-text {
    font-size: 1.3em;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Animationen für das Pop-up */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceIcon {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}
/* Styling für die Galerie */
.gallery-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.gallery-grid {
    display: grid;
    /* Macht die Bilder responsiv: Min. 140px breit, sonst füllen sie den Platz gleichmäßig */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.gallery-item {
    background-color: #2a2a2a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: 140px;
    object-fit: cover; /* Schneidet die Bilder quadratisch zu, ohne sie zu verzerren */
    border-bottom: 2px solid #1e1e1e;
}

.uploader-name {
    padding: 10px;
    font-weight: bold;
    color: #f39c12;
    font-size: 0.9em;
    /* Falls der Name zu lang ist, mit "..." abschneiden */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

#lightbox-caption {
    margin-top: 15px;
    color: #f39c12;
    font-size: 1.5em;
    font-weight: bold;
}

.close-btn {
    position: absolute;
    top: 20px; right: 30px;
    color: white; font-size: 40px;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 50px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
}

.prev { left: 10px; }
.next { right: 10px; }

.clickable-img { cursor: pointer; transition: transform 0.2s; }
.clickable-img:hover { transform: scale(1.02); }
/* Skin: Feuer */
.skin-feuer {
    color: #e67e22 !important;
    font-weight: bold;
    text-shadow: 0 0 8px #d35400, 0 0 15px #e74c3c;
    animation: fire-glow 1.5s infinite alternate;
}
@keyframes fire-glow {
    from { text-shadow: 0 0 5px #d35400; }
    to { text-shadow: 0 0 15px #e74c3c, 0 0 25px #f39c12; }
}

/* Skin: Gold-Glanz */
.skin-gold {
    color: #f1c40f !important;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.6);
    background: linear-gradient(45deg, #f1c40f, #fff7aa, #f1c40f);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Skin: Gift-Nebel (Neon) */
.skin-neon {
    color: #2ecc71 !important;
    font-weight: bold;
    text-shadow: 0 0 5px #27ae60, 0 0 15px #2ecc71;
    animation: neon-flicker 2s infinite;
}
@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* In deinem <style> Block ergänzen oder ändern */
.avatar-option { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    cursor: pointer; 
    border: 3px solid #333; 
    transition: 0.2s; 
    object-fit: cover; /* WICHTIG: Verhindert Eier-Köpfe bei Handyfotos */
}