/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  width: 100%;
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 15px 0;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Container */
.container {
  text-align: center;
  margin-top: 20px;
}

/* Turn Indicator */
.turn-indicator {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #2c3e50;
}

/* Buttons */
button {
  padding: 10px 25px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: #2c3e50;
  color: #fff;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
}
button:hover {
  background-color: #34495e;
}

/* Chessboard */
.chessboard {
  display: grid;
  grid-template-columns: repeat(8, 70px);
  grid-template-rows: repeat(8, 70px);
  border: 4px solid #2c3e50;
  margin: 20px auto;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.square {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  cursor: pointer;
  transition: 0.2s;
}

.square.light {
  background-color: #f0d9b5;
}

.square.dark {
  background-color: #b58863;
}

.square.highlight {
  background-color: #ffeb3b !important;
  transition: 0.2s;
}

/* Player Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.modal-content {
  background: #ecf0f1;
  padding: 30px 40px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #2c3e50;
}

.modal-content input {
  width: 200px;
  padding: 10px;
  margin: 8px 0;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.3s;
}
.modal-content input:focus {
  border-color: #2c3e50;
}
