
/* Final Layout - ChatGPT Optimized */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #aab3e0;
  overflow-x: hidden;
}

.tactical-board-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 10px 10px;
  background-color: #aab3e0;
}

.tactical-board-header input {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  background-color: #eef2ff;
  color: #000;
  min-width: 160px;
}

.match-info-bar {
  text-align: center;
  font-size: 16px;
  margin: 10px auto 0;
  color: #fff;
  background-color: #333;
  padding: 10px;
  border-radius: 6px;
  width: 90%;
}

.tactical-board-container {
  width: 100vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px 20px;
}

canvas#tacticalPitch {
  width: 95vw;
  height: auto;
  max-width: 1200px;
  display: block;
  border: 2px solid #222;
  background-color: #116611;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.controls {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.controls button {
  padding: 10px 15px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
}

.controls button:hover {
  background-color: #0056b3;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  width: 320px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  text-align: center;
}

.modal-content h3 {
  margin-bottom: 5px;
}

.modal-content select,
.modal-content input[type="color"] {
  padding: 8px;
  margin-bottom: 10px;
  width: 100%;
  font-size: 14px;
}

.modal-content button {
  padding: 10px 14px;
  background-color: green;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.modal-content button:hover {
  background-color: darkgreen;
}

.close {
  float: right;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}
