@import url("../css/theme/animations.css");
@import url("../css/theme/fonts.css");
@import url("../css/theme/variables.css");

@import url("../css/components/container.css");
@import url("../css/components/loader.css");
@import url("../css/components/element.css");
@import url("../css/components/message.css");

@import url("../css/utils/utilities.css");

* {
  margin: 0px;
  user-select: none;
  -ms-user-select: none;
  -webkit-user-select: none;
}

#game-board {
  background-color: var(--techno_violet);
  height: 100vh;
  width: 100%;
  background-color: var(--golden_logic);
  display: grid;
  overflow: hidden;
  grid-template-columns: 1fr 3fr 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "inventory play utils";
  gap: 5px;
}

#game-inventory {
  overflow-y: scroll;
  height: 90%;
  width: 85%;
}

#game-play {
  grid-area: play;
  background-color: var(--techno_violet);
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
}

#game-utilities {
  grid-area: utils;
  background-color: var(--midnight_stack);
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

#game-inventory::-webkit-scrollbar {
  background-color: rgba(231, 217, 217, 0.216);
  border-radius: 15px;
  width: 15px;
  border: var(--standardborder);
}

#game-inventory::-webkit-scrollbar-track {
  background-color: rgba(231, 217, 217, 0.216);
  border-radius: 15px;
  border: var(--standard_border);
}

#game-inventory::-webkit-scrollbar-thumb {
  background-color: var(--midnight_stack);
  border-radius: 15px !important;
  border: 2px solid black;
}

#title:first-child {
  color: var(--sky_code_blue);
  font-size: 60px;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #0a1217;
  text-align: center;
  font-family: dynapuff;
  line-height: 0.55;
}

#title span {
  color: var(--golden_logic);
  font-size: 48px;
  -webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: #1d1806;
  line-height: 0.5;
}

#game-inventory-container {
  grid-area: inventory;
  background-color: var(--sky_code_blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

#device {
  display: flex;
  background-color: yellowgreen;
}

/* makes view responsive
/* mobile 300 X 480 */
@media only screen and (min-device-width: 315px) and (max-device-width: 615px) and (orientation: portrait) {
  #game-board {
    background-color: var(--golden_logic);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 5fr;
    grid-template-areas:
      "utils utils"
      "inventory play";
    height: 100vh;
  }

  #game-inventory-container {
    grid-area: inventory;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90vh;
  }
  #game-inventory {
    flex-direction: column;
    overflow: scroll;
    height: 90%;
  }
  #game-play {
    grid-area: play;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #title:first-child {
    font-size: 40px;
  }

  #title:first-child span:first-child {
    color: var(--golden_logic);
    font-size: 3px;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #1d1806;
    line-height: 0.5;
  }

  #game-utilities {
    grid-area: utils;
    background-color: var(--midnight_stack);
    height: 100px;
    width: 100%;
    display: flex;
    flex-direction: row;
  }

  #title:first-child {
    color: var(--sky_code_blue);
    position: absolute;
    top: 0px;
    font-size: 48px;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #0a1217;
    text-align: center;
    font-family: dynapuff;
    line-height: 0.55;
    display: none;
  }

  #title span {
    color: var(--golden_logic);
    font-size: 36px;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #1d1806;
    line-height: 0.5;
  }

  .settings-option {
    width: 100px;
    color: var(--golden_logic);
    height: 75%;
    font-size: 10px;
    font-family: dynapuff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column-reverse;
    text-align: center;
    background-color: inherit;
  }

  i {
    color: var(--golden_logic);
    font-size: 20px;
    background-color: inherit;
  }

  #game-inventory::-webkit-scrollbar {
    width: 15px;
  }

  #game-inventory::-webkit-scrollbar-track {
    background-color: var(--sky_code_blue);
  }

  #game-inventory::-webkit-scrollbar-thumb {
    background-color: var(--midnight_stack);
    border-radius: 4px;
    box-shadow: 3px 3px 3px black;
    border: 2px solid black;
  }

  .element {
    width: var(--element_width);
    height: var(--element_height);
    scale: 0.9;
  }

  .theme-toggle {
    background-color: rgb(233, 245, 245);
    width: 50px;
    height: 20px;
    display: flex;
    border-radius: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: 75px;
    margin: 10px;
    position: relative;
    transition: all 1s ease-in-out;
    box-shadow: inset 1px 1px 5px rgb(0, 0, 0);
    border: 2px gold solid;
  }
}

@media only screen and (max-device-width: 315px) {
  body {
    background-color: #1d1806;
  }
  #game-board {
    display: none;
  }
  #game-board::before {
    content: "test";
    color: rgb(247, 246, 243);
  }
}
