
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.player-turn {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 300;
  margin: 1rem;
}

.player-turn span {
  color: #00d900;
  font-weight: 700;
}

.box-container {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1rem;
}

.box {
  height: 100px;
  width: 100px;
  background-color: #fbff00b0;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: xx-large;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

#status {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 300;
  margin: 1rem;
}

#status span {
  color: #00d900;
  font-weight: 700;
}

.button-container {
  display: flex;
  width: 100%;
  justify-content: space-around;
}

#back {
  font-size: large;
  padding: 7px 20px;
  background-color: #0048ff;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

#back:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

#reset {
  font-size: large;
  padding: 7px 20px;
  background-color: #ff00a6;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.button-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #ffffff;
  text-align: center;
  border-radius: 5px;
  text-decoration: none; /* Removes the underline from links */
  font-weight: bold;
  transition: background-color 0.3s; /* Smooth background color transition on hover */
}

.button-link:hover, .button-link:focus {
  background-color: #0056b3;
  color: #ffffff;
  text-decoration: none; /* Keeps the underline off on hover/focus */
}

