@font-face {
  font-family: Paytone One;
  src: url('../assets/fonts/PaytoneOne-Regular.ttf');
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

* {
  box-sizing: border-box;
  font-family: Paytone One;
  margin: 0;
  padding: 0;
}

.button_return {
  position: absolute;
  right: 30px;
  top: 30px;
  background: none;
  border: none;
  height: 30px;
  width: 30px;
  cursor: pointer;
}

.button_return > a > i {
  font-size: 30px;
  color: #042b60;
}

#puzzle {
  width: 500px;
  height: 500px;
  border-collapse: collapse;
  margin: 0;
  margin-top: 10px;
  border: 5px solid #042b60;
}

.puzzle_wrapper {
  position: relative;
  width: 90%;
  margin-left: 10%;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  width: 80%;
  min-height: 85%;
  margin: auto;
  padding: 20px;
  background-color: #ccf3f0;
  box-shadow: 0px 3px 15px #00000029 inset, 0px 7px 15px #00000029;
  border: 11px solid #ffffff;
  border-radius: 30px;
  color: #042b60;
  font-weight: bold;
}

.input_wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
  z-index: 9999;
}

.word_wrap {
  margin-right: 40px;
}

.input_solution {
  width: 80%;
  background: none;
  border: none;
  color: #042b60;
  letter-spacing: 20px;
  font-size: 36px;
  height: 36px;
  text-transform: uppercase;
  border-bottom: 3px dashed #042b60;
}

.input_solution:after {
  content: '';
  border-bottom: 3px dashed #042b60;
}

.title {
  color: #042b60;
  font-weight: 400;
  width: 100%;
  margin: 5px;
  text-align: center;
}

.square {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;

  position: relative;
  background: #fff;
  z-index: 0;
}

.empty {
  background-color: white;
}

.letter {
  color: #042b60;
  z-index: 5;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.letterHighLIght {
  text-align: center;
  cursor: pointer;
  background: #2faf9770;
}

#puzzle_container {
  width: 500px;
  height: 500px;
  position: relative;
}

.letter_input {
  border: none;
  border-bottom: 4px solid #042b60;
  margin: 3px;
  background: none;
  font-size: 36px;
  width: 45px;
  height: 60px;
  text-align: center;
  text-transform: uppercase;
  color: #042b60;
}

.letter_input:not(:last-of-type) {
  border-right: none;
}

#letter_input6,
#letter_input11 {
  margin-right: 50px;
}

.break {
  width: 0;
}

.hints_container {
  width: 30%;
  font-size: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
  font-weight: 400;
}

p {
  position: relative;
}

.crossed:after {
  content: '';
  width: 100%;
  height: 100%;
  border-bottom: 3px solid hsl(339, 96%, 44%);
  position: absolute;
  top: -50%;
  left: 0;
}

#buttons_container {
  padding-top: 20px;
  margin-left: 42px;
}

.active {
  border-color: red;
}

.question_number {
  position: absolute;
  font-size: 42px;
  font-weight: 400;
  color: #042b60;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 6;
  pointer-events: none;
}

td {
  height: 14.28%;
  width: 14.28%;
  margin: 0;
  position: relative;
  background: #fff;
  border: 5px solid #042b60;
  background-clip: padding-box;
}

.wagon_border {
  display: none;
  width: 345px;
  height: 55px;
  position: absolute;
  border: 3px solid red;
  border-radius: 35px;
  left: 15.5%;
  top: 4%;
  z-index: 9;
  pointer-events: none;
}

.trasa_border {
  display: none;
  width: 345px;
  height: 55px;
  position: absolute;
  border: 3px solid red;
  border-radius: 35px;
  left: 29.5%;
  top: 18.3%;
  z-index: 9;
  pointer-events: none;
}

.bilet_border {
  display: none;
  width: 345px;
  height: 55px;
  position: absolute;
  border: 3px solid red;
  border-radius: 35px;
  left: 1.2%;
  top: 60.6%;
  z-index: 9;
  pointer-events: none;
}

.most_border {
  display: none;
  width: 275px;
  height: 55px;
  position: absolute;
  border: 3px solid red;
  border-radius: 35px;
  left: 1.2%;
  top: 89%;
  z-index: 9;
  pointer-events: none;
}

.stop_border {
  display: none;
  width: 55px;
  height: 275px;
  position: absolute;
  border: 3px solid red;
  border-radius: 35px;
  left: 58.5%;
  top: 45.5%;
  z-index: 9;
  pointer-events: none;
}

