canvas {
  display: block;
  background: url("img/start_wallpaper.png");
  background-position: top;
  background-size: cover;
}
button:hover {
  cursor: pointer;
}
body {
  display: flex;
  height: 100vh;
  align-items: center;
  flex-direction: column;
  background-image: url("img/body_bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  font-family: "Luckiest Guy";
  margin: 0;
  overflow: hidden;
}
h1 {
  color: rgba(230, 251, 112, 1);
}
.menuClass {
  width: 100vw;
  height: 100vh;
  background-color: transparent;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}
.controlElements {
  display: flex;
  gap: 20px;
  position: absolute;
  top: 270px;
}
.ctrl-btn {
  height: 75px;
  width: 75px;
  font-family: "Luckiest Guy";
  color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  background: linear-gradient(
    to bottom right,
    rgb(182, 235, 24),
    rgb(80, 237, 239)
  );
  transition: transform 0.3s ease;
}
.ctrl-btn:hover {
  transform: scale(1.5);
}
.homeScreen {
  display: flex;
  background-color: black;
  width: 100vw;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: url(./img/body_bg.jpg);
  background-size: cover;
  background-position: center;
  flex-direction: column;
}
.homescreenButtons {
  display: flex;
  width: 50%;
  justify-content: space-between;
  z-index: 2;
  margin-top: 50px;
  max-width: 1000px;
}
.homescreenButtons button {
  width: 150px;
}
.welcomeTitle {
  position: absolute;
  top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
}
.welcomeTitle h3 {
  font-size: 20px;
  text-align: center;
  color: rgb(24, 24, 24);
}
.loreContainer {
  display: flex;
  z-index: 20;
  width: 70%;
  background: linear-gradient(to right, #40e0d0, #8a2be2);
  max-width: 1920px;
  color: white;
  position: absolute;
  height: 80%;
  border-radius: 20px;
  border: none;
  transition: transform 0.2s ease;
}
.loreText {
  overflow-y: auto;
  line-height: 1.5;
  padding: 20px;
  scrollbar-width: none;
}
.loreText h3 {
  color: rgba(0, 0, 0, 0.7);
}
.loreText h2 {
  color: #fff988;
  font-size: 35px;
}
.closeLoreBtn {
  position: absolute;
  right: 20px;
  top: 20px;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.8);
  color: rgb(239, 89, 89);
}
.closeLoreBtn:hover {
  background-color: rgb(239, 89, 89);
  color: white;
}
.offScreen {
  transform: translateX(200%);
  position: fixed;
}
.onScreen {
  transform: translateX(0);
}
.homescreenPics {
  display: flex;
  justify-content: center;
  position: absolute;
}
.sharkieHomescreen {
  width: 40%;
  rotate: -20deg;
  user-select: none;
}
.winningScreen {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: auto 720 / 480;
  position: absolute;
  top: 70px;
}
.endscreenFont {
  width: 95%;
  max-width: 720px;
  max-height: 480px;
  aspect-ratio: auto 720 / 480;
}
#settingContainer {
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
.optionButton {
  width: 35%;
  min-width: 200px;
  height: 10%;
  border: 5px solid rgb(255 255 255);
  border-radius: 15px;
  background-color: rgb(237 237 29);
  color: #0c0ca5;
  font-size: 15px;
  font-weight: bold;
  transition: transform 0.3s ease;
}
.optionButton:hover {
  transform: scale(1.5);
}
.controllerLine {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(0, 0, 0, 0.8);
}
.controllerLine button {
  z-index: 2;
}
.mobileButtons {
  display: none;
  justify-content: space-between;
  width: 95%;
  margin-top: 20px;
  aspect-ratio: auto 600 / 30;
  z-index: 2;
  position: relative;
  bottom: 100px;
  right: -15px;
}
.mobileControlBtn {
  width: 30px;
  height: 30px;
  border-radius: 50px;
  background: rgb(186, 180, 38);
  background: linear-gradient(
    90deg,
    rgba(186, 180, 38, 1) 0%,
    rgba(128, 198, 57, 1) 35%,
    rgba(0, 212, 255, 1) 100%
  );
}
.rotate-device {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  z-index: 1000;
}
.rotate-device .icon {
  font-size: 50px;
  animation: rotate 2s linear infinite;
  margin-bottom: 20px;
}
.endScreenButtons {
  z-index: 2000;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  gap: 100px;
}
.noteDiv {
  z-index: 20;
  position: absolute;
  top: 20px;
  max-width: 1920px;
  width: 100%;
  margin-left: 20px;
}
.noteDiv a {
  color: rgb(20, 20, 19);
  text-decoration: none;
}
.noteDiv a:hover {
  cursor: pointer;
}
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  pointer-events: all;
  user-select: none;
}
.loader {
  border: 8px solid #f3f3f3;
  border-radius: 50%;
  border-top: 8px solid #3498db;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}
.muteButtonMobile {
  width: 20px;
  height: 20px;
  position: relative;
  filter: invert(1);
  top: -32px;
  z-index: 2;
}
.muteButtonMobile:hover {
  cursor: pointer;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}
@media (orientation: portrait) {
  .rotate-device {
    display: flex;
  }
}
@media (max-width: 775px) {
  .controllerInfo {
    display: none;
  }
}
@media (max-width: 600px) {
  .homescreenButtons {
    flex-direction: column;
    align-items: center;
    gap: 50px;
    position: absolute;
    bottom: 10%;
  }
}
@media (max-width: 400px) {
  .homescreenPics {
    display: none;
  }
}
@media only screen and (max-width: 932px) {
  canvas {
    width: 100%;
  }
  .canvasDIV {
    width: 100vw;
  }
}
@media only screen and (max-height: 480px) {
  canvas {
    height: 100vh;
  }
  .canvasDIV {
    height: 100vh;
  }
  h1 {
    display: none;
  }
  .controllerInfo {
    position: absolute;
    bottom: 0;
  }
}
@media (hover: none) and (pointer: coarse) {
  .mobileButtons {
    display: flex;
  }
  .controllerLine {
    display: none;
  }
}
.wholeScreen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.none {
  display: none !important;
}
