/* Reset some default styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Style for the toggle button */
.toggle-button {
  position: absolute;
  top: 10px;
  right: 10px; /* Adjust the right position */
  padding: 5px 10px;
  background-color: #ffffff;
  color: #000000;
  border: none;
  cursor: pointer;
}

/* CSS for the dark mode */
.dark-mode {
  background-color: #000000;
  color: #ffffff;
}

/* Container styles */
.container {
  text-align: center;
  margin: 20px auto;
  max-width: 320px; /* Adjust the maximum width as needed */
}

/* Title styles */
.title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative; /* Added positioning */
}

/* Board styles */
.board {
  display: grid;
  grid-template-columns: repeat(3, 80px); /* Adjust the cell width as needed */
  grid-gap: 5px; /* Adjust the gap between cells as needed */
  justify-content: center;
  margin-top: 20px;
}

/* Rest of your CSS */

/* Cell styles */
.cell {
  width: 80px; /* Adjust the cell width as needed */
  height: 80px; /* Adjust the cell height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px; /* Adjust the font size as needed */
  cursor: pointer;
  border: 2px solid #333; /* Border styles for cells */
  background-color: #fff; /* Background color for cells */
  transition: background-color 0.3s, transform 0.1s; /* Transition effects */
}

.dark-mode .cell {
  background-color: #000; /* Dark mode background color for cells */
  color: #fff; /* Text color in dark mode */
}

.cell:hover {
  background-color: gray; /* Hover color */
}

/* Message styles */
.message {
  font-size: 18px;
  margin: 20px 0;
}

/* Reset button styles */
.reset-button {
  font-size: 16px;
  background-color: #333; /* Button background color */
  color: #fff; /* Button text color */
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.reset-button:hover {
  background-color: gray; /* Hover background color */
}

.dark-mode .reset-button {
  background-color: white; /* Dark mode background color for cells */
  color: black; /* Text color in dark mode */
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 20px;
}

/* Style for the toggle button */
.theme-toggle {
  background-color: #ffffff;
  color: #000000;
  padding: 5px 10px;
  border: none;
  cursor: pointer;
}