html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #9B8872;
    color: black;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden ;
}

/* Standard-Layout für Desktop-Ansicht */
.navbar {
    background-color: #F7F6F4;
    font-weight: bold;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8); /* Schwebender Schatten */


}

/* Logo links und Toggler rechts für mobile Ansicht */
@media (max-width: 767px) {
    .navbar.navbar-brand {
        order: 1; /* Logo zuerst */
    }

    .navbar-toggler {
        order: 2; /* Toggler nach dem Logo */
        border-color: black; /* Schwarzer Rand */
    }

    .navbar-toggler-icon {

    }
}

/* Für die Desktop-Ansicht das Layout beibehalten */
@media (min-width: 768px) {
    .navbar .navbar-brand {
        margin-left: auto;
        margin-right: auto;
    }

    .navbar-nav {
        display: flex;
        justify-content: center;
    }
}

/* Login-Link Styling */
.navbar .login-link {
    color: #0d6efd; /* Bootstrap Primary */
    font-weight: 600; /* fett */
    text-decoration: none;
}

.navbar .login-link:hover {
    color: #0a58ca; /* dunkleres Blau beim Hover */
    text-decoration: none;
}

.content {
    flex: 1;
    padding-top: 1rem;
}

.footer {
    background-color: #F7F6F4;
    color: black;
    text-align: center;
    padding: 20px 0;
}

.btn-login {
    background-color: #6C757D;
    border: none;
    color: black;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-login:hover {
    background-color: #5A6268;
}


.splide__slide {
    height: 100%;
}

.glowcard {
    height: 17rem;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    display: flex;
    flex-direction: column;
}

.glowcard::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 60%);
    transform: rotate(25deg);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    100% {
        transform: translateX(100%) rotate(25deg);
    }
}

.glowcard-img-top {
    flex: 1 1 auto;
    object-fit: cover;
    height: 200px; /* Feste Höhe oder 100% bei flexibler Lösung */
    width: 100%;
    transition: transform 0.5s ease;
}

.glowcard:hover .glowcard-img-top {
    transform: scale(1.1);
    cursor: pointer;
}

/* Mobile Ansicht: Kein Zoom-Effekt */
@media (max-width: 767px) {
    .glowcard-img-top {
        transition: none; /* Verhindert den Zoom-Effekt auf mobilen Geräten */
    }
}

/* Optional: Content-Bereich (wenn du später Text etc. hinzufügst) */
.glowcard-body {
    padding: 1rem;
    flex-grow: 0;
}


@media (max-width: 767px) {
    .glowcard {
        height: 200px;
    }

    .glowcard-img-top {
        height: 220px;
    }
}


.responsive-img {
    width: 100%; /* Auf Desktop mit w-100 */
    height: auto;
}

@media (max-width: 767px) {
    .responsive-img {
        width: 75%; /* Auf Handy mit w-75 */
    }
}


.news-card {
    position: relative;
    border: none;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.news-card .card-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-card .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4); /* Leicht durchsichtiger Hintergrund */
    color: white;
    z-index: 1; /* Text kommt über das Bild */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Text am unteren Rand der Karte ausrichten */
}


.news-card .card-body h5, .news-card .card-body p {
    position: relative;
    z-index: 2; /* Sicherstellen, dass der Text vor dem Bild bleibt */
}

.news-card .btn {
    position: relative;
    z-index: 2; /* Sicherstellen, dass der Button vor dem Bild bleibt */
}

/* Optional: Verbesserung der mobilen Ansicht */
@media (max-width: 767px) {
    .news-card .card-body {
        padding: 1rem;
    }
}

/* Setze eine feste Höhe für die große Karte auf der linken Seite */
.left-card {
    height: 500px; /* Beispielhöhe für die große Karte, du kannst sie anpassen */
    display: flex;
    flex-direction: column;
}

/* Stelle sicher, dass die rechte Spalte mit den 3 Karten die gleiche Höhe wie die linke hat */
.col-lg-4 .card {
    height: 100%; /* Macht die Höhe der Karten rechts 100% der Containerhöhe */
    display: flex;
    flex-direction: column;
}

/* Karte wird gestreckt, um die volle Höhe zu füllen */
.news-card {
    height: 100%;
    position: relative;
}

/* Karte Bildabdeckung */
.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* Beispielhöhe, anpassbar */
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sicherstellen, dass der Text am unteren Rand bleibt */
.card-body-gamecard {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6); /* Leicht durchsichtiger Hintergrund */
    color: white;
    z-index: 1; /* Text kommt über das Bild */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Text am unteren Rand der Karte ausrichten */
}


