@font-face {
  font-family: "FF8Font";
  src: url("FF8.ttf") format("truetype");
}

body {
  margin: 0;
  height: 100vh;
  background: url("bg.jpg") no-repeat center center fixed;
  background-size: cover;
  font-family: "Pathway Gothic One", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

.network-header {
  width: 95%;
  max-width: 1200px;
  margin-top: 8vh;
  margin-bottom: 6vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
}

.header-border-wrap {
  width: 100%;
  height: clamp(45px, 9vh, 65px);
  background-color: #000;
  clip-path: polygon(0% 0%, 94% 0%, 97% 100%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 4px 22px;
}

.title-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #2b7070 0%, #1a4545 45%, #0d2a2a 100%);
  clip-path: polygon(0% 0%, 94% 0%, 97% 100%, 0% 100%);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.main-title {
  font-family: "Dancing Script", cursive;
  color: white;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  -webkit-text-stroke: 1.5px white;
  text-shadow: 3px 3px 2px #000;
  padding-left: 1vw;
  letter-spacing: 0px;
  font-style: italic;
}

.main-index-box {
  position: absolute;
  right: 1.5%;
  bottom: 0;
  background-color: #0c0c14;
  border: none;
  color: #fff;
  font-family: "Pathway Gothic One", sans-serif;
  font-weight: bold;
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  padding: 2px 15px;
  letter-spacing: 1px;
  z-index: 20;
  white-space: nowrap;
  text-transform: uppercase;
}

.header-underline {
  width: 100%;
  height: 6px;
  background: #747474;
  margin-top: 0;
  border-bottom: 3px solid #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}

.menu-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 90vw;
  max-width: 800px;
  padding-bottom: 10vh;
}

.nav-button {
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, #841834 50%, #0c0c14 50%);
  color: #ffffff;
  text-decoration: none;
  font-family: "Pathway Gothic One", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  padding: 0.2vh 5vw;
  border-radius: 0;
  border: 0.3vw solid #000;
  margin-bottom: 1.5vh;
  box-shadow: 0.5vw 0.5vw 0px rgba(0, 0, 0, 0.4);
  transition: filter 0.2s;
  box-sizing: border-box;
  white-space: nowrap;
  width: fit-content;
  min-width: 50vw;
  max-width: 650px;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  visibility: hidden;
  animation: dropIn 0.25s ease-out forwards;
}

@keyframes dropIn {
  from {
    visibility: visible;
    transform: translateY(-40px);
  }
  to {
    visibility: visible;
    transform: translateY(0);
  }
}

.btn-yellow {
  background: linear-gradient(to bottom, #b48400 50%, #0c0c14 50%);
}

.nav-button:hover {
  filter: brightness(1.2);
  outline: 0px solid #fff;
}

.cursor {
  position: absolute;
  left: -1.2em;
  display: inline-block;
  width: 1.8em;
  height: 1.8em;
  background: url("cursor.png") no-repeat center center;
  background-size: contain;
  visibility: hidden;
  z-index: 20;
  pointer-events: none;
}

.nav-button:hover .cursor {
  visibility: visible;
}

.new-btn {
  height: 1.5em;
  position: absolute;
  right: -20px;
  top: -25px;
  pointer-events: none;
  z-index: 5;
}

.btn-1 {
  margin-left: 0vw;
  animation-delay: 0.1s;
}
.btn-2 {
  margin-left: 4vw;
  animation-delay: 0.2s;
}
.btn-3 {
  margin-left: 8vw;
  animation-delay: 0.3s;
}
.btn-4 {
  margin-left: 12vw;
  animation-delay: 0.4s;
}
.btn-5 {
  margin-left: 16vw;
  animation-delay: 0.5s;
}
.btn-6 {
  margin-left: 8vw;
  animation-delay: 0.6s;
}

.footer {
  position: fixed;
  bottom: 2vh;
  left: 3vw;
  width: 18vw;
  max-width: 180px;
  z-index: 30;
}

.footer-underline {
  position: fixed;
  bottom: 5.5vh;
  left: 0;
  width: 100%;
  height: 6px;
  background: #747474;
  border-bottom: 3px solid #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 25;
}

.balamb-btn {
  width: 100%;
  height: auto;
  display: block;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.window {
  position: relative;
  padding: 1.5rem;
  width: 85vw;
  max-width: 800px;
  height: 65vh;
  background: linear-gradient(
    90deg,
    rgba(50, 50, 50, 0.9),
    rgba(100, 100, 100, 0.9)
  );
  border: 4px groove #747474;
  box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.7);
}

#frame {
  width: 100%;
  height: 100%;
  border: none;
}
.close-x {
  position: absolute;
  top: 8px;
  right: 15px;
  cursor: pointer;
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
}
