.server-stats {
  color: white;
}

.server-stats.online span {
  color: greenyellow;
}

.server-stats.offline span {
  color: red;
}

@media screen and (max-width: 768px) {
  body,
  html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Bahnschrift", Arial, sans-serif;
  }

  .navbar {
    display: none;
  }

  #section1 {
    display: none;
  }

  #section2 {
    display: none;
  }

  .hamburger {
    z-index: 997;
  }

  .top-bar {
    position: fixed;
    height: 4rem;
    background-color: black;
    width: 100vw;
    opacity: .75;
    z-index: 999;
  }

  .burger {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    inset: 0 0 0 30%;
    padding: min(30vh, 10rem) 2em;
    transform: translateX(100%);
    transition: transform 350ms ease-out;
    z-index: 998;
    -webkit-backdrop-filter: blur(10px);
  }

  .burger a, .burger p {
    font-size: 20px;
    padding: 10px;
    text-decoration: none;
    color: black;
  }

  .burger.active {
    transform: translateX(0%);
  }

  .burgerIcon {
    position: fixed;
    top: 0;
    left: calc(100vw - 3rem);
    font-size: 40px;
    z-index: 999;
    color: white;
  }

  #section1-mobile {
    height: 100%;
    min-height: 100%;
    width: 100vw;
    background-image: url('mobile_background-images/mobilebg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
  }

  .logo {
    width: 80vw;
    margin-top: 7vh;
    align-self: center;
  }

  .server-stats {
    align-self: center;
  }

  .section1-container {
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
  }

  .characters-android {
    align-self: center;
    position: relative;
    flex-grow: 1;
    display: flex;
    margin-bottom: 1rem;
  }

  .characters {
    width: 40vh;
    max-width: 100vw;
    align-self: center;
  }

  .download-button {
    width: 40vw;
    z-index: 1;
    position: absolute;
    bottom: 0;
  }

  .download-button-left {
    left: 3%;
  }

  .download-button-right {
    left: 52%;
  }

  .info-downloads {
    width: 90vw;
    align-items: center;
    display: flex;
    flex-direction: row;
    align-self: center;
    justify-content: space-evenly;
    margin-bottom: 1rem;
  }

  .mac-download,
  .windows-download {
    width: 40vw;
    opacity: .8;
  }

  .buttons {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    z-index: 1;
  }

  .top-button {
    height: 12vw;
    width: 12vw;
    border-radius: 25%;
    border: solid;
    background-color: rgba(0, 0, 0, 0.5);
    border-color: white;
    z-index: 1;
  }

  .discord-button {
    background-image: url('fb_discord_buttons/ddicon.png');
    background-size: 80% 80%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: 998;
  }

  .facebook-button {
    background-image: url('fb_discord_buttons/fbicon.png');
    background-size: 80% 80%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: 998;
  }

  .youtube-button {
    background-image: url('fb_discord_buttons/yticon.png');
    background-size: 80% 80%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: 998;
  }

  .instagram-button {
    background-image: url('fb_discord_buttons/igicon.png');
    background-size: 80% 80%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: 998;
  }

  #section2-mobile {
    height: 100vh;
    width: 100vw;
    background-image: url('mobile_background-images/mobileclassbg.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    flex-direction: column;
    z-index: -1000;
    overflow: hidden;

  }

  .section2-container-mobile {
    width: auto;
    min-height: 100vh;
    overflow-y: hidden;
    position: relative;

  }

  .black-bar {
    position: absolute;
    width: 100%;
    height: 50vh;
    background-image: url('background_images/botblackfadebar.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 1;
    bottom: 0;
  }

  .smoke {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30vh;
    z-index: 2;
    background-image: url('background_images/bottomfog.png');
    background-size: 60vh;
    background-repeat: no-repeat;
    background-position-y: bottom;
    background-position-x: center;
  }

  .class-card {
    display: grid;
    grid-template-areas:
      "arrow-left class-picture class-name arrow-right"
      "arrow-left class-picture class-description arrow-right"
      "arrow-left class-picture class-skills arrow-right";
    grid-template-columns: 1fr 5fr 5fr 1fr;
    height: 100vh;
    grid-template-rows: 1fr 1fr 1fr;

  }

  #previous-mobile,
  #next-mobile {
    background: none;
    border: none;
    padding: 0;

  }

  .arrow-left-button,
  .arrow-right-button {
    cursor: pointer;
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;

  }

  .arrow-left {
    grid-area: arrow-left;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }

  .arrow-right {
    grid-area: arrow-right;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }

  @media(orientation:portrait) {
    .class-name {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 99vh;
      top: 1vh;
      position: absolute;
    }

    .class-name-image, .class-skills-image {
      align-self: center;
      transition: opacity 0.5s;
      opacity: 1;
    }

    .class-name-image {
      width: 95vw;
      margin-top: 5rem;
    }

    .class-description {
      color: white;
      text-align: center;
      width: 90vw;
      align-self: center;
      font-size: .75rem;
      font-weight: 300;
      transition: opacity 0.5s;
      opacity: 1;
    }

    .class-skills-image {
      width: 80vw;
    }

    .class-card {
      grid-template-areas:
        "arrow-left . arrow-right"
        ". . .";
      grid-template-columns: 1fr 4fr 1fr;
      grid-template-rows: 1fr 3fr;
      position: absolute;
    }

    .class-picture {
      width: 100vw;
      transition: transform 1s;
      transform: translate(0);
    }

    .show {
      transform: translateY(200%);
    }

    .fade-out {
      opacity: 0;
    }
  }

  @media(orientation:landscape) {

    .download-button-box {
      flex: 80%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
    }

    .info-downloads {
      flex: 10%;
      align-items: center;
      display: flex;
      flex-direction: row;
      align-items: flex-end;
      justify-content: center;
    }

    .mac-download,
    .windows-download {
      height: 20vh;
      width: 40vh;
      margin: 0 10px;
    }

    .download-button {
      height: 20vh;
      width: 40vh;
    }

    .buttons {
      flex: 10%;
      display: flex;
      flex-direction: row;
      justify-content: space-evenly;
      align-items: top;
      z-index: 1;
    }

    .top-button {
      height: 12vh;
      width: 12vh;
      border-radius: 25%;
      border: solid;
      background-color: rgba(0, 0, 0, 0.7);
      border-color: white;
      z-index: 1;
    }

    .class-image {
      grid-area: class-picture;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      position: relative;

    }

    .class-picture {
      max-width: 100%;
      max-height: 100%;
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
      transition: transform 1s;
      transform: translate(0);
    }

    .class-name {
      grid-area: class-name;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      position: relative;
    }

    .class-name-image {
      width: 120%;
      height: 120%;
      object-fit: contain;
      position: absolute;
      top: 0;
      transition: opacity 0.5s;
      opacity: 1;
    }

    #name-picture-sharpshooter {
      width: 120%;
      height: 120%;
      object-fit: contain;
      position: absolute;
      top: 0;
      transition: opacity 0.5s;
      opacity: 1;
    }

    .class-description {
      grid-area: class-description;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      position: relative;
    }

    .class-description-image {
      width: 130%;
      height: 130%;
      position: absolute;
      object-fit: contain;
      transition: opacity 0.5s;
      opacity: 1;
    }

    .class-skills {
      grid-area: class-skills;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      position: relative;
    }

    .class-skills-image {
      max-width: 100%;
      max-height: 100%;
      width: 100%;
      height: 100%;
      object-fit: contain;
      position: absolute;
      transition: opacity 0.5s;
      opacity: 1;
      z-index: 5;
    }

    .fade-out {
      opacity: 0;
    }

    .show {
      transform: translateY(200%);
    }
  }
}

