* {
  box-sizing: border-box;
}

@font-face {
  font-family: "ComixLoud";
  src: url("./assets/fonts/Comix_Loud.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background-image: url(./assets/img/body-main_BG.jpg);
  background-size: cover;
  margin: 0;
  width: 100%;
  min-height: 100vh;
  gap: 2rem;
  -webkit-tap-highlight-color: transparent;
}
.d_none {
  display: none !important;
}

.canvas {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  background: rgb(47, 79, 79);
  border: 0.3rem solid rgb(0, 139, 139);
  border-radius: 0.5rem;
  box-shadow: 0 1.5rem 4.375rem rgba(0, 0, 0, 0.8), 0 0.75rem 1.625rem rgba(0, 0, 0, 0.65);
  -webkit-tap-highlight-color: transparent;
}

#game-container {
  position: relative;
  width: min(100vw, 80rem, calc((100vh - 10rem) * 16 / 9));
  max-width: 80rem;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: calc(100vh - 10rem);
  margin: 0 auto;
  align-self: center;
  -webkit-tap-highlight-color: transparent;
}

#game-container.fullscreen-active,
#game-container:fullscreen {
  width: 100vw;
  height: 100vh;
  margin: 0;
}

#game-container.fullscreen-active .canvas,
#game-container:fullscreen .canvas {
  width: 100%;
  height: 100%;
}

footer {
  position: absolute;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  bottom: 0;
  padding: 1rem 0;
  width: 100%;
  background: rgb(47, 79, 79);
}

footer,
footer a {
  color: rgb(161, 255, 255);
  font-size: clamp(0.8rem, 1.2vw + 0.6rem, 1.2rem);
  font-weight: 500;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.1rem;
}

.asset-links,
.asset-links a {
  font-size: clamp(0.6rem, 1.2vw + 0.6rem, 1rem);
}

body.auto-fullscreen-active footer {
  display: none;
}
