* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  width: 100vw;
  height: 100vh;
  background-color: rgb(208, 151, 18);
  font-family: Arial, sans-serif;
  overflow: hidden;
}

main {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  /* Centraliza verticalmente */
  gap: 40px;
  padding: 20px;
  /* Espaçamento interno */
}

#tabuleiro {
  width: 680px;
  height: 680px;
  display: flex;
  flex-direction: column;
  border: 28px solid #8B4513;
  /* Borda mais espessa */
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  background-color: #5C4033;
  margin-top: 5px;
}

.linha {
  display: flex;
}

.casa {
  width: 78px;
  height: 78px;
  border: 1px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preto {
  background-color: rgb(145, 145, 145);
}

.branco {
  background-color: white;
}

.casa img {
  width: 90%;
  height: 88%;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.selecionada {
  outline: 3px solid yellow;
}

#reiniciar {
  background-color: #4CAF50;
  color: white;
  padding: 12px 24px;
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#reiniciar:hover {
  background-color: #45a049;
}

#informacoes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#turno {
  font-size: 20px;
  font-weight: bold;
}

#capturadas {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#capturadas-branco,
#capturadas-preto {
  background-color: #fff;
  border: 2px solid black;
  padding: 10px;
  width: 200px;
  min-height: 100px;
  border-radius: 10px;
}

#capturadas-branco h3,
#capturadas-preto h3 {
  text-align: center;
  margin-bottom: 10px;
}

#pecas-capturadas-branco,
#pecas-capturadas-preto {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}

#pecas-capturadas-branco img,
#pecas-capturadas-preto img {
  width: 40px;
  height: 40px;
}

#logo-destaque {
  position: absolute;
  bottom: 20px;
  right: 50px;
  width: 180px;
  height: auto;
  opacity: 1;
  z-index: 10;
  filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

#logo-destaque:hover {
  transform: scale(1.03);
  cursor: pointer;
}




/* Responsivo */
@media screen and (max-width: 900px) {
  #tabuleiro {
    width: 90vw;
    height: 90vw;
    border: 20px solid #8B4513;
  }

  .linha {
    width: 100%;
  }

  .casa {
    width: 12.5%;
    height: 12.5vw;
  }

  #informacoes,
  #capturadas {
    position: relative;
    width: 90vw;
    margin: 10px auto;
    text-align: center;
  }

  #capturadas {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #capturadas-branco,
  #capturadas-preto {
    width: 100%;
  }

  #pecas-capturadas-branco img,
  #pecas-capturadas-preto img {
    width: 30px;
    height: auto;
    margin: 2px;
  }

  #reiniciar {
    width: 100%;
  }
}