/** 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";
}

/** STORE CONTENT */
#store_parent_box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 96%;
  margin: 0 auto;
}
#store_head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2%;
}
.store_title {
  font-family: "Regular";
  font-weight: bold;
  color: rgb(34, 177, 76);
  font-size: clamp(20px, 3.5cqw, 34px);
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0 0 10px;
}
.store_title .tagline_part {
  white-space: nowrap;
}
.store_subtitle {
  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;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.store_status {
  color: rgb(203, 255, 221);
  font-family: "Regular";
  font-size: 16px;
  margin-top: 10px;
  text-align: center;
}

#store_catalog {
  width: 96%;
  display: flex;
  flex-direction: column;
  margin: auto;
  gap: 18px;
  box-sizing: border-box;
}

.store_packages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

.store_package {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  box-sizing: border-box;
  background-color: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 4px solid rgb(27, 142, 61);
  overflow-wrap: break-word;
  container-type: inline-size;
  animation: store-appear 0.7s ease-out backwards;
}
@keyframes store-appear {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.store_package_top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.store_package_name {
  color: rgb(203, 255, 221);
  font-family: "MinecraftSlim";
  font-size: clamp(18px, 3cqw, 22px);
  margin: 0;
}
.store_package_price {
  color: #e6a800;
  font-family: "Regular";
  font-size: clamp(15px, 2.8cqw, 18px);
  margin: 0;
  white-space: nowrap;
}
.store_package_desc {
  color: rgb(150, 213, 167);
  font-family: "Regular";
  font-size: clamp(15px, 2.8cqw, 18px);
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.store_package_desc p {
  margin: 0 0 8px;
}
.store_package_desc p:last-child {
  margin-bottom: 0;
}
.store_package_desc strong {
  color: rgb(203, 255, 221);
  font-weight: bold;
}
.store_package_desc ul {
  list-style: none;
  margin: 4px 0;
  padding: 0;
}
.store_package_desc li {
  color: rgb(150, 213, 167);
  padding: 1px 0 1px 12px;
  position: relative;
}
.store_package_desc li::before {
  content: "-";
  color: rgb(27, 142, 61);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 0.9em;
  top: 0.05em;
}
.store_package_buy {
  align-self: flex-end;
  width: auto;
  color: #e6a800;
  font-family: "MinecraftSlim";
  font-size: 15px;
  padding: 4px 12px;
  border: 3px solid #e6a800;
  background-color: rgba(230, 168, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}
.store_package_buy:hover {
  color: #ffd24a;
  border-color: #ffd24a;
}
.store_package_buy:disabled {
  color: rgb(120, 150, 132);
  border-color: rgb(120, 150, 132);
  background-color: rgba(255, 255, 255, 0.02);
  cursor: default;
}

/** FOOTER */
.store_legal {
  display: flex;
  justify-content: center;
  color: rgb(150, 213, 167);
  font-family: "Regular";
  font-size: 16px;
  margin: 14px 0 4px;
  opacity: 0.8;
}
#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);
}
#store_link {
  font-weight: bold;
  color: #ffd24a;
}
.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;
  }
  #store_parent_box {
    width: 95%;
    margin: 0 auto;
  }
  #store_catalog {
    width: 100%;
    margin: 0 auto;
  }
  .store_packages {
    align-items: center;
  }
  .store_package {
    max-width: 420px;
    width: min(94vw, 420px);
  }
  .store_package_buy {
    align-self: center;
  }
  #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;
}