* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
    color: #fff;
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  background-color: #0b0b0b;
}

.placeholder{
    height: 10px;
}

/* Nav-Stil */
.navbar {
    background-color: #fff0;
    padding: 10px 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    margin: 0 20px;
}

.navbar ul li a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
}

.navbar ul li a:hover {
    border-radius: 5px;
    color: #c5d8ee;
}


/* Header */
.mobile-header {
    display: none;
}


header {
    position: relative;
    width: 100vw;  
    height: 650px;
    background: url('header-image.webp') no-repeat center center/cover;
    overflow: hidden; 
}

header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;               
    height: 100%; 
    z-index: 1;
    background: linear-gradient(to top, rgba(11, 11, 11), rgba(0, 0, 0, 0.70) 100%);
    backdrop-filter: blur(2.5px);
    display: flex; 
    justify-content: center;
    align-items: center;

}

.pulse-header {
    color: #fff; /* Weißer Text */
    line-height: 1.5; /* Zeilenhöhe für bessere Lesbarkeit */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 204, 255, 0.7); /* Leuchtender Schatten */
    animation: pulse 3.0s infinite; /* Pulsierende Animation */

}

@keyframes pulse {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 204, 255, 0.7);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 40px rgba(0, 204, 255, 1);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 50%;
}
.server-info-box, .logo-box, .discord-box {
    flex: 1;
    text-align: center;
    color: #fff; 
}

#server-ip  {
    cursor: pointer;
    font-weight: bold; 
}
#discord-text  {
    font-weight: bold; 
}

.logo img {
    max-width: 200px;
    height: auto;
    animation: reveal 3s cubic-bezier(.68, -.55, .27, 1.55) .2s forwards;
}


@keyframes reveal {
    80% {
        transform: scale(1.25); /* Skaliert und dreht das Logo leicht */
    }


    100% {
        transform: scale(1); /* Setzt das Logo auf seine ursprüngliche Größe zurück */
    }
}

.discord-link {
    flex: 1;
    text-align: center;
    font-weight: bold;
}

.novaria-box {
    margin-top: 20px; /* Abstand oben */
}

/* Canvas */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}



/* Allgemeines Layout für den Content-Bereich */
.content {
    position: relative;
    margin-top: -10%;
    padding: 20px;
    padding-left: 15%;
    padding-right: 15%;
    box-sizing: border-box;
    z-index: 2;
}

.top-box, .left-box, .right-box, .full-width-box {
    border-radius: 5px;
    background-color: #161616; 
}

/* Top Box (über zwei Boxen) */
.top-box {
    width: 100%;
    box-sizing: border-box;
    text-align: center; 
    margin-bottom: 10px; 
}

.top-content {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
}

.minecraft-skin {
    overflow: hidden; 
    position: relative;
    margin-right: 20px;
}

.minecraft-skin img {
    height: 200px;
    margin-bottom: -80px;
}

.top-text {
    text-align: left; /* Text links ausrichten */
    max-width: 70%;
}

.top-box h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #c5d8ee;
}

.top-box p {
    font-size: 16px;
    color: #969696;
}

.bottom-boxes {
    display: flex; 
    justify-content: space-between; 
    gap: 0.5%;
}


.left-box {
    width: 25%; 
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.right-box {
    width: 75%;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.full-width-box {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.full-width-box h2{
    font-size: 17.5px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #c5d8ee;
}
.full-width-box li{
    margin-left: 20px;
}

.left-box h3 , .right-box  h3 , .full-width-box h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #c5d8ee;
}

.left-box p , .right-box  p , .full-width-box p {
    font-size: 16px;
    color: #B8BDBD;
}

.highlight h2{
    font-size: 17.5px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #c5d8ee;
} 

.game-modes-list, .reasons-list {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}

.game-modes-list li, .reasons-list li, .full-width-box li {
    font-size: 16px;
    color: #B8BDBD;
    margin-bottom: 8px;
}

/* Stil für die Sub-Listen (z.B. für Minigames) */
.game-modes-sublist {
    list-style-type: square;
    padding-left: 20px;
}

.game-modes-sublist li {
    font-size: 14px;
    color: #B8BDBD;
    margin-bottom: 5px;
    margin-top: 5px;
}

/* Footer */
.footer {
    width: 100%;
    background-color: #161616;
    color: #B8BDBD;
    padding: 20px 0;
    text-align: center;
    position: relative;
    bottom: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Maximale Breite des Inhalts */
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    text-align: center;
}

.footer-section a {
    color: #B8BDBD;
    font-size: 14px;
    text-decoration: none;
}

.footer-section a:hover {
    color: #c5d8ee;
}

.footer-section p {
    font-size: 14px;
}

.footer-line {
    margin-top: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(104,156,204,0.8) 0%, rgba(0,204,255,0.8) 100%);
}

.rules-section {
    margin-bottom: 20px;
    padding: 15px;
}

.left-box ul {
    list-style: none;
    padding-left: 20px;
}

.left-box ul li {
    margin: 5px 0;
}

.left-box ul li a {
    text-decoration: none;
}


.chat-rules ul , .freebuild-rules ul , .minigames-rules ul {
    padding-left: 20px;
}

.chat-rules ul li , .freebuild-rules ul li , .minigames-rules ul li{
    color: #c5d8ee; 
    font-weight: bold; 
    margin-bottom: 10px;
}

.rules-section p {
    padding-bottom: 10px;
}

button {
    background: none;
    border: none;
    color: #fff; 
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    padding: 10px 20px;
    margin: 10px 0;
    display: inline-block;
    text-align: center;
    width: 100%;
}


#mapWarning{
    text-align: center;
    font-size: 18px;
    color: #333;
    display: block;
}


.cookie-banner {
    position: fixed;
    bottom: 20px;  /* Etwas Abstand vom unteren Rand */
    left: 20px;    /* Etwas Abstand von der linken Seite */
    max-width: 200px;  /* Maximale Breite auf 200px begrenzt */
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;  /* Weniger Padding für kleinere Größe */
    text-align: left;    /* Text linksbündig ausrichten */
    z-index: 100;
    display: none; /* Wird bei Bedarf angezeigt */
    border-radius: 5px;  /* Abgerundete Ecken */
    word-wrap: break-word; /* Text wird umgebrochen, wenn er zu lang ist */
}

.cookie-banner button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;  /* Kleinere Schaltfläche */
    cursor: pointer;
    border-radius: 5px;
}

.cookie-banner button:hover {
    background-color: #45a049;
}


/* Mobil */
@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    .navbar ul li a {
        display: flex;
        align-items: center;
    }

    .navbar ul li a i {
        margin-right: 0;
    }

    .navbar ul li a::after {
        content: "";
        display: none;
    }

    .navbar ul li a {
        font-size: 0;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        height: 450px;
    }

    .logo img {
        max-width: 150px;
        margin-bottom: 20px;
    }
    .header-content {
        display: grid;
        height: 50%;
    }

    .mobile-header-box {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    
    #server-ip  {
        cursor: pointer;
        font-weight: bold; 
    }
    
    .bottom-boxes {
        flex-direction: column; 
    }

    .left-box, .right-box {
        width: 100%; 
        margin-bottom: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .top-box h2{
        font-size: 100%;
    }
    .minecraft-skin img{
        margin-right: 45px;
        margin-left: -30px;
    }

    iframe {
        width: 100%;
        height: 300px;
    }
    .gg-server{
        margin-top: -5px;
    }
}