@font-face {
  font-family: 'Jim Nightshade';
  src: url('fonts/jim-nightshade.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

main {
  width: 100%;
  height: 100vh;

  --red: #ac2424;
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3 {
  font-family: 'Jim Nightshade', cursive;
}

.canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.scenes {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.scene {
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sceneBg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  visibility: hidden;
}

.scene_mainMenu {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8vmin 0
}

.startGameButton {
  font-family: 'Jim Nightshade', cursive;
  font-size: 10vmin;
  background-color: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}

.scene_mainMenu h1 {
  font-size: 20vmin;
  margin: 0;
  padding: 0;
}

.scene_mainMenu h1 span {
  color: var(--red);
}

.scene_aimPlusMath {}

.levelsOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  visibility: hidden;
}

.levelsOverlay_Top,
.levelsOverlay_Bottom {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.levelsOverlay_Top_Center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* .levelsOverlay_levelName {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  padding: 8px;
  background-color: white;
  border: 1px solid black;
  border-radius: 8px;
} */

.levelsOverlay_levelDescription {
  font-size: 20px;
  font-weight: normal;
  text-align: center;
  margin: 0;
  padding: 8px;
  background-color: white;
  border: 1px solid black;
  border-radius: 8px;
}

.levelsOverlay_levelTargetValue {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  padding: 8px;
  background-color: white;
  border: 1px solid black;
  border-radius: 8px;
  visibility: hidden;
}

.levelsOverlay_Top_Right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
}

.levelsOverlay_bottomInputValue {
  display: inline-block;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin: 0;
  padding: 8px;
  background-color: white;
  border: 1px solid black;
  border-radius: 8px;
  visibility: hidden;
  min-width: 120px;
  min-height: 45px;
}

.levelFailed,
.levelCompleted,
.gameCompleted {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
}

.levelFailedInner,
.levelCompletedInner,
.gameCompletedInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px;
  background-color: white;
  border: 1px solid black;
  border-radius: 8px;
  color: black;
}

.levelFailedInner>h1,
.levelCompletedInner>h1,
.gameCompletedInner>h1 {
  font-size: 8vmin !important;
}

.smallButton {
  font-size: 2vmin;
  color: white;
  background-color: black;
  border: none;
  border-radius: 4px;
  padding: 0.4em;
  outline: none
}

.horizontalButtonsWrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1vmin;

}

.pauseMenu {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  visibility: hidden;
}

.pauseMenuInner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}