/* ============================================
   HEADER SECTION - DESKTOP FIRST (Original Style)
   ============================================ */

header {
    background-image:
        linear-gradient(to bottom, rgba(36, 28, 20, 0) 60%, var(--mainbg) 100%),
        url(../images/headerbackground.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 60vw;
    width: 100%;
    background-color: #241c14;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    font-family: var(--pixelfont);
    background: transparent;
    display: flex;
    padding: 10px;
    align-items: center;
    justify-content: center;
    position: inherit;
    padding-top: 5vw;
}

.navbar a {
    text-decoration: none;
    background: transparent;
    padding: 1.5vw;
    padding-top: 5vw;
    font-size: 1.2vw;
    color: aliceblue;
    transition: ease 300ms;
}

.nava a {
    text-align: center;
    align-items: center;
    justify-content: center;
}

.nava a:hover {
    color: #FF55FF;
    letter-spacing: 0.5vw;
    font-weight: bold;
    transition: ease 300ms;
}

/* Hide the checkbox itself */
.nav-toggle {
    display: none;
}

/* Hidden by default on desktop */
.nav-toggle-label {
    display: none;
}

/* +MORE MENU DROPDOWN */
.dropdown {
  position: relative;
}

/* .nava {
    padding-top: 5vw;
} */

/* Style the dropdown button */
.dropbtn {
    background-color: transparent;
    padding-top: 0.5vw;
    padding-bottom: 0.5vw;
    font-size: 1.2vw;
    /* padding-top: 5vw; */
    border: none;
    cursor: pointer;
    color: aliceblue;
    font-family: var(--pixelfont);
    transition: ease;
}

.dropbtn:hover {
    color: #FF55FF;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: black;
  opacity: 50%;
  min-width: 250px;
  border-radius: 10%;
  transition: ease 300ms;
  /* box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); */
}

.dropdown-content:hover {
    opacity: 80%;
}

/* Links inside dropdown content */
.dropdown-content a {
  color: aliceblue;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  font-size: 80%;
  transition: ease 100ms;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  /* background-color: yellowgreen; */
  /* background-image: linear-gradient(to right, black, aliceblue); */
  border-radius: 10%;
  color: yellowgreen;
  opacity: 1;
}

/* Show the dropdown content on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change background color of dropdown button on hover */
.dropdown:hover .dropbtn {
  background-color: transparent;
}


/* ============================================
   TITLE SECTION
   ============================================ */

.title {
    background: transparent;
    padding-top: 10vw;
    padding-bottom: 1vw;
    font-family: var(--pixelfont);
    text-align: center;
}

.title h1 {
    color: lightblue;
    font-size: 3.5vw;
    margin-bottom: 0.5vw;
    text-shadow: 0 0 10px black;
    transition: ease 500ms;
}

.title h1:hover {
    transition: ease 500ms;
    color: var(--maincolor);
    font-size: 3.6vw;
    text-shadow: 0 0 10px black;
    letter-spacing: 0.5vw;
}

.title h2 {
    color: aliceblue;
    font-size: 1.5vw;
    text-shadow: 0 0 5px black;
    transition: ease 500ms;
}

.title h2:hover {
    color: var(--maincolor);
    transition: ease 500ms;
    font-size: 1.6vw;
    text-shadow: 0 0 5px black;
}

/* ============================================
   STATUS SECTION
   ============================================ */

.status {
    background: transparent;
    padding: 0.5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-bar {
    background: transparent;
    text-align: center;
    padding: 1vw;
    height: 5vw;
}

.status-head {
    font-family: var(--pixelfont);
    color: yellowgreen;
    margin-bottom: 0.1vw;
    font-size: 1.3vw;
    text-shadow: 0 0 3px black;
    transition: ease 500ms;
}

.status-head:hover {
    transition: ease 500ms;
    color: var(--maincolor);
}

.status-ip {
    color: aliceblue;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.3vw;
    margin-top: 0.5vw;
    font-size: 1.2vw;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.status-ip::after {
    content: "CLICK TO COPY";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: aliceblue;
    font-family: inherit;
    letter-spacing: inherit;
    font-size: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: ease 500ms;
}

.status-ip:hover:not(.copied) {
    color: transparent;
}

.status-ip:hover:not(.copied)::after {
    opacity: 1;
}

.status-ip.copied {
    color: transparent;
}

.status-ip.copied::after {
    content: "SERVER IP COPIED";
    opacity: 1;
    transition: ease 500ms;
}

/* ============================================
   DISCORD BOX
   ============================================ */

.discord-box {
    background: transparent;
    font-family: Arial;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 4vw;
    text-align: center;
    padding: 1vw;
    height: 5vw;
}

.discord-box h3 {
    color: #38b6ff;
    font-family: var(--pixelfont);
    font-size: 1.2vw;
    text-shadow: 0 0 3px black;
    transition: ease 500ms;
}

.discord-box h3:hover {
    transition: ease 500ms;
    color: var(--maincolor);
}

.join-btn {
    display: inline-block;
    padding: 4px 20px;
    background: #7289da;
    margin-top: -1vw;
    width: 60%;
    color: aliceblue;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-size: 1vw;
    font-family: Arial, Helvetica, sans-serif;
    text-shadow: 0 0 3px black;
    transition: ease 500ms;
}

.join-btn:hover {
    transition: ease 500ms;
    width: 70%;
    letter-spacing: 0.3vw;
    font-weight: bold;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    header {
        background-image:
            linear-gradient(to bottom, rgba(36, 28, 20, 0) 60%, var(--mainbg) 100%),
            url(../images/headerbackground.png);
        background-repeat: no-repeat;
        background-size: cover;
        height: 100vh;
        min-height: 600px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Hamburger icon */
    .nav-toggle-label {
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 24px;
        cursor: pointer;
        z-index: 1100;
        position: fixed;
        top: 15px;
        right: 25px;
    }

    .nav-toggle-label span {
        display: block;
        width: 100%;
        height: 3px;
        background: aliceblue;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    /* OVERLAY NAVBAR */
    .navbar {
        position: fixed;
        inset: 0;
        background-image:
            linear-gradient(to bottom, rgba(36, 28, 20, 0.95) 60%, rgba(36, 28, 20, 0.98) 100%),
            url(../images/headerbackground.png);
        background-position: center;
        background-size: cover;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 1000;
        height: 100vh;
        width: 100vw;
    }

    .navbar a {
        padding: 10px 0;
        font-size: 6vw;
        width: 100%;
        text-align: center;
    }

    /* Show overlay when checked */
    .nav-toggle:checked ~ .navbar {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Animate hamburger → X */
    .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .dropbtn {
        font-size: 6vw;
    }
    .dropbtn:hover {
        color: #FF55FF;
    }
    .dropdown-content a {
        font-size: 3vw;
    }

    .title {
        background: transparent;
        padding-top: 0;
        padding-bottom: 1vw;
        font-family: var(--pixelfont);
        text-align: center;
    }

    .title h1 {
        color: lightblue;
        font-size: 6vw;
        margin-bottom: 0.5vw;
        text-shadow: 0 0 10px black;
        transition: ease 500ms;
    }

    .title h2 {
        color: aliceblue;
        font-size: 2.5vw;
        text-shadow: 0 0 5px black;
        transition: ease 500ms;
    }

    .status {
        background: transparent;
        padding: 2vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5vw;
    }

    .status-bar {
        height: auto;
        padding: 2vw;
    }

    .status-head {
        font-family: var(--pixelfont);
        color: yellowgreen;
        margin-bottom: 0.5vw;
        font-size: 3.5vw;
        text-shadow: 0 0 3px black;
        transition: ease 500ms;
    }

    .status-ip {
        color: aliceblue;
        font-family: Arial, Helvetica, sans-serif;
        letter-spacing: 0.3vw;
        margin-top: 1vw;
        font-size: 3.6vw;
        position: relative;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .discord-box {
        margin: 0;
        margin-left: 0;
        height: auto;
        padding: 2vw;
    }

    .discord-box h3 {
        color: white;
        font-family: var(--pixelfont);
        font-size: 3.5vw;
        margin-top: 0.5vw;
        text-shadow: 0 0 3px black;
        transition: ease 500ms;
    }

    .join-btn {
        display: inline-block;
        padding: 4px 20px;
        background: #7289da;
        margin-top: 2vw;
        width: 60%;
        max-width: 300px;
        color: aliceblue;
        border-radius: 5px;
        text-decoration: none;
        text-align: center;
        font-size: 3.5vw;
        font-family: Arial, Helvetica, sans-serif;
        text-shadow: 0 0 3px black;
        transition: ease 500ms;
    }
}
