@font-face {
  font-family: "sp";
  src: url("./sp.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  height: 100vh;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  background-color: #e8e8e8;
  font-family: "sp", sans-serif;
}
.planet {
  width: 5vw;
  min-width: 100px;
  height: auto;
  margin-top: auto;
  margin-left: 7vw;
  margin-bottom: auto;
}
.header {
  flex: 0 0 15vh;
  min-height: 150px;
  width: 100%;
  background-color: #407f88;
  display: flex;
  align-items: center;
}

.container {
  position: relative;
  flex: 1;
  min-height: 0;
  background-color: #e8e8e8;
}

.upper-line,
.bottom-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 10vh;
  z-index: 1;
  background-color: #bfc3c6;
}

.upper-line {
  top: 0;
  border-bottom: 3px solid #b5b9bc;
}

.bottom-line {
  bottom: 0;
  border-top: 3px solid #b5b9bc;
}

.interface {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.left {
  background-color: #e8e8e8;
  display: flex;
  flex-direction: column;
  border: 3px solid #abacae;
  height: 90%;
  width: 20%;
  gap: 1%;
  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: thin;
  scrollbar-color: transparent transparent;

  scrollbar-gutter: stable both-edges;
}

.left::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.left::-webkit-scrollbar-track {
  background: transparent;
}
.left::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 8px;
  border: 2px solid transparent;
}

.left:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 1);
}
.stats {
  margin-right: 10vw;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  width: fit-content;
}
.hp-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  height: fit-content;
}
.hp-container h1,
.hp-container p {
  font-size: 30px;
  margin: 0;
}
.hp-line {
  width: 10vw;
  border: 2px solid #63212f;
  height: 25px;
  background-color: #36121a;
}
.pp-line {
  border: 2px solid #33868e;
  width: 10vw;
  height: 25px;
  margin-left: 3px;
  background-color: #1b464a;
}
.ava-cont {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-top: 5%;
  padding-bottom: 0.5vw;
  border-bottom: 3px solid #abacae;
}
.ava-cont h1 {
  margin-top: 0.5vw;
  margin-bottom: 0;
  font-size: 2.4vw;
}
.ava {
  width: 90%;
  height: auto;
}
.left-text {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-left: 10px;
  padding-right: 10px;
}
.left-text h1 {
  font-size: 1vw;
  margin: 0;
  color: #487b7c;
}
.left-text p {
  font-size: 1vw;
  margin: 0;
}
.lvl-line {
  border: 3px solid #abacae;
  width: 50%;
  height: auto;
}
.lvl-line-inside {
  background-color: #3b7a81;
  height: 100%;
  width: 80%;
}
.friends {
  background-color: #3b7a81;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 5%;
  padding-right: 5%;
  padding-top: 5px;
}
.friends h1 {
  font-size: 1.5vw;
  color: white;
  margin: 0;
}
.friends p {
  font-size: 2vw;
  margin: 0;
}
.gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5%;
  padding-bottom: 5%;
}
.gallery img {
  margin-top: 5%;
  width: 30%;
  height: auto;
}
.right {
  width: 60%;
  background-color: #e8e8e8;
  display: flex;
  flex-direction: column;
  height: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.right-top-menu {
  height: fit-content;
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: end;
  background-color: #d8dbdd;
  z-index: 2;
}
.right-top-menu a {
  text-decoration: none;
  color: #769ea0;
}
.menu-item {
  border: 2px solid #a4a8ab;
  border-bottom: transparent;
  height: 80%;
  margin-top: auto;
  width: 10vw;
  text-align: center;
}
.menu-item h1 {
  padding: 5px;
  margin: 0;
  font-size: 1.7vw;
}
.menu-item-open {
  border: 3px solid #4c808d;
  border-bottom: transparent;
  height: 80%;
  margin-top: auto;
  width: 10vw;
  text-align: center;
  position: relative;
  background-color: white;
}
.menu-item-open h1 {
  padding: 5px;
  margin: 0;
  color: black;
  font-size: 1.7vw;
}
.frame-wapper {
  border: 3px solid #4c808d;
  width: calc(100% - 5px);
  height: 100%;
  z-index: 1;
}
.menu-item-open::after {
  content: "";
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: -3px;
  height: 3px;
  background: white;
  pointer-events: none;
}
.contract {
  background-color: #d8dbdd;
  font-size: 1vw;
  padding-left: 1vw;
  cursor: pointer;
}
@media (max-width: 1000px) {
  html,
  body {
    height: auto;
    min-height: 100%;
  }

  .container {
    position: static;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .upper-line,
  .bottom-line {
    position: static;
    height: 56px;
    flex: 0 0 auto;
  }

  .interface {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 0;
    min-height: 0;
    overflow: visible;
  }

  .left,
  .right {
    width: 90%;
    margin: 0 auto;
  }

  .left {
    height: auto;
    overflow: visible;
  }

  .right {
    height: auto;
  }

  .right-top-menu {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    gap: 8px;
  }

  .menu-item,
  .menu-item-open {
    width: auto;
    min-width: 120px;
  }

  .menu-item h1,
  .menu-item-open h1 {
    font-size: 18px;
  }

  .frame-wapper {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .frame-wapper > iframe.frame {
    width: 100%;
    height: 100%;
    border: 0;
  }

  .left .ava {
    max-width: 100%;
    height: auto;
    display: block;
  }
  .left-text h1 {
    font-size: 5vw;
    margin: 0;
    color: #487b7c;
  }
  .left-text p {
    font-size: 5vw;
    margin: 0;
  }
  .friends h1 {
    font-size: 5.5vw;
    color: white;
    margin: 0;
  }
  .friends p {
    font-size: 6vw;
    margin: 0;
  }
  .gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5%;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 5%;
  }
  .frame-wapper {
    border: 3px solid #4c808d;
    width: calc(100% - 5px);
    height: 100vh;
    z-index: 1;
  }
  .contract {
    font-size: 1.5vw;
  }
  .pp-line {
    width: 30.5vw;
    margin-left: 0.5vw;
  }
  .hp-line {
    width: 30vw;
  }
  .planet {
    width: 5vw;
    min-width: 50px;
    margin-left: 2vw;
  }
  .ava-cont h1 {
    font-size: 11vw;
  }
}
