* {
  margin: 0;
  padding: 0;
}

:root {
  --light-green: rgb(0, 255, 0);
  --green: rgb(0, 187, 0);
  --medium-green: rgb(0, 150, 0);
  --dark-green: rgb(0, 105, 0);

  --cyan: cyan;
  --medium-cyan: rgb(0, 201, 201);
  --dark-cyan: rgb(0, 163, 163);
}

@font-face {
  font-family: minecraft;
  src: url("/assets/css/fonts/minecraft.ttf");
  font-weight: normal;
}

@property --pos {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -10%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: black;
}

input[type="number"] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

.top_bar {
  width: calc(100% - 30px);
  height: 100px;
  background-color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px;

  border-width: 2px;
  border-style: solid;
  border-image: linear-gradient(
      to right,
      var(--green) 0% var(--pos),
      cyan calc(var(--pos) + 2%) calc(var(--pos) + 5%),
      var(--green) calc(var(--pos) + 7%) 100%
    )
    1;

  transition-property: box-shadow;
  transition-duration: 300ms;

  &:hover {
    animation: slideBorder 2s linear infinite alternate;
    box-shadow: 0px 0px 20px var(--green) inset;
  }

  & .logo_div {
    width: auto;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: left;
    align-items: center;
    padding-left: 40px;
    & .top_main_title {
      color: var(--green);
      margin-left: 0px;
      font-family: DotGothic16;
      text-align: center;
    }
  }

  & .nav_bar {
    width: auto;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: right;
    align-items: center;
    padding: 0px 70px 0px 40px;
    gap: 70px;
    & .nav_button {
      width: auto;
      height: 50px;
      background-color: transparent;
      color: var(--dark-green);
      border: none;
      font-size: 16px;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 18px;
      font-family: "Courier New", Courier, monospace;
      text-align: center;
      text-decoration: none;

      &:hover {
        color: var(--light-green);
        text-decoration: underline;
      }
    }
  }
}

@keyframes slideBorder {
  0% {
    --pos: -10%;
  }
  30% {
    --pos: -10%;
  }
  70% {
    --pos: 100%;
  }
  100% {
    --pos: 100%;
  }
}
