

header {
    /* gradient on top, image underneath */
    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; /* fallback */
}

.navbar {
    font-family: var(--pixelfont);
    background: transparent;
    display: flex;
    padding: 10px;
    align-items: center;
    justify-content: center;
    position: inherit;
}

.navbar a {
    text-decoration: none;
    background: transparent;
    padding: 1.5vw;
    padding-top: 5vw;
    font-size: 1.2vw;
    color: aliceblue;
    transition: ease 300ms;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.navbar a:hover {
    color: #FF55FF;
    letter-spacing: 0.5vw;
    /* text-decoration: underline; */
    font-weight: bold;
    transition: ease 300ms;
}

/* Hide the checkbox itself */
.nav-toggle {
    display: none;
}

/* Hidden by default on desktop */
.nav-toggle-label {
    display: none;
}

.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 {
    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;
}

/* Hover effect to show "CLICK TO COPY LINK" */
.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; /* hide original text */
}

.status-ip:hover:not(.copied)::after {
  opacity: 1; /* show hover text only if not copied */
}

/* Copied feedback */
.status-ip.copied {
  color: transparent; /* hide original text */
}

.status-ip.copied::after {
  content: "SERVER IP COPIED";
  opacity: 1;
  transition: ease 500ms;
}

.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;
}

@media (max-width: 1100px) {
    header {
    background-image:
        linear-gradient(to bottom, rgba(36, 28, 20, 0) 60%, #241c14 100%),
        url(/images/headerbackground.png);
    background-repeat: no-repeat;
    background-size: cover;
    height: 50vw;
    width: 100%;
    }
}
@media (max-width: 576px) {
    header {
    background-image:
        linear-gradient(to bottom, rgba(36, 28, 20, 0) 60%, #241c14 100%),
        url(/images/headerbackground.png);
    background-repeat: no-repeat;
    background-size: cover;
    height: 55vw;
    width: 100%;
    }
}
@media (max-width: 768px) {

    /* 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: 15px;
    }

    .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; /* top:0; right:0; bottom:0; left:0; */
        background-image:
            linear-gradient(to bottom, rgba(36, 28, 20, 0) 60%, #241c14 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: 65vw;
        width: 100vw;
    }

    .navbar a {
        padding: 10px 0;
        font-size: 3.5vw;
        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);
    }

    .title {
        background: transparent;
        padding-top: 10vw;
        padding-bottom: 1vw;
        font-family: var(--pixelfont);
        text-align: center;
    }

    .title h1 {
        color: lightblue;
        font-size: 5.5vw;
        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: 0.5vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .status-head {
        font-family: var(--pixelfont);
        color: yellowgreen;
        margin-bottom: 0.1vw;
        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: 0.5vw;
    font-size: 3.6vw;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
    }

    .discord-box {
        margin: 10vw;
    }

    .discord-box h3 {
    color: aliceblue;
    font-family: var(--pixelfont);
    font-size: 3vw;
    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: -1vw;
    width: 60%;
    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;
    }
}