@font-face {
    font-family: digital;
    src: url('/assets/fonts/digital-7/digital-7.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

#app, 
#app canvas {
  width: 100%;
  height: 100%;
  touch-action: none;    /* bloqueia scroll/zoom no touch */
  -ms-touch-action: none; /* para navegadores antigos Edge/IE */
}

#root, 
#app {
  width: 100%;
  height: 100%;
  display: flex;         /* só para ter flexibilidade, caso queira centrar algo */
  flex-direction: column;
}

/* 3) Se você colocar uma div específica para Phaser, certifique-se que ela também encha tudo */
#phaser-container {
  flex: 1;               /* ocupa todo o espaço restante dentro de #app */
  position: relative;    /* caso use posicional interno */
}

body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #000000; 
    font-family: Arial, Helvetica, sans-serif;
}

#app {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spritePosition {
    margin: 10px 0 0 10px;
    font-size: 0.8em;
}

.button {
    width: 140px;
    margin: 10px;
    padding: 10px;
    background-color: #000000;
    color: rgba(255, 255, 255, 0.87);
    border: 1px solid rgba(255, 255, 255, 0.87);
    cursor: pointer;
    transition: all 0.3s;

    &:hover {
        border: 1px solid #0ec3c9;
        color: #0ec3c9;
    }

    &:active {
        background-color: #0ec3c9;
    }

    /* Disabled styles */
    &:disabled {
        cursor: not-allowed;
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.3);
    }
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; /* Usa 80% da largura da viewport */
  max-width: 600px; /* Define um limite máximo de largura */
  height: auto; /* Altura automática */
  max-height: 80vh; /* Máximo de 80% da altura da viewport */
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  width: 100%; /* Usa toda a largura disponível no modal */
  max-height: 100%; /* Garante que o conteúdo não ultrapasse o modal */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow-y: auto; /* Permite rolagem caso o conteúdo exceda a altura */
  text-align: center;
}

.modal-content p {
  font-size: 20px;
  color: #fff; /* Texto preto */
  margin-bottom: 20px;
}

.modal-content button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.main-button {
  font-family: var(--font-header);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.625rem 1.25rem 0.35rem;
  font-size: clamp(1.8rem, 2vw, 1.75rem);
  outline: none;
  background: transparent;
  border: none;
  font-weight: 900;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  background-color: #ff6600;
  font-family: var(--font-header);
}
.main-button:hover {
  background-color: #fff;
  color: #000;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.hidden {
  display: none;
}
.modal-content {
  margin-left: 8px;
  margin-right: 8px;
  background: #000;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 600px;
  box-sizing: border-box;
}
.main-button {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
}
.modal-note {
  font-size: 0.75rem;       /* Texto bem pequeno */
  color: #888;             /* Cor discreta */
  margin-top: 0.5rem;      /* Espaço acima */
  line-height: 1.2;        /* Para melhor legibilidade */
}

.modal-note a {
  text-decoration: underline;
  color: #0056b3;          /* Cor de link legível */
}

.modal-footer-content {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    overflow-x: auto;
    font-size: 0.75rem; /* texto menor */
    opacity: 0.8; /* mais discreto */
    background-color: #000;
}

.modal-footer-content::-webkit-scrollbar {
    height: 6px;
}

.modal-footer-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
}

.modal-footer-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-title {
    color:#fff;
    font-size: 48px;
}

.modal-title span {
  color: #ff6600;
}

.footer-inner p {
    color:#fff;
    font-size: 12px;
}

.copyright p {
    color: #fff;
    font-size: 12px;
}

.copyright a {
    color: #ff6600;
}