.scrollcontainer{
    height: 25rem;
    overflow-y: scroll;
}
.game-section {

    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 100%;
    overflow: hidden;
}

/* Padding für die Section */
.game-section .row {
    padding-left: 1rem;
    padding-right: 1rem;
}

.f2p-game-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
}

.f2p-game-card img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.store-section {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.store-heading {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.store-content {
    max-height: 30rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    border-radius: 0.8rem;
}

.store-card {
    border: none;
    border-radius: 0.8rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff;
    position: relative;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.store-image {
    height: 160px;
    object-fit: cover;
    overflow: hidden;
}

.store-cart-bar {
    background: rgba(255,255,255,0.9);
    padding: 0.3rem;
    border-top-left-radius: 0.5rem;
    position: absolute;
    top: 0;
    right: 0;
    overflow: hidden;
}

.store-link {
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
}

.btn-store-more {
    background-color: #ff6b6b;
    border: none;
    color: #fff;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.btn-store-more:hover {
    background-color: #ff4c4c;
}


.btn-store-more {
    background-color: #ff6b6b;
    border: none;
    color: #fff;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.btn-store-more:hover {
    background-color: #ff4c4c;
}

/*
.shopcard {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .shopcard {
        height: 300px;
    }
}

.shopcard img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.shopcard .cart-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.shopcard:hover .cart-icon {
    color: #fff;
}*/



.game-cover {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1rem;
    width: 75%;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .game-cover {
        width: 50%;
    }
}
.game-description {
    white-space: pre-line;
}
.info-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}
.info-card-dark {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid black;
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
}



.news_detail-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.news_detail-title {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.news_detail-description {
    white-space: pre-line;
}
.news_detail-image {
    border-radius: 0.75rem;
    max-width: 100%;
    height: auto;
}

.game-desc-style {
    color: black;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
}

.game-desc-style p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.game-desc-style h3 {
    color: #1c2e80;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.game-desc-style span {
    font-weight: bold;
}

.game-desc-style ul {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0;
}

.game-desc-style li {
    margin-bottom: 0.8rem;
}

.game-desc-style small {
    color: #aaa;
    font-size: 0.85rem;
}


#backButton {
    position: fixed;  /* Fixiert den Button an einer bestimmten Position */
    left: 20px;       /* Abstand von der linken Seite */
    bottom: 20px;     /* Abstand von der unteren Seite */
    z-index: 9999;    /* Stellt sicher, dass der Button immer oben ist */
    padding: 10px 15px;
    font-size: 20px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
    height: 3rem!important;
}

#backButton:hover {
    background-color: #0056b3; /* Etwas dunklerer Farbton bei Hover */
}



.game-card {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s;
    background-color: #1e1e1e;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-align: center;
}
.game-card:hover {
    transform: scale(1.05);
}
.game-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    object-fit: cover;
}
.search-input {
    margin-bottom: 1rem;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
}
/* Container for the Store Section */
.custom-section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}



/* Ensure all cards are equal size */
.custom-game-item {
    padding: 0;
}

/* Ensure the card has a fixed height */
.custom-game-card {
    width: 100%;

    position: relative;
    display: flex;

    background-color: #fff; /* Sicherstellen, dass der Hintergrund sichtbar bleibt */
}

/* Ensure the image fills the card but does not disrupt the layout */
.custom-game-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Bild soll hinter dem Text liegen */
}

.custom-game-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Bild füllt die gesamte Karte ohne Verzerrung */
}

/* Badge for Free and Paid Games */
.custom-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    z-index: 1;
}

/* Badge for Free to Play Games */
.custom-free-to-play {
    background-color: #28a745; /* Grün für kostenlose Spiele */
}

/* Badge for Paid Games */
.custom-paid {
    background-color: #6c757d; /* Grau für kostenpflichtige Spiele */
}

/* Custom Game Info (Title) */
.custom-game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Dunkler, halbtransparenter Hintergrund */
    color: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 0 0 10px 10px; /* Rundung am unteren Rand */
}

/* Game Title */
.custom-game-title {
    font-size: 1rem;
    font-weight: bold;
}

