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

  --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;
}

.ff-button {
  display: block;
  font-weight: 600;
  background-color: #0448eb;
  border: none;
  color: white;
  font-size: 4vb;
  box-shadow: 0 0.5vb 0 0 #0a28c7;
  padding: 1.5vb 4vw;

  &: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;
  }
}

.hidden {
  display: none !important;
}

.loading-screen {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s linear;
}

.container {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 75vh;
  height: 100%;
  margin: auto;
}

.privacy-back-link {
  position: absolute;
  top: 4vb;
  right: 2vb;
  font-size: 2vb;
  cursor: pointer;
}

.click-blocker {
  position: absolute;
  display: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #00000066;
  z-index: 50;
}

.menu-footer {
  position: absolute;
  bottom: 0;
  display: flex;
  width: 100%;
  height: 12%;
  background: none;
  z-index: 20;

  background: #181b46;
  border-top: 1vh solid #e720b8;
}

.menu-footer-hidden {
  bottom: -10%;
}

.menu-footer-button-active {
  height: 9vh !important;
  margin-top: 0.5vh !important;
  padding-top: 0.5vh !important;
  opacity: 1 !important;
  cursor: default !important;
}

.menu-footer-button {
  display: inline-block;
  height: 9vh;
  width: 18.3%;
  margin: 2% 0.7%;
  color: white;
  background: none;
  border: none;

  .footer-lock-icon {
    display: none;
  }

  &:hover {
    cursor: pointer;
    filter: brightness(1.2);
  }
  &:active {
    transform: translateY(0.5vh);
    box-shadow: none !important;
  }
  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: none;
    .footer-lock-icon {
      display: inline-block;
    }
  }
}

.menu-footer-button-math {
  border-radius: 3vh;
  height: 5vh;
}

#menu-footer-add {
  background-color: var(--earth-color);
  box-shadow: 0 0.5vh 0 0 var(--earth-color-shadow);
}

#menu-footer-sub {
  background-color: var(--air-color);
  box-shadow: 0 0.5vh 0 0 var(--air-color-shadow);
}

#menu-footer-mul {
  background-color: var(--water-color);
  box-shadow: 0 0.5vh 0 0 var(--water-color-shadow);
}

#menu-footer-div {
  background-color: var(--fire-color);
  box-shadow: 0 0.5vh 0 0 var(--fire-color-shadow);
}

#menu-footer-dungeon {
  border-radius: 1vh;
  background-color: var(--dungeon-color);
  box-shadow: 0 0.5vh 0 0 var(--dungeon-color-shadow);
}

.menu-footer-meter {
  width: 18.3%;
  height: 2.5vh;
  display: block;
  position: absolute;
  bottom: 2vh;
  border-radius: 0.5vh;
  margin: 0 0.7%;
  background-color: #e720b8;
  overflow: hidden;
}

.menu-footer-meter-disabled {
  opacity: 0.5;
}

.menu-footer-meter-icon {
  height: 2vh;
  position: absolute;
  top: 0.3vh;
  left: 10%;
  z-index: 1;
}

.menu-footer-meter-text {
  position: absolute;
  font-size: 2vh;
  width: 100%;
  text-align: center;
  top: 0;
  left: 0;
}

.menu-footer-meter-treasure {
  height: 2vh;
  position: absolute;
  top: 0.3vh;
  right: 10%;
}

.menu-footer-meter-sub {
  left: 19.7%;
}

.menu-footer-meter-mul {
  left: 39.4%;
}

.menu-footer-meter-div {
  left: 59.1%;
}

.menu-footer-button-meter {
  display: inline-block;
  height: 9vh;
  width: 18.3%;
  margin: 2% 0.7%;
  color: white;
  background: none;
  border: none;

  &:hover {
    cursor: pointer;
  }
}

.menu-footer-button-foreground {
  height: 9vh;
  width: 18%;
  position: absolute;
  top: 10%;
}

.menu-footer-button-foreground-add {
  background-color: #91bd00;
}

.menu-footer-button-foreground-sub {
  background-color: #00d4bd;
}

.menu-footer-button-foreground-mul {
  background-color: #0095d7;
}

.menu-footer-button-foreground-div {
  background-color: #d1215b;
}

.menu-footer-button-foreground-dungeon {
  background-color: #5d27c5;
}

.menu-footer-icon {
  margin: 0 auto 0 auto;
  display: block;
  height: 7vh;
}

.menu-footer-text {
  display: block;
  font-size: 2vh;
  text-align: center;
}

.footer-lock-icon {
  position: absolute;
  width: 6vb;
  margin-left: -3vb;
  top: 1vb;
}

.footer-math-op-icon {
  height: 3.5vb;
  display: block;
  width: 50%;
  margin-left: 25%;
  margin-top: 0.75vh;
}

/* Subtraction icon is smaller */
.footer-math-op-icon-sub {
  width: 30%;
  margin-left: 35%;
}

#menu-header {
  position: absolute;
  display: block;
  background: #181b46;
  z-index: 20;
  width: 100%;
  height: 14%;

  border-bottom: 1vh solid #e720b8;
}

.menu-header-element-icon-container {
  position: absolute;
  height: 100%;
  width: 30%;
  left: 0;
  top: 0;
}

.menu-header-element-icon {
  display: block;
  position: absolute;
  top: 25%;
  max-height: 50%;
  left: 10%;
  left: 0.2vw;
  pointer-events: none;
}

.menu-header-icon {
  height: 2.6vb;
  float: left;
  pointer-events: none;
}

.menu-header-button {
  display: inline-block;
  color: white;
  z-index: 10;
  height: 10vh;

  &:hover {
    cursor: pointer;
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;

    .menu-header-element-text {
      display: none;
    }

    .menu-header-element-lock-icon {
      display: block;
    }
  }
}

.slanted-bottom {
  box-sizing: border-box;
  clip-path: polygon(0 0, 100% 0vw, 100% 80%, 0 100%);
}

.menu-header-button-active {
  animation: menu-header-button-pulse 2s infinite;
}

@keyframes menu-header-button-pulse {
  0% {
    box-shadow: inset 0 0 1vb #66666699;
  }
  50% {
    box-shadow: inset 0 0 2vb #9e42b0ff;
  }
  100% {
    box-shadow: inset 0 0 1vb #66666699;
  }
}

.menu-header-element-button {
  position: absolute;
  top: 8vh;
  width: 16%;
  height: 4.2vh;
  border: none;
  font-weight: 600;
  border-radius: 1vh;
  overflow-y: hidden;

  &:disabled {
    .menu-header-element-icon-container {
      width: 30% !important;
    }
  }
  &:active {
    margin-top: 0.2vh;
  }
  &:hover {
    .menu-header-element-icon-container {
      transition: 0.2s;
      width: 100%;
    }
  }
}

.menu-header-element-text {
  font-weight: 600;
  position: absolute;
  font-size: 2.7vh;
  text-align: center;
  right: 0;
  pointer-events: none;
  top: 0.6vh;
  width: 70%;
}

.menu-header-element-text-small {
  font-size: 2vh;
  margin-top: 0.4vh;
}

#menu-header-earth {
  left: 2%;
  background-color: var(--earth-color-shadow);

  .menu-header-element-icon-container {
    background-color: var(--earth-color);
  }
}

#menu-header-air {
  left: 21.8%;
  background-color: var(--air-color-shadow);
  .menu-header-element-icon-container {
    background-color: var(--air-color);
  }
}

#menu-header-water {
  left: 41.6%;
  background-color: var(--water-color-shadow);
  .menu-header-element-icon-container {
    background-color: var(--water-color);
  }
  .menu-header-element-icon {
    left: 1vb;
  }
}

#menu-header-fire {
  left: 61.8%;
  background-color: var(--fire-color-shadow);
  .menu-header-element-icon-container {
    background-color: var(--fire-color);
  }
  .menu-header-element-icon {
    left: 1vb;
  }
}

.menu-header-element-lock-icon {
  display: none;
  height: 3vb;
  position: absolute;
  z-index: 10;
  left: 160%;
  top: 10%;
}

