/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #d0f0f0, #f8d0e0);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 20px;
  color: #4b1c2f;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  gap: 20px;
  flex: 1;
}

/* Tabuleiro */
.board-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.board {
  display: grid;
  grid-template-columns: repeat(8, 60px);
  grid-template-rows: repeat(8, 60px);
  border: 3px solid #7a3b52;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.square {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
}

.square.light {
  background-color: #f0d9b5;
}

.square.dark {
  background-color: #b58863;
}

.status {
  margin-top: 15px;
  text-align: center;
}

#reset {
  background-color: #7a3b52;
  color: white;
  border: none;
  padding: 8px 16px;
  margin-top: 8px;
  cursor: pointer;
  border-radius: 5px;
}

#reset:hover {
  background-color: #a85d7a;
}

/* Regras */
.rules-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px 20px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  max-width: 300px;
  line-height: 1.6;
}

.rules-card h2 {
  margin-bottom: 10px;
  color: #4b1c2f;
  font-size: 1.2rem;
}

.rules-card ul {
  list-style: none;
}

.rules-card li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: #4b1c2f;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .rules-card {
    max-width: 90%;
    margin-top: 20px;
  }
}
