/* Standard Desktop Styles (unverändert) */

html {
    overflow: scroll;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 0;  /* Remove scrollbar space */
    background: transparent;  /* Optional: just make scrollbar invisible */
}

/* Optional: show position indicator in red */
::-webkit-scrollbar-thumb {
    background: #FF0000;
}

body {
    margin: 0;
    font-family: "SUSE", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    width: 100%;
    height: auto;
    color: white;
    background-image: linear-gradient(180deg, rgba(255,158,0,0) 0%, rgba(0,0,0,1) 80%), url('bg_main.png');
    transition: background-image 1s ease-in-out;
}

nav {
    display: flex;
    justify-content: center; 
    align-items: center;    
    overflow: hidden;
    padding: 10px 0;      
}

.footer-links a {
    color: grey;
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white; /* Change color on hover */
}

nav a {
    color: #ffffff;
    text-align: center;
    padding: 0 30px;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    position: relative;
    display: inline-block;
    transition: color 0.5s ease;
}

nav a:hover {
    color: rgba(0,212,255,1);
}

.main {
    min-height: 880px;
    width: auto;
    position: relative;
    z-index: 2; /* Ensures .main content is above the background image */
}

#pbdesc {
    font-size: 20px;
}

#nein {
    font-size: 10px;
}

.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 10000; /* High z-index to ensure it is above everything */
}

.cookie-popup button {
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    margin-left: 10px;
    cursor: pointer;
    color: #fff;
}

.cookie-popup .accept {
    background-color: limegreen;
}

.cookie-popup .decline {
    background-color: red;
}

.cookie-popup p {
    margin: 0;
    margin-bottom: 10px;
}

.downloads {
    width: 70%;
    height: 80px;
    background-color: #141414;
    border-radius: 20px;
    left: 15%;
    position: relative;
}

.downloaddiv {
    text-align: left;
    left: 10%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
}

.modrinthbutton {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    background-color: #00ff88;
    width: 150px;
    height: 40px;
    border-radius: 10px;
    display: inline-block;
    margin-right: 20px;
    cursor: pointer;
    line-height: 40px; /* Center text vertically */
    color: white;
    position: relative;
    left: 175%;
}

.right{
    font-size: 20px;
    position: relative;
    left: 5.5%;
}

.downloadbutton {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    background-color: #0084ff;
    width: 150px;
    height: 40px;
    border-radius: 10px;
    display: inline-block;
    margin-right: 20px;
    cursor: pointer;
    line-height: 40px; /* Center text vertically */
    color: white;
}

.team {
    color: rgb(255, 255, 255);
    display: flex;
    left: 17%;
    position: relative;
}

.teammember {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    height: 450px;
    width: 350px;
    text-align: center;
    border-radius: 20px;
    margin-left: 30px;
    margin-right: 30px;
}

/* Style for social buttons container */
.social-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center; /* Center the buttons horizontally */
}

/* Style for each social button */
.social-button {
    width: 50px;
    height: 50px;
    border: 2px solid grey; /* Gray border */
    border-radius: 50%; /* Round shape */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px; /* Space between buttons */
    background-color: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Hover effect for social buttons */
.social-button:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Light background on hover */
    border-color: white; /* Change border color on hover */
}

/* Style for social button images */
.social-button img {
    width: 30px; /* Adjust image size */
    height: auto;
}

/* Specific styles for Discord button */
.discord-button img {
    filter: grayscale(100%); /* Gray out the image */
}

/* Specific styles for Instagram button */
.instagram-button img {
    filter: grayscale(100%); /* Gray out the image */
}

#pb {
    margin-top: 20px;
    border-radius: 100%;
}

#overprint {
    font-size: 70px;
    position: relative;
    left: 5.5%;
}

.main-content {
    position: relative;
    top: 300px;
    left: 5.5%;
}

.text-b{
    left: 5.5%;
    font-size: 20px;
    position: relative;
}

