@font-face {
    font-family: "Minecraft Five Bold";
    src: url('/static/fonts/minecraft-five-bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'minecraft-regular';
    src: url('../fonts/minecraft-regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: "Minecraft Five Bold", Arial, sans-serif;
    color: white;
    overflow-y: auto;
    background-image: url('../images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.header {
    width: 100%;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    background: transparent;
    border-radius: 10px;
}

.colored-link {
    text-decoration: none;
    font-size: 2.2em;
    font-family: inherit;
    text-align: center;
    flex: 1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 1), 
                -1px -1px 0 #000,  
                 1px -1px 0 #000,
                -1px  1px 0 #000,
                 1px  1px 0 #000;
}

.colored-link .yellow { color: #fce303; }
.colored-link .aqua { color: #61dafb; }
.colored-link .green { color: #00ff00; }

.colored-link:hover { text-decoration: underline; }

.online-count {
    color: white;
    font-family: 'minecraft-regular', sans-serif;
    font-size: 16px; /* Increased from 14px */
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px; /* Increased padding */
    border-radius: 5px;
    border: 1px solid #61dafb;
}


.btn {
    background-color: #61dafb;
    border: 2px solid rgba(0, 0, 0, 0.3);
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 10px;
    text-transform: uppercase;
    font-family: "Minecraft Five Bold";
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #21a1f1;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(97, 218, 251, 0.5);
}

.btn.transparent {
    background: transparent;
    color: white;
    border: none;
    padding: 8px 12px;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    box-shadow: none;
    text-transform: none;
}

.btn.transparent:hover {
    background: rgba(97, 218, 251, 0.2);
    transform: translateY(-2px);
}

#login-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

#login-section img {
    border-radius: 4px;
    image-rendering: pixelated;
}

.navbar {
    background-color: rgba(63, 63, 63, 0.7);
    border: 2px solid #DCDCDC;
    border-radius: 25px;
    text-align: center;
    padding: 10px 30px;
    width: fit-content;
    margin: 20px auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.navbar li a {
    text-decoration: none;
    color: white;
    font-size: 1.2em;
    padding: 8px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar li a:hover {
    background-color: #61dafb;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(97, 218, 251, 0.5);
}

/* Zusätzliche Styles für Games-Seite */
.games-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    padding: 20px;
}
/* --- MOBILE GAMES PAGE --- */
@media (max-width: 900px) {
    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100vw;
        height: 60px;
        background: #222;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    }
    .mobile-bottom-nav__item {
        flex: 1;
        text-align: center;
        color: #fff;
        font-size: 22px;
        padding: 10px 0;
        cursor: pointer;
        transition: background 0.2s;
    }
    .mobile-bottom-nav__item:active {
        background: #333;
    }
    .mobile-bottom-nav__item--center {
        font-size: 28px;
        font-weight: bold;
    }

    /* Modal Styles */
    .game-modal {
        display: none;
        position: fixed;
        z-index: 2000;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        justify-content: center;
        align-items: center;
    }
    .game-modal.active {
        display: flex;
    }
    .game-modal__content {
        background: #fff;
        border-radius: 12px;
        padding: 24px 16px;
        max-width: 90vw;
        width: 350px;
        box-shadow: 0 4px 24px rgba(0,0,0,0.2);
        text-align: center;
        position: relative;
    }
    .game-modal__close {
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 22px;
        color: #888;
        cursor: pointer;
    }
    .game-modal__img {
        width: 100%;
        max-width: 220px;
        border-radius: 8px;
        margin-bottom: 16px;
    }
    .game-modal__title {
        font-size: 22px;
        font-weight: bold;
        margin-bottom: 8px;
    }
    .game-modal__desc {
        font-size: 16px;
        color: #444;
        margin-bottom: 8px;
    }

    /* Games grid for mobile */
    .games-mobile-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-bottom: 80px; /* Platz für Bottom Nav */
    }
    .games-mobile-item {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        text-align: center;
        padding: 10px 6px;
        cursor: pointer;
        transition: box-shadow 0.2s;
    }
    .games-mobile-item:active {
        box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    }
    .games-mobile-item img {
        width: 100%;
        max-width: 100px;
        border-radius: 8px;
        margin-bottom: 6px;
    }
    .games-mobile-item__name {
        font-size: 15px;
        font-weight: 500;
        color: #222;
    }

    /* Hide desktop games grid on mobile */
    .games-container {
        display: none !important;
    }
}

.game-card {
    background-color: rgba(63, 63, 63, 0.7);
    border: 2px solid #DCDCDC;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    width: 300px;
    padding: 20px;
    text-align: center;
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.game-name {
    font-size: 1.5em;
    color: #fce303;
    margin-bottom: 10px;
}

.game-description {
    font-family: 'minecraft-regular',  sans-serif;
    font-size: 20px;
    text-align: left;
    margin-top: 15px;
    color: white;
    line-height: 1.2;
    padding: 10px;
    display: block; /* Always show the description */
}

.lang-switcher {
    display: flex;
    gap: 5px;

}

.lang-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #61dafb;
    padding: 4px; /* Increased from 2px */
    border-radius: 6px; /* Slightly increased radius */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    transform: translateY(-2px);
    background: rgba(97, 218, 251, 0.2);
}

.flag-icon {
    width: 32px; 
    height: 24px; 
    border-radius: 4px; 
    object-fit: cover;
    filter: none;
    image-rendering: pixelated;
}

.toggle-btn {
    display: none;
}

.top-left-info {
    position: absolute;
    top: 10px;
    left: 10px; 
    display: flex;
    flex-direction: column;
    gap: 8px; /* Increased from 5px */
    z-index: 1000;
}


#datenschutz {
    margin: 20px auto;
    max-width: 800px;
    padding: 20px;
    border: 2px solid #DCDCDC;
    border-radius: 25px;
    background-color: rgba(63, 63, 63, 0.7);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    text-align: left;
    font-size: 1.1em; 
}