/* static/style.css */
/* Global Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 20px;
}

.container {
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  margin-top: 0;
}

.button {
  display: inline-block;
  text-decoration: none;
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  margin: 10px 0;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.share-link {
  word-break: break-all;
  text-align: center;
  margin-bottom: 15px;
}

#player,
#turn,
#winner {
  text-align: center;
  margin: 10px 0;
  font-size: 1.1em;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 20px auto;
  max-width: 400px;
  width: 100%;
}

.cell {
  background-color: #fafafa;
  border: 2px solid #333;
  position: relative;
  width: 100%;
  padding-top: 100%; /* Square ratio */
  cursor: pointer;
  border-radius: 4px;
}

.cell-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #333;
}
/* X and O colors */
.cell-content.X { color: red; }
.cell-content.O { color: blue; }

@media (max-width: 600px) {
  .board {
    gap: 3px;
  }
  .cell-content {
    font-size: 1.5rem;
  }
  .container {
    padding: 15px;
  }
  a.button {
    padding: 8px 16px;
  }
}