/* .streak-button {
  top: 15vb;
  right: 1%;
}

#streak-button-text {
  display: inline;
  position: absolute;
  font-size: 2.5vb;
  text-align: center;
  top: 4vb;
  left: 0;
  width: 100%;
  z-index: 10;
}

#streak-button-active-marker {
  position: absolute;
  width: 4vb;
  height: 4vb;
  top: 0;
  left: 0;
  background-color: red;
  z-index: 10;
  border-radius: 50%;
} */

.quests-button {
  top: 27vb;
  right: 1%;
}

.treasure-button {
  top: 15vb;
  right: 1%;
}

#treasure-button-text {
  display: inline;
  position: absolute;
  font-size: 2.5vb;
  text-align: center;
  top: 4vb;
  left: 0;
  width: 100%;
  z-index: 10;
}

#treasure-button-active-marker {
  position: absolute;
  width: 4vb;
  height: 4vb;
  top: 0;
  left: 0;
  background-color: red;
  z-index: 10;
  border-radius: 50%;
  display: none;
}

#settings-button {
  bottom: 13vh;
  left: 1%;
}

#inventory-button {
  bottom: 13vh;
  right: 1%;

  .inventory-button-icon {
  }
}

#achievements-button {
  bottom: 25vh;
  right: 1%;
}

#flower-button {
  opacity: 0;
  position: absolute;
  bottom: 15%;
  left: 35%;
  width: 30%;
  height: 10%;
  &:hover {
    cursor: pointer;
  }
}

#menu-header-energy-icon {
  top: 0.2vh;
  height: 2vh;
  position: absolute;
  left: 2.5%;
}

#menu-header-energy {
  position: absolute;
  display: inline-block;
  width: 19%;
  height: 2vh;
  top: 5.25vh;
  left: 1%;
  background-color: #2b1d14;
}

#menu-header-energy-text {
  position: absolute;
  font-size: 1.75vh;
  width: 97.5%;
  text-align: right;
  color: goldenrod;
}

#menu-header-energy-text-regen {
  position: absolute;
  font-size: 1.25vh;
  top: 0.5vh;
  left: 3vh;
  width: 90%;
  text-align: left;
  color: grey;
}

#menu-header-energy-bar {
  position: absolute;
  display: inline-block;
  width: 78%;
  height: 2.25vh;
  top: 7.25vh;
  left: 1%;
  background-color: #2b1d14;
}

#menu-header-energy-bar-container {
  position: absolute;
  display: inline-block;
  width: 98%;
  top: 0.5vh;
  height: 1.25vh;
  left: 1%;
  background-color: #000;
}

#menu-header-energy-bar-fill {
  position: absolute;
  display: inline-block;
  margin-left: 0.5%;
  width: 99%;
  height: 0.8vh;
  top: 0.25vh;
  background-color: goldenrod;
  transition: 0.3s;
}

#menu-header-name {
  position: absolute;
  display: inline-block;
  width: 58%;
  height: 4.25vh;
  top: 1vh;
  left: 2%;
  text-align: left;
  font-size: 4vh;
  font-weight: 400;
  &:hover {
    cursor: pointer;
  }
}

#menu-header-timer {
  position: absolute;
  display: none;
  height: 4.25vh;
  top: 1vh;
  right: 22%;
  text-align: right;
  font-size: 4vh;
  font-weight: 400;
}

#menu-header-timer-button {
  position: absolute;
  padding: 1vb 0;
  right: 20%;
  font-size: 3vb;
  width: 25%;
  top: 1vb;
}

.menu-header-timer-button-star-icon {
  height: 2.5vh;
  margin-left: -0.5vb;
  margin-right: 0.5vb;
}

.menu-header-currency-container {
  height: 100%;
  display: block;
  background-color: #383a5a;
  width: 18%;
  right: 0;
  position: absolute;
}

#menu-header-stars {
  position: absolute;
  display: inline-block;
  width: 90%;
  height: 4.25vh;
  top: 1.5vh;
  right: 6%;
  z-index: 100;
}

#menu-header-stars-text {
  position: absolute;
  font-size: 3vb;
  margin-top: 0.5vh;
  width: 97.5%;
  text-align: right;
}

#menu-header-gems {
  position: absolute;
  /* display: inline-block; */
  display: none;
  width: 90%;
  height: 4.25vh;
  top: 8vh;
  right: 6%;
  z-index: 100;
}

#menu-header-gems-text {
  display: none;
  position: absolute;
  font-size: 3vb;
  width: 97.5%;
  text-align: right;
}

.menu-header-gems-icon {
  position: absolute;
  height: 3.4vh;
  left: 4%;
  top: 0.1vh;
}

.menu-header-stars-icon {
  position: absolute;
  height: 4.5vh;
  left: 2.5%;
}

.menu-header-stars-earned-icon {
  height: 3.5vh;
  top: 0.5vh;
}

#menu-header-stars-earned {
  position: absolute;
  top: 15vh;
  background-color: #181b46;
  padding: 1vb;
}

#menu-header-stars-earned-count {
  font-size: 4vb;
}

#profile-menu {
  display: none;
}

#streak-window-container {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 75vh;
  width: 100%;
  height: 100%;
  margin: auto;
  background-color: #00000066;
  font-size: 4vb;
  /* z-index: 10; */
}

#streak-window {
  position: absolute;
  width: 80%;
  height: 50vh;
  margin: 30% 10%;
  background-color: #000;
  border: 1px solid #fff6;
  padding: 0;
}

#streak-window-heading {
  position: absolute;
  font-size: 5vb;
  top: 4vb;
  left: 3vb;
  width: calc(100% - 6vb);
  padding-bottom: 2vb;
  border-bottom: 1px solid #fff6;
}

#streak-window-rewards-container {
  position: absolute;
  top: 15vb;
  left: 5vb;
  width: calc(100% - 10vb);
  /* height: 30vh; */
  overflow: scroll;
}

#streak-window-rewards {
  display: flex;
  width: 200%;
  transition: margin-left 0.5s;
}

.streak-window-reward {
  display: inline-flex;
  /* height: 20vb; */
  background-color: #0009;
  flex-flow: column;
}

.streak-window-reward-collectible {
  &:hover {
    cursor: pointer;
  }
}

.streak-window-reward-collectible .streak-window-reward-icon {
  animation: pulse 2s infinite;
  border-radius: 50%;
}

@keyframes pulse {
  0%,
  100% {
    background-color: #333;
  }
  50% {
    background-color: #9e42b0;
  }
}

.streak-window-reward-icon {
  width: 10vb;
  padding: 4vb;
  display: block;
}

.streak-window-reward-icon-small {
  width: 6vb;
  padding: 6vb;
}

.streak-window-reward-unowned {
  opacity: 0.3;
}

.streak-window-reward-text {
  display: block;
  width: 18vb;
  text-align: center;
}

.streak-window-scroll-button {
  position: absolute;
  bottom: 2vh;
  width: 5vh;
  height: 5vh;
  background-color: #0009;
  z-index: 10;
  color: white;
}

#streak-window-scroll-left {
  left: 2vh;
}

#streak-window-scroll-right {
  right: 2vh;
}

#treasure-window-container {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 75vh;
  width: 100%;
  height: 100%;
  margin: auto;
  background-color: #00000066;
  font-size: 4vb;
  /* z-index: 10; */
}

#treasure-window-display {
  display: block;
  position: relative;
  width: 100%;
  top: 0;
  opacity: 1;
  transition: 0.5s;
}

#treasure-window-top-icon {
  position: absolute;
  top: 10vh;
  width: 40%;
  margin-left: 50%;
}

#treasure-window-bottom-icon {
  position: absolute;
  top: 10vh;
  width: 40%;
  margin-left: 50%;
}

#treasure-window-reward-text {
  position: absolute;
  top: 14vh;
  font-size: 4vh;
  text-align: center;
  width: 40%;
  margin-left: 50%;
}

#treasure-window-text {
  position: absolute;
  top: 32vh;
  font-size: 4vh;
  text-align: center;
  width: 90%;
  margin-left: 5%;
}

.treasure-window-key-container {
  height: 6vh;
  width: 30%;
  margin-left: 10%;
  border-radius: 1vh;
  margin-top: 2vh;
}

