/* styles/aprenda.css */

body {
  background: #111;
  color: #eee;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  margin-top: 1rem;
  font-size: 2rem;
  color: #ffd700;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #ffdd33;
}

h3 {
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.75 rem;
  color: #fff;
}

.sectionMap {
  margin: 1.5rem auto;
  padding: 1rem;
  width: 90%;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.section {
  margin: 1rem auto;
  padding: 0.4rem;
  width: 90%;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
  scroll-behavior: smooth;
}

.section p,
.section ul,
.section ol {
  line-height: 1.5;
  margin-left: 1rem;
}

button {
  background: #ffd700;
  color: #111;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin: 0.25rem 0.5rem;
  transition: background 0.2s;
}

button:hover {
  background: #ffcc00;
}

#moveStatus,
#vectorChoice {
  font-weight: bold;
  display: block;
  margin-top: 0.5rem;
}

.axis {
  position: absolute;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
}

.axis span {
  display: inline-block;
  width: 40px;
  text-align: center;
}

.axis.y {
  transform: rotate(-90deg);
  transform-origin: left top;
  top: 180px; /* (40px Ã— 5 / 2) â€“ ajuste se o tamanho da grid mudar */
  left: -40px;
}

.cell {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
}

.cell.pacman::after,
.cell.ghost::after {
  font-size: 1.2rem;
}
