:root {
    --secondary: #222222;
    --secondary-text: #ffffff;
    --secondary-hover: #252525;
    --secondary-active: #383838;
    --secondary-disabled: #202020;
    --secondary-border: transparent;
    --primary: white;
    --primary-text: black;
    --primary-hover: #f3f3f3;
    --primary-active: #e0e0e0;
    --primary-disabled: #bbbbbb;
    --primary-border: transparent;
    --bg-dark: #0a0a0a;
    --bg-medium: #121212;
    --bg-light: #141414;
    --text: #ffffff;
    --text-light: #9c9c9c;
    --layout-border: transparent;
    --border-active: #313131;
    --store: #aa71ff;
    --preview: #222222;
    --danger: #f6412d;
    --approve: #57ab5a;
    --rename: #3b82f6;
    --staff: #ee4865;
    --staff-bg: #ee48651a;
    --admin-merge: #b083f0;
    --admin-unlist: #e0823d;
    --gradient-color: #9227cf;

    --bk-icon-size: 38px;
    --bk-icon-radius: 8px;
}

body,
html {
    font-family: Inter, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    margin: 0;
    padding: 2.25rem 0 0;
}

header,
main,
footer {
    padding: 20px;
    margin: 0 1rem 1rem 300px;
    background-color: var(--bg-medium);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--layout-border);
    border-radius: .85rem;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: 3rem;
    padding: 0.2rem;
    background-color: var(--bg-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #313131;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    border-bottom: 1px solid #313131; /* bleibt IMMER grau */
}

progress-circle {
    text-decoration: none;
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 55;
}

aside {
    width: 225px;
    background-color: var(--bg-medium);
    border-radius: 10px;
    margin-left: 20px;
    padding: 10px 20px 20px 20px;
    /* Reduziertes Padding oben */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    position: fixed;
    inset: 4.5rem 0 1.5rem 0;
    display: flex;
    /* Aktiviert Flexbox */
    flex-direction: column;
    /* Ordnet Inhalte vertikal an */
    overflow-y: auto;

}

.asideHeader {
    display: none;
}

.link-list {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 15px;
    border-radius: 6px;
    border: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.link-item:hover {
    background-color: var(--bg-medium);
    transform: scale(1.02);
}

.link-item.active {
    padding: 15px 15px;
    background-color: var(--secondary);
}

.link-item-bottom {
    margin-top: auto;
    /* Positioniert den Link immer am unteren Ende */
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
    border: 1px solid var(--border-active);
    padding: 10px;
    background-color: var(--bg-medium);
    transition: background-color 0.3s ease;
}

/* =========================
   DASHBOARD
========================= */

.top-link {
    color: white;
}

.top-selected {
    color: white;
    font-weight: 600;
}

.top-selected::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-border);
    border-radius: 2px;
}

/* =========================
   SHOP
========================= */

.top-store-link {
    color: var(--store); /* immer lila */
}

.top-store-selected {
    color: var(--store);
    font-weight: 600;
}

.top-store-selected::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--store);
    border-radius: 2px;
}


.mid-side {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


.mid-side-search {
    width: 250px;
    resize: none;
    font-family: inherit;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-active);
    outline: none;
    background-color: var(--secondary);
    color: var(--text);
    font-size: 0.875rem;
    transition: background-color 0.1s;
}

.suggestions-box {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-light);
    border: 1px solid var(--border-active);
    border-radius: 0.5rem;
    width: 250px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    /* Standardmäßig versteckt */
    flex-direction: column;
    /* Elemente untereinander anordnen */
}

.suggestions-box.active {
    display: flex;
}

.suggestions-img {
    width: 1.5rem;
    height: 1.5rem;
    max-width: 1.5rem;
    max-height: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
    border: solid 2px orange;
    margin-right: 0.75rem;
    /* Abstand zwischen Bild und Text */
}

.suggestion-item {
    display: flex;
    /* Flex-Layout */
    align-items: center;
    /* Vertikale Zentrierung */
    padding: 0.5rem 0.75rem;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: var(--store);
    color: white;
}

.suggestion-item span {
    min-width: 150px;
    /* Optional: Mindestbreite für Textausrichtung */
    display: inline-block;
}

.dropdownmenu-box {
    position: absolute;
    top: 110%;
    transform: translateX(-50%);
    background: var(--bg-light);
    border: 1px solid var(--border-active);
    border-radius: 0.5rem;
    width: 250px;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    cursor: default;
    z-index: 3;
}

.dropdownmenu-box.show {
    display: flex;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 3;
}

.dropdownmenu-box a {
    color: var(--text);
    padding: 16px 16px;
    text-decoration: none;
    display: block;
}

.dropdownmenu-box a:hover {
    background-color: var(--secondary-hover);
}