.treasure-key-container-locked {
  &:hover {
    cursor: pointer;
  }
}

.treasure-key-container-unlocked {
  filter: brightness(1);
}

.treasure-window-key-icon {
  width: 4vh;
  height: 4vh;
  margin: 1vh;
}

.treasure-window-key-icon-right {
  float: right;
  margin-right: 2vh;
  margin-left: 1vh;
}

.treasure-window-lock-icon-container {
  display: block;
  position: relative;
  margin-top: -7vh;
}

.treasure-window-locked-icon {
  position: absolute;
  right: 0;
}

.treasure-window-locked-icon-op-overlay {
  position: absolute;
  width: 1vb;
  right: 1.5vb;
  top: 0.5vb;
}

.treasure-menu-treasure-openable {
  &:hover {
    cursor: pointer;
  }
}

#level-up-container {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* max-width: 75vh; */
  width: 100%;
  height: 100%;
  margin: auto;
  background-color: #00000066;
  font-size: 4vb;
  z-index: 10;
}

.level-up-box {
  display: block;
  position: absolute;
  width: 80%;
  background-color: #0306;
  margin: 30% 10%;
  border: white 1px solid;
  padding: 4vh 2vh 4vh 2vh;
}

.dialog-box-close {
  position: absolute;
  top: 1vh;
  right: 1vh;
  font-size: 3vh;
  color: white;
  cursor: pointer;
}

.dialog-icon {
  width: 4vb;
  max-height: 4vb;
}

/* .dialog-click-blocker {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  color: pink;
  opacity: 0.5;
} */

#level-up-heading {
  display: block;
  margin-left: 5%;
  line-height: 1.5;
  font-size: 5vb;
  font-weight: strong;
}

#level-up-bonus {
  margin-left: 5%;
}

#level-up-text {
  display: block;
  margin: 5% 7%;
  line-height: 1.5;
  font-size: 3vb;
}

.level-up-button {
  width: 40% !important;
  margin: 2.5% 5% !important;
}

.dialog-container {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* max-width: 75vh; */
  width: 100%;
  height: 100%;
  margin: auto;
  background-color: #00000066;
  padding: 10px;
  font-size: 4vb;
  z-index: 101;
}

.dialog-box {
  display: block;
  position: absolute;
  left: 0;
  width: 80%;
  background-color: #181b46;
  margin: 40% 10%;
  z-index: 101;
}

.dialog-inner-border {
  margin: 2vb;
  border: solid 1px white;
}

.dialog-text {
  display: block;
  margin: 5% 7%;
  line-height: 1.5;
  font-size: 4vb;
}

.dialog-confirm {
  display: inline-block;
  width: 40%;
  margin-bottom: 7%;
  margin-left: 7%;
  padding: 1.5vh 0;
  margin-top: 7%;
}

.dialog-cancel {
  display: inline-block;
  width: 40%;
  margin-bottom: 7%;
  margin-left: 7%;
  padding: 1.5vh 0;
  margin-top: 7%;
}

.name-dialog-counter {
  position: absolute;
  font-size: 3vb;
  color: #bbb;
  top: 3vb;
  right: 3vb;
}

.dialog-text-error {
  color: red;
  font-size: 3vb;
  margin-top: -2vb;
  margin-left: 10%;
  min-height: 3.5vb;
}

.name-dialog-input {
  background-color: #0000;
  color: white;
  font-size: 3vb;
  border-width: 0 0 1px 0;
  border-bottom: 1px solid white;
  border-radius: 2px;
  padding: 1vb 2vb;
  width: calc(80% - 4vb);
  margin: 1vb 10% 3vb 10%;
  outline: none;
}

.name-dialog-button {
  width: 80% !important;
  margin: 2vb 10% 6vb 10% !important;
}

.end-game-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.end-game-row-spaced {
  margin-top: 10%;
}

.end-game-heading {
  font-size: 6vb;
  padding-top: 5vh;
  text-align: center;
  display: block;
  padding-bottom: 2vh;
  width: 100%;
}

.end-game-single-column {
  font-size: 4vb;
  display: block;
  padding-bottom: 2vh;
  width: 80%;
  padding: 5% 5%;
  margin: 0 5%;
}

.end-game-column {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 2;
  width: 50%;
  height: 100%;
  vertical-align: top;
  font-size: 4vb;
  margin: 3% 5%;
}

.end-game-column-underlined {
  border-bottom: 1px solid white;
  padding-bottom: 4vh;
}

.end-game-column-left {
  text-align: left;
  margin-right: 0;
}
.end-game-column-right {
  text-align: right;
  margin-left: 0;
}

.end-game-scores {
  margin-top: 33%;
}

.end-game-star {
  position: fixed;
  font-size: 4vb;
  z-index: 101;
}

.end-game-row-max-disabled {
  opacity: 0.5;
  .end-game-max-lock-icon {
    display: block;
  }
}

.end-game-max-container {
  margin: auto;
  display: block;
  border-radius: 50%;
  border: 1px solid white;
  width: 18vb;
  height: 18vb;
}

.end-game-max-value {
  font-size: 8vb;
  margin: 2vb 0 0 0;
  display: block;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.end-game-max-label {
  width: 100%;
  margin-left: 0;
  text-align: center;
  font-size: 2vb;
  pointer-events: none;
}

.end-game-max-reward {
  width: 4vb;
  height: 4vb;
  border-radius: 50%;
  border: 1px solid white;
  position: absolute;
  pointer-events: none;
}

#end-game-max-reward-1 {
  margin-left: calc(50% - 2vb);
  margin-top: -2.5vb;
}

#end-game-max-lock-icon-1 {
  margin-left: calc(50% - 2vb);
  margin-top: -2.5vb;
}

#end-game-max-reward-2 {
  margin-left: calc(50% - 10vb);
  margin-top: 12vb;
}

#end-game-max-lock-icon-2 {
  margin-left: calc(50% - 10vb);
  margin-top: 12vb;
}

#end-game-max-reward-3 {
  margin-left: calc(50% + 6vb);
  margin-top: 12vb;
}

#end-game-max-lock-icon-3 {
  margin-left: calc(50% + 6vb);
  margin-top: 12vb;
}

.end-game-max-lock-icon {
  position: absolute;
  display: none;
  height: 4vb;
  width: 4vb;
  left: 0;
  right: 0;
  margin: auto;
  pointer-events: none;
}

.end-game-meter {
  display: block;
  width: 100%;
  height: 5vh;
  border-radius: 1vh;
  background-color: #e720b8;
  overflow: hidden;
}

.end-game-meter-icon {
  position: relative;
  height: 4vh;
  float: left;
  margin: -4.5vh 1vh;
}

.end-game-meter-text {
  position: relative;
  display: block;
  font-size: 4vh;
  width: 100%;
  text-align: center;
  margin-top: -5vh;
}

.end-game-meter-treasure {
  position: relative;
  height: 4vh;
  float: right;
  margin: -4.5vh 1vh;
}

#end-game-treasure-display {
  display: block;
  position: absolute;
  width: 100%;
  top: 0;
  opacity: 0;
  transition: 0.5s;
}

#end-game-treasure-top-icon {
  position: absolute;
  top: 25vh;
  width: 40%;
  margin-left: 30%;
}

#end-game-treasure-bottom-icon {
  position: absolute;
  top: 25vh;
  width: 40%;
  margin-left: 30%;
}

#end-game-treasure-text {
  position: absolute;
  top: 25vh;
  font-size: 4vh;
  text-align: center;
  width: 90%;
  margin-left: 5%;
}

.element-meter-overlay {
  position: relative;
  display: block;
  width: 120%;
  height: 101%;
  margin-left: -10%;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0 100%);
  background-color: #5d5e76;
}

.meter-add {
  background-color: var(--earth-color);
}

.meter-sub {
  background-color: var(--air-color);
}

.meter-mul {
  background-color: var(--water-color);
}

.meter-div {
  background-color: var(--fire-color);
}

/* TODO: DRY */
.earth-background {
  background-color: var(--earth-color);
}

.air-background {
  background-color: var(--air-color);
}

.water-background {
  background-color: var(--water-color);
}