.text-b-i {
    left: 5.5%;
    font-size: 20px;
    position: relative;
    background-color: transparent; /* Hintergrund durchsichtig */
    color: white; /* Farbe des Textes (kann angepasst werden) */
    border: 1px solid #ccc; /* optional: Border anpassen */
    outline: none; /* optional: kein Outline, wenn der Input fokussiert ist */
    padding: 5px; /* optional: Abstand innen */
    border-radius: 5px;
}

.loginbutton{
    text-align: right;
    
}

.downloadbox{
    left: 5.5%;

    position: relative;
}

.text{
    left: 5.5%;

    position: relative;
}

.container {
    display: flex;
    align-items: center;
    position: relative;
}

#lost {
    font-weight: bold;
    font-size: 70px;
    color: #ffffff;
    margin: 0;
    display: inline;
}

#lost2 {
    font-weight: bold;
    font-size: 70px;
    color: #ffffff;
    margin: 0;
    display: inline;
}

.dropdown-toggle {
    font-weight: bold;
    color: #ffb006;
    font-size: 70px;
    cursor: pointer;
    display: inline;
    margin-left: 5px;
}

.dropdown-toggle:hover {
    color: #585858;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%;
    left: 28.5%;
    font-size: 20px;
}

.dropdown-content div {
    color: white;
    padding: 12px 16px;
    text-align: center;
    cursor: pointer;
}

.dropdown-content div:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.show {
    display: block;
}

footer {
    background-color: #141414;
    color: grey;
    padding: 20px 0;
    text-align: left;
    border-top: 1px solid #777777; /* Add a bar at the top of the footer */
}

.footer-links {
    margin-left: 10px;
    display: flex;
    justify-content: flex-start;
    padding: 10px 0;
    flex-wrap: wrap; /* Adjusts in case of smaller screens */
}

.footer-links a {
    color: grey;
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white; /* Change color on hover */
}

.footer-text {
    margin-left: 10px;
    font-size: 14px;
}

.footer-badge {
    margin-left: 10px;
    margin-top: 10px;
}

.footer-badge img {
    display: block;
}

/* Mobile Styles */
@media only screen and (max-width: 600px) {

    /* Anpassung der Navigation */
    nav {
        display: flex;

        justify-content: center;
        align-items: center;
    }

    nav a {
        padding: 0 10px;
        font-size: 20px; /* Größere Schriftgröße für bessere Lesbarkeit */
    }

    nav img {
        margin: 10px 0;
    }

    /* Hauptinhalt Anpassungen */
    .main {
        height: auto;
        padding: 20px;
    }

    .main-content {
        top: 10%;
        left: 0;
        padding: 10px;
        text-align: center; /* Zentriert den Text auf mobilen Geräten */
    }

    #lost, #lost2 {
        font-size: 50px; /* Kleinere Schriftgröße für mobile Geräte */
    }

    .dropdown-toggle {
        font-size: 50px;
    }

    .dropdown-content {
        left: 50%;
        transform: translateX(-50%);
        min-width: 90%;
    }

    /* Footer Anpassungen */
    footer {
        text-align: center;
        padding: 20px 10px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links a {
        margin: 5px 0;
    }

    .footer-badge {
        margin: 20px 0;
    }

    .downloads {
        width: 90%;
        margin: 20px auto;
        height: auto;
        text-align: center;
        padding: 20px;
    }

    .modrinthbutton, .downloadbutton {
        width: 80%;
        margin: 10px auto;
        font-size: 25px;
        line-height: 50px;
    }

    .team {
        left: 0%;
        flex-direction: column;
        align-items: center;
    }

    .teammember {
        width: 90%;
        margin: 20px 0;
    }

    #overprint {
        font-size: 50px; /* Anpassung der Überschrift für mobile Geräte */
    }
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Ensure it's above everything */
    color: white;
    font-size: 20px;
    font-weight: bold;
}

/* Spinner animation */
.spinner {
    border: 6px solid rgba(255, 255, 255, 0.3); /* Light outer border */
    border-top: 6px solid white; /* White top border for the spin effect */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

/* Keyframes for spinner rotation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide loading screen after page loads */
.hide-loading {
    display: none;
}