.right-side {
    margin-left: auto;
    padding-right: 30px;
    gap: 10px;
    display: flex;
    /* Hinzugefügt */
    align-items: center;
    /* Hinzugefügt */
}


.right-side-img {
    width: 2rem;
    height: 2rem;
    max-width: 50px;
    max-height: 50px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    overflow: hidden;
    align-items: center;
    object-fit: cover;
    object-position: center;
    justify-content: center;
    border: solid 2px var(--store);
}

.ranking-user-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Profilbild */
.ranking-img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    overflow: hidden; /* optional, um Randüberschreitungen zu vermeiden */
}

/* Badges */
.ranking-badge {
    width: 1rem;
    height: 1rem;
    border-radius: 2px;
    vertical-align: middle;  /* Falls du sie als inline-block nutzt */
}


.dropdownmenu-box img {
    width: 3.3rem;
    height: 3.3rem;
    max-width: 100px;
    max-height: 100px;
    border-radius: 50%;
    overflow: hidden;
    align-items: center;
    object-fit: cover;
    object-position: center;
    justify-content: center;
    border: solid 2px var(--store);
    margin-top: 15px; /* Fügt Abstand nach oben hinzu */
}


nav a {
    color: white;
    text-decoration: none;
    border: none;
}


nav img {
    max-height: 2rem;
    margin-left: 10px;
}

@media (max-width: 1000px) {
    .mid-side-search {
        display: none;
        /* Erst unsichtbar machen */
        visibility: hidden;
        /* Sicherstellen, dass es nicht angezeigt wird */
        width: 0;
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    header,
    main,
    footer {
        padding: 20px;
        margin: 1rem 1rem 1rem 1rem;
        background-color: var(--bg-medium);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--layout-border);
        border-radius: .5rem;
    }

    aside {
        display: none;
    }

    .asideHeader {
        display: block;
    }
}

