body {
  display: block;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "Outfit", sans-serif;
  width: 100%;
  background-color: #3f4b74;

  overflow-y: scroll; /* Ensures vertical scrolling is possible */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */

  --earth-color: #ffa409;
  --earth-color-shadow: #c76200;
  --air-color: #91bd00;
  --air-color-shadow: #749700;
  --water-color: #0095d7;
  --water-color-shadow: #00628e;
  --fire-color: #d1215b;
  --fire-color-shadow: #7f2341;
  --dungeon-color: #5d28c5;
  --dungeon-color-shadow: #4816a7;
}

p {
  text-align: justify;
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera, Edge */
}

@media only screen and (max-width: 760px) {
  #home-numpad {
    display: block;
  }

  #home-menu-bar {
    margin-top: 2px;
    font-size: 16px !important;
  }

  .modal-window {
    width: 95% !important;
  }

  .home-description-body {
    padding: 20px !important;
  }

  #home-math-helper-text {
    display: none !important;
  }
}

@font-face {
  font-family: "KGHappy";
  src: url("/fonts/KGHAPPYSolid.ttf");
}

.home-menu-bar-container {
  position: fixed;
  z-index: 100;
}

.home-logo-container {
  position: absolute;
  max-width: 960px;
  width: 100%;
  left: 0;
  right: 0;
  margin: auto;
}

#main-logo {
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
}

#main-text-logo {
  position: absolute;
  font-family: "KGHappy", sans-serif;
  font-size: 60px;
  line-height: 70px;
  text-align: center;
  width: 100%;
  bottom: 55%;
  color: #3f4b74;
  /* text-shadow: 0px 0px 5px white; */
  opacity: 0;
  transition: opacity 1s;
}

#home-play-button {
  display: block;
  margin: auto;
}

.ff-home-button {
  display: block;
  font-weight: 600;
  background-color: #0c8fd5;
  border: none;
  color: white;
  font-size: 36px;
  box-shadow: 0 0.5vb 0 0 #00628e;
  padding: 12px 10%;
  text-decoration: none;

  &:hover {
    cursor: pointer;
    filter: brightness(1.2);
  }
  &:active {
    transform: translateY(0.5vh);
    box-shadow: none;
  }
  &:disabled {
    background-color: grey;
    opacity: 0.8;
    box-shadow: 0 0.5vh 0 0 #333 !important;
    transform: none !important;
    cursor: not-allowed !important;
    filter: brightness(1) !important;
  }
}

#home-header {
  position: fixed;
  display: block;
  margin: auto;
  top: 0;
  left: 0;
  height: 55px;
  width: 100%;
  max-width: 960px;
  display: block;
  color: white;
  right: 0;

  a:hover {
    color: white;
  }
}

#home-canvas-container {
  top: 55px;
  display: block;
  width: 100%;
  height: calc(100% - 55px);
  position: absolute;
  background: linear-gradient(0deg, #333, #333 80%, #333 100%);
  transition: background 1s;
}

#home-msg {
  position: absolute;
  bottom: 60%;
  width: 100%;
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  color: #3f4b74;
  /* text-shadow: 0px 0px 5px white; */
  opacity: 0;
  transition: opacity 1s;
}

#home-math-problem {
  position: absolute;
  top: 40%;
  width: 100%;
  text-align: center;
  font-size: 72px;
  font-weight: bold;
  /* text-shadow: 0px 0px 5px white; */
  opacity: 0;
  transition: opacity 1s;
}

.home-math-helper-text {
  position: absolute;
  top: calc(40% + 80px);
  width: 100%;
  font-size: 20px;
  text-align: center;
  color: #3f4b74;
  opacity: 0;
  transition: opacity 1s;
}

.home-math-show-numpad {
  text-decoration: underline;
  cursor: pointer;
}

.home-math-problem-add-text {
  color: var(--earth-color);
}

.home-math-problem-sub-text {
  color: var(--air-color);
}

.home-math-problem-mul-text {
  color: var(--water-color);
}

.home-math-problem-div-text {
  color: var(--fire-color);
}

#home-title {
  width: 60px;
  top: -7px;
  opacity: 0.8;

  &:hover {
    opacity: 1;
    cursor: pointer;
  }
}