.fire-background {
  background-color: var(--fire-color);
}

a {
  color: #00b7ff;
}

#login {
  display: block;
  max-width: 100%;
  width: 100%;
}

.login-container {
  display: block;
  margin: 30% auto;
}

#player-form {
  padding: 10px 0;
}

.player-form-field {
  font-size: 16px;
  margin: 1vb 0 3vb 0;
  display: inline-block;
  width: 100%;
}

.player-form-field select {
  width: 400px;
  padding: 5px;
  font-size: 16px;
}

.player-form-field input {
  width: calc(100% - 2vb);
  padding: 1vb;
  font-size: 3vb;
  height: 4vb;
}

.player-form-field-radio {
  transform: scale(1.5);
  display: inline-block;
  margin: 0 10px 20px 0;
  width: auto !important;
  height: auto !important;
}

.player-form-field-radio-label {
  display: inline-block;
  font-size: 16px;
}

.player-form-button {
  margin-top: 1vb !important;
  width: 100% !important;
}

.error {
  color: red;
}

#player-form {
  padding: 10px 0;
}

.new-player-info-toggle {
  font-style: italic;
  margin-left: 2vb;
  margin-bottom: 4vb;
  &:hover {
    cursor: pointer;
  }
}

.new-player-info-text {
  display: none;
  margin: -2vb 0 4vb 4vb;
  color: lightblue;
}

.name-heading {
  position: fixed;
  left: 5%;
  text-shadow: 1px 1px 2px black;
}

.button {
  display: inline-flex;
  align-items: center;
  width: 100%;
  margin-top: 3vh;
  margin-right: auto;
  margin-left: auto;
  padding: 2vh 0;
  justify-content: center;
  background-color: #33333366;
  color: white;
  /* border: 1px solid white; */
  font-size: 3vh;
  font-weight: 700;
  text-align: center;
}

.button:hover {
  background-color: #333;
  cursor: pointer;
}

.button:disabled {
  background-color: #333 !important;
  color: #666 !important;
  /* border: 1px solid #666; */
  cursor: not-allowed;
}

.numpad-start-lock-icon {
  display: inline-block;
  height: 4vb;
}

.menu-button-icon {
  position: absolute;
  width: 4vb;
  display: block;
  margin: 0 1vb;
}

.menu-button {
  position: absolute;
  display: relative;
  height: 8vh;
  width: 8vh;
  vertical-align: middle;
  /* border-color: #fff6; */
  background-color: #0009;
  padding: 0;
  font-size: 6vh;
}

.menu-button-earth {
  color: #7e4100;
}

.menu-button-air {
  color: #0fff8f;
}

.menu-button-water {
  color: #00f;
}

.menu-button-fire {
  color: #f00;
}

.profile-menu-button {
  position: absolute;
  margin-left: 10%;
  width: 80%;
  height: 8vb;
}

#profile-menu-profile-button {
  top: 35vb;
}

#profile-menu-sound-button {
  top: 45vb;
}

#profile-menu-account-button {
  top: 55vb;
}

.account-player-row {
  &:hover {
    background-color: #333;
  }
}

.membership-text {
  font-family: "Outfit", sans-serif;
  color: white;
  /* text-align: justify; */
  overflow: scroll;
  padding: 0 10px;

  p,
  li {
    font-size: 16px;
    margin: 20px 0;
    line-height: 24px;
  }
}

.elements-menu-button {
  position: absolute;
  margin-left: 10%;
  width: 80%;
  height: 8vb;
}

.elements-menu-button-text {
  margin: 0 4vb;
}

#elements-menu-button-get {
  top: 40vb;
}

#elements-menu-button-spend {
  top: 50vb;
}

.elements-menu-button-icon {
  height: 4vb;
}

.element-amount-icon {
  display: inline-block;
  vertical-align: middle;
  height: 3vb;
  /* margin: 0 1vb; */
}

.element-amount-text {
  vertical-align: middle;
  font-size: 3vb;
  float: right;
}

.play-menu-window {
  width: 80%;
  height: 65%;
  margin: 25% 10%;
  background-color: #181b46;
  padding-bottom: 3vb;
  /* clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%); */
}

.play-menu-body {
  z-index: 1;
  position: relative;
}

.play-menu-window-inner-border {
  display: block;
  position: absolute;
  width: calc(80% - 3.5vb);
  height: calc(65% - 1vb);
  margin: 2vb;
  background-color: white;
  /* clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%); */
}

.play-menu-window-inner-border-center {
  display: block;
  position: absolute;
  width: calc(80% - 4vb);
  height: calc(65% - 1.5vb);
  margin: 2.25vb;
  background-color: #181b46;
  /* clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%); */
}

.play-menu-background-magenta {
  position: absolute;
  width: 82%;
  height: 65%;
  margin: 27% 10%;
  padding-bottom: 3vb;
  background-color: #e720b8;
  clip-path: polygon(0 5%, 100% 0%, 100% 95%, 0 100%);
}

.play-menu-background-blue {
  position: absolute;
  width: 80%;
  height: 68%;
  margin: 25% 8%;
  padding-bottom: 3vb;
  background-color: #0c8fd5;
  clip-path: polygon(0 5%, 100% 0%, 100% 95%, 0 95%);
}

.play-menu-top-score {
  font-size: 3vb;
}

.play-menu-multiplier {
  font-size: 3vb;
}

#numpad-play-menu-hearts-old {
  position: absolute;
  opacity: 0;
}

.play-menu-hearts {
  display: inline-block;

  .heart-middle {
    margin-left: -4vh;
  }

  .heart-right {
    margin-left: -4vh;
  }
}

.play-menu-heart {
  display: inline-block;
  height: 4vh;
}

.play-menu-heart-small {
  display: inline-block;
  height: 2.5vb;
}

.play-menu-boost-text {
  font-size: 3vh;
  display: none;
  width: 100%;
  text-align: center;
  left: 0;
}

.close-window-button {
  position: relative;
  float: right;
  top: 0.5vb;
  right: 2vb;
  font-size: 4vb;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

#play-menu-close {
  top: 3vh;
  right: 4vb;
}

.play-menu-heading {
  position: relative;
  font-size: 5vb;
  margin: 4vb 8% 2vh 8%;
  padding-bottom: 2vb;
  padding-top: 5vh;
  text-align: center;
}

.play-menu-operation-heading {
  display: inline-block;
  margin-left: 1vb;
  margin-bottom: 1vh;
}

.play-menu-meter-container {
  margin: 0 1vb;
}

@keyframes brightness-pulse {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
  100% {
    filter: brightness(1);
  }
}

.meter-pulse {
  animation: brightness-pulse 1s infinite;
}

.play-menu-element-icon {
  display: inline-block;
  height: 5vb;
  margin-left: 1vb;
  margin-bottom: -1vb;
}

.play-menu-text {
  margin: 0 8%;
  font-size: 4vb;
  text-align: center;
}

.play-menu-text-underlined {
  border-bottom: 1px solid #fff;
  margin-bottom: 2vh;
  padding-bottom: 2vh;
}

.play-menu-button-icon {
  width: 6vb;
  display: block;
  margin: auto;
}

.play-menu-lock-icon {
  position: absolute;
  width: 6vb;
  left: -2px;
  top: 0;
  margin: 2vb;
}

.play-menu-icon {
  display: inline-block;
  height: 4vb;
  margin-left: 1vb;
}

.play-button {
  margin: 0 auto 0 auto;
}

.play-button-wide {
  width: 90%;
}

.boost-button {
  position: absolute;
  top: 60%;
  width: 15%;
  height: 5vh;
  font-size: 3vh;
  padding: 0;
}

.boost-up-button {
  right: 8%;
}

.boost-down-button {
  left: 8%;
}

#play-button-icon {
  height: 6vb;
}

#play-button-text {
  display: block;
  font-size: 3.5vb;
  width: 100%;
  text-align: center;
}

.play-menu-button {
  position: absolute;
  display: block;
  width: 10vb;
  height: 10vb;

  &:hover {
    cursor: pointer;
  }
  &:disabled {
    opacity: 0.5;
  }
}