@media (max-width: 520px) {
    nav .right-side-img {
        display: none;
        /* Erst unsichtbar machen */
        visibility: hidden;
        /* Sicherstellen, dass es nicht angezeigt wird */
        width: 0;
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

@media (max-width: 450px) {
    nav .bklogo {
        display: none;
        /* Erst unsichtbar machen */
        visibility: hidden;
        /* Sicherstellen, dass es nicht angezeigt wird */
        width: 0;
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

@media (max-width: 375px) {
    .right-side a {
        display: none;
        /* Erst unsichtbar machen */
        visibility: hidden;
        /* Sicherstellen, dass es nicht angezeigt wird */
        width: 0;
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

@media (max-height: 200px) {

    header,
    main,
    footer {
        padding: 20px;
        margin: 1rem 1rem 1rem 1rem;
        background-color: var(--bg-medium);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--layout-border);
        border-radius: .5rem;
    }

    aside {
        display: none;
        /* Erst unsichtbar machen */
        visibility: hidden;
        /* Sicherstellen, dass es nicht angezeigt wird */
        width: 0;
        height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

.banner-background {
    background: radial-gradient(100% 100% at 50% 0%,
            #ddc4fd 0%,
            var(--gradient-color) 33%,
            #3f188b 64%,
            #1f113e 80%,
            #0f0f0f 100%),
        var(--bg-medium);
    background-repeat: no-repeat;
    /* Verhindert Wiederholung */
    background-size: cover;
    /* Stellt sicher, dass das Banner den ganzen Bereich abdeckt */
    background-position: center;
    /* Zentriert den Verlauf */
}


.banner-background-shop {
    background: radial-gradient(100% 100% at 50% 0%,
            #c4fde0 0%,
            #27CF75FF 33%,
            #188b4e 64%,
            #113e1f 80%,
            #0f0f0f 100%),
        var(--bg-medium);
    background-repeat: no-repeat;
    /* Verhindert Wiederholung */
    background-size: cover;
    /* Stellt sicher, dass das Banner den ganzen Bereich abdeckt */
    background-position: center;
    /* Zentriert den Verlauf */
}

.banner-background-main {
    background: radial-gradient(100% 100% at 50% 0%,
            #c4f3fd 0%,
            #277bcf 33%,
            #31188b 64%,
            #19113e 80%,
            #0f0f0f 100%),
        var(--bg-medium);
    background-repeat: no-repeat;
    /* Verhindert Wiederholung */
    background-size: cover;
    /* Stellt sicher, dass das Banner den ganzen Bereich abdeckt */
    background-position: center;
    /* Zentriert den Verlauf */
}

.banner-background-lunar {
    background: radial-gradient(100% 100% at 50% 0%,
            #e8c4fd 0%,
            #9a27cf 33%,
            #70188b 64%,
            #33113e 80%,
            #0f0f0f 100%),
        var(--bg-medium);
    background-repeat: no-repeat;
    /* Verhindert Wiederholung */
    background-size: cover;
    /* Stellt sicher, dass das Banner den ganzen Bereich abdeckt */
    background-position: center;
    /* Zentriert den Verlauf */
}



.banner-background-untis {
    background: radial-gradient(100% 100% at 50% 0%,
            #fde4c4 0%,
            #cf8627 33%,
            #8b5518 64%,
            #3e2511 80%,
            #0f0f0f 100%),
        var(--bg-medium);
    background-repeat: no-repeat;
    /* Verhindert Wiederholung */
    background-size: cover;
    /* Stellt sicher, dass das Banner den ganzen Bereich abdeckt */
    background-position: center;
    /* Zentriert den Verlauf */
}

.banner-background-untis {
    background: radial-gradient(100% 100% at 50% 0%,
    #c4dffd 0%,
    #cf2727 33%,
    #57188b 64%,
    #3d113e 80%,
    #0f0f0f 100%),
    var(--bg-medium);
    background-repeat: no-repeat;
    /* Verhindert Wiederholung */
    background-size: cover;
    /* Stellt sicher, dass das Banner den ganzen Bereich abdeckt */
    background-position: center;
    /* Zentriert den Verlauf */
}



.banner-background-version {
    background: radial-gradient(100% 100% at 50% 0%,
    #fdc4c6 0%,
    #9f27cf 33%,
    #182f8b 64%,
    #2c113e 80%,
    #0f0f0f 100%),
    var(--bg-medium);
    background-repeat: no-repeat;
    /* Verhindert Wiederholung */
    background-size: cover;
    /* Stellt sicher, dass das Banner den ganzen Bereich abdeckt */
    background-position: center;
    /* Zentriert den Verlauf */
}


.banner-icons {
    padding: 0 2.75rem;
    display: flex;
    gap: 3.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}


.searchbar {
    margin-right: 10px;
    float: right;
    text-decoration: none;
    border-radius: 6px;
}

a {
    color: #ffffff;
    text-decoration: none;
}

.aline {
    color: #ffffff;
    text-decoration: none;

}

section {
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

section h2 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #555;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    background-color: #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

ul li a {
    color: #007BFF;
    /* Eine Blaue Farbe für Links */
    text-decoration: none;
    font-weight: 600;
    /* Macht die Schrift fett */
}

ul li a:hover {
    color: #0056b3;
    /* Eine dunklere Blaue Farbe beim Überfahren */
    text-decoration: underline;
}

ul li img {
    margin-right: 10px;
    /* Abstand zwischen der Bildvorschau und dem Dateinamen */
    border-radius: 5px;
    /* Abgerundete Ecken für die Bildvorschau */
    vertical-align: middle;
    /* Vertikal zentriert im Verhältnis zum Text */
}

.separator {
    height: 2px;
    background-color: #000000;
    margin: 20px 0;
}

.dropdown-separator {
    background-color: #000000;
    margin: 0;
}





/* ------------------------------------------------------------------------------------------- */
/* Login-Fenster */
.login-body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-dark);
    color: #fff;

}

.login-container {
    text-align: center;
}

.login-h1 {
    color: #ffffff;
}

.login-main {
    max-width: 400px;
    margin: auto;
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border: var(--border-active) solid 1px;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.login-input[type="text"],
.login-input[type="password"] {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #1da1f2;
    border-radius: 5px;
    background-color: #000000;
    color: #fff;
}

.login-input[type="text"]:focus,
.login-input[type="password"]:focus {
    outline: none;
    border-color: #1da1f2;
}

.login-submit {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-submit:hover {
    background-color: #0c7cb5;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-link {
    color: #1da1f2;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}


/*Login-Fenster ENDE*/
/* ------------------------------------------------------------------------------------------- */

.preview-btn {
    background-color: #007BFF;
    border: none;
    color: white;
    padding: 5px 10px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.preview-btn:hover {
    background-color: #0056b3;
}

.grid-container {
    display: grid;
    gap: 20px;
    justify-content: center;
}

.tile {
    padding: 20px;
    margin: 10px;
    text-align: center;
    background-color: var(--bg-medium);
    border: solid 1px var(--border-active);
    border-radius: 10px;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background 0.3s ease-out;
}

.tile:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(calc(33.33% - 20px), 1fr));
    }
}

@media (max-width: 1199px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(calc(50% - 20px), 1fr));
    }
}

@media (max-width: 875px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(calc(100% - 20px), 1fr));
    }
}

.custom-grid-container {
    display: grid;
    grid-gap: 10px;
}

@media (min-width: 1500px) {
    .custom-grid-container {
        grid-template-columns: repeat(5, 1fr);
        /* Exakt 5 Spalten */
    }
}

@media (max-width: 1499px) and (min-width: 1200px) {

    /* Zwischen 1200px und 1499px */
    .custom-grid-container {
        grid-template-columns: repeat(3, 1fr);
        /* 3 Spalten für mittelgroße Geräte */
    }
}

@media (max-width: 1199px) and (min-width: 800px) {

    /* Zwischen 800px und 1199px */
    .custom-grid-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Spalten für Tablets */
    }
}

@media (max-width: 1000px) {

    /* Weniger als 800px */
    .custom-grid-container {
        grid-template-columns: 1fr;
        /* 1 Spalte für Smartphones */
    }
}


.custom-3-grid-container {
    display: grid;
    grid-gap: 10px;
}

@media (min-width: 1500px) {
    .custom-3-grid-container {
        grid-template-columns: repeat(3, 1fr);
        /* 4 Spalten für sehr große Geräte */
    }
}

@media (max-width: 1499px) and (min-width: 1200px) {
    /* Zwischen 1200px und 1499px */
    .custom-3-grid-container {
        grid-template-columns: repeat(3, 1fr);
        /* 2 Spalten für mittelgroße Geräte */
    }
}

@media (max-width: 1199px) {
    /* Weniger als 1200px */
    .custom-3-grid-container {
        grid-template-columns: 1fr;
        /* 1 Spalte für kleinere Geräte */
    }
}

.custom-4-grid-container {
    display: grid;
    grid-gap: 10px;
}

@media (min-width: 1500px) {
    .custom-4-grid-container {
        grid-template-columns: repeat(4, 1fr);
        /* 4 Spalten für sehr große Geräte */
    }
}

@media (max-width: 1499px) and (min-width: 1200px) {
    /* Zwischen 1200px und 1499px */
    .custom-4-grid-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Spalten für mittelgroße Geräte */
    }
}

@media (max-width: 1199px) {
    /* Weniger als 1200px */
    .custom-4-grid-container {
        grid-template-columns: 1fr;
        /* 1 Spalte für kleinere Geräte */
    }
}

/* --- Modernes, dunkles Leaderboard-Design --- */
table {
    border-collapse: separate; /* erlaubt z.B. border-radius ohne Kantenbruch */
    border-spacing: 0;
    width: 100%;
    margin-top: 20px;
    background-color: #1f1f1f; /* Grundfarbe Tabellenhintergrund */
    border-radius: 8px;
    overflow: hidden;          /* für abgerundete Ecken */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); /* dezenter Schatten */
}

thead th {
    background-color: #2c2c2c; /* Kopfzeilen-Hintergrund */
    color: #eee;               /* Textfarbe der Kopfzeile */
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-transform: uppercase; /* optional, für "TABELLE" statt "Tabelle" */
}

tbody tr {
    transition: background-color 0.2s ease; /* weiche Hover-Übergänge */
}

tbody tr:nth-child(even) {
    background-color: #252525; /* dezente Streifen (Zebra-Style) */
}

tbody tr:hover {
    background-color: #333333; /* Hover-Effekt */
}

td {
    color: #ccc;
    padding: 12px 16px;
    border-bottom: 1px solid #2c2c2c;
    vertical-align: middle;  /* Hilft bei Bild + Text in einer Zeile */
}

tbody tr:last-child td {
    border-bottom: none; /* Letzte Zeile ohne Rahmen */
}



.circle-container {
    position: relative;
}

.percentage-text {
    text-align: center;
    font-size: 16px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* CSS für Popup-Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
    }

    to {
        transform: translateY(0);
    }
}

#openPopup {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #495371;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#popupBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* semi-transparent black */
    backdrop-filter: blur(5px);
    /* backdrop blur */
    display: none;
}

#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: rgb(42, 39, 39);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Schatten */
    display: none;
    width: 80%;
    /* Breite des Popups auf 80% des Bildschirms */
    max-width: 400px;
    /* Maximale Breite des Popups */
    max-height: 80%;
    /* Maximale Höhe des Popups auf 80% des Bildschirms */
    overflow-y: auto;
    /* Vertikales Scrollen, wenn Inhalt zu groß ist */
}

#popup h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

#popup label {
    display: block;
    margin-bottom: 10px;
}

#popup input {
    padding: 8px;
    width: calc(100% - 16px);
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#popup .animated-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #434750;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#popup .animated-button:hover {
    background-color: #495371;
}

#popup button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#popup button:hover {
    background-color: #d32f2f;
}



/*Patch Popup*/


#popupBackgroundPatch {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

#popupPatch {
    position: fixed;
    top: 50%;
    right: 4%;
    transform: translate(-50%, -50%);
    background-color: #3f3f3f;
    /* Grauer Hintergrund */
    padding: 20px;
    max-width: 80%;
    max-height: 40vh;
    /* Setze die maximale Höhe des Popups auf 60% der Bildschirmhöhe */
    overflow-y: scroll;
    /* Erlaube das Scrollen, unabhängig von der Größe des Inhalts */
    animation: fadeIn 0.5s ease, slideIn 0.5s ease;
    animation-fill-mode: both;
    border-radius: 20px;
    /* Abgerundete Ecken */
    margin: 20px;
    /* Abstand zu den Seitenrändern */
}


