body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  box-sizing: border-box;
  height: 100dvh;
  width: 100dvw;
  background: url('img/3. Background/Layers/5. Water/D.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

* {
  font-family: 'gloria', Arial, Helvetica, sans-serif;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-block: 0;
  padding-inline: 0;
}

:root {
  --main-color-purple: #531a82;
  --main-color-cyan: #7fffe0;
}

*::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}
*::-webkit-scrollbar-track {
  border-radius: 4px;
  background-color: var(--main-color-purple);
}

*::-webkit-scrollbar-track:hover {
  background-color: var(--main-color-purple);
}

*::-webkit-scrollbar-track:active {
  background-color: var(--main-color-purple);
}

*::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: var(--main-color-cyan);
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--main-color-cyan);
}

*::-webkit-scrollbar-thumb:active {
  background-color: var(--main-color-cyan);
}

@font-face {
  font-family: 'gloria';
  src: url(fonts/gloriaHallelujah-Regular.ttf);
}

.d-none {
  display: none !important;
}

.d-flex {
  display: flex;
}

.invisible {
  visibility: hidden;
}

.border-radius-left-0 {
  border-radius: 20px 0px 0px 20px !important;
}

canvas {
  display: block;
  border-radius: 20px;
  box-shadow: 0 0 30px 15px #3d52ad;
  transition: 225ms ease-in-out;
}

.canvasContainer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 480px;
  width: 720px;
}

.fullscreen {
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: 1;
  border-radius: 0;
}

.startScreen {
  position: absolute;
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  max-height: 480px;
  z-index: 2;
  box-sizing: border-box;
}

h1 {
  color: white;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.startGameButton,
.controlsButton,
.imprintButton,
.muteButton,
.resizeButton,
.backButton,
.infoCloseButton,
.stopGameButton,
.restartButton {
  justify-content: center;
  border-radius: 20px;
  border: 2px solid white;
  outline: none;
  color: white;
  background: var(--main-color-purple);
  font-weight: 600;
  transition: 225ms ease-in-out;
}

.startGameButton:hover,
.controlsButton:hover,
.imprintButton:hover,
.muteButton:hover,
.resizeButton:hover,
.backButton:hover,
.infoCloseButton:hover,
.restartButton:hover,
.stopGameButton:hover {
  background: white;
  color: var(--main-color-purple);
  border: 2px solid var(--main-color-purple);
  cursor: pointer;
}

.infoCloseButton {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
}

.stopGameButton {
  display: flex;
  align-items: center;
  width: 20px;
  height: 20px;
}

.gameOptions {
  position: absolute;
  z-index: 2;
  top: 3px;
  right: 3px;
}

.muteIcon,
.backIcon {
  height: 30px;
  width: 30px;
  cursor: pointer;
}

.startGameButton,
.controlsButton,
.imprintButton,
.restartButton {
  display: flex;
  padding: 8px 40px;
  font-size: 24px;
  max-width: 200px;
}

.muteButton,
.resizeButton {
  max-width: 150px;
  font-size: 20px;
  padding: 2px 10px;
  height: 40px;
  width: 40px;
}

.backButtonDiv {
  display: flex;
  justify-content: flex-end;
}

.backButton {
  display: flex;
  width: 80px;
  border-radius: 0 20px 0 20px;
}

.imprintButton {
  text-decoration: none;
}

.info {
  position: absolute;
  width: 720px;
  height: 480px;
  color: white;
  font-weight: 600;
  font-size: 24px;
  overflow-y: auto;
  z-index: 2;
}

.winOverlay,
.looseOverlay {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: absolute;
  width: 720px;
  height: 480px;
  z-index: 2;
  gap: 12px;
}

.winOverlay img,
.looseOverlay img {
  width: 400px;
}

.turnDeviceOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  font-size: 20px;
  font-weight: bolder;
  z-index: 2;
}

.infoText,
.controls,
.movementKeys,
.attackKeys {
  padding: 20px 40px;
  word-break: break-word;
}

.movementKeys,
.attackKeys {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 8px;
}

.key {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color-purple);
  background: var(--main-color-cyan);
  border: 3px solid white;
  font-size: 20px;
  font-weight: bolder;
  padding: 4px 22px;
  border-radius: 14px;
  width: auto;
}

.keyColumn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  gap: 8px;
}

.keyRow {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.key span {
  display: inline-block;
}

.utilityButtons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column-reverse;
  gap: 16px;
}

.volumeSlider {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column-reverse;
  background-color: var(--main-color-purple);
  padding: 10px;
  border-radius: 20px;
  border: 2px solid white;
}

.sliderValue {
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.privacyPolicy h1,
h2,
h3,
h4 {
  color: white;
  padding: 20px 0;
}

.privacyPolicy a {
  text-decoration: none;
}

.privacyPolicy li {
  padding: 4px 0;
}

.mobileButtons {
  display: none;
}

.mobileButtons .keyColumn {
  width: inherit;
}

.mobileButtons .key {
  font-size: 14px;
}

.mobileButtons .movementKeys,
.mobileButtons .attackKeys {
  max-height: 50px;
  padding: inherit;
}

.privacyPolicy {
  background: url('img/3. Background/Layers/5. Water/D.png');
  padding: 0 80px 20px 80px;
  overflow: auto;
  color: white;
}

@media only screen and (width: 1024px),
  only screen and (width: 1180px),
  only screen and (width: 1366px),
  only screen and (width: 1368px) {
  .mobileButtons {
    align-items: center;
    justify-content: space-around;
    display: flex;
    height: 20%;
    width: 100%;
  }

  canvas,
  .canvasContainer,
  .startScreen,
  .info {
    width: 100%;
    height: 80vh;
  }
}

@media only screen and (max-width: 720px), only screen and (max-height: 480px) {
  canvas,
  .canvasContainer,
  .startScreen,
  .info {
    width: 100%;
    height: 80vh;
  }

  canvas {
    border-radius: 0;
    box-shadow: inherit;
  }

  .startScreen {
    justify-content: center;
  }

  .startGameButton,
  .controlsButton,
  .imprintButton,
  .restartButton {
    font-size: 16px;
  }

  h1,
  .info .movementKeys,
  .info .attackKeys,
  .info .controls {
    display: none;
  }

  .utilityButtons,
  .options {
    gap: 8px;
  }

  .utilityButtons img {
    height: 20px;
    width: 20px;
  }

  .slider {
    max-width: 120px;
  }

  .volumeSlider {
    max-height: 20px;
  }

  .mobileButtons {
    align-items: center;
    justify-content: space-around;
    display: flex;
    height: 20%;
    width: 100%;
  }

  .mobileButtons .key {
    padding: 4px 10px;
  }

  .info {
    font-size: 18px;
  }
}
