/** BASE */
html {
  color-scheme: dark;
  background-color: #000;
  scrollbar-gutter: stable;
}
body {
  margin: 0 auto;
  background-color: transparent;
  font-family: "MinecraftSlim", "Regular", sans-serif;
  max-width: 1000px;
}

/** NATIVE SCROLLBARS ARE HIDDEN EVERYWHERE (custom DOM scrollbar used instead) */
* {
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/** TOP CONTENT */
#outrun_title {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2%;
  width: 40%;
  image-rendering: pixelated;
}
a:has(> #outrun_title) {
  display: flex;
  justify-content: center;
  width: 100%;
}
h1 {
  color: rgb(27, 142, 61);
  font-size: 20px;
  margin: 0px;
  text-align: center;
  font-family: "MinecraftBold";
}
#info_box {
  width: 96%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
.info_tagline {
  color: rgb(34, 177, 76);
  font-family: "Regular";
  font-weight: bold;
  font-size: clamp(20px, 3.5cqw, 34px);
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0 0 10px;
}
#info_intro {
  color: rgb(203, 255, 221);
  font-size: clamp(16px, 2.2vw, 20px);
  font-family: "Regular";
  text-align: center;
  margin: 0 auto 1.5%;
  max-width: 85%;
}
.info_em {
  color: rgb(34, 177, 76);
  font-family: "MinecraftBold";
  display: block;
  margin-top: 8px;
}
.info_section {
  margin-top: 6%;
  padding-top: 3%;
  border-top: 2px solid rgb(27, 142, 61);
}
.info_section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.info_section h2 {
  color: rgb(34, 177, 76);
  font-size: clamp(20px, 3vw, 26px);
  font-family: "Regular";
  font-weight: bold;
  text-align: center;
  margin: 0 0 2%;
  letter-spacing: 0.5px;
}
.info_section p {
  color: rgb(203, 255, 221);
  font-size: clamp(16px, 2.2vw, 20px);
  font-family: "Regular";
  text-align: center;
  margin: 0 auto 1.5%;
  max-width: 70ch;
}
.info_section p:last-child {
  margin-bottom: 0;
}
.credits_block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 2%;
}
.credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.credit_name {
  font-family: "MinecraftSlim";
  font-weight: normal;
  font-size: clamp(18px, 2.8vw, 24px);
  color: rgb(34, 177, 76);
}
.credit_role {
  font-family: "Regular";
  font-size: clamp(14px, 2.2vw, 18px);
  color: rgb(150, 213, 167);
}
p.credit_ack {
  margin: 0 auto 1%;
  max-width: 90ch;
}
p.credit_ack a.ack_link {
  color: rgb(203, 255, 221);
  text-decoration: underline;
}
p.credit_ack a.ack_link:hover {
  color: rgb(34, 177, 76);
}
.info_steps_block {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 3%;
}
.info_step {
  flex: 1 1 0;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.info_step_num {
  font-family: "MinecraftSlim";
  font-size: clamp(18px, 3cqw, 26px);
  color: rgb(34, 177, 76);
}
.info_step_text {
  font-family: "MinecraftSlim";
  font-size: clamp(15px, 2.4cqw, 20px);
  font-weight: bold;
  color: rgb(203, 255, 221);
}
.info_step_hint {
  font-family: "Regular";
  font-size: clamp(12px, 2cqw, 15px);
  color: rgb(150, 213, 167);
}
.info_link_inline {
  color: rgb(34, 177, 76);
  font-family: "Regular";
  font-size: clamp(16px, 2.2vw, 20px);
  text-decoration: underline;
}
.info_link_inline:hover {
  color: rgb(160, 255, 190);
}
.info_server_row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0.5% 0 0;
  font-family: "MinecraftBold", "Regular", monospace;
  font-size: clamp(16px, 2.6vw, 22px);
  color: rgb(203, 255, 221);
}
.info_section h2:has(+ .info_server_row) {
  margin-bottom: 0.5%;
}
#serverIP,
#copy_img {
  cursor: pointer;
  user-select: none;
}
#copy_img {
  height: 1em;
  width: auto;
}
#info_version {
  color: rgb(150, 213, 167);
  font-family: "Regular";
  font-size: clamp(14px, 2.2vw, 18px);
  text-align: center;
  margin: 8px auto 5%;
  max-width: none;
}

