body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #171616;
    color: #fff;
}
header {
    text-align: center;
    padding: 20px;
    background: #1d1d1d;
    border-bottom: 2px solid #fff;
    position: relative;
}
header img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
}
header h1 {
    font-size: 2.5rem;
    margin: 10px 0;
}
header p {
    font-size: 1.2rem;
    color: #aaa;
}
.info-panel {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.info-box {
    background: #1d1d1d;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #fff;
}
.info-box h3 {
    margin: 0;
    font-size: 1.2rem;
}
.info-box p {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #aaa;
}
.download-button {
    display: block;
    margin: 40px auto;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(90deg, #4a3ec6, #713ec6);
    border: none;
    border-radius: 50px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
    max-width: 50%;
}
.download-button:hover {
    background: linear-gradient(90deg, #713ec6, #4a3ec6);
    transform: scale(1.05);
}
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}
.section {
    margin-bottom: 40px;
}
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 10px;
}
.section-header .line {
    flex-grow: 1;
    height: 2px;
    background: #fff;
}
.section-header button {
    margin-left: 10px;
    padding: 5px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    background: #4a3ec6;
    border: none;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    rotate: 180deg;
}
.content {
    display: none;
    overflow-x: auto;
}
.content.show {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}


/* Changelog */
.changelog {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: calc(100% - 24px);
    padding: 10px;
    border: 2px solid #4a3ec6;
    border-radius: 20px;
    text-align: left;
}

.changelogId {
    background: linear-gradient(90deg, #4a3ec6, #713ec6);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    min-width: 60px;
    text-align: center;
    font-weight: bold;
}

.changelogContent {
    flex: 1;
    padding: 0 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: column;
}

.changelogTime {
    white-space: nowrap;
}

.changelogTitle {
    word-break: break-word;
}

.changelog-container {
    flex-direction: column; /* Immer untereinander */
    gap: 10px; /* Abstand zwischen den Einträgen */
    text-align: center;
}

#showAllChangelogsBtn {
    display: block;
    margin: 10px auto;
    padding: 15px 30px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(90deg, #4a3ec6, #713ec6);
    border: none;
    border-radius: 50px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.2s ease;
    max-width: 20%;
}
#showAllChangelogsBtn:hover {
    background: linear-gradient(90deg, #713ec6, #4a3ec6);
    transform: scale(1.05);
}

#changelogOverview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #171616;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#changelogOverviewContent {
    margin: 5% auto;
    width: 80%;
}





.gallery img, .review-card img {
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.gallery img {
    width: 400px;
}

#reviews {
    flex-wrap: wrap;
    gap: 15px; /* Abstand zwischen den Karten */
    justify-content: space-evenly; /* Zentriert die Elemente */
}

.review-card {
    flex: 1 1 calc(25% - 20px); /* Vier Karten pro Zeile, mit etwas Platz für den Abstand */
    max-width: calc(25% - 20px); /* Maximale Breite von 25%, abzüglich des Abstands */
    box-sizing: border-box; /* Berücksichtigt Padding und Border bei der Breite */
}
.review-card {
    flex-shrink: 0;
    width: 250px;
    background: #1d1d1d;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.review-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.review-card h3 {
    font-size: 1rem;
    margin: 5px 0;
}
.review-card .stars {
    color: gold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.review-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ccc;
}
.review-card p[class="date"] {
    font-size: 0.7rem;
    color: #aaa;
}

::-webkit-scrollbar {
    width: 0;
    border-radius: 15px;
    padding: 0;
    height: 5px;
}
::-webkit-scrollbar-thumb {
    background: #4a3ec6;
    border-radius: 15px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}
.modal.show {
    display: flex;
}
.modal-content {
    background: #1d1d1d;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.modal-content .needlogin {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #f00;
    border: 2px solid #f00;
    padding: 10px;
    border-radius: 5px;
}
.modal-content .needlogin a {
    color: #ccc;
    text-decoration: none;
}
.modal-content .needlogin:hover a {
    color: #ccc;
    text-decoration: none;
}
.modal-content .needlogin:hover {
    background: #f00;
    color: #fff;
    transform: scale(1.05);
}
.modal-content h2 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: bold;
}
.modal-content input[type="text"],
.modal-content textarea,
.modal-content button {
    width: 90%;
    margin-bottom: 10px;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    color: #000;
}
.modal-content input[type="text"]:disabled {
    background: #fff;
    color: #000;
}
.modal-content input[type="range"] {
    width: 90%;
    margin-bottom: 0;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    color: #000;
}

.modal-content .starRating {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.modal-content .starRating span {
    cursor: pointer;
}

.modal-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #aaa;
}
.modal-content textarea {
    resize: none;
    height: 100px;
    font-family: 'Arial', sans-serif;
}
.modal-content button {
    background: #4a3ec6;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.modal-content button:hover {
    background: #713ec6;
    transform: scale(1.05);
}
.modal-content button[disabled] {
    cursor: not-allowed;
}
.modal-content button:last-child {
    background: #555;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

#close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

.scrollable {
    display: flex;
    overflow-x: auto;
    cursor: grab;
    scroll-behavior: smooth;
}

.scrollable.active {
    cursor: grabbing;
}

.scrollable img {
    user-select: none;
}


@media screen and (max-width: 600px) {
    .info-panel {
        flex-direction: column;
        max-width: 50%;
        margin: 0 auto;
    }
    .info-box {
        margin-bottom: 10px;
    }
    .download-button {
        max-width: 100%;
    }
}

@media screen and (max-width: 450px) {
    .info-panel {
        max-width: 100%;
    }
}

@media (max-width: 1250px) {
    .review-card {
        flex: 1 1 calc(33% - 20px); /* Zwei Karten pro Zeile */
        max-width: calc(33% - 20px); /* Maximale Breite 50% */
    }
}

@media (max-width: 768px) {
    .review-card {
        flex: 1 1 calc(50% - 20px); /* Zwei Karten pro Zeile */
        max-width: calc(50% - 20px); /* Maximale Breite 50% */
    }
}

/* Für Smartphones und sehr kleine Fenster (z. B. < 480px) */
@media (max-width: 480px) {
    .review-card {
        flex: 1 1 calc(100% - 20px); /* Eine Karte pro Zeile */
        max-width: calc(100% - 20px); /* Maximale Breite 100% */
    }
}

footer {
    text-align: center;
    margin-top: 10px;
    width: 100%;
    color: #333;
    font-size: 90%;
}

footer #footer-copyright a {
    color: #333;
    text-decoration: none;
}

footer #footer-copyright a:hover {
    text-decoration: underline;
}

footer .devload {
    font-size: 90%;
}

/* Image Section -> Image left, text right */

footer .devload {
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

footer .devload a {
    color: #2a2a2a;
    text-decoration: none;
}

footer .devload a:hover {
    text-decoration: underline;
}

footer .devload #links {
    display: flex;
    justify-content: center;
    gap: 10px;
}