@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

* {
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "slnt" 0;
}

body, html {
  height: 100%; /* 200% Initial height to enable scrolling */
  margin: 0;
  padding: 0;
}

body {
  background-color: #291D87;
}

#scrollableDiv {
  position: absolute;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow-y: scroll;
}

#innerDiv {
  height: 200%; /* Initial height to enable scrolling */
}

#canvas {
  width: 175%;
  aspect-ratio: 1/1;
  transform: translate(-20%, 0);
}

#version {
  position: fixed;
  bottom: 5px;
  left: 50%;
  transform: translate(-50%, 0);
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  font-size: 12px;
}

#fixed-game-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to bottom, #8B248E, #291D87);
}

#controls {
  position: fixed;
  width: auto;
  bottom: 50px;
  left: 50%;
  transform: translate(-50%, 0);
}

#scrollLengthDisplay {
  visibility: hidden;

  position: fixed;
  z-index: 1000;
  bottom: 20%;
  left: 50%;
  transform: translate(-50%, -50%);

  font-size: 24px;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
  color: white;
  padding: 10px 15px;
  border-radius: 100px;
  width: 120px;
}

#timer {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translate(-50%, 0);
  color: rgba(255, 255, 255, 0.8);
  font-size: 30px;
}

#toggleTimer, #resetGame {
  background: none;
  color: white;
  border-radius: 100px;
  border: 1px solid white;
  padding: 5px 10px;
  font: inherit;
  cursor: pointer;
  outline: inherit;

  position: fixed;
  top: 30px;
}

#resetGame {
  left: 20px;
}

#toggleTimer {
  right: 20px;
}

.action {
  min-width: 50%;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 25px;

  background: linear-gradient(to bottom, #E56D16, #9E4C10);
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

  color: white;
  font-size: 20px;
  text-align: center;
  text-decoration: none;

  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-button {
  width: 25px;
  height: 25px;
}

.hidden {
  visibility: hidden;
}

/** Scrollbar styling */
body {
  --sb-track-color: #232e33;
  --sb-thumb-color: transparent;
  --sb-size: 0px;
}

body::-webkit-scrollbar {
  width: var(--sb-size)
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 20px;

}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
  }
}

@media only screen and (min-width: 800px) {
  #canvas {
    width: 100%;
    height: 100%;
    transform: none;
  }
}