@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@500;600&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

.start-game-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  padding: 16px;
  font-family: "Fira Sans", "DIN", "Nunito", sans-serif;
  color: #fff;
  display: none;
  animation: fadeInStartGameModal 300ms ease forwards;
  z-index: 10000;
}

.start-game-modal.active {
  display: block;
}

.start-game-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: solid 1px #fff;
  background-color: rgba(23, 25, 33, 0.95);
  padding: 30px;
  width: 90%;
  max-width: 500px;
  animation: slideInStartGameModalContent 300ms ease forwards;
  z-index: 15000;
}

.start-game-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 30px;
  background: transparent;
  padding: 0;
  margin: 0;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 220ms ease;
}

.start-game-modal__close:not(:disabled):hover {
  opacity: 0.75;
}

.start-game-modal__lead {
  font-size: 40px;
  font-weight: 600;
  margin: 0;
  margin-bottom: 50px;
  text-align: center;
}

.start-game-modal__body {
  padding: 16px;
}

.start-game-modal__action {
  position: relative;
  box-shadow: 0 10px 50px 0 rgb(76 178 86 / 24%),
    0 10px 10px 0 rgb(21 23 30 / 75%);
  background-color: #47ab51;
  margin-top: 20px;
  height: 90px;
  display: block;
  width: 100%;
  clip-path: polygon(
    20px 0%,
    calc(100% - 20px) 0%,
    100% 0,
    100% 80%,
    calc(100% - 20px) 100%,
    20% 100%,
    0 100%,
    0% 20%
  );
  position: relative;
  transition: all 0.2s ease-in-out;
  margin-bottom: 20px;
}

.start-game-modal__action:hover {
  background-image: linear-gradient(99deg, #003f52, #003343);
  opacity: 0.8;
}

.start-game-modal__action a:hover {
  color: #fff !important;
}

.start-game-modal__action::before {
  content: "";
  position: absolute;
  background-image: linear-gradient(99deg, #1a5520, #022705 100%);
  clip-path: polygon(
    20px 0%,
    calc(100% - 20px) 0%,
    100% 0,
    100% 80%,
    calc(100% - 20px) 100%,
    20% 100%,
    0 100%,
    0% 20%
  );
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
}

.start-game-modal__action a {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 30px;
  transition: opacity 220ms ease;
}

.start-game-modal__action a::before {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  position: absolute;
  bottom: 0;
  left: 0;
  border-left: 4px solid #69cc73;
  border-bottom: 4px solid #69cc73;
}

.start-game-modal__action a::after {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  position: absolute;
  top: 0;
  right: 1px;
  border-right: 4px solid #69cc73;
  border-top: 4px solid #69cc73;
}

.custom-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 24px;
  padding-left: 35px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.custom-checkbox input {
  display: none;
}

.custom-checkbox__checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 24px;
  width: 24px;
}

.custom-checkbox__checkmark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: transparent;
  border: 2px solid #ffc046;
  border-radius: 5px;
  transform: translateY(-50%);
}

.custom-checkbox__checkmark:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-color: #00b8c5;
  border-radius: 2px;
  opacity: 0;
}

.custom-checkbox input:checked ~ .custom-checkbox__checkmark::after {
  opacity: 1;
}

@keyframes fadeInStartGameModal {
  from {
    background: rgba(0, 0, 0, 0.1);
  }
  to {
    background: rgba(0, 0, 0, 0.5);
  }
}

@keyframes slideInStartGameModalContent {
  from {
    transform: translate(-50%, calc(-50% + 100px));
  }
  to {
    background: translateY(-50%, -50%);
  }
}

@media (max-width: 576px) {
  .start-game-modal__content {
    padding: 20px;
  }

  .start-game-modal__lead {
    font-size: 35px;
    margin-bottom: 30px;
  }

  .start-game-modal__action {
    height: 70px;
  }

  .start-game-modal__action a {
    font-size: 25px;
  }
}
