:root {
  --main-bg-color: #333;
  --text-color: white;
  --container-bg-color: white;
  --container-text-color: #333;
  --button-bg-color: cadetblue;
  --button-hover-color: #afeeee;
  --button-disabled-color: #a9a9a9;
  --button-wrong-color: #fa8072;
  --button-right-color: #228b22;
  --cub-bg-color: lightgreen;
}

@font-face {
  font-family: "Montserrat";
  src: local("MontserratRegular"),
    url("../fonts/MontserratRegular.woff2") format("woff2"),
    url("../fonts/MontserratRegular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0;
  height: 100vh;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 120%;
  background-color: #f4f4f9;
  color: #333;
}

.game {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  height: 70vh;
  max-width: 500px;
  padding: 50px;
  padding-bottom: 50px;
  border-radius: 15px;
  background-color: var(--container-bg-color);
}

.game__container {
  width: 100%;
  color: var(--container-text-color);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 10px;
}

.exercise {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  width: 100%;
}

.exercise__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: calc(50% - 5px);
}

.exercise__span {
  margin-right: 10px;
}

.input {
  width: 30px;
  font: inherit;
  padding: 1px;
  color: inherit;
}

.input:disabled {
  border: none;
  background: none;
}

.input.wrong {
  color: var(--button-wrong-color);
}

.button {
  padding: 7px 15px;
  border: none;
  border-radius: 5px;
  font: inherit;
  font-size: 16px;
  color: white;
  cursor: pointer;
  background-color: var(--button-bg-color);
  -webkit-transition: background-color 0.3s ease-in-out;
  -o-transition: background-color 0.3s ease-in-out;
  transition: background-color 0.3s ease-in-out;
}

.button:hover {
  background-color: var(--button-hover-color);
}

.button.right {
  background-color: var(--button-right-color);
}

.button:disabled {
  background-color: var(--button-disabled-color);
}

.button.wrong {
  background-color: var(--button-wrong-color);
}

.cubs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  width: calc(50% - 5px);
  gap: 8px;
}

.cub {
  background-color: var(--cub-bg-color);
  width: 20px;
  height: 20px;
}

@-webkit-keyframes moveUp {
  from {
    -webkit-transform: translateY(100px);
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes moveUp {
  from {
    -webkit-transform: translateY(100px);
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

.cub.animate {
  -webkit-animation: moveUp 0.5s ease-in-out forwards;
  animation: moveUp 0.5s ease-in-out forwards;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.exercise.fade-in {
  opacity: 0;
  -webkit-animation: fadeIn 0.5s forwards;
  animation: fadeIn 0.5s forwards;
}

.end {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 100vh;
  color: #333;
  background-color: white;
}

.end__title {
  margin: 0;
  margin-bottom: 20px;
  font-size: 24px;
}

.end__descr {
  margin: 0;
  margin-bottom: 20px;
  text-align: center;
  font-size: 20px;
}

.hidden {
  display: none;
}

.shadow {
  text-align: center;
  background-color: white;
  border-radius: 10px;
  -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

select {
  padding: 10px;
  font-size: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