.play-menu-button-highlighted {
  background-color: #3339;
  box-shadow: 0 0 3vb #fff9;
}

#play-menu-button-earth {
  bottom: 5vb;
  left: 5vb;
}

#play-menu-button-air {
  bottom: 17vb;
  left: 17vb;
}

#play-menu-button-water {
  bottom: 5vb;
  left: 17vb;
}

#play-menu-button-fire {
  bottom: 17vb;
  left: 5vb;
}

#cultivate-earth-button {
  bottom: 30vb;
  width: 60%;
  margin-left: 20%;
}

#call-breeze-button {
  bottom: 40vb;
  width: 60%;
  margin-left: 20%;
}

#rain-button {
  bottom: 50vb;
  width: 60%;
  margin-left: 20%;
}

.rain-stick-heading {
  position: relative;
}

#sun-spark-button {
  bottom: 60vb;
  width: 60%;
  margin-left: 20%;
}

.logout-button-ll {
  position: absolute;
  bottom: 11vb;
  opacity: 0.8;
  left: 2vb;
  z-index: 100;

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

  img {
    height: 6vb;
    display: block;
    margin: auto;
  }
}

.back-arrow-lr {
  position: absolute;
  bottom: 11vb;
  opacity: 0.8;
  right: 2vb;
  z-index: 100;

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

  img {
    height: 6vb;
    display: block;
    margin: auto;
  }
}

.tabbed-window {
  position: absolute;
  width: 84%;
  height: 50vb;
  margin: 30% 8%;
  padding: 0;
  z-index: 100;
}

.tabbed-window-header {
  height: 8vb;
}

.tabbed-window-split-body-left {
  position: absolute;
  width: 25%;
  height: calc(100% - 8vb);
}

.tabbed-window-split-body-right {
  position: absolute;
  width: calc(75% - 4vb);
  height: calc(100% - 12vb);
  left: 25%;
  padding: 2vb 2vb;
}

.tabbed-window-back-button {
  position: absolute;
  top: 75%;
  right: 8%;
  width: 20%;
  height: 5vh;
  font-size: 3vh;
  border: none;
  z-index: 101;
  padding: 0;
}

.heatmap-table {
  width: 100%;
}

/* #items-window {
  position: absolute;
  width: 80%;
  height: 50vb;
  margin: 30% 10%;
  background-color: #0009;
  border: 1px solid #fff6;
  padding: 0;
  z-index: 100;
}

#items-window-header {
  height: 8vb;
} */

.window-header-tab {
  position: absolute;
  height: 5vb;
  background-color: #5f5283;
  top: 1vb;
  width: 42.5%;
  font-size: 3.5vb;
  text-align: center;
  padding: 1vb 0 1vb;
}

.window-header-tab-1 {
}

.window-header-tab-2 {
  margin-left: 47.5%;
}

#items-window-header-shop {
  #items-window-header-shop-lock {
    display: none;
  }
  &:disabled {
    &:hover {
      cursor: not-allowed !important;
    }
    opacity: 0.5;
    img {
      height: 4vb;
      display: block !important;
    }
  }
}

.window-header-tab-inactive {
  background-color: #3e325f;
  height: 4.5vb;
  margin-top: 0.5vb;
  &:hover {
    cursor: pointer;
  }
}

/* .items-window-header-tab-locked {
  &:hover {
    cursor: not-allowed !important;
  }
  opacity: 0.5;
  img {
    height: 4vb;
  }
} */

.window-body-container {
  background-color: #5f5283;
  height: calc(100% - 8vb);
  overflow-y: scroll;
}

.items-window-action-button {
  width: 40%;
  margin: 2% 4%;
  padding: 1.5vb 0;
}

#items-window-body {
}
#items-window-seeds {
  /* border-bottom: 1px solid white; */
}

#items-window-seed-discard-message {
  display: none;
  margin-left: 2vb;
}

.items-window-action-button-hidden {
  display: none;
}

.seed-slots {
  display: inline-block;
  width: 40%;
  background-color: #6666;
  height: 16vb;
  margin: 2.5%;
}

.seed-data {
  display: block;
  width: 50%;
  background-color: #6666;
  float: inline-end;
  margin: 2.5%;
  height: 16vb;
  overflow-y: scroll;
}

.seed-data-inner {
  padding: 2vb;
  font-size: 3vb;
}

.seed-slot {
  display: inline-block;
  width: 6vb;
  height: 6vb;
  background-color: #0009;
  margin-top: 1vb;
  margin-left: 1vb;
}

.seed-slot-occupied {
  &:hover {
    cursor: pointer;
  }
}

.seed-slot-highlighted {
  box-shadow: inset 0 0 3vb #3f39;
}

.seed-slot-locked {
  opacity: 0.5;
  &:hover {
    cursor: pointer;
  }
}

.seed-slot-single {
  background-color: #6666;
  width: 8vb;
  height: 8vb;
  display: inline-block;
  margin: 4vb 0 8vb 10vb;
}

.tabbed-window-subheading {
  margin-top: 2vb;
  border-bottom: 1px solid white;
  font-size: 4vb;
  padding-left: 1vb;
}

.inventory-item-row {
  padding: 2vb 1vb;
}

.inventory-item-use-button {
  border: 1px solid white;
  margin: 0 1vb;
  float: inline-end;
  padding: 0.5vb 2vb;
  right: 0;
  font-size: 2.5vb;
  background-color: #9999;
  &:hover {
    cursor: pointer;
    background-color: #9993;
  }
}

.inventory-item-use-button-disabled {
  background-color: #9990 !important;
  color: #ccc !important;
  border-color: #ccc !important;
  &:hover {
    cursor: not-allowed !important;
  }
}

.inventory-item-description {
  display: block;
  font-size: 2vb;
  font-style: italic;
}

.inventory-item-name {
  display: inline-block;
  margin-right: 2vb;
  font-size: 3vb;
}

.lock-icon {
  pointer-events: none;
}

.shop-item-price-star {
  height: 2.5vb;
  float: right;
  margin-left: 0.5vb;
}

#heatmap-menu {
  background-color: #000e;
}

#dungeon-menu {
  background-color: #000e;
}

#heatmap-header {
  height: 10%;
  width: 100%;
  max-width: 75vh;
  padding-left: 1vb;
  top: 10%;
  position: fixed;
}

.heatmap-cell {
  width: 10%;
  font-size: 1.8vb;
}

#heatmap-percentage-header {
  height: 15%;
  font-size: 3vh;
}

/* #heatmap-container {
  height: 65%;
  width: 100%;
  max-width: 75vh;
  top: 25%;
  position: fixed;

  td {
    background-color: #f00;
    height: 4vb;
    width: 10%;
  }
} */

#dungeon-header {
  height: 10%;
  width: 100%;
  max-width: 75vh;
  padding-left: 1vb;
  top: 12vh;
  font-size: 4vb;
  position: absolute;
  text-align: center;
}

#dungeon-container {
  height: 70%;
  width: 100%;
  max-width: 75vh;
  top: 20%;
  position: fixed;
}

#dungeon-key-list {
  display: block;
  width: 100%;
  height: 90%;
  padding-top: 35%;
}

.dungeon-menu-back-button {
  position: absolute;
  bottom: 15%;
  right: 5%;
  width: 20%;
  height: 5vh;
  font-size: 3vh;
  border: none;
  z-index: 100;
  padding: 0;
}

.dungeon-key-button {
  font-family: "Outfit", sans-serif;
  display: block;
  width: 80%;
  height: 80%;
  margin: 1vh auto 0 auto;
  text-align: center;
  font-size: 7vb;
  font-weight: 600;
  color: #fff;
  border: none;
  opacity: 1;

  &:active {
    transform: translateY(0.5vh);
    box-shadow: none;
  }
  &:hover {
    transition: filter 0.2s;
    cursor: pointer;
    filter: brightness(1.2);
  }

  .dungeon-key-button-op {
    display: block;
    margin-top: -1.5vh;
  }

  .dungeon-key-button-marker {
    display: none;
    background-color: white;
    width: 2vb;
    height: 2vb;
    border-radius: 50%;
    position: absolute;
    left: 95%;
    margin-top: 15%;
  }
}

