body {
  font-family: 'Orbitron', sans-serif;
  background-color: #0e0e0e;
  color: white;
  margin: 0;
  padding: 0;
  text-align: center;
}

.screen {
  display: none;
  padding: 0px;
  margin: 0px;
}

.screen.active {
  display: block;
}

h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  letter-spacing: 2px;
  color: #00ffcc;
}

.screen p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #ccc;
}

button {
  background-color: transparent;
  color: #00ffcc;
  border: 2px solid #00ffcc;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 18px;
  font-family: 'Orbitron', sans-serif;
  margin: 10px;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
}

button:hover {
  background-color: #00ffcc;
  color: #000;
  box-shadow: 0 0 10px #00ffcc;
}

.menu {
  display: flex;
  flex-direction: column;   /* Um embaixo do outro */
  align-items: center;      /* Centraliza horizontalmente */
}

.menu button {
  width: 300px;             /* Tamanho fixo uniforme */
}

.level-button:hover img {
  filter: invert(1);
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px;
}

.boss {
  background-color: red;
  color: white;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #111;
  margin: 10% auto;
  padding: 30px;
  border: 2px solid #00ffcc;
  width: 80%;
  max-width: 600px;
  color: #ddd;
  font-size: 16px;
  border-radius: 8px;
}

.close {
  color: #00ffcc;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #00ffcc;
  text-shadow: 0 0 8px #00ffcc;
}

.credit-entry {
  border-bottom: 1px solid #333;
  padding: 15px 0;
  text-align: left;
}

.credit-entry h3 {
  margin: 0;
  font-size: 18px;
  color: #00ffee;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.credit-entry p {
  margin: 5px 0 0;
  font-size: 16px;
  color: #ccc;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: center;
  margin: 20px auto;
  max-width: 80vw;
}

.levels-grid button {
    aspect-ratio: 1 / 1;
    width: 100%;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.levels-grid button.locked {
  background-color: #333;
  color: #777;
  border-color: #555;
  cursor: not-allowed;
}

.level-button {
  display: flex;
  align-items: center;
  background-color: transparent;
  border: 2px solid #00ffcc;
  color: #00ffcc;
  padding: 10px 20px;
  font-size: 16px;
  font-family: 'Orbitron', sans-serif;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  text-align: left;
}

.level-button:hover {
  background-color: #00ffcc;
  color: black;
}

.level-button.locked {
  border-color: #444;
  color: #777;
  background-color: #222;
  cursor: not-allowed;
}

.level-button img {
  width: 60%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  margin: auto;
}

.level-button span {
  margin: auto;
}

.boss-button {
  grid-column: 1 / -1;
  height: 50vw !important;
  width: 50vw !important;
  font-size: 20px;
  justify-content: center;
  background-color: #00398b70;
  border: 3px solid white;
}

.boss-button.locked {
  background-color: #400;
  color: #888;
  border-color: #555;
}

#mobile-controls {
  position: fixed;
  bottom: 20px;
  display: none;
  align-items: center;
  width: 100%;
  text-align: center;
  margin: 0;
}

#mobile-controls button {
  font-size: 28px;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 80px;
  /* height: 30vw; */
  margin: 0 auto;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid #00ffcc;
  border-radius: 50%;
  color: #00ffcc;
  font-family: 'Orbitron', sans-serif;
  user-select: none;          /* Evita seleção de texto */
  -webkit-user-select: none;  /* Suporte para Safari/Chrome */
  -ms-user-select: none;      /* Suporte para Edge antigo */
  touch-action: manipulation; /* Remove delay no touch em alguns browsers */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-drag: none;  
}

.arrow-icon {
  width: 80%;
  height: 80%;
  transform: translateY(3px);
}

#game-screen {
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

#game-canvas {
  width: 90%;
  border: 2px solid #00ffcc;
  background-color: #000;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

