:root {
  --main-color: #004d40;
  --secondary-color: #00838f;
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  font-family: "Times New Roman", Times, serif;
}
.game {
  background-color: #eee;
  min-height: 100vh;
}
.game .title {
  background-color: var(--main-color);
  padding: 30px;
}
.game .title .holder {
  width: 562px;
  position: relative;
  margin: 0 auto;
}
.game .title span {
  font-size: 40px;
  font-weight: bold;
  color: #b7eee9;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  mix-blend-mode: difference;
}
.game .title .holder::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  background-color: #fff;
  height: 100%;
  width: 150px;
  border-radius: 4px;
  animation: move 5s linear infinite;
}
@keyframes move {
  0%,
  100% {
    left: 0;
  }
  50% {
    left: calc(100% - 150px);
  }
}
.game .container {
  max-width: 900px;
  margin: 15px auto;
  text-align: center;
}
.game .container .message {
  background-color: white;
  padding: 15px;
  border-radius: 6px;
  font-size: 18px;
  text-transform: capitalize;
  margin: 15px 0;
}
.game .container .message span {
  font-weight: bold;
  color: var(--secondary-color);
}
.game .container .message span::before {
  content: "[";
}
.game .container .message span::after {
  content: "]";
}
.game .container .options {
  margin: 15px 0;
  background-color: white;
  padding: 15px 0;
  display: flex;
  justify-content: space-evenly;
}
.game .container .options p {
  font-size: 18px;
  text-transform: capitalize;
  margin-bottom: 5px;
}
.game .container .options label {
  font-weight: 600;
  color: var(--secondary-color);
  margin-right: 10px;
}
.game .container .start {
  background-color: var(--secondary-color);
  color: white;
  display: block;
  width: 100%;
  padding: 15px;
  margin: 15px 0;
  font-size: 26px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.game .container .start:hover {
  background-color: #01747e;
}
.game .container .the-word {
  font-size: 50px;
  color: var(--main-color);
  text-transform: capitalize;
  font-weight: bold;
  user-select: none;
  margin: 20px 0;
}
.game .container .input {
  width: 100%;
  border: 3px solid var(--main-color);
  padding: 15px;
  margin: 15px 0;
  text-align: center;
  font-size: 22px;
  text-transform: capitalize;
  caret-color: var(--main-color);
}
.game .container .input:focus {
  outline: none;
}
.game .container .upcoming-words {
  list-style: none;
  background-color: white;
  padding: 15px;
  margin: 15px 0;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  display: none;
}
.game .container .upcoming-words li {
  background-color: var(--main-color);
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 18px;
  text-transform: capitalize;
  user-select: none;
}
.game .container .stats {
  background-color: white;
  padding: 15px;
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
  border-radius: 6px;
}
.game .container .stats > div {
  font-size: 16px;
  text-transform: capitalize;
}
.game .container .stats span {
  color: var(--secondary-color);
  font-weight: bold;
}
.game .container .finish {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background-color: white;
  padding: 15px 0;
}
.game .container .finish button {
  width: 100%;
  padding: 10px 0;
  border: none;
  font-size: 20px;
  color: white;
  cursor: pointer;
  border-radius: 6px;
  text-transform: capitalize;
  font-weight: bold;
}
.game .container .finish .restart {
  background-color: var(--secondary-color);
}
.game .container .finish .restart:hover {
  background-color: #01747e;
}
.game .container .finish .end {
  background-color: rgba(161, 0, 0, 0.9);
}
.game .container .finish .end:hover {
  background-color: rgba(161, 0, 0);
}
.game .container .finish span {
  font-size: 50px;
  text-transform: capitalize;
  font-weight: 600;
}
.game .container .finish .win {
  color: var(--main-color);
}
.game .container .finish .fail {
  color: rgba(161, 0, 0);
}