.tory_border {
  display: none;
  width: 360px;
  height: 55px;
  position: absolute;
  border: 3px solid red;
  border-radius: 35px;
  transform: rotate(135deg);
  left: 34.8%;
  top: 68%;
  z-index: 9;
  pointer-events: none;
}

.rogatka_border {
  display: none;
  width: 660px;
  height: 55px;
  position: absolute;
  border: 3px solid red;
  border-radius: 35px;
  left: -16%;
  top: 46%;
  transform: rotate(45deg);
  z-index: 9;
  pointer-events: none;
}

.crossword_completed_overlay {
  display: none;
  position: absolute;
  height: 100%;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  border-radius: 23px;
}

@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .crossword_completed_overlay {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.5);
  }
}

.crossword_completed_popup {
  position: relative;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00c0b5;
  box-shadow: 0px 3px 39px #00000029;
  border: 11px solid #ffffff;
  padding: 35px 20px;
  border-radius: 50px;
  margin-right: 18%;
}

.crossword_completed_popup > span {
  color: #fff;
  font: normal normal normal 2.5rem Paytone One;
  text-align: center;
}

.crossword_completed_img {
  position: absolute;
  height: 97%;
  left: 5%;
  bottom: -20%;
}

.button_next {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 35px;
  text-align: center;
  font: 28px Paytone One;
  color: #ffffff;
  background: #042b60;
  box-shadow: 0px 3px 14px #00000029;
  border: 11px solid #ffffff;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}

.button_next > a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1600px) {
  .crossword_completed_img {
    left: -5%;
  }

  #letter_input6,
  #letter_input11 {
    margin-right: 0;
  }

  .break {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .hints_container {
    font-size: 28px;
    margin-left: 20px;
  }

  .hints_container {
    margin: 20px 0;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hints_container > p {
    margin: 10px;
  }

  .puzzle_wrapper {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .crossword_completed_overlay {
    justify-content: center;
  }

  .crossword_completed_popup {
    margin: 0;
    width: 80%;
  }

  .crossword_completed_img {
    display: none;
  }
}

@media (max-width: 768px) {
  .title_wrap {
    margin-top: 50px;
  }

  .letter_input {
    width: 33px;
    height: 45px;
    font-size: 28px;
  }

  .wrapper {
    width: 100%;
  }
  .puzzle_wrapper {
    flex-wrap: wrap;
  }

  #puzzle_container {
    width: 350px;
    height: 350px;
    position: relative;
  }

  .question_number {
    font-size: 28px;
  }

  #puzzle {
    width: 345px;
    height: 345px;
  }

  .wagon_border {
    display: none;
    width: 235px;
    height: 40px;
    position: absolute;
    border: 3px solid red;
    border-radius: 35px;
    left: 15.5%;
    top: 4.8%;
    z-index: 9;
    pointer-events: none;
  }

  .trasa_border {
    display: none;
    width: 235px;
    height: 40px;
    position: absolute;
    border: 3px solid red;
    border-radius: 35px;
    left: 29.5%;
    top: 18.7%;
    z-index: 9;
    pointer-events: none;
  }

  .bilet_border {
    display: none;
    width: 235px;
    height: 40px;
    position: absolute;
    border: 3px solid red;
    border-radius: 35px;
    left: 1.2%;
    top: 60.6%;
    z-index: 9;
    pointer-events: none;
  }

  .most_border {
    display: none;
    width: 185px;
    height: 40px;
    position: absolute;
    border: 3px solid red;
    border-radius: 35px;
    left: 1.2%;
    top: 88%;
    z-index: 9;
    pointer-events: none;
  }

  .stop_border {
    display: none;
    width: 40px;
    height: 185px;
    position: absolute;
    border: 3px solid red;
    border-radius: 35px;
    left: 57.5%;
    top: 46.5%;
    z-index: 9;
    pointer-events: none;
  }

  .tory_border {
    display: none;
    width: 250px;
    height: 40px;
    position: absolute;
    border: 3px solid red;
    border-radius: 35px;
    transform: rotate(135deg);
    left: 34.8%;
    top: 67%;
    z-index: 9;
    pointer-events: none;
  }

  .rogatka_border {
    display: none;
    width: 455px;
    height: 40px;
    position: absolute;
    border: 3px solid red;
    border-radius: 35px;
    left: -15.5%;
    top: 46.5%;
    transform: rotate(45deg);
    z-index: 9;
    pointer-events: none;
  }

  .crossword_completed_popup {
    margin: 0;
    width: 80%;
    margin-top: 50px;
  }

  .crossword_completed_popup > span {
    font-size: 32px;
  }

  .crossword_completed_img {
    display: none;
  }

  .button_next > a {
    font-size: 24px;
  }
}
