@font-face {
  font-family: "undertale";
  src: url('../assets/fonts/determination-mono-web-regular.ttf');
}

* {
  user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background-color: black;
  cursor: url('../assets/sprites/ui/cursor/cursor.png') 0 0, auto;
  overflow: hidden;
}

body {
  background-color: black;
  background-repeat: no-repeat;
  background-size: cover;
  image-rendering: pixelated;
}
canvas {
  display: block;
}
#jogo {
  font-family: undertale;
  color: white;
  font-size: 2rem;
  animation: 0.2s fadeIn ease-in-out;
}
.lado {
  background-color: rgb(0, 0, 0);
  width: 700px;/*665px*/
  border: 3px ridge white;
  border-bottom: none;
  color: white;
  font-family: undertale;
  font-size: 1.8rem;
  text-align: center;
}
.ladoVertical {
  background-color: black; 
  width: 50px;
  height: 600px;
}
.container {
  display: flex;
  border: 3px ridge white;
  border-top: none;
  padding-top: 10px;
  padding-bottom: 10px;
}
.title {
  display: flex;
}
.exit {
  background-color: rgb(156, 43, 43);
  width: 30px;
  height: 30px;
  border-right: 3px ridge white;
  border-top: 3px ridge white;
  color: white;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s;

  display: none;
}
.exit:hover {
  background-color: rgb(209, 43, 43);
  transition: 0.2s;
}
#estadoCarregamento {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: undertale;
  color: white;
  font-size: 3rem;
  z-index: 100;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }  
  80% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes reversefadeIn {
  from {
    opacity: 1;
  }  
  80% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
#container-canvas {
  overflow: hidden;
  position: relative;
}
.instrucoes-dialogo {
  font-family: undertale;
  color: white;
  font-size: 1rem;
  text-align: center;
  padding-top: 6px;
  min-height: 1.2rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
.instrucoes-dialogo.visivel {
  opacity: 1;
  transform: translateY(0);
}
.acima {
  width: 600px;
  height: 600px;
  position: absolute;
  display: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  image-rendering: pixelated;
  filter: brightness(1.5);
  z-index: 100;
}

@keyframes animacaoLuta {
  from {
    transform: translateY(600px);
    opacity: 0.4;

  }
  50% {
    opacity: 0.4;
  }
  to {
    transform: translateY(-300px);
    opacity: 0;
  }
}

.botoes {
  width: 100%;
  max-width: 690px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px ridge white;
  border-top: none;
  padding: 10px 5px;
  gap: 8px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.botao {
  height: 56px;
  width: 56px;
  font-size: 0;
  text-align: center;
  color: white;
  background-color: black;
  border: 2px solid rgba(255, 255, 255, 0.4);
  margin: 0;
  flex-grow: 1;
  max-width: 70px;
  transition: background-color 0.05s, border-color 0.05s;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.botao::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
}
.botao-left::before {
  border-width: 10px 14px 10px 0;
  border-color: transparent white transparent transparent;
  left: 35%;
}
.botao-up::before {
  border-width: 0 10px 14px 10px;
  border-color: transparent transparent white transparent;
  top: 40%;
}
.botao-down::before {
  border-width: 14px 10px 0 10px;
  border-color: white transparent transparent transparent;
  top: 60%;
}
.botao-right::before {
  border-width: 10px 0 10px 14px;
  border-color: transparent transparent transparent white;
  left: 65%;
}
.botao:active,
.botao.active {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: white;
}
#lado {
  font-size: 2rem;
  
}