
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter';
  
}
body {
  background: #44354a;
}
.select-box,
.play-board,
.result-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}
.select-box {
  background: #ffe6c8;
  padding: 20px 25px 25px;
  border-radius: 7px;
  max-width: 400px;
  width: 100%;
}
.select-box.hide {
  opacity: 0;
  pointer-events: none;
}
.select-box header {
  font-size: 32px;
  font-weight: 600;
  padding-bottom: 5px;
  border-bottom: 1px solid #ffe6c8;
}
.select-box .title {
  font-size: 30px;
  font-weight: 500;
  margin: 20px 0;
}
.select-box .options {
  display: flex;
  width: 100%;
}
.options button {
  width: 100%;
  font-size: 56px;
  font-weight: 800;
  padding:10px 10px;
  border:10px solid #f0af5a;
  background: #f2c278;
  border-radius: 5px;
  color: #140a19;
  outline: #f1ae57;
  cursor: pointer;
  transition: all 0.3s ease;
}
.options button:hover,
.btn button:hover {
  background: #ffe8cb;
}
.options button.playerX {
  margin-right: 5px;
}
.options button.playerO {
  margin-left: 5px;
}
.select-box .credit {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 500;
}
.select-box .credit a {
  color: #44354a;
  text-decoration: none;
}
.select-box .credit a:hover {
  text-decoration: underline;
}
.play-board {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}
.play-board.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.play-board .details {
  padding: 10px;
  border-radius: 5px;
  background: #fad7a0;
}
.play-board .players {
  width: 100%;
  display: flex;
  position: relative;
  justify-content: space-between;
}
.players span {
  position: relative;
  z-index: 2;
  color: #44354a;
  font-size: 20px;
  font-weight: 600;
  padding: 12px 0;
  width: 100%;
  text-align: center;
  cursor: default;
  user-select: none;
  transition: all 0.3 ease;
}
.players.active span:first-child {
  color: #fad7a0;
}
.players.active span:last-child {
  color: #44354a;
}
.players span:first-child {
  color: #ffe8cb;
}
.players .slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #44354a;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.players.active .slider {
  left: 50%;
}
.players.active span:first-child {
  color: #44354a;
}
.players.active span:nth-child(2) {
  color: #ffe8cb;
}
.players.active .slider {
  left: 50%;
}
.play-area {
  margin-top: 20px;
}
.play-area section {
  display: flex;
  margin-bottom: 1px;
}
.play-area section span {
  display: block;
  height: 90px;
  width: 90px;
  margin: 5px;
  color: #140a19;
  font-size: 48px;
  line-height: 80px;
  text-align: center;
  border-radius: 5px;
  background: #fad7a0;
  border: 5px solid #f0af5a;
}
.result-box {
  padding: 25px 25px;
  border-radius: 5px;
  max-width: 400px;
  width: 100%;
  opacity: 0;
  text-align: center;
  background: #fad7a0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}
.result-box.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.result-box .won-text {
  font-size: 30px;
  font-weight: 500;
  display: flex;
  justify-content: center;
}
.result-box .won-text p {
  font-weight: 600;
  margin: 0 5px;
}
.result-box .btn {
  width: 100%;
  margin-top: 25px;
  display: flex;
  justify-content: center;
}
.btn button {
  font-size: 18px;
  font-weight: 500;
  padding: 8px 20px;
  border: none;
  background: #44354a;
  border-radius: 7px;
  color: #fad7a0;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}