/* Custom Game Item Container */
.custom-game-item {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* Etwas Abstand zwischen den Karten */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .custom-game-card {
        height: 200px; /* Etwas kleinere Karten auf mobilen Geräten */
        border-radius: 8px;
    }

    .custom-game-title {
        font-size: 0.9rem;
    }

    .custom-badge {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

.shop-wrapper {
    background-color: #ffffff;
    padding: 20px;
}

.shop-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.shop-game-card {
    text-align: center;
}

.game-card {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: scale(1.03);
}

.game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.game-title {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
}


.shopindex-game-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    height: 300px; /* hier definieren wir die Kartenhöhe */

}

.shopindex-game-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.shopindex-game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    transition: background 0.3s, opacity 0.3s;
}

.shopindex-game-card:hover .shopindex-game-overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.shopindex-badge-free {
    background-color: #28a745;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.shopindex-badge-pay {
    background-color: #ffc107;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.shopindex-container{
    background-color: rgba(255, 255, 255, 0.6);
}


/* Standardmäßig 5 Spiele anzeigen (Desktop) */
.shopindex-game-item {
    display: block; /* Alle Spiele sichtbar */
}

/* Standardmäßig 5 Spiele anzeigen (Desktop) */
.shopindex-game-item-lib {
    display: block; /* Alle Spiele sichtbar */
}

/* Auf mobilen Geräten (max. 3 Spiele) */
@media (max-width: 767px) {
    .shopindex-game-item:nth-child(n+4) {
        display: none; /* Verstecke alle Spiele ab dem 4. Spiel */
    }
}

/* Auf mittleren Geräten (max. 5 Spiele) */
@media (min-width: 768px) and (max-width: 991px) {
    .shopindex-game-item:nth-child(n+6) {
        display: none; /* Verstecke alle Spiele ab dem 6. Spiel */
    }
}

/* Auf großen Geräten (Desktop) - max. 5 Spiele */
@media (min-width: 992px) {
    .shopindex-game-item:nth-child(n+6) {
        display: none; /* Verstecke alle Spiele ab dem 6. Spiel */
    }
}


.overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    text-align: center;
}

.overlay-link {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
}

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

@media (min-width: 768px) {
    .overlay-bottom {
        display: none;
    }
}


/* Wrapper für das Store-Bild */
.shopindex-store-wrapper {
    position: relative;
    display: block;
}

/* Bild bei Desktop nebeneinander platzieren */
@media (min-width: 768px) {
    .shopindex-store-wrapper {
        max-height: 25rem;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .shopindex-store-banner {
        object-fit: cover;
        height: 100%;
        width: auto;
        border-radius: 0.5rem;
    }
}

/* Desktop-Hover Overlay */
@media (min-width: 768px) {
    .store-overlay-hover {
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: background 0.3s, opacity 0.3s;
        border-radius: 0.5rem;
    }

    .shopindex-store-wrapper:hover .store-overlay-hover {
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 1;
    }

    .store-overlay-hover a {
        color: #fff;
        font-size: 1.5rem;
        font-weight: bold;
        text-decoration: none;
    }

    .store-overlay-hover a:hover {
        text-decoration: underline;
    }
}

/* Mobil: Balken unten */
.overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    text-align: center;
}

.overlay-link {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
}

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

@media (min-width: 768px) {
    .overlay-bottom {
        display: none;
    }
}

/* Spiele-Anzahl anpassen: Nur 3 ab Tablet */
@media (min-width: 768px) {
    .shopindex-game-item:nth-child(n+4) {
        display: none;
    }
}



.news-banner-image {
    object-fit: cover;
    width: 100%;
    height: 10rem;
    border-radius: 0.5rem;
}

/* Desktop */
@media (min-width: 768px) {
    .news-banner-image {
        height: 20rem;
    }
}
.news-banner-image {
    object-fit: cover;
    width: 100%;
    height: 10rem;
    border-radius: 0.5rem;
}

/* Desktop */
@media (min-width: 768px) {
    .news-banner-image {
        height: 20rem;
    }
}

.news-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    text-align: center;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.news-overlay-title {
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Desktop */
@media (min-width: 768px) {
    .news-overlay-title {
        font-size: 1.1rem;
    }
}


.news-banner-image {
    object-fit: cover;
    width: 100%;
    height: 10rem;
    border-radius: 0.5rem;
}

/* Desktop */
@media (min-width: 768px) {
    .news-banner-image {
        height: 30rem;
    }
}

.news-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    text-align: center;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.news-overlay-title {
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Desktop */
@media (min-width: 768px) {
    .news-overlay-title {
        font-size: 1.1rem;
    }
}
