@font-face {
    font-family: 'Minecraft';
    src: url('/fonts/minecraft-german.woff2') format('woff2'),
         url('/fonts/minecraft-german.woff') format('woff');
    font-display: swap; /* Change from swap to optional for more stability */
}

/* ========== GLOBAL ========== */
* {
    font-size: 1.05rem;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Minecraft', sans-serif;
    padding-bottom: 20px;
    background: url('https://www.swerwer.win/img/background.webp') center / cover fixed no-repeat;
    /* Add these: */
    min-height: 100vh; /* Ensures body covers viewport */
    width: 100%;
    aspect-ratio: 16/9; /* Match your background image's ratio */
}

option {
    font-size: 0.9rem;
}

code {
    background-color: #000000a8 !important;
    border-radius: 10px;
    padding: 10px;
}

/* ========== TYPOGRAPHY ========== */
h1 {
    font-weight: 550 !important;
}

h2 {
    font-weight: 500 !important;
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.lead {
    font-weight: 400;
}

.description {
    font-size: 1.2rem;
}

.red-text {
    color: red;
}

/* ========== BUTTONS ========== */
.btn-green {
    background-color: #4A6029;
    color: white;
}

.btn-green:hover {
    background-color: rgb(32, 56, 4);
    color: white;
}

.btn-discord {
    background-color: #5865F2;
    color: white;
}

.btn-discord:hover {
    background-color: #3e4ce9;
}

.toggle-dropdown {
    background: none;
    border: none;
    padding-right: 0rem !important;
}

.toggle-dropdown:focus {
    outline: none;
}

/* ========== COMPONENTS ========== */
img {
    border-radius: 20px;
}

.page-icon {
    border-radius: 10px;
}

.card {
    border-radius: 0.7rem !important;
}

.blockquote {
    border-radius: 20px;
}

.blockquote-footer {
    text-align: right !important;
    padding-right: 30px;
    color: #595959;
}

.footer-rights {
    font-size: 14px !important;
}

.user-review,
.user-rewiew {
    height: 50px;
    width: 100%;
    border-radius: 0% !important;
    padding-top: 5px !important;
}

/* ========== BACKGROUNDS ========== */
.bg-grass {
    background: url('/img/bg-grass.webp') repeat;
    background-size: auto;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    height: auto;
}

.bg-wood {
    background: url('/img/wood.webp') repeat;
    background-position: -1px;
    background-size: auto;
    border-radius: 20px;
    color: #f0f0f0 !important;
    text-shadow: 1px 1px 2px #000000c5;
    box-shadow: 0 4px 12px #76a83c7c;
    border-radius: 12px; /* Optional: looks nice with shadows */
}

.bg-transparent {
    background-color: #0000007a !important;
    border-radius: 20px;
    color: #f0f0f0 !important;
    border-radius: 20px !important; /* Optional: looks nice with shadows */
}

.bg-dark,
.navbar-dark nav {
    background-color: #000000b0 !important;
}

/* ========== SLIDESHOW ========== */
#serverSlideshow .carousel-inner {
    border-radius: 15px;
    overflow: hidden;
}

#serverSlideshow .carousel-inner img {
    border-radius: 0;
}

/* ========== NAV ICONS ========== */
.nav-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    padding: 0 5px;
}

/* Reduziere die Höhe der Navbar */
.navbar {
    padding-top: 0.5rem;  /* Weniger Padding oben */
    padding-bottom: 0.5rem;  /* Weniger Padding unten */
    height: 70px;
}

@media (max-width: 991px) {
    .nav-icon {
        width: 60px;
        height: 60px;
    }
}

/* ========== NAVBAR ========== */
@media (min-width: 1380px) {
    .navbar {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0.5rem 1rem;
        height: 60px;
    }
    
    /* Container für die zentrierten Links */
    .navbar-links-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
    }
    
    .navbar-nav {
        display: flex;
        gap: 1rem; /* Gleichmäßiger Abstand zwischen Links */
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    /* Anpassung für Dropdown-Positionierung */
    .nav-item.dropdown {
        position: relative;
    }
    
    .submenu {
        position: absolute;
        left: 0;
        top: 100%;
        min-width: 200px;
    }
}

/* Responsive Anpassungen */
@media (max-width: 991px) {
    .navbar-links-container {
        display: none;
    }
    
    .navbar-brand {
        margin-right: auto;
    }
    
    .navbar-toggler {
        margin-left: auto;
    }
}