.dungeon-key-button-active {
  .dungeon-key-button-marker {
    display: block;
  }
}

.earth-button {
  background-color: var(--earth-color);
  box-shadow: 0 0.5vh 0 0 var(--earth-color-shadow);
}
.air-button {
  background-color: var(--air-color);
  box-shadow: 0 0.5vh 0 0 var(--air-color-shadow);
}
.water-button {
  background-color: var(--water-color);
  box-shadow: 0 0.5vh 0 0 var(--water-color-shadow);
}
.fire-button {
  background-color: var(--fire-color);
  box-shadow: 0 0.5vh 0 0 var(--fire-color-shadow);
}

.dungeon-key-section {
  display: block;
  height: 22.5%;
  width: 100%;
  overflow-y: hidden;
}

.dungeon-key-block {
  display: inline-block;
}

.dungeon-key-percent {
  font-size: 3vb;
  display: block;
  height: 3vb;
}

.dungeon-element-icon {
  display: inline-block;
  margin-top: 3.5vb;
  margin-right: 2vb;
  height: 8vb;
}

.dungeon-key-icon {
  display: inline-block;
  height: 7vb;
}

#enter-dungeon-button {
  width: 60%;
  margin-left: 20%;
  /* right: 5%; */
  position: absolute;
  top: 30%;
  font-size: 5vb;
}

#open-upgrades-button {
  width: 60%;
  margin-left: 20%;
  position: absolute;
  top: 50%;
  font-size: 5vb;
}

#upgrades-menu {
  background-color: #000e;
}

#upgrades-container {
  position: absolute;
  display: block;
  height: 80%;
  width: 100%;
  top: 12%;
}

#upgrades-body {
  display: block;
  height: 65%;
  width: 96%;
  position: absolute;
  top: 20%;
  overflow-y: scroll;
  margin-left: 2%;
}

.upgrades-body-header {
  border-bottom: 1px solid white;
  font-size: 4vb;
  padding: 1vb;
}

.upgrades-body-row {
  padding-top: 1vb;
  &:hover {
    cursor: pointer;
    background-color: #fff3;
  }
}

.upgrade-unlocked-label {
  margin: 0 1vb;
  float: inline-end;
  padding: 0.5vb 2vb;
  right: 0;
  font-size: 3vb;
}

.dialog-element-icon {
  display: inline-block;
  height: 4vb;
  margin-right: 1vb;
}

/* #achievements-container {
  height: 70%;
  width: 100%;
  max-width: 75vh;
  top: 20%;
  position: fixed;
  overflow-y: scroll;
  background-color: #000e;
} */

#achievements-header {
  height: 10%;
  width: 100%;
  max-width: 75vh;
  top: 10%;
  position: fixed;
  background-color: #000e;
}

/* #achievements-list {
  position: absolute;
  display: block;
  width: 100%;
} */

.achievements-list-section {
  width: 100%;
}

.achievement-row {
  display: block;
  width: 100%;
  height: 10vb;
  font-size: 3vb;
  border-top: 1px solid white;

  /* &:last-child {
    border-bottom: 1px solid white;
  } */
}

#achievements-unlocked .achievement-reward {
  color: #333;
}

.achievement-name {
  margin-top: 3.5vb;
  margin-left: 3vb;
  float: left;
}

.achievement-reward {
  margin-top: 3.5vb;
  margin-right: 3vb;
  float: right;
}

.achievement-lock-icon {
  width: 3vb;
  margin-bottom: -0.2vb;
  margin-right: 1vb;
}

#quests-menu {
  display: none;
}

.quests-window-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
}

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

.quests-menu {
  position: relative;
  top: 20%;
  height: 60%;
  left: 0;
  right: 0;
  width: 80%;
  margin: auto;
  background-color: #181b46;
  z-index: 102;
}

.quests-menu-body {
  position: relative;
  top: 1.5vb;
  margin: 1.5vb;
  padding: 1.5vb;
  width: calc(100% - 6.4vb);
  height: calc(100% - 6.4vb);
  border: solid 0.2vb white;
}

.quests-menu-heading {
  font-size: 5vb;
}

.quests-menu-back-button {
  top: 82%;
  right: 10%;
}

.quests-list-container {
  position: absolute;
  height: 80%;
  overflow-y: scroll;
  top: 20%;
  margin-left: 3vb;
  width: calc(100% - 6vb);
}

.quest-item {
  border-bottom: 1px solid white;
  padding: 2vb 0;
  font-size: 3vb;
}

.quest-redeem-button {
  width: 40%;
  padding: 1vb 0;
  font-size: 3vb;
  position: absolute;
  right: 0;
}

.quest-progress {
  position: absolute;
  right: 0;
}

#audio-menu {
  display: none;
}

#audio-menu-container {
  height: 70%;
  width: 100%;
  max-width: 75vh;
  top: 20%;
  padding: 3vb;
  position: fixed;
}

.audio-menu-window-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
}

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

.audio-menu-window {
  position: relative;
  top: 20%;
  height: 60%;
  left: 0;
  right: 0;
  width: 80%;
  margin: auto;
  background-color: #181b46;
  z-index: 102;
}

.audio-menu-window-body {
  position: relative;
  top: 1.5vb;
  margin: 1.5vb;
  padding: 1.5vb;
  width: calc(100% - 6.4vb);
  height: calc(100% - 6.4vb);
  border: solid 0.2vb white;
}

.audio-menu-window-heading {
  font-size: 5vh;
}

.audio-menu-back-button {
  top: 82%;
  right: 10%;
}

.audio-menu-slider {
  -webkit-appearance: none;
  width: 90%;
  height: 4vh;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
  padding: 0 !important;
}

.audio-menu-slider:hover {
  opacity: 1;
}

.audio-menu-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 4vh;
  height: 4vh;
  background: #04aa6d;
  cursor: pointer;
}

.audio-menu-slider::-moz-range-thumb {
  width: 4vh;
  height: 4vh;
  background: #04aa6d;
  cursor: pointer;
}

.audio-menu-option-heading {
  font-size: 4vh;
  margin: 2vh 0;
}

#friends-menu-header {
  height: 10%;
  width: 100%;
  max-width: 75vh;
  top: 10%;
  position: fixed;

  font-size: 6vb;
  font-weight: bold;
  unicode-bidi: isolate;
}

.friends-menu-button {
  position: absolute;
  display: block;
  width: 8vb;
  height: 8vb;
  background-color: #0000;
  border: none;
  font-size: 3%;
  color: white;
  text-align: center;

  top: 11vb;
  right: 2vb;
  opacity: 0.8;
  z-index: 100;

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

.friends-menu-button-icon {
  height: 4vb;
}

.friends-window-subheading {
  font-size: 5vb;
  font-weight: bold;
  opacity: 0.8;
  margin-bottom: 2vb;
}

.add-friend-button {
  display: block;
  position: absolute;
  z-index: 10;
  right: 2vb;
  &:hover {
    cursor: pointer;
  }
}

.friends-menu-block {
  display: block;
  font-size: 3vh;
  padding: 2vb;
  border-bottom: 1px solid white;
  &:last-child {
    border-bottom: none;
  }
}

.friend-list-row {
  margin: 1vb 0;
  background-color: #fff0;
  padding: 1vb;
  transition: background-color 0.3s;

  &:hover {
    cursor: pointer;
    background-color: #fff3;

    .friend-list-row-action {
      opacity: 1;
    }
  }
}

.friend-list-name {
  display: inline-block;
  font-size: 3.5vb;
}

.friend-list-row-action {
  display: inline-block;
  position: absolute;
  right: 3vb;
  opacity: 0;
  transition: opacity 0.3s;
}

#friends-window {
  position: absolute;
  width: 80%;
  height: 50vb;
  margin: 30% 10%;
  background-color: #0009;
  border: 1px solid #fff6;
  padding: 0;
  z-index: 100;
  overflow-y: scroll;
}

.menu-button-text {
  position: absolute;
  /* height: 3vb; */
  margin-top: 1vb;
  font-size: 4vb;
  vertical-align: middle;
  color: #ccc;
  text-shadow: 1px 1px 2px black;
  background-color: #0009;
  opacity: 0;
  transition: 0.3s;
}