#home-menu-bar {
  width: 100%;
  font-size: 20px;
  height: 55px;
}

.home-numpad {
  position: absolute;
  display: none;
  opacity: 0;
  width: 100%;
  z-index: 10;
  height: 15%;
  top: 85%;
  font-size: 0;
  transition: opacity 1s;
}

.home-numpad-button {
  display: inline-block;
  width: calc(20% - 10px);
  height: calc(50% - 10px);
  text-align: center;
  font-size: 3vh;
  border: 1px solid white;
  color: white;
  box-sizing: border-box;
  background: none;
  margin: 5px;
  opacity: 0.8;
  &:hover {
    background-color: #0003;
    cursor: pointer;
    opacity: 1;
  }
}

.home-menu-bar-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #181b46;
  height: 55px;
}

.menu-bar-link {
  color: white;
  text-decoration: none;
  padding-left: 24px;
  display: inline-block;
  position: relative;
  top: 15px;
  opacity: 0.8;
  &:hover {
    opacity: 1;
    cursor: pointer;
  }
}

.menu-bar-link-right {
  float: right;
  padding-left: 0;
  padding-right: 24px;
  top: 15px;
}

.home-link-underline {
  height: 1px;
  width: 0;
  margin-left: 50%;
  background-color: #bfbfbf;
  transition: 0.1s;
}

.menu-bar-link-active {
  /* border-bottom: 1px solid #bfbfbf; */
  .home-link-underline {
    width: 100%;
    margin-left: 0;
  }
}

.home-body {
  position: absolute;
  top: 100%;
  width: 100%;
}

.home-description-body {
  max-width: 700px;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
  padding-bottom: 70px;

  p {
    font-size: 30px;
    margin: 40px 0;
  }
}

.home-description-heading {
  margin-top: 60px;
  font-size: 48px;
  font-family: "KGHappy", sans-serif;
  width: 100%;
  text-align: center;
}

.modal-window-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.modal-window-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera, Edge */
}

.modal-window-background-close {
  position: fixed;
  background-color: #000a;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 51;
}

.modal-window {
  position: relative;
  top: 80px;
  left: 0;
  right: 0;
  width: 80%;
  max-width: 800px;
  padding-bottom: 20px;
  margin: auto;
  background-color: #181b46;
  z-index: 52;
}

.modal-window-body {
  position: relative;
  top: 12px;
  margin: 12px;
  padding: 16px;
  /* width: calc(100% - 60px); */
  /* height: calc(100% - 60px); */
  border: solid 2px white;
}

.modal-window-heading {
  font-family: "KGHappy", sans-serif;
  font-size: 30px;
  margin: 20px 0 10px 0;
}

.modal-window-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  &:hover {
    cursor: pointer;
  }
}

.home-faq {
  margin-top: 30px;
}

.home-faq-question {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}

.home-faq-answer {
  font-size: 18px;
  font-style: italic;
}

.home-screenshots {
  width: 100%;
  background-color: #181b46;
  padding-bottom: 50px;
}

.home-screenshots-container {
  max-width: 960px;
  width: 100%;
  background-color: #181b46;
  margin: auto;
  position: relative;
  right: 0;
  left: 0;
  padding: 50px 0 50px 0;
}

.home-screenshot {
  width: calc(30% - 8px);
  margin: 0 1%;
  display: inline-block;
  border: 1px solid #99999999;
  padding: 3px;
}

#home-scroll-indicator {
  display: none;
  position: absolute;
  bottom: 20px;
  margin: auto;
  width: 100%;
  text-align: center;
  opacity: 0;
  font-size: 24px;
  transition: opacity 1s;

  &:hover {
    cursor: pointer;
  }
}

.home-scroll-arrow-container {
  display: inline-block;
  position: relative;
  margin-left: 3px;
}

#home-scroll-arrow-secondary {
  animation-delay: 1.5s;
}

.home-scroll-arrow {
  font-size: 24px;
  animation: fade-down 3s infinite;
  display: inline-block;
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0;
}

@keyframes fade-down {
  0% {
    transform: translateY(-8px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(8px);
    opacity: 0;
  }
}
