@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: rgb(0, 0, 0);
    color: white;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    width: 110%;
    padding: 1rem 20%;
    background-color: rgba(0, 0, 0, 0.8); /* Transparent background */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100; /* Ensure it's on top of other elements */
    backdrop-filter: blur(10px); /* Add a blur effect for the background */
}


.server-status {
    padding: 2rem;
    background-color: #161616;
    color: white;
    border: 2px solid #9d00ff;
    border-radius: 8px;
    margin: 2rem 9%;
    top: 2px; /* Adjust the top distance as per your layout */
    right: 2px; /* Adjust the right distance to place it properly */
    z-index: 110; /* Ensure it's on top of other elements */
    
}




.logo{
    font-size: 3rem;
    color: #9b53c8;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}



nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #9900ff;
    border-bottom: 3px solid #a203ff;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b301ff;
        border-bottom: 3px solid #aa17f4;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #000000;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #c005ff;
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}


.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: rgba(197, 0, 0, 0);
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #ae26e4;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    margin-left: 120px;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #c004ff;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #993fce;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b700ea;
}

.social-icons a:hover{
    color: rgb(0, 0, 0);
    transform: scale(1.3) translateY(-5px);
    background-color: #b103fb;
    box-shadow: 0  0 25px #aa59d2;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b31cff;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #8207ed;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #d000ff;
    color: black;
    box-shadow: 0 0 25px #a307d3;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #c001ff;
    animation: words 10s infinite;
}

.typing-text span::after{
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #bd17ff;
    }
}

@keyframes words{
    0%, 20%{
        content: "Economy ";
    }
    21%, 40%{
        content: "Survival ";
    }
    41%, 60%{
        content: "Events";
    }
    61%, 80%{
        content: "rewards";
    }
    81%, 100%{
        content: "giveways";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: -20rem;
        margin-right: 10rem;
    }
}
@media(max-width:995px) {
    /* Hide the server status section when the screen width is smaller than 995px */
    .server-status {
        display: none;
    }
}



.server-status {
    padding: 2rem;
    background-color: #161616;
    color: white;
    border: 2px solid #ae00ff;
    border-radius: 50px;
    margin: 23em 85%;
    margin-left: 1rem;
    position: relative; /* Or use 'absolute' */
    margin-top: -850px;
}

.server-status h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #9c08ff;

}

#server-info {
    font-size: 1.6rem;
}

#player-list {
    list-style-type: none;
    padding: 0;
}

#player-list li {
    padding: 0.5rem 0;
}


/* General styles for all sections */
section {
    padding: 20rem 9%;
    background-color: rgba(197, 0, 0, 0);
    color: rgb(255, 255, 255);
    font-size: 2rem;
}

/* Rules section specific styles */
.rules-section h1 {
    font-size: 3rem;
    color: #ae33ef;
    text-align: center;

}

.rules-section h2 {
    font-size: 3rem;
    color: #b74b4b;
    text-align: center;
}

.rules-section h3 {
    font-size: 3rem;
    color: #b74b4b;
    text-align: center;
}

.rules-section h4 {
    font-size: 3rem;
    color: #b74b4b;
    text-align: center;
}




.rules-content1 {
    font-size: 2rem;
    padding: 2rem;
    background-color: #161616;
    border: 2px solid #9d3aff;
    border-radius: 30px;
    margin: 1rem auto;
}

.rules-content2 {
    font-size: 2rem;
    padding: 2rem;
    background-color: #161616;
    border: 2px solid #9d3aff;
    border-radius: 30px;
    margin: 1rem auto;
}

.rules-content3 {
    font-size: 2rem;
    padding: 2rem;
    background-color: #161616;
    border: 2px solid #ff0000;
    border-radius: 30px;
    margin: 2rem auto;
}


.Trailers-content1 {
    font-size: 2rem;
    padding: 2rem;
    background-color: #161616;
    border: 2px solid #9d3aff;
    border-radius: 30px;
    margin: 1rem auto;
}

.Trailers-content2 {
    font-size: 2rem;
    padding: 2rem;
    background-color: #161616;
    border: 2px solid #9d3aff;
    border-radius: 30px;
    margin: 1rem auto;
}


.Trailers-section h1 {
    font-size: 3rem;
    color: #ae33ef;
    text-align: center;

}
/* Updates section specific styles */
.updates-section h2 {
    font-size: 3rem;
    color: #b74b4b;
    text-align: center;
}

.updates-content {
    font-size: 1.8rem;
    padding: 2rem;
    background-color: #161616;
    border: 2px solid #b74b4b;
    border-radius: 8px;
    margin: 2rem auto;
}

/* Announcements section specific styles */
.announcements-section h2 {
    font-size: 3rem;
    color: #b74b4b;
    text-align: center;
}

.announcements-content {
    font-size: 1.8rem;
    padding: 2rem;
    background-color: #161616;
    border: 2px solid #b74b4b;
    border-radius: 8px;
    margin: 2rem auto;
}

/* Informations section specific styles */
.info-section h2 {
    font-size: 3rem;
    color: #b74b4b;
    text-align: center;
}

.info-content {
    font-size: 1.8rem;
    padding: 2rem;
    background-color: #161616;
    border: 2px solid #b74b4b;
    border-radius: 8px;
    margin: 2rem auto;
}

.informations-content {
    font-size: 2rem;
    padding: 2rem;
    background-color: #161616;
    border: 2px solid #b74b4b;
    border-radius: 30px;
    margin: 2rem auto;
}




.back-container {
    text-align: center;
    margin-top: 2rem;
}

.back-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #a006ff;
    color: white;
    border-radius: 30px;
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #38015a;
}

.back-btn:hover {
    background-color: white;
    color: #b31aff;
    transform: scale(1.1);
    box-shadow: 20 100 50px #6e0c8f;
}

.back-btn:active {
    transform: scale(0.95);
}


/* Style pour le menu déroulant */
.dropdown-menu {
    display: none; /* Le menu est caché par défaut */
    position: absolute;
    top: 100%; /* Place le menu sous le header */
    right: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Couleur de fond */
    border-radius: 8px;
    z-index: 1000;
    padding: 1rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.dropdown-menu a {
    display: block;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #444; /* Change la couleur quand on survole */
}

/* Afficher le menu lorsqu'il est actif */
.dropdown-menu.active {
    display: block;
}

/* Style pour le bouton menu */
.menu-btn {
    background-color: transparent;
    border: none;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

@media(max-width: 995px) {
    nav {
        display: none; /* Cache la navigation par défaut sur mobile */
    }

    nav.active {
        display: block; /* Affiche la navigation lorsque activée */
    }
}
