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

body {
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow-x: hidden;
}

#content {
  position: relative;
  background-color: #ccf3f0;
  border-radius: 35px;
  margin: auto;
  width: 75%;
  min-height: 700px;
  box-shadow: 0px 7px 15px #00000029, 0 0 10px lightgray inset;
  border: 11px solid #ffffff;
  opacity: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.wrapper {
  display: flex;
  flex-direction: row-reverse;
}

#cross {
  position: absolute;
  top: 25px;
  right: 25px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  fill: #042b60 !important;
  color: #042b60 !important;
}

#crossworld {
  margin: auto;
  opacity: 1;
  border-spacing: 0px;
  border: none;
}

.letter {
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  width: 35px;
  background: #ffffff 0% 0% no-repeat padding-box;
  border: 5px solid #042b60;
  opacity: 1;
  transition: 0.3s;
  aspect-ratio: 1/1;

  font-family: Paytone One;
  src: url('../assets/fonts/PaytoneOne-Regular.ttf');
  color: #042b60;
}

.letter:focus {
  border-color: lightgreen !important;
}

#tbody {
  border-spacing: 0px;
}

#hint_container {
  display: flex;
  flex-direction: column;
}

#buttons_container {
  margin: 15px auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.active {
  border-color: lightgreen !important;
}

.resultColumn {
  border-color: red;
}

.resultColumn.correct {
  border-color: #00c0b5;
}

.question_number {
  position: absolute;
  width: 30px;
  height: 27px;
  color: #dc0451;
  left: -70%;
  top: 15%;

  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;

  font-family: Paytone One;
  src: url('../assets/fonts/PaytoneOne-Regular.ttf');
  font-size: 24px;
  line-height: 30px;
  padding-bottom: 3px;
}

.question_number.correct {
  color: #00c0b5;
  border: 1px solid #00c0b5;
  border-radius: 50%;
}

td {
  position: relative;
}

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

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

#hint {
  /* position: absolute;
  top: 393px;
  left: 1150px; */
  width: 416px;
  margin: 15px auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 11px solid var(--unnamed-color-042b60);
  background: transparent url('img/Lokomotywa.png') 0% 0% no-repeat padding-box;
  background-color: white;
  border: 11px solid #042b60;
  border-radius: 40px;
  opacity: 1;
}

#id01 {
  /* position: absolute;
  top: 274px;
  left: 1300px; */
  /* width: 116px;
  height: 45px; */
  text-align: center;
  font: normal normal normal 32px/45px Paytone One;
  letter-spacing: 0px;
  color: #042b60;
  margin: 5px;
  opacity: 1;
}

#id02 {
  /* position: absolute;
  top: 319px;
  left: 1156px;
  width: 404px;
  height: 45px; */
  text-align: center;
  font: normal normal normal 32px/45px Paytone One;
  margin: 5px;
  letter-spacing: 0px;
  color: #042b60;
  opacity: 1;
}

button {
  padding: 10px 25px;
  font-family: Paytone One;
  font-size: 24px;
  text-align: center;
  letter-spacing: 0px;
  color: #ffffff;
  opacity: 1;
  background: #042b60 0% 0% no-repeat padding-box;
  box-shadow: 0px 3px 14px #00000029;
  border: 11px solid #ffffff;
  border-radius: 27px;
  opacity: 1;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(105%);
}

.header {
  font-family: Paytone One;
  font-weight: 400;
  color: #042b60;
  text-align: center;
}

.crossword_completed_overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 20px;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
}

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

.crossword_completed_popup {
  position: relative;
  width: 50%;
  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;
}

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

.button_next {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%) !important;
  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;
}

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

@media only screen and (max-width: 1400px) {
  #content {
    width: 90%;
    min-height: 100%;
  }

  .wrapper {
    flex-direction: column;
    width: 100%;
  }

  #hint {
    width: 300px;
  }
}

@media only screen and (max-width: 800px) {
  .header {
    margin-top: 50px;
  }

  .letter {
    width: 20px;
    border-width: 2px;
  }

  .question_number {
    left: -90%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
  }

  .question_number.correct {
    border: none;
  }

  button {
    border-width: 5px;
    font-size: 16px;
  }

  .crossword_completed_popup {
    position: relative;
    width: 90%;
    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;
  }

  .crossword_completed_popup > span {
    font-size: 1.5rem;
  }
}
