@use "./mixins/display" as *;
@use "./mixins/effects" as *;
@use "./mixins/CP_Font" as *;
@import "./mixins/variables";

@import url("https://fonts.googleapis.com/css2?family=Farro:wght@300;400;500;700&display=swap");

#box {
  min-height: 100%;
  background-color: #282c34;
  @include flex-col;
  align-items: center;
  justify-content: space-around;

  #navExpand {
    @include flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 64px;
    left: 64px;
    width: 96px;
    height: 96px;
    background-color: $grayish;
    border-radius: 8px;
    box-shadow: 0 0 2px 2px #0008 inset;

    #burgerMenu {
      @include pixelart;
      height: 84px;
      width: 84px;
    }
  }

  #shield {
    @include flex-row;
    justify-content: center;
    height: 250px;
    width: 700px;
    background-image: url("/assets/shield.png");
    background-repeat: no-repeat;
    background-size: contain;

    #width {
      @include flex-col;
      justify-content: space-between;

      h1 {
        @include CP_Font;
        margin: 3%;
        width: 100%;
        text-align: center;
        font-size: 5.8em;
        letter-spacing: 6px;

        &:first-child {
          border-top: 5px solid black;
        }

        &:last-child {
          border-bottom: 5px solid black;
        }
      }
    }
  }

  #videoWrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    width: 700px;
    background-color: #2227;
    border: 4px solid black;
    border-radius: 8px;

    svg {
      font-size: 6em;
      color: #231f20;

      path {
        stroke: black;
        stroke-width: 2px;
        stroke-linejoin: round;
      }
    }
  }

  #startButton {
    font-family: "Farro", sans-serif;
    font-weight: bold;
    font-size: 3em;
    color: black;
    background-color: $warn;
    border: none;
    border-radius: 8px;
    padding: calc(2rem + 8px) 6rem 2rem 6rem;
  }

  #startBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: $grayish;
    box-shadow: 0 0 2px 2px #fffb inset, 0 0 2px 2px #fff2;
    border: 4px solid black;
    padding: 3rem;
    border-radius: 8px;
    min-width: 60vw;
    gap: 2rem;

    #back {
      font-size: 3em;
      color: $grayish;
      align-self: flex-start;
      background-color: #000c;
      border: none;
      border-radius: 8px;
      padding: 0 0.5rem;
      margin-top: -1.5rem;
      width: 10rem;
      box-shadow: 0 0 2px 2px #fff6 inset;
      border: 2px solid #000c;
    }

    #sameWidth {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3rem;

      .optionButton {
        @include flex-row;
        justify-content: space-between;
        align-items: center;
        font-size: 2.5em;
        color: $grayish;
        background-color: #000c;
        border: none;
        border-radius: 8px;
        padding: 1rem 2rem 1rem 4rem;
        width: 100%;
        box-shadow: 0 0 2px 2px #fff6 inset;
        border: 2px solid #000c;

        &:last-child {
          margin-top: 2rem;
        }

        span {
          margin: 0 auto;
        }

        svg {
          margin-left: 3rem;
          font-size: 2em;
          width: 2.5rem;
          height: inherit;
        }
      }
    }
  }
}

@media (max-width: 2000px) {
  #box {
    #shield {
      height: 200px;
      width: 560px;

      #width {
        h1 {
          font-size: 4.5em;
          letter-spacing: 4px;

          &:first-child {
            border-top: 4px solid black;
          }

          &:last-child {
            border-bottom: 4px solid black;
          }
        }
      }
    }
  }
}

@media (max-width: 1000px) {
  #box {
    #navExpand {
      top: 32px;
      left: 32px;
      width: 80px;
      height: 80px;

      #burgerMenu {
        height: 64px;
        width: 64px;
      }
    }

    #shield {
      height: 160px;
      width: 450px;

      #width {
        h1 {
          font-size: 3.6em;
          letter-spacing: 3px;

          &:first-child {
            border-top: 3px solid black;
          }

          &:last-child {
            border-bottom: 3px solid black;
          }
        }
      }
    }

    #videoWrapper {
      height: 300px;
      width: 600px;
    }
  }
}

@media (max-width: 700px) {
  #box {
    justify-content: space-evenly;

    #navExpand {
      top: 16px;
      left: 16px;
      width: 64px;
      height: 64px;

      #burgerMenu {
        height: 44px;
        width: 44px;
      }
    }

    #shield {
      height: 100px;
      width: 280px;

      #width {
        h1 {
          font-size: 2.2em;
          letter-spacing: 2px;

          &:first-child {
            border-top: 2px solid black;
          }

          &:last-child {
            border-bottom: 2px solid black;
          }
        }
      }
    }

    #videoWrapper {
      height: 250px;
      width: 450px;

      svg {
        font-size: 4em;
      }
    }

    #startButton {
      font-size: 2em;
      padding: calc(1rem + 8px) 3rem 1rem 3rem;
    }

    #startBox {
      max-width: 90vw;
      padding: 2rem;

      #back {
        margin-top: -1rem;
        font-size: 2em;
        width: 7rem;
        padding: 0.125rem;
      }

      #sameWidth {
        max-width: 100%;

        .optionButton {
          font-size: 2em;
          padding: 1rem 2rem;

          svg {
            margin-left: 2rem;
            font-size: 1.5em;
            width: 2rem;
          }
        }
      }
    }
  }
}

@media (max-width: 500px) {
  #box {
    #videoWrapper {
      height: 150px;
      width: 300px;
    }

    #startBox {
      #sameWidth {
        .optionButton {
          font-size: 1.5em;

          svg {
            margin-left: 1rem;
            font-size: 1em;
          }
        }
      }
    }
  }
}
