@font-face {
  font-family: "middle-world";
  src: url("fonts/RingbearerMedium-51mgZ.ttf") format("truetype");
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  background: black;
  animation: change-background-color 2s ease-in-out 6s forwards;
  cursor: url(images/ui/cursor.png) 16 16, auto;
}
@keyframes change-background-color {
  from {
    background: black;
  }
  to {
    background: #47aba9;
  }
}
.wrapper {
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
}

.wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #47aba9;
  background-size: cover;
  background-position: cover;
  z-index: -1;
  mask-image: url("images/map/background.gif");
  mask-size: cover;
  mask-position: cover;
}
.game-container {
  position: relative;
  outline: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  display: "none";
  opacity: 0;
   animation: fadeIn 3s ease-in-out 5s forwards;
}

.game-container canvas {
  image-rendering: pixelated;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    display: none;
  }
  100% {
    opacity: 1;
    display: block;
  }
}

.text-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("images/map/background.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation: fadeOut 6s ease-in-out forwards;
}
.area {
  text-align: center;
  font-size: 5.5em;
  color: #fff;
  font-family: "middle-world", sans-serif;
  font-weight: 700;

  animation: blur 0.75s ease-out infinite;
  text-shadow: 0px 0px 5px #fff, 0px 0px 7px #fff;
}
@media (max-width: 600px) {
  .area {
    font-size: 2.5em;
  }
}

@keyframes blur {
  from {
    text-shadow: 0px 0px 10px #fff, 0px 0px 10px #fff, 0px 10px 100px #47aba9;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
  }
}

/* ----------- */

#joystick {
  z-index: 99999;
  position: absolute;
  bottom: 10px;
  right: 10px;
  flex-direction: column;
  align-items: center;
  background-color: rgb(62, 134, 152, 0.8);
  border-radius: 20px;
  padding: 5px;
  display: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.middle {
  display: flex;
  justify-content: center;
  gap: 10px;
}
#joystick button {
  width: 50px;
  height: 50px;
  font-size: 20px;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
  background-image: url("images/buttons/Button_Blue.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-bottom: 10px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
#joystick button:active {
  background-image: url("images/buttons/Button_Blue_Pressed.png");
  color: #fff;
}

@media (max-width: 1024px) {
  #joystick {
    display: flex;
  }
}

#toggleBtn{
  width: 50px;
  height: 50px;
  font-size: 20px;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
  background-image: url("images/buttons/Button_Blue.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-bottom: 10px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
#toggleBtn:active{
  background-image: url("images/buttons/Button_Blue_Pressed.png");
  color: #fff;
}