* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
  font-weight: bolder;
  font-style: normal;
}
.game__container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #1a2a33;
}
.container {
  display: grid;
  grid-template-columns: repeat(3, auto);
  width: 260px;
  margin: auto;
  gap: 10px;
}
.cell {
  background-color: #1f3641;
  width: 80px;
  height: 80px;
  font-size: 35px;
  font-weight: 900;
  padding: 20px 0;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.6));
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.game__name {
  font-size: 30px;
  text-align: left;
  color: #f2b137;
}
.game__name::first-letter {
  color: #31c3bd;
}
.turn__label {
  width: 80px;
  height: 40px;
  background-color: #1f3641;
  padding: 10px;
  border-radius: 10px;
  color: #a8bfc9;
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.6));
}
.restart__btn {
  height: 40px;
  width: 40px;
  justify-self: end;
  border-radius: 10px;
  border: none;
  background-color: #a8bfc9;
  filter: drop-shadow(0 3px 0 rgb(113, 132, 141));
  cursor: pointer;
}
.result__btn:active {
  background-color: #a8bfc9;
}
.restart__img {
  height: 40px;
  width: 40px;
}
.result {
  height: 45px;
  padding: 2px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1a2a33;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
}
.X__wins,
.draw,
.O__wins {
  font-size: 20px;
  font-weight: bold;
}
.result__draw {
  background-color: #a8bfc9;
}
.result__X {
  background-color: #31c3bd;
}
.result__O {
  background-color: #f2b137;
}
.result__draw:hover {
  background-color: #dbe8ed;
}
.result__X:hover {
  background-color: #65e9e4;
}
.result__O:hover {
  background-color: #f3bc56;
}
.window {
  position: absolute;
  width: 100%;
  height: 200px;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  z-index: 10;
  border: none;
  background-color: #1f3641;
  box-shadow: 0 0 px rgba(0, 0, 0, 0.6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

.starting__window {
  width: 100%;
  height: 100vh;
  background-color: #1a2a33;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.starting__window > * {
  margin: 1rem 0;
}
.starting__window .btn {
  width: 18rem;
}

.choosing__mark {
  position: absolute;
  width: 18rem;
  height: 100px;
  top: 65%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  border-radius: 5px;
  text-transform: uppercase;
  background-color: #1f3641;
  color: #a8bfc9;
  font-size: 10px;
  font-weight: 300;
}
.choosing__mark__label {
  font-size: 16px;
  font-weight: 800;
}
.mark {
  width: 7rem;
  height: 35px;
  border: none;
  border-radius: 5px;
  margin-right: 4px;
  font-size: 20px;
  font-weight: bolder;
  background-color: #1a2a33;
  color: #a8bfc9;
  cursor: pointer;
  transition: all 0.3s;
}
.X__mark:hover {
  background-color: #31c3bd;
  color: #1a2a33;
}
.O__mark:hover {
  background-color: #f2b137;
  color: #1a2a33;
}
.mark:active {
  opacity: 0.6;
}
.winning__msg {
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
}
.winner__label::first-letter {
  font-size: 45px;
  font-weight: bolder;
  margin-right: 10px;
  vertical-align: middle;
}
.btn {
  height: 35px;
  padding: 0 10px;
  border-radius: 5px;
  margin-right: 8px;
  font-size: 16px;
  border: none;
  color: #1a2a33;
  font-weight: bolder;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.btn:active {
  opacity: 0.6;
}
.continue__game,
.restart__yes,
.vs__player {
  background-color: #f2b137;
  filter: drop-shadow(0 3px 0 #cc8d19);
}
.vs__cpu {
  background-color: #31c3bd;
  filter: drop-shadow(0 3px 0 #1b8b88);
}
.new__game,
.restart__no {
  background-color: #a8bfc9;
  filter: drop-shadow(0 3px 0 rgb(113, 132, 141));
}
.restart__msg {
  color: #94b0bc;
}
.overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 5;
}
.hidden {
  display: none;
}