.menu-button-text-energy-icon {
  height: 3vh;
  vertical-align: middle;
}

.fade-in {
  opacity: 1 !important;
}

.fade-out {
  opacity: 0;
}

#menu-button-0-text {
  bottom: 17vb;
  left: 14vb;
}

#menu-button-1-text {
  bottom: 27vb;
  left: 14vb;
}

#menu-button-2-text {
  bottom: 37vb;
  left: 14vb;
}

#menu-button-3-text {
  bottom: 47vb;
  left: 14vb;
}

#menu-button-4-text {
  bottom: 17vb;
  right: 14vb;
}

#menu-button-5-text {
  bottom: 27vb;
  right: 14vb;
}

#menu-button-6-text {
  bottom: 37vb;
  right: 14vb;
}

#menu-button-7-text {
  bottom: 47vb;
  right: 14vb;
}

#menu-button-8-text {
  bottom: 17vb;
  left: 14vb;
}

#menu-button-9-text {
  bottom: 27vb;
  left: 14vb;
}

#menu-button-10-text {
  bottom: 27vb;
  left: 14vb;
}

#canvas {
  position: absolute;
  width: 100%;
  height: 100%;
}

.water-text {
  color: #00f;
}

.fire-text {
  color: #f00;
}

.earth-text {
  color: #7e4100;
}

.wind-text {
  color: #0fff8f;
}

.main-menu-button {
  position: absolute;
  /* display: none; */
  width: 10vb;
  height: 10vb;
  border-radius: 50%;
  padding: 0 0 3vb 0;
  font-size: 6vb;
  color: white;
  text-align: center;
  z-index: 10;
  margin: 1vb;
  border: none;
  background: none;

  &:hover {
    cursor: pointer;

    .main-menu-button-background {
      transition: 0.2s;
      transform: rotate(-247deg);
    }
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #111;
    margin: 1vb;
    width: 10vb;
    height: 10vb;
    font-size: 8vb;
  }

  .main-menu-button-foreground {
    position: absolute;
    display: block;
    width: 8vb;
    height: 8vb;
    top: 1vb;
    left: 1vb;
    background-color: #383a5a;
    border-radius: 50%;
    z-index: 1;
  }

  .main-menu-button-background {
    position: absolute;
    display: block;
    width: 10vb;
    height: 6vb;
    top: 2vb;
    background-color: #e720b8;
    border-radius: 50%;
    transform: rotate(-67deg);
    z-index: -1;
  }
}

.hearts-boosted {
  background-color: #ffd70044;
}

.hearts-treasure {
  background-color: #ffd70044;
}

.main-menu-element-button {
  width: 8vb;
  height: 8vb;
  opacity: 0.8;
  padding: 1vb;
  &:hover {
    opacity: 1;
    height: 10vb;
    width: 10vb;
  }
}

#main-menu-button-add {
  bottom: 16vb;
  left: 10%;
  display: none;
}

#main-menu-button-sub {
  bottom: 28vb;
  left: 10%;
  display: none;
}

#main-menu-button-mul {
  bottom: 40vb;
  left: 10%;
  display: none;
}

#main-menu-button-div {
  bottom: 52vb;
  left: 10%;
  display: none;
}

#main-menu-button-dungeon {
  bottom: 16vb;
  right: 10%;
  display: none;
}

.main-menu-button-icon {
  top: 2.5vb;
  height: 5vb;
  width: 6vb;
  position: absolute;
  left: 2vb;
  z-index: 2;
}

.main-menu-button-icon-pulsing {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.5;
  }
}

.main-menu-button-icon-text {
  font-size: 3vb;
  display: block;
  position: absolute;
  bottom: 0;
  text-align: center;
  width: 10vb;
  left: -2px;
  opacity: 0.5;
  transition: 0.3s;
}

/* #main-menu-button-earth {
  bottom: 25vb;
  left: 10%;
}

#main-menu-button-air {
  bottom: 55vb;
  right: 10%;
}

#main-menu-button-water {
  bottom: 25vb;
  right: 10%;
}

#main-menu-button-fire {
  bottom: 55vb;
  left: 10%;
} */

#main-menu-element-buttons {
  position: fixed;
  display: block;
  height: 100%;
  width: 100%;
  max-width: 75vh;
  bottom: 10%;
  transition: 0.3s;
}

#main-menu-profile-buttons {
  position: fixed;
  display: block;
  height: 50%;
  width: 100%;
  max-width: 75vh;
  bottom: -50%;
  transition: 0.5s;
}

#main-menu-flower-buttons {
  position: fixed;
  display: block;
  height: 50%;
  width: 100%;
  max-width: 75vh;
  bottom: -50%;
  transition: 0.5s;
}

#flower-menu {
  display: none;
}

.flower-menu-grow-button {
  display: flex;
  margin: 1vb 0;
  padding: 1vb 2vb;
}

#flower-grow-container {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* max-width: 75vh; */
  width: 100%;
  height: 100%;
  margin: auto;
  background-color: #00000066;
  font-size: 4vb;
  z-index: 10;
}

.flower-grow-box {
  display: block;
  position: absolute;
  width: calc(80% - 8vb);
  background-color: #000d;
  margin: 30% 10%;
  border: white 1px solid;
  padding: 4vb;
}

#flower-grow-heading {
  display: block;
  line-height: 1.5;
  font-size: 5vb;
  font-weight: strong;
}

#flower-grow-bonus {
  margin-left: 5%;
}

#flower-grow-text {
  display: block;
  line-height: 1.5;
  font-size: 2.5vb;
  opacity: 0.5;
}

/* Remove this after temp note */
#landing-heading {
  font-size: 6vb;
  margin: 10% auto;
  text-align: center;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 10;
}

#menu-element-amounts {
  right: 10%;
  top: 10vh;
  position: absolute;

  ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  li {
    display: inline-block;
  }
}

.element-amount-icon-ur {
  position: absolute;
  height: 6vb;
  right: 1vb;
  margin-top: 0.5vb;
  opacity: 1;
}

.element-amount-ur {
  position: absolute;
  font-size: 6vb;
  margin-top: 0vb;
  right: 8vb;
  opacity: 1;
  text-shadow: 1px 1px 2px black;
  z-index: 1;
}

.faded-out {
  opacity: 0;
  transition: 0.3s;
}

#element-info-text {
  font-family: "Outfit", sans-serif;
  position: absolute;
  right: 2vb;
  top: 17vh;
  text-align: right;
  font-size: 3vb;
  color: #3e325f;
  z-index: 1;
  font-weight: 600;
}

#flower-name {
  position: absolute;
  font-family: "Outfit", sans-serif;
  color: #3e325f;
  font-weight: 600;
  text-align: right;
  top: 15vb;
  right: 2vb;
  font-size: 5vb;
}

#flower-state-timer {
  position: absolute;
  text-align: center;
  width: 100%;
  bottom: 14vb;
  right: 0;
  font-size: 4vb;
}

#flower-info-text {
  font-family: "Outfit", sans-serif;
  position: absolute;
  right: 2vb;
  top: 22vh;
  text-align: right;
  font-size: 3vb;
  color: #3e325f;
  z-index: 1;
  font-weight: 600;
}

.flower-info-sun-icon {
  display: inline-block;
  height: 3vb;
}

.earth-menu-elements {
  color: #7e4100;
}

.action-buttons {
  margin-top: 50%;
}

.element-menu-continue-button {
  width: 80%;
  margin-left: 10%;
  position: absolute;
  bottom: 25%;
}

.element-menu-action-button {
  width: 60%;
  position: absolute;
  margin-left: 20%;
}

#fire-action-button-3 {
  bottom: 55%;
}
#fire-action-button-2 {
  bottom: 45%;
}
#fire-action-button-1 {
  bottom: 35%;
}

#water-action-button-3 {
  bottom: 55%;
}
#water-action-button-2 {
  bottom: 45%;
}
#water-action-button-1 {
  bottom: 35%;
}

#rain-duration-plus-button {
  right: 12%;
  bottom: 50%;
}
#rain-duration-minus-button {
  right: 12%;
  bottom: 45%;
}

