/* 🎨 Allgemeine Einstellungen */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #4c4c4c;
}

/* 📌 Hauptcontainer */
#main-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    position: relative;
}

/* 📌 Linke Spalte (Rangliste) */
#leaderboard-container, #round-container {
    flex: 1;
    max-width: 50%;
    min-height: 200px;
    background-color: dimgrey;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 📌 Listen-Stil für Rangliste und aktuelle Runde */
#round-list, #leaderboard {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 🏆 Stil für Spieler in der Runde und Rangliste */
.round-player, #leaderboard .entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background-color: #b95858;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #750000;
}

.round-placeholder {
    background: #4c4c4c;
    height: 40px;
    border: dashed 2px #000000;
    margin: 5px 0;
}

/* 🏆 Einheitlicher Button-Stil */
.btn {
    display: inline-block;
    text-align: center;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(to bottom, #b95858, #750000);
    color: white;
    border: 1px solid #000000;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    background: linear-gradient(to bottom, #750000, #b95858);
}

.btn:active {
    transform: scale(0.95);
}

/* 📌 Buttons für Rundensteuerung */
.add-to-round, .remove-from-round {
    display: inline-block;
    text-align: center;
    padding: 6px 10px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(to bottom, #b95858, #750000);
    color: white;
    border: 1px solid #000000;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.add-to-round:hover, .remove-from-round:hover {
    background: linear-gradient(to bottom, #750000, #b95858);
}

.add-to-round:active, .remove-from-round:active {
    transform: scale(0.95);
}

/* 📌 Positionierung der Hauptbuttons */
#editLeaderboardBtn, #newEntryBtn, #endRoundBtn {
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    padding: 8px 12px;
    font-size: 16px;
    background: linear-gradient(to bottom, #b95858, #750000);
    color: white;
    border: 1px solid #000000;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#editLeaderboardBtn {
    left: 10px;
}

#newEntryBtn {
    right: 10px;
}

#endRoundBtn {
    left: 50%;
    transform: translateX(-50%);
}

/* 📌 Formular für neue Einträge */
#entryForm, #editForm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    z-index: 1000;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    pointer-events: none;
}

/* 📌 Versteckte Elemente */
.hidden {
    display: none;
}

/* 📌 Responsivität */
@media (max-width: 768px) {
    #main-container {
        flex-direction: column;
    }
    #leaderboard-container, #round-container {
        max-width: 100%;
    }
    #editLeaderboardBtn, #newEntryBtn, #endRoundBtn {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        display: block;
        margin: 10px auto;
    }
}