#footer {
  display: flex;
  justify-content: center;
  color: rgb(120, 150, 132);
  font-family: "MinecraftSlim";
  font-size: 10px;
  margin-top: 22px;
  padding-bottom: 16px;
  opacity: 0.7;
}

/** BACKGROUND */
#portal-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  image-rendering: pixelated;
  z-index: -1;
  background: #000;
}

/** MENU ELEMENTS */
.menu_bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  background-color: transparent;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  pointer-events: none;
}
.menu_bar #menu_box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
  margin: 0;
  pointer-events: auto;
}

#menu_box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
  margin: 0;
}

#menu_box nav {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3%;
}
.menu_link {
  display: inline-block;
  color: rgb(27, 142, 61);
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  font-family: "MinecraftSlim";
  padding: 6px 10px;
}
.menu_link:not(.shop_link):hover {
  color: rgb(34, 177, 76);
}
#info_link {
  font-weight: bold;
  color: rgb(34, 177, 76);
}
.shop_link {
  color: #e6a800;
}
.shop_link:hover {
  color: #ffd24a;
}
#hamburger_box .hamburger_link:not(.shop_link):hover {
  color: rgb(34, 177, 76);
  border-color: rgb(34, 177, 76);
}
#hamburger_box .hamburger_link.shop_link {
  color: #e6a800;
  border-color: #e6a800;
}
#hamburger_box .hamburger_link.shop_link:hover {
  color: #ffd24a;
  border-color: #ffd24a;
}

/** HAMBURGER */
#hamburger_btn {
  display: none;
  position: fixed;
  top: 12px;
  left: 4px;
  z-index: 1000;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.35) 45%,
    transparent 75%
  );
}
#hamburger_btn span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: rgb(27, 142, 61);
  transition: all 0.3s ease;
  transform-origin: center center;
}
#hamburger_btn.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
#hamburger_btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
  visibility: hidden;
  transition: all 0.3s ease, visibility 0s linear 0.3s;
}
#hamburger_btn.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
#hamburger_overlay {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 998;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
#hamburger_overlay.overlay_open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}
#hamburger_box {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  z-index: 999;
  transition: left 0.3s ease;
  margin: 0;
  display: flex;
  justify-content: center;
}
#hamburger_box.hamburger_open {
  left: 0;
}
#hamburger_box nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 80%;
  height: 100%;
}
#hamburger_box .hamburger_link {
  width: 80%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgb(27, 142, 61);
  font-family: "MinecraftSlim";
  border: 4px solid rgb(27, 142, 61);
  padding-left: 2px;
  padding-right: 2px;
}

/** MOBILE (max-width: 1023px) */
@media (max-width: 1023px) {
  #outrun_title {
    width: clamp(220px, 65%, 420px);
    z-index: 1000;
    margin-top: 10px;
    margin-bottom: 15px;
  }
  #info_box {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }
  .credits_block {
    gap: 14px;
  }
  .info_steps_block {
    flex-direction: column;
    gap: 16px;
  }
  .info_step {
    max-width: none;
  }
  #menu_box,
  .menu_bar #menu_box {
    display: none;
  }
.menu_bar {
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
  #hamburger_btn {
    display: flex;
  }
  #hamburger_box {
    display: flex !important;
  }
  #hamburger_box .hamburger_link {
    width: 80% !important;
  }
}

/** FONTS */
@font-face {
  font-family: "MinecraftSlim";
  src: url("fonts/L00OL.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MinecraftBold";
  src: url("fonts/L00OL-1.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MinecraftBoldItalic";
  src: url("fonts/L00OL-2.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MinecraftSlimItalic";
  src: url("fonts/L00OL-3.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Regular";
  src: url("fonts/ShareTechMono-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}