#game-ui-status, #game-ui-btn{
  margin-top: 10px;
  color: white;
  text-align: center;
}

#game-ui-btn button {
  margin-top: 10px;
}


input[type="text"],
input[type="email"],
select {
  background-color: transparent;
  color: #00ffcc;
  border: 2px solid #00ffcc;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 16px;
  font-family: 'Orbitron', sans-serif;
  margin: 8px;
  width: 80%;
  max-width: 400px;
  box-sizing: border-box;
}

input::placeholder {
  color: #00ffcc88;
}

select option {
  background-color: #000;
  color: #00ffcc;
}

/* Estilo geral da tabela */
#tabela-ranking {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
}

/* Cabeçalho fixo com fundo */
#tabela-ranking thead {
  position: sticky;
  top: 0;
  background-color: #111;
  z-index: 1;
}

/* Células do cabeçalho */
#tabela-ranking th {
  font-size: 18px;
  color: #00ffee;
  padding: 10px;
  border-bottom: 1px solid #00ffcc44;
  text-align: center;
}

/* Células do corpo */
#tabela-ranking td {
  padding: 10px;
  border-bottom: 1px solid #00ffcc44;
  color: #00ffcc;
  text-align: center;
}

/* Linhas pares com fundo diferente */
#tabela-ranking tr:nth-child(even) {
  background-color: #191919;
}

/* Barra de rolagem vertical */
::-webkit-scrollbar {
  width: 10px;
}

/* Trilha (fundo da barra) */
::-webkit-scrollbar-track {
  background: #111;
  border-radius: 10px;
}

/* Alça (a parte que se move) */
::-webkit-scrollbar-thumb {
  background-color: #00ffcc;
  border-radius: 10px;
  border: 2px solid #0e0e0e;
}

/* Alça ao passar o mouse */
::-webkit-scrollbar-thumb:hover {
  background-color: #00ffee;
}

/* Firefox (estilo limitado, mas possível) */
* {
  scrollbar-width: thin;
  scrollbar-color: #00ffcc #111;
}

.ranking-corrente {
  background-color: #002b24 !important;
  font-weight: bold;
  color: #ffffff !important;
  box-shadow: 0 0 10px #00ffcc66 inset;
}

.ranking-corrente td {
  color: #00ffee !important;
}

input[type="range"] {
  width: 80%;
  max-width: 400px;
  accent-color: #00ffcc;
  margin: 8px 0;
}

select {
  background-color: #111;
  color: #00ffcc;
  border: 2px solid #00ffcc;
  border-radius: 8px;
  padding: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
}

input[type="range"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button[id^="mute-"] {
  background: none;
  color: #00ffcc;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-left: 10px;
}

.galeria-lista {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.galeria-item-linha {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #111;
  border: 2px solid #00ffcc;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.galeria-item-linha:hover {
  transform: scale(1.02);
  background-color: #0d0d0d;
}

.galeria-item-linha img {
  width: 100px;
  height: auto;
  border-radius: 8px;
}

.galeria-item-linha p {
  color: #00ffcc;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
}

.galeria-item-linha.par {
  flex-direction: row;
}

.galeria-item-linha.impar {
  flex-direction: row-reverse;
}

.galeria-item-linha.bloqueada {
  opacity: 0.3;
  filter: grayscale(100%);
  cursor: not-allowed;
}


/* === Desktop: aplica acima de 768px === */
@media (min-width: 768px) {
	.levels-grid {
	  gap: 12px;
	  max-width: 768px
	}

	.levels-grid button {
	  width: 100%;
	  height: 100px;
	}
	.level-button {
    	  height: 70px;
        }
        .level-button img {
          width: auto;
          height: 100%;
        }	
	.boss-button {
          height: 12vw !important;
          width: 30vw !important;
          max-width: 800px !important;
        }
        #mobile-controls {
          gap: 30px;
        }	
	#mobile-controls button {
          width: 70px;
          height: 70px;
       }
}