/* Social Icons und Language Selector auf der rechten Seite */
.navbar-socials {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== LANGUAGE SELECT ========== */
#language-switcher,
#mobile_language_switcher {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #1b1b1b;
    color: #fff;
    border: 1px solid #7a7a7a;
    border-radius: 4px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23fff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    width: 100%;
    max-width: 90vw;
    min-width: 200px;
    display: block;
    margin: 1rem auto;
    box-sizing: border-box;
    font-size: 1rem;
}

/* Anpassung für Bootstrap Select Dropdown */
.form-select {
    background-color: #1b1b1b;
    color: #fff;
    border: 1px solid #7a7a7a;
}

.form-select:focus {
    border-color: #76a83c;
    box-shadow: 0 0 0 0.25rem rgba(118, 168, 60, 0.25);
}

#language-switcher, 
#mobile_language_switcher {
    background-color: #1b1b1b;
    color: #fff;
    border: 1px solid #7a7a7a;
    border-radius: 4px;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23fff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
}

#language-switcher option,
#mobile_language_switcher option {
    background: #1b1b1b;
    color: #fff;
}

/* ========== FOOTER ========== */
footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: relative;
    bottom: 0;
}

/* ========== OVERLAY MENU (MOBILE) ========== */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: rgba(15, 15, 15, 0.95);
        z-index: 1050;
        overflow-y: auto;
    }
@media (max-width: 991px) {
    
    .overlay-content {
        padding: 2rem;
        color: white;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .overlay-content ul.nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding-left: 0;
        margin: 0;
    }
    
    .overlay-content .nav-link,
    .overlay-content .toggle-dropdown {
        width: 100%;
        max-width: 300px;
        margin: 0.25rem 0;
        color: white;
        font-size: 1.5rem;
        padding: 0.75rem 0;
    }
    
    .overlay-content .nav-link:hover,
    .overlay-content .dropdown-item:hover,
    .submenu a:hover {
        color: #ffc107;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }
    
    .submenu {
        display: none;
        list-style: none;
        padding-left: 0;
        margin-top: 0.5rem;
    }
    
    .submenu a {
        display: block;
        padding: 0.4rem 0;
        color: #ddd;
        font-size: 1.1rem;
        text-align: center;
    }
    
    .mobile-overlay {
        z-index: 1050; /* Sicherstellen, dass das Overlay über allem liegt */
    }

    .overlay-content {
        position: relative;
        z-index: 1051; /* Höher als das Overlay */
    }

    .nav-item.dropdown {
        position: static; /* Wichtig für korrekte Positionierung */
        margin: 0;
        padding: 0;
    }

    .toggle-dropdown {
        position: relative;
        z-index: 1052; /* Höher als der Content */
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        padding: 0.75rem 0;
        width: 100%;
        max-width: 300px;
        text-align: center;
        cursor: pointer;
    }

    .submenu {
        position: relative; /* Geändert von absolute zu relative */
        z-index: 1051;
        display: none;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0;
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 0 0 5px 5px;
    }

    .submenu.active {
        display: block;
    }

    .submenu li {
        padding: 0;
    }

    .submenu a {
        display: block;
        padding: 0.5rem 0;
        color: white;
        text-decoration: none;
        font-size: 1.2rem;
    }

    /* Verhindert Layout-Verschiebungen */
    .overlay-content ul.nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 991px) {
    * {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    main {
        width: 90%;
        margin: auto;
    }

    .mobile-image {
        display: none;
    }
}

/* ========== MISC ========== */
.text-green {
    color: #76a83c !important;
}

.fas, .far {
    color: #76a83c !important;
}

#features {
    flex: 1;
}

.dropdown-item {
    color: rgb(255 255 255 / 75%);
}

.dropdown-item:hover {
    background-color: #000000b0;
    color: white !important;
}

.dropdown-menu {
    background-color: #000000b0 !important;
}

.warning-banner {
    background-color: #fff;
    color: black;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    position: relative;
}

.card {
    background-color: #0000007a;
    color: white;
    height: 100%;
}

footer {
    background-color: #00000062 !important;
}

#join-tutorial li {
    font-size: 1.2rem !important;
}

#join-tutorial li::marker {
    padding-right: 1rem !important; 
  }

@media (max-width: 991px) {
    .desktop-image {
        display: none !important;
    }

    .mobile-image {
        display: block;
    }
}

@media (min-width: 991px) {
    .mobile-image {
        display: none !important;
    }
}