#popup-contentPatch {
    margin-bottom: 20px;
}

#close-btnPatch {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    font-size: 20px;
    color: #666;
}

#close-btnPatch:hover {
    color: #666;
}

#popupButtonPatch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #424242;
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    text-align: center;
    line-height: 65px;
    cursor: pointer;
    z-index: 999;
    /* Stellen Sie sicher, dass der Knopf über anderen Inhalten liegt */
}

#popupButtonPatch.hidden {
    display: none;
}



/*Patch POPUP*/


.animated-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #434750;
    /* Grüne Hintergrundfarbe */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.animated-button:hover {
    background-color: #495371;
    /* Dunklere grüne Hintergrundfarbe beim Hover */
}

.input-form {
    padding: 8px;
    width: calc(100% - 16px);
    max-width: 300px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.inputFormHomework {
    padding: 8px;
    width: calc(100% - 16px);
    max-width: 95%;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#menu {
    width: 65px;
    height: 65px;
    position: fixed;
    right: 120px;
    bottom: 20px;
    list-style: none;
    font-size: 200%;
}

.menu-button {
    opacity: 0;
    z-index: 9;
}

.menu-button {
    font-family: Arial, sans-serif;
    font-size: 20px;
    color: #fff;
    width: 65px;
    height: 65px;
    position: fixed;
    line-height: 70px;
    right: 120px;
    bottom: 20px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    background: #424242;
    background-size: 100%;
    overflow: hidden;
    text-decoration: none;
}

.textNav {
    font-family: Arial, sans-serif;
    color: #fff;
    position: relative;
    /* Füge diese Zeile hinzu */
    left: 15px;
    /* Ändere den Wert nach Bedarf */
}


#menu:not(:target)>a:first-of-type,
#menu:target>a:last-of-type {
    opacity: 1;
    z-index: 11;
}