.rain-duration-button {
  background-color: var(--water-color);
  box-shadow: 0 0.5vh 0 0 var(--water-color-shadow);
}

.rain-duration-button {
  background-color: var(--water-color);
  box-shadow: 0 0.5vh 0 0 var(--water-color-shadow);
}

.element-boost-button {
  display: block;
  position: absolute;
  height: 3vh;
  font-size: 2vh;
  padding: 0;
  width: 6%;
}

#bee-breeze-button {
  bottom: 55%;
}
#seed-breeze-button {
  bottom: 45%;
}

#seed-breeze-plus-button {
  right: 12%;
  bottom: 50%;
}
#seed-breeze-minus-button {
  right: 12%;
  bottom: 45%;
}

#bee-breeze-plus-button {
  right: 12%;
  bottom: 60%;
}
#bee-breeze-minus-button {
  right: 12%;
  bottom: 55%;
}

#air-menu-back-button {
  bottom: 38%;
}

#earth-fertilizer-button-3 {
  bottom: 65%;
}
#earth-fertilizer-button-2 {
  bottom: 55%;
}
#earth-fertilizer-button-1 {
  bottom: 45%;
}
#earth-action-button-1 {
  bottom: 45%;
}

.sun-cost-text {
  color: #f00;
  font-size: 3vb;
}

.sun-cost-icon {
  height: 2vb;
}

.sprinkler-cost-text {
  color: #00f;
  font-size: 3vb;
}

.sprinkler-cost-icon {
  height: 2vb;
}

.dna-color-block {
  display: inline-block;
  width: 2vb;
  height: 2vb;
  margin: 0 0.1vb;
  border: 1px solid white;
}

/* .earth-button {
  background-color: #7e410066;

  &:hover {
    background-color: #7e4100bb;
  }
}

.wind-button {
  background-color: #0fff8f66;

  &:hover {
    background-color: #0fff8fbb;
  }
}

.water-button {
  background-color: #0000ff66;

  &:hover {
    background-color: #0000ffbb;
  }
}

.fire-button {
  background-color: #ff000066;

  &:hover {
    background-color: #ff0000bb;
  }
} */

#flower-harvest-button {
  /* display: none; */
  bottom: 40%;

  width: 60%;
  position: absolute;
  margin-left: 20%;
}

#flower-level-up-button {
  /* display: none; */
  bottom: 40%;

  width: 60%;
  position: absolute;
  margin-left: 20%;
  background-color: #00330066;

  &:hover {
    background-color: #003300;
  }
}

.element-cost-button {
  font-family: "Outfit", sans-serif;
  justify-content: left;
  padding: 0;
  color: white;
  border: none;
  font-size: 3vh;
  font-weight: 400;
  transition: 0.3s;

  &:hover {
    cursor: pointer;
    filter: brightness(1.2);
  }

  &:active {
    transform: translateY(0.5vh);
    box-shadow: none;
  }

  /* &:disabled {
    box-shadow: 0 0.5vh 0 0 #00628e !important;
    transform: none !important;
    cursor: not-allowed;
  } */

  .element-cost {
    display: inline-flex;
    height: 4vb;
    align-items: center;
    padding: 2vb 2vb 2vb 2vb;
    margin-right: 2vb;
    width: 10%;
  }

  .element-button-cost-icon {
    height: 3vb;
    margin: 0 0.5vb;
  }

  .element-cost-text {
    height: 4vb;
    padding: 2vb;
    right: 0;
    position: absolute;
  }

  .element-button-star-cost {
    position: absolute;
    border-left: 1px solid white;
    border-right: none;
    margin-left: auto;
    height: 4vb;
    padding: 2vb;
    right: 0;
  }
}

.element-menu-back-button {
  position: absolute;
  bottom: 38%;
  right: 20%;
  width: 20%;
  height: 5vh;
  font-size: 3vh;
  color: white;
  border: none;
  background-color: #0095d7;
  box-shadow: 0 0.5vh 0 0 #00628e;

  &:hover {
    cursor: pointer;
    background-color: #00b7ff;
  }

  &:active {
    transform: translateY(0.5vh);
    box-shadow: none;
  }
}

.ground-meter-container {
  position: absolute;
  bottom: 15vb;
  left: 0;
  right: 0;
  margin: auto;
  width: 20%;
  height: 0.5vb;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #00000088;
  z-index: 1;
  padding: 2px;
  border: solid 1px white;
  opacity: 0;
  transition: 0.3s;
}

.ground-meter {
  position: absolute;
  display: block;
  background-color: #2b1d14;
  width: 100%;
  height: 100%;
  left: 0;
}

#fertilizer-meter {
  background-color: #7e4100;
}

#soil-moisture-meter {
  background-color: #00b;
}

.bouncing-arrow-left {
  position: absolute;
  height: 10vh;
  animation: bounce-left 2s infinite;
  z-index: 1000;
}

.bouncing-arrow-right {
  position: absolute;
  height: 10vh;
  animation: bounce-right 2s infinite;
  z-index: 1000;
}

.bouncing-arrow-up {
  position: absolute;
  height: 10vh;
  animation: bounce-up 2s infinite;
  z-index: 1000;
}

.bouncing-arrow-down {
  position: absolute;
  height: 10vh;
  animation: bounce-down 2s infinite;
  z-index: 1000;
}

@keyframes bounce-right {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(0) rotate(90deg);
  }
  40% {
    transform: translateX(30px) rotate(90deg);
  }
  60% {
    transform: translateX(15px) rotate(90deg);
  }
}

@keyframes bounce-left {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(0) rotate(-90deg);
  }
  40% {
    transform: translateX(-30px) rotate(-90deg);
  }
  60% {
    transform: translateX(-15px) rotate(-90deg);
  }
}

@keyframes bounce-up {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(180deg);
  }
  40% {
    transform: translateY(30px) rotate(180deg);
  }
  60% {
    transform: translateY(15px) rotate(180deg);
  }
}

@keyframes bounce-down {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

#tooltip {
  display: none;
  position: absolute;
  z-index: 1000;
  background-color: #000;
  color: white;
  padding: 2vb 3vb;
  border-radius: 1vh;
  font-size: 3vh;
  pointer-events: none;
  border: 1px solid white;
  text-align: center;
}

.button-disable {
  opacity: 0.3;
  pointer-events: none !important;
}

#guardian-profile-faq {
  margin: 2vb 0;
}

.guardian-profile-faq-question-text {
  font-size: 2vb;
  &:hover {
    cursor: pointer;
  }
  margin: 1vb 0;
}

.guardian-profile-faq-answer {
  display: none;
  margin-left: 1vb;
  margin-bottom: 2vb;
  font-style: italic;
}

.players-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2vh;
  font-size: 1.2em;

  .name-column {
    /* width: 80%; */
  }

  .login-column {
    float: right;
  }

  th {
    text-align: left;
  }
}

.upgrade-button-wrapper {
  float: right;
}

.create-player-button {
  font-size: 16px;
  padding: 1vb 4vb;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  border: solid 1px #bfbfbfbf;
  &:hover {
    background-color: #333;
  }
}

/* CSS */
.upgrade-button {
  float: right;
  font-size: 16px;
  padding: 1vb 4vb;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.upgrade-button:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-upgrade-button 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-upgrade-button {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.upgrade-button:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
  transition: 0.2s;
}

.upgrade-button:hover:after {
  background-color: #222c;
}

.membership-table {
  width: 100%;
  margin-top: 2vb;
  td {
    border: 1px solid;
    width: 50%;
    padding: 1vb;
  }

  th {
    font-size: 3vb;
    text-align: left;
  }
}

.pulsing-text {
  -webkit-animation: pulsate 2s ease-out;
  -webkit-animation-iteration-count: infinite;
  opacity: 0.5;
}
@-webkit-keyframes pulsate {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

.players-seats-available-subheading {
  font-size: 0.8em;
  margin-top: -1em;
}

.players-seats-available {
  margin: 10px 0;
  font-weight: bold;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  display: none;
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: black;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.8;
  z-index: 100000;
}

.particle-icon {
  display: block;
  height: 80%;
  margin: auto;
  object-fit: contain;
}