@media screen and (min-width: 769px) {
  body,
  html {
    min-width: 1024px;
    margin: 0;
    padding: 0;
    font-family: "Bahnschrift", Arial, sans-serif;
  }

  #section1-mobile {
    display: none;
  }

  #section2-mobile {
    display: none;
  }

  .hamburger {
    z-index: 997;
  }

  .top-bar {
    position: fixed;
    height: 4rem;
    background-color: black;
    width: 100vw;
    opacity: .75;
    z-index: 999;
  }

  .burger {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    inset: 0 0 0 30%;
    padding: min(30vh, 10rem) 2em;
    transform: translateX(100%);
    transition: transform 350ms ease-out;
    z-index: 998;
    -webkit-backdrop-filter: blur(10px);
  }

  .burger a {
    font-size: 20px;
    padding: 10px;
    text-decoration: none;
    color: black;
  }

  .burger.active {
    transform: translateX(0%);
  }

  .burgerIcon {
    position: fixed;
    top: 0;
    left: calc(100vw - 3rem);
    font-size: 40px;
    z-index: 999;
    color: white;
  }

  @media only screen and (min-width: 1100px) {
    .hamburger {
      display: none;
    }
  }

  .container {
    max-width: 100%;
    margin: 0 auto;
    overflow: auto;
  }

  .navbar {
    display: none;
  }

  @media only screen and (min-width: 1100px) {
    .navbar {
      position: fixed;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      flex-wrap: nowrap;
      margin: 0;
      width: 100%;
      top: 0;
      background-color: rgba(0, 0, 0, 0.4);
      z-index: 999;
    }
  }

  .navbar a {
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    color: white;
    margin-right: 100px;
    text-decoration: none;
  }

  .navbar a:hover {
    color: orange;
  }

  .logo {
    transition: transform 350ms ease-out;
  }

  .logo:hover {
    transform: scale(1.1);
  }

  .dropdown {
    position: relative;
    display: inline-block;
  }

  .dropbtn {
    text-decoration: none;
    color: white;
    font-size: 40px;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.718);
    min-width: 160px;
    z-index: 1;
    margin-left: -15px;
    margin-top: 29px;
    border: solid;
    border-top-color: orange;
    border-left: transparent;
    border-right: transparent;
    border-bottom: transparent;
  }

  .dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    color: white;
  }

  .dropbtn.active::after {
    content: "";
    position: absolute;
    width: 90px;
    top: 20px;
    left: 0;
    right: 0;
    height: 100px;
  }

  .dropbtn:hover+.dropdown-content,
  .dropdown-content:hover {
    display: block;
  }

  #section1 {
    min-width: 1024px;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow-x: auto;
    position: relative;
    overflow: hidden;
  }

  #video-background {
    min-width: 1024px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    /* Make the video cover the entire section */
    z-index: -1000;
    /* Place the video behind other content */
    background-size: cover;
  }

  .top-right-buttons {
    position: absolute;
    top: 150px;
    right: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 900;
  }

  .top-button {
    margin-bottom: 10px;
    height: 80px;
    width: 80px;
    border-radius: 15px;
    border: solid;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: rgba(0, 0, 0, 0.7);
    border-color: white;
  }

  .top-button:hover {
    transform: scale(1.1);
  }

  .discord-button {
    background-image: url('fb_discord_buttons/ddicon.png');
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: 998;
  }

  .discord-button:hover {
    cursor: pointer;
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: center;
  }

  .facebook-button {
    background-image: url('fb_discord_buttons/fbicon.png');
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
  }

  .facebook-button:hover {
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
  }

  .youtube-button {
    background-image: url('fb_discord_buttons/yticon.png');
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
  }

  .youtube-button:hover {
    cursor: pointer;
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: center;
  }

  .instagram-button {
    background-image: url('fb_discord_buttons/igicon.png');
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
  }

  .instagram-button:hover {
    cursor: pointer;
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: center;
  }

  .logoBg {
    z-index: -50;
    position: absolute;
    height: 30%;
    width: auto;
    left: 50%;
    top: 20%;
    transform: translate(-50%, -50%);
  }

  .server-stats {
    position: absolute;
    width: auto;
    left: 50%;
    top: 28%;
    transform: translate(-50%, -50%);
    font-size: 20px;
  }

  .characters4 {
    z-index: -50;
    position: absolute;
    height: 55vh;
    width: auto;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
  }

  .downloads {
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 0;
    opacity: .8;
  }

  .downloads-top {
    text-align: center;
  }

  .downloads-top img {
    width: 250px;
    transition: transform 0.3s ease;
    cursor: pointer;
  }

  .downloads-2 {
    opacity: .8;
  }

  .downloads-2 img {
    width: 250px;
    transition: transform 0.3s ease;
    cursor: pointer;
  }

  .downloads-top img:hover, .downloads-2 img:hover {
    transform: scale(1.1);
  }

  #section2 {
    min-width: 1024px;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-image: url('background_images/background1920.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 100;
    position: relative;
  }

  .section2-container {
    min-width: 1024px;
    width: auto;
    min-height: 100vh;
    overflow-y: hidden;
    position: relative;

  }

  .black-bar {
    position: absolute;
    width: 100%;
    height: 100vh;
    background-image: url('background_images/botblackfadebar.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 1;
  }

  .smoke {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 2;

  }

  .class-card {
    display: grid;
    grid-template-areas:
      "arrow-left class-picture class-name arrow-right"
      "arrow-left class-picture class-description arrow-right"
      "arrow-left class-picture class-skills arrow-right"
      "arrow-left class-picture . arrow-right";
    grid-template-columns: 1fr 9fr 7fr 1fr;
    height: calc(100vh - 95px);
    margin-top: 95px;
    grid-template-rows: 4fr 4fr 4fr 1fr;
  }

  .class-image {
    grid-area: class-picture;
    display: flex;
    align-items: flex-end;
  }

  .class-picture {
    width: 100%;
    transition: transform 1s;
    transform: translate(0);
  }

  .show {
    transform: translateY(200%);
  }

  .class-name {
    grid-area: class-name;
    display: flex;
    justify-content: center;
    align-items: end;
  }

  .class-name-image {
    width: 100%;
    transition: opacity 0.5s;
    opacity: 1;
  }

  .class-description {
    grid-area: class-description;
    color: white;
    text-align: center;
    align-self: center;
    font-size: 1.25vw;
    font-weight: 500;
    transition: opacity 0.5s;
    opacity: 1;
  }

  .class-skills {
    grid-area: class-skills;
    display: flex;
    justify-content: center;
    align-items: start;

  }

  .class-skills-image {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: opacity 0.5s;
    opacity: 1;
    z-index: 3;
  }

  .arrow-left {
    grid-area: arrow-left;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }

  #previous,
  #next {
    background: none;
    border: none;
    padding: 0;
  }

  .arrow-left-button,
  .arrow-right-button {
    cursor: pointer;
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;

  }

  .arrow-left-button:hover,
  .arrow-right-button:hover {
    transform: scale(1.1);
  }

  .arrow-right {
    grid-area: arrow-right;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }

  .fade-out {
    opacity: 0;
  }

  @media (orientation:portrait) {
    .class-card {
      display: grid;
      grid-template-areas:
        "arrow-left nothing arrow-right"
        "arrow-left class-name arrow-right"
        "arrow-left class-description arrow-right"
        "arrow-left class-skills arrow-right"
        "arrow-left class-picture arrow-right";
      grid-template-columns: 1fr 4fr 1fr;
      height: 100vh;
      grid-template-rows: 100px 1fr 1fr 0.5fr 5fr;
    }

    .class-name-image {
      width: 90%;
      height: 90%;
      object-fit: contain;
    }

    .class-description-image {
      width: 150%;
      height: 150%;
      object-fit: contain;
    }

    .class-description {
      grid-area: class-description;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .class-skills {
      grid-area: class-skills;
      display: flex;
      justify-content: center;
      align-items: end;

    }

    .class-picture {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}