#menu:not(:target)>.icon-plus:before,
#menu:target>.icon-minus:before {
    opacity: 1;
}

.menu-item {
    width: 30px;
    height: 30px;
    position: absolute;
    right: 10px;
    top: 20px;
    margin: 20px 0 0 20px;
    border-radius: 50%;
    transform: translate(0px, 0px);
    transition: transform 500ms;
    z-index: 10;
    background-color: transparent;
    /* Hier den Pfad zu deinem Bild einfügen */
    background-size: cover;
    /* Passendes Bildformat */
}


.menu-item:hover {
    opacity: 0.5;
}


.menu-item a {
    color: #fff;
    display: none;
    position: relative;
    top: 29%;
    right: 0;
    text-decoration: none;
}

#menu:target>.menu-item:nth-child(6) {
    transform: translateX(-70px) translateY(10px);
    transition-delay: 0.05s;
}

#menu:target>.menu-item:nth-child(5) {
    transform: translateX(-70px) translateY(-40px);
    transition-delay: 0.1s;
}

#menu:target>.menu-item:nth-child(4) {
    transform: rotate(20deg) translateY(-80px) rotate(-20deg);
    transition-delay: 0.15s;
}

#menu:target>.menu-item:nth-child(3) {
    transform: rotate(-20deg) translateY(-80px) rotate(20deg);
    transition-delay: 0.2s;
}

#menu:target>.menu-item:nth-child(7) {
    transform: translateX(-120px) translateY(-15px);
    transition-delay: 0.1s;
}

#menu:target>.menu-item:nth-child(8) {
    transform: translateX(0px) translateY(-120px);
    transition-delay: 0.08s;
}

#menu:target>.menu-item:nth-child(9) {
    transform: translateX(-60px) translateY(-120px);
    transition-delay: 0.06s;
}

#menu:target>.menu-item:nth-child(10) {
    transform: translateX(-100px) translateY(-100px);
    transition-delay: 0.04s;
}

#menu:target>.menu-item:nth-child(11) {
    transform: translateX(-120px) translateY(-60px);
    transition-delay: 0s;
}



.menu img {
    max-width: 30px;
    max-height: 30px;
}

.inputFormNotes {
    padding: 8px;
    width: calc(100% - 16px);
    max-width: 300px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}


