/* Allgemeine Einstellungen */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    padding: 20px;
    margin: 0; /* Entfernt Standardabstand */
}

/* Styling für das Sprach-Auswahlmenü */
#languageSelect option {
    padding-left: 20px;
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: left center;
    text-indent: 20px;
}

.flag-icon-display {
    font-size: 20px;
    margin-right: 8px;
}

/* Styling für die Steuerungselemente */
#controls {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#controls select,
#controls button {
    flex: 1;
    min-width: 150px;
}

#backup-controls {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#backup-controls button {
    flex: 1;
    min-width: 150px;
}

#editProfileButton {
    margin: 10px 0;
}

/* Styling für die Buster-Karten */
.buster {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
}

/* Container für die Stufen */
.buster .stages-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap; /* Verhindert Umbruch */
    overflow-x: auto; /* Ermöglicht horizontales Scrollen bei Bedarf */
    gap: 10px;
}

/* Styling für einzelne Stufen */
.buster .stage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px; /* Mindestbreite, um Inhalt unterzubringen */
}

/* Eingabefelder für Stufen */
.stage-input {
    width: 50px;
    text-align: center;
    margin: 5px 0;
}

/* Styling für die Pfeil-Buttons */
.arrow-buttons {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin: 0 2px;
    height: 30px;
}

.arrow-buttons button {
    width: 25px;
    height: 25px;
    font-size: 14px;
    cursor: pointer;
}

/* Styling für die Buster-Bilder */
.buster-image {
    width: 100px;
    height: auto;
    object-fit: contain;
    margin-right: 10px;
}

/* Farbkennzeichnung basierend auf der Seltenheit */
.buster.common {
    border-left: 5px solid lightblue;
    background-color: rgba(173, 216, 230, 0.3); /* Hellblau */
}

.buster.rare {
    border-left: 5px solid yellow;
    background-color: rgba(255, 255, 224, 0.3); /* Hellgelb */
}

.buster.epic {
    border-left: 5px solid purple;
    background-color: rgba(216, 191, 216, 0.3); /* Hellviolett */
}

/* Styling für das Logo */
#scroll-logo {
    display: block;
    max-width: 60%;
    margin: 0 auto;
}

/* Optional: Styling für den Header */
header {
    text-align: center;
    padding: 20px 0;
}

#scroll-logo:hover {
    transform: scale(1.1);
}

/* Fußzeilen-Styling */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

/* Styling für die Backup-Steuerung */
#backup-controls {
    margin-top: 20px;
    text-align: center;
}

#backup-controls button {
    margin: 5px;
}

.progress-display {
    font-weight: bold;
    margin-top: 5px;
}

.progress-display.max-level {
    color: blue;
}

.progress-display.can-reach-max {
    color: green;
}

.progress-display.need-minis {
    color: orange;
}

.progress-display.surplus {
    color: red;
}

.star-tokens-display {
    font-weight: bold;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.star-token-image {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

/* Styling für die neuen Sternmarken-Controls */
#star-token-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

#star-token-controls > div {
    display: flex;
    align-items: center;
}

#star-token-controls img {
    width: 30px;
    height: 30px;
    margin-right: 5px;
}

#star-token-controls label {
    margin-right: 5px;
}

#existingStarTokensInput {
    width: 80px;
}

#toggleMaxedBustersButton {
    margin-left: auto;
}


/* Responsive Design Anpassungen */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    #controls {
        flex-direction: column;
        align-items: stretch;
    }

    #controls select,
    #controls button {
        width: 100%;
        min-width: unset;
    }

    #backup-controls {
        flex-direction: column;
        align-items: stretch;
    }

    #backup-controls button {
        width: 100%;
        min-width: unset;
    }

    .buster {
        flex-direction: column;
        align-items: center;
    }

    .buster .stages-container {
        /* Behalte die horizontale Anordnung bei */
        flex-wrap: nowrap;
        overflow-x: auto; /* Ermöglicht horizontales Scrollen */
    }

    .buster-image {
        width: 80px;
        margin-bottom: 10px;
    }

    .stage-input {
        width: 40px;
    }

    .arrow-buttons button {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    #scroll-logo {
        max-width: 80%;
    }

    header {
        padding: 10px 0;
    }

    .progress-display {
        text-align: center;
    }
    #star-token-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    #toggleMaxedBustersButton {
        margin-left: 0;
        width: 100%;
    }
}

