/* Estilos Globais */
* {
  box-sizing: border-box;
}

/* Estilos do Corpo da Página */
body {
  align-items: center;
  background-color: rgb(20, 20, 20);
  display: flex;
  flex-direction: column;
  font-family: 'Micro 5', sans-serif;
  justify-content: center;
  margin: 0;
  min-height: 90vh;
}

/* Estilos do Campo de Jogo */
#campo {
  background-color: black;
  border: 2px solid white;
  height: 300px;
  position: relative;
  width: 400px;
}

/* Estilos da Bola */
#bola {
  background-color: white;
  height: 10px;
  position: absolute;
  width: 10px;
}

/* Estilos das Raquetes */
#raqueteEsquerda,
#raqueteDireita {
  background-color: white;
  height: 70px;
  position: absolute;
  width: 10px;
}

#raqueteEsquerda {
  left: 10px;
}

#raqueteDireita {
  right: 10px;
}

/* Estilos da Divisão Central */
#divisaoCentral {
  background-image: repeating-linear-gradient(
    to bottom,
    white 0px,
    white 6px,
    transparent 6px,
    transparent 12px
  );
  background-size: 100% 100%;
  height: 100%;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
}

/* Estilos do Placar */
#placarContainer {
  left: 50%;
  pointer-events: none;
  position: absolute;
  text-align: center;
  top: 10px;
  transform: translateX(-50%);
  user-select: none;
  z-index: 10;
}

#placarLinha {
  display: flex;
  gap: 60px;
  justify-content: space-between;
}

.placarLado {
  color: white;
  font-family: 'Micro 5', sans-serif;
  font-size: 50px;
  line-height: 40px;
  pointer-events: none;
  text-align: center;
  user-select: none;
  width: 80px;
}

/* Estilos da Mensagem Inicial */
#mensagemInicio {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid white;
  color: white;
  font-family: 'Micro 5', sans-serif;
  font-size: 30px;
  left: 50%;
  line-height: 1;
  padding: 8px 12px;
  position: absolute;
  text-transform: uppercase;
  top: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  width: 250px;
  z-index: 5;
}

/* Estilos do Título */
#titulo {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid white;
  color: white;
  display: flex;
  font-family: 'Micro 5', sans-serif;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 20px;
  padding: 8px 12px;
  text-align: center;
  text-transform: uppercase;
  user-select: none;
  z-index: 5;
}

/* Estilos de Depuração */
.debug-text {
  color: lime;
  font-family: 'Micro 5', sans-serif;
  font-size: 12px;
}

#coordenadasCampo {
  background-color: rgba(0, 0, 0, 0.5);
  bottom: 5px;
  color: lime;
  font-family: 'Micro 5', sans-serif;
  font-size: 20px;
  padding: 2px 4px;
  position: absolute;
  text-transform: uppercase;
  user-select: none;
  z-index: 10;
}

#debugPanel {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid white;
  color: lime;
  display: none;
  font-family: 'Micro 5', sans-serif;
  font-size: 24px;
  line-height: 1.4;
  margin-top: 20px;
  max-width: 90%;
  padding: 10px;
  text-align: center;
  text-transform: uppercase;
  user-select: none;
  width: 400px;
  z-index: 5;
}

#bola.debug-text::after {
  color: lime;
  content: attr(data-debug);
  font-family: 'Micro 5', sans-serif;
  font-size: 20px;
  left: 0;
  position: absolute;
  text-transform: uppercase;
  top: 16px;
  white-space: nowrap;
  z-index: 20;
}

#raqueteEsquerda.debug-text::after,
#raqueteDireita.debug-text::after {
  color: lime;
  content: attr(data-debug);
  font-family: 'Micro 5', sans-serif;
  font-size: 20px;
  left: 15px;
  position: absolute;
  text-transform: uppercase;
  top: 0;
  white-space: nowrap;
  z-index: 20;
}

#raqueteDireita.debug-text::after {
  left: auto;
  right: 15px;
}