/* --- Dictionary PopUp --- */
/* Das übergeordnete Overlay: zentriert, halbtransparent + Blur */
.books-popup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);    /* weicher Hintergrund-Blur */
    z-index: 1000;
    overflow: auto;
}

/* Das eigentliche Popup-Fenster */
.books-popup {
    background-color: var(--secondary);     /* dunkles Modal */
    border-radius: 8px;            /* abgerundete Ecken */
    box-shadow: 0 4px 20px rgba(0,0,0,0.5); /* stärkerer Schatten */
    margin: 100px;                     /* Abstand zum Viewport-Rand */
    min-width: 65%;                  /* neu: Mindestbreite */
    min-height: 75%;                 /* neu: Mindesthöhe */
    max-width: calc(100% - 200px);     /* sorgt für 100px Rand rundherum */
    max-height: calc(100% - 150px);    /* sorgt für 100px Rand rundherum */
    padding: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    color: #fff;                   /* Textfarbe */
}


.books-popup img {
    width: 90%;                        /* statt 60% jetzt 80% der Popup-Breite */
    max-width: 1000px;                  /* maximale Pixel-Breite */
    max-height: 90vh;                  /* fast volle Viewport-Höhe */
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.books-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #888;
}

.books-close:hover {
    color: #333;
}

/* Stil für den Download-Button */
.books-download-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    text-decoration: none;
    /* Entferne die Standard-Unterstreichung */
    margin-right: 10px;
    display: inline-block;
    text-align: center;
}

.books-download-button:hover {
    background-color: #0056b3;
}

.books-popup img:hover {
    transform: scale(1.1);
    /* Vergrößere das Bild, wenn es angeklickt wird */
}

.books-popup .books-close {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

.books-taskbar {
    margin: auto;
    text-align: center;
    position: fixed;
    bottom: 2%;
    left: 50%;
    /* Änderung der Positionierung */
    transform: translateX(-50%);
    /* Zentrieren der Taskleiste */
    width: 600px;
    /* Festlegen eines festen Pixelwerts */
    max-width: 90%;
    /* Hinzufügen einer maximalen Breite */
    background-color: #696969;
    padding: 10px 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 10px;
    /* Abrunden der oberen linken Ecke */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    /* Schatten, um die Taskleiste abzuheben */
}

.books-taskbar-button {
    padding: 8px 16px;
    font-size: 16px;
    /* Ändern der Schriftgröße auf einen festen Wert */
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 10px;
    text-decoration: none;
}

.books-taskbar-button:last-child {
    margin-right: 0;
}

.books-taskbar-button:hover {
    background-color: #0056b3;
}

/* Stil, um die Taskleiste nur anzuzeigen, wenn das Popup geöffnet ist */
.books-popup-open .books-taskbar {
    display: flex;
    /* Anzeigen, wenn das Popup geöffnet ist */
}

.books-animated-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #434750;
    /* Grüne Hintergrundfarbe */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.books-animated-button:hover {
    background-color: #495371;
    /* Dunklere grüne Hintergrundfarbe beim Hover */
}

/* --- Bücher-Bereich --- */
.books-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;         /* horizontales Scrollen */
    overflow-y: hidden;
    padding: 20px 0;
    scroll-snap-type: x mandatory; /* sauberes Einrasten beim Scrollen */
}

.books-container::-webkit-scrollbar {
    height: 20px;
}

.books-container::-webkit-scrollbar {
    height: 8px; /* dünne Scrollbar unten */
}
.books-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}
.books-container::-webkit-scrollbar-track {
    background: transparent;
}

.books-tile {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
    scroll-snap-align: start;
    text-decoration: none; /* Link ohne Unterstreichung */
    color: inherit;        /* Textfarbe beibehalten */
}


.books-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
.books-cover:hover {
    transform: scale(1.05);
}

.books-title {
    margin-top: 6px;
    font-size: 0.8rem; /* sehr klein, wie gewünscht */
    color: var(--text-light);
    white-space: nowrap;       /* nicht umbrechen */
    overflow: hidden;
    text-overflow: ellipsis;   /* ... wenn Titel zu lang */
}


#popupImageContainer {
    position: relative;
    width: 80%;                        /* statt 60% jetzt 80% der Popup-Breite */
    max-width: 800px;                  /* maximale Pixel-Breite */
    max-height: 90vh;                  /* fast volle Viewport-Höhe */
    object-fit: contain;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

#popupPrevImage,
#popupNextImage {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;            /* feste Höhe, bis max. 80vh */
    max-height: 80vh;
    width: auto;            /* proportional zur Höhe */
    object-fit: contain;
    opacity: 0.3;
    transition: opacity 0.3s ease-in-out;
    cursor: default;
    z-index: 1;
}

/* Hover-Effekt für beide */
#popupPrevImage:hover,
#popupNextImage:hover {
    opacity: 0.6;
}

/* Ab genug Platz (z.B. Desktop) schalten wir die Vorschauen ein */
@media (min-width: 900px) {
    #popupPrevImage,
    #popupNextImage {
        display: block;
    }
    /* Links neben dem Hauptbild */
    #popupPrevImage {
        left: -8%;
        /* 50% (Mitte Container) minus 30% (halbe Hauptbild-Breite) minus 20px Abstand */
    }
    /* Rechts neben dem Hauptbild */
    #popupNextImage {
        left: 50%;
    }
}

#popupImage {
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
}

.book-page {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.background-image {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    object-fit: contain;
    opacity: 0.3; /* Hintergrundbilder weniger sichtbar */
    z-index: -1; /* Hinter den aktuellen Seiten */
}

.books-popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    justify-content: center;
    align-items: center;
}

.books-taskbar-button {
    background-color: #444;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.login-google-button {
    display: inline-block;
    padding: 10px;
    border: 2px solid gray;
    border-radius: 3px;
    text-decoration: none;
}

.login-google-button:hover {
    background-color: #595656;
}

.rank-container {
    display: flex;
    justify-content: space-between;
}

.rank-user-info {
    flex: 1;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rank-separator {
    width: 2px;
    background-color: #ccc;
    margin: 0 20px;
}

.rank-leaderboard {
    flex: 2;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rank-leaderboard table {
    width: 100%;
    border-collapse: collapse;
}

.rank-leaderboard th,
.rank-leaderboard td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.rank-leaderboard th {
    background-color: #262829;
}

.rank-leaderboard tr:hover {
    background-color: #262829;
}

.rank-leaderboard a {
    text-align: center;
}

/* Media Query für Bildschirme mit einer Breite von 1300px oder weniger */
@media (max-width: 1400px) {
    .rank-container {
        flex-direction: column; /* Elemente untereinander anordnen */
    }

    .rank-separator {
        display: none; /* Trennlinie ausblenden */
    }

    .rank-user-info,
    .rank-leaderboard {
        width: 100%; /* Volle Breite für beide Container */
        margin-bottom: 20px; /* Abstand zwischen den Containern */
    }
}

@media (max-width: 550px) {
    .rank-leaderboard img {
        display: none; /* Bilder ausblenden */
    }
}

@media (max-width: 500px) {
    .rank-leaderboard th:nth-child(2),
    .rank-leaderboard td:nth-child(2) {
        display: none;
    }

    /* Passe die Breite der verbleibenden Spalten an */
    .rank-leaderboard th:nth-child(1),
    .rank-leaderboard td:nth-child(1) {
        width: 50%; /* Benutzername breiter machen */
    }

    .rank-leaderboard th:nth-child(3),
    .rank-leaderboard td:nth-child(3),
    .rank-leaderboard th:nth-child(4),
    .rank-leaderboard td:nth-child(4) {
        width: 25%; /* Prestige und Level schmaler machen */
    }
}

/* Media Query für Bildschirme mit einer Breite von 500px oder weniger */
@media (max-width: 420px) {
    /* Verstecke die Coins-Spalte im Leaderboard */
    .rank-leaderboard th:nth-child(4), /* Verstecke den Header "Coins" */
    .rank-leaderboard td:nth-child(4) { /* Verstecke die Coins-Daten */
        display: none;
    }
}

.large-tile {
    background-color: #262829;
    border-radius: 8px;
    box-shadow: 0 4px 8px #262829;
    width: 95%;
}

.info-container {
    display: flex;
    just-content: space-between;
}

.homework-section,
.lesson-section {
    flex: 1;
    padding: 10px;
}

.separator-height {
    width: 2px;
    background-color: #ddd;
    margin: 0 20px;
    display: inline-block;
}

#errorMessage {
    color: red;
    font-weight: bold;
}

@media (max-width: 900px) {
    .info-container {
        flex-direction: column;
        /* Elemente untereinander anordnen */
    }

    .separator-height {
        display: none;
        /* Separator ausblenden */
    }

    .homework-section,
    .lesson-section {
        width: 100%;
        /* Die Abschnitte die volle Breite einnehmen lassen */
        margin-bottom: 20px;
        /* Abstand zwischen den Abschnitten */
    }
}

.info-container {
    display: flex;
    justify-content: space-between;
}

.homework-section,
.lesson-section {
    flex: 1;
    padding: 10px;
}

.separator-height {
    width: 2px;
    background-color: #ddd;
    margin: 0 20px;
    display: inline-block;
}

#errorMessage {
    color: red;
    font-weight: bold;
}

@media (max-width: 1150px) {
    .info-container {
        flex-direction: column;
    }

    .separator-height {
        display: none;
    }

    .homework-section,
    .lesson-section {
        width: 100%;
        margin-bottom: 20px;
    }
}

.gradient-text {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

#reward-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.card {
    width: 160px;
    height: 250px;
    margin: 0 20px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.card.revealed {
    transform: rotateY(180deg);
}

.card p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #333;
    backface-visibility: hidden;
}

.card.revealed p {
    transform: rotateY(180deg) translate(-50%, -50%);
}

.card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../styles/card.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    backface-visibility: hidden;
}

.card:nth-child(1)::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../styles/card1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    transform: rotateY(180deg);
}

.card:nth-child(2)::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../styles/card2.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    transform: rotateY(180deg);
}

.card:nth-child(3)::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../styles/card3.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    transform: rotateY(180deg);
}

.shake {
    animation: shake 0.5s;
    animation-iteration-count: 2;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    50% {
        transform: translateX(10px);
    }

    75% {
        transform: translateX(-10px);
    }
}

/* Existing CSS styles */

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    margin: 0 5px;
    text-decoration: none;
    padding: 5px 10px;
    background-color: var(--rename);
    color: var(--primary);
    border-radius: 5px;
}

.pagination a.active {
    background-color: var(--store);
}

.prestige-btn {
    background-color: var(--approve);
    /* Green color */
    color: var(--primary);
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.prestige-btn:hover {
    background-color: var(--store);
    /* Darker green on hover */
}

.prestige-btn:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

.user-profilepicture {
    width: 150px;
    /* Feste Größe des Kreises */
    height: 150px;
    /* Feste Größe des Kreises */
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    /* Rundes Element */
    overflow: hidden;
    /* Überschüssiges Bild abschneiden */
    display: flex;
    /* Zentrierung für Flexbox-Kompatibilität */
    align-items: center;
    object-fit: cover;
    /* Bild proportional zuschneiden */
    object-position: center;
    /* Immer auf die Mitte fokussieren */
    justify-content: center;
    border: solid 1px white;
}

.user-roles {
    display: flex;
    flex-wrap: wrap;
    /* Ermöglicht Zeilenumbruch bei Bedarf */
    gap: 10px;
    justify-content: center;
    /* Zentriert die Inhalte horizontal */
    align-items: center;
    /* Zentriert die Inhalte vertikal */
    max-width: 100%;
    /* Begrenze die maximale Breite auf den Elterncontainer */
    overflow-x: hidden;
    /* Verhindert das Überlaufen der Inhalte */
    overflow-y: auto;
    /* Verhindert das Überlaufen der Inhalte */
}

.role {
    display: inline-block;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    border-radius: 5px;
    text-align: center;
}

.role.subscriber {
    background-color: rgba(255, 251, 26, 0.8);
    /* Gelb */
    color: white;
}

.prestige-rewards-container {
    padding: 15px;
    border-radius: 5px;
    margin-top: 40px;
    background-color: var(--bg-light);
}

/* Überschrift, optional */
.prestige-rewards-container h2 {
    margin-bottom: 1rem;
}

/* Horizontale Scrollleiste */
.timeline-wrapper {
    overflow-x: auto;    /* Ermöglicht horizontales Scrollen */
    overflow-y: hidden;
    white-space: nowrap; /* Keine Zeilenumbrüche, alle Items nebeneinander */
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none
}

.timeline-wrapper::-webkit-scrollbar {
    display: none;
}

/* Jedes Belohnungs-Item als Kreis mit Inhalt */
.timeline-item {
    display: inline-block;     /* horizontal hintereinander */
    width: 120px;
    height: 120px;
    border: 3px solid #888;
    border-radius: 50%;
    margin: 0 20px;           /* seitlicher Abstand */
    vertical-align: middle;   /* zentriert im Scrollbereich */
    position: relative;
    text-align: center;
    color: #ccc;
    background-color: #222;
    flex-shrink: 0;           /* Item wird nicht kleiner gequetscht */
}

/* Inhalt im Kreis */
.timeline-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.timeline-content h4 {
    margin: 0;
    font-size: 0.9rem;
}

.timeline-content p {
    margin: 4px 0 0;
    font-size: 0.75rem;
}

.timeline-claim-btn {
    margin-top: 5px;
    background-color: var(--store);
    border: none;
    color: #fff;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.7rem;
}
.timeline-claim-btn:disabled {
    background-color: #888;
    cursor: not-allowed;
}

.timeline-item.claimed {
    border-color: var(--store);
    opacity: 0.8;
}
.timeline-item.locked {
    opacity: 0.4;
}

#upload-form,
#download-form {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

#upload-result p {
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

#download-result a {
    display: block;
    margin-top: 5px;
    color: blue;
}