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

html {
  height: 100%;
}

body {
  touch-action: unset;
  font-family: Paytone One;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

* {
  box-sizing: border-box;
}

#canvas {
  touch-action: none;
}

.title {
  color: #042b60;
  font-weight: 400;
  font-size: 32px;
  margin: 0;
  font-family: Paytone One, sans-serif;
  text-align: center;
}

.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;
}

.wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  min-height: 90%;
  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;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
}

/* width */
::-webkit-scrollbar {
  width: 20px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #00c0b5;
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

img {
  height: 100%;
  width: 100%;
  max-width: 100%;
  position: relative;
  margin: 10px;
  object-fit: cover;
}

img:hover {
  border: 4px solid;
  margin: 7px;
}

.slider_wrap {
  position: relative;
  display: flex;
  width: 90%;
}

.slider_images_wrap {
  display: flex;
  width: 100%;
  overflow: hidden;
  top: 0;
  left: 5%;
}

.slider_arrow {
  position: absolute;
  cursor: pointer;
}

.slider_arrow > i {
  font-size: 60px;
}

.slider_arrow_left {
  top: 50%;
  left: 0px;
  transform: translateY(-50%);
  z-index: 99;
}

.slider_arrow_right {
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  z-index: 99;
}

.images_wrap {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
}

.img_wrap {
  position: relative;
  height: 243px;
  width: 350px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px;
}

.img_wrap:nth-of-type(2n) {
  height: 350px;
  width: 243px;
}

.img_overlay {
  background: url('../assets/puzzle_cutout.svg') no-repeat;
  background-size: 100% 100%;
  height: 243px;
  width: 350px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}

.img_wrap:nth-of-type(2n) > .img_overlay {
  background: url('../assets/puzzle_cutout1.svg') no-repeat;
  height: 350px;
  width: 243px;
}

.img_overlay:hover {
  background: url('../assets/puzzle_cutout_selected.svg') no-repeat;
}

.img_wrap:nth-of-type(2n) > .img_overlay:hover {
  background: url('../assets/puzzle_cutout1_selected.svg') no-repeat;
}

.difficulty_buttons_wrap {
  /* min-height: 223px; */
  width: 75%;
  display: flex;
  justify-content: space-evenly;
  align-self: center;
  margin: 10px 0;
  flex-wrap: wrap;
}

.select_difficulty {
  position: relative;
  height: 223px;
  width: 223px;
  border-radius: 50%;
  box-shadow: 0px 3px 6px #00000029;
  border: 11px solid #ffffff;
  color: #fff;
  font-size: 27px;
  font-family: Paytone One, sans-serif;
  margin: 10px;
}

.difficulty_buttons_text {
  position: relative;
  z-index: 1;
}

.difficulty_buttons_details {
  position: relative;
  font-size: 22px;
  z-index: 1;
}

.easy {
  background: #00c0b5;
}

.medium {
  background: #c9dd03;
}

.hard {
  background: #dc0451;
}

.selected_overlay {
  display: none;
  position: absolute;
  height: 100%;
  width: 100%;
  background: #000;
  opacity: 0.3;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 0;
}

.button_next {
  box-shadow: 0px 3px 6px #00000029;
  border: 11px solid #ffffff;
  color: #fff;
  font-size: 24px;
  font-family: Paytone One;
  background: #042b60;
  border-radius: 27px;
  padding: 10px 40px;
  align-self: center;
  margin: 10px;
}

.puzzle_finished_overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  margin: 0;
  backdrop-filter: blur(10px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: flex-end;
  background: url('../assets/Rogatek_finger.png') no-repeat;
  background-size: 500px;
  background-position: 20%;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.9);
}

.puzzle_finished_popup_wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 35%;
  margin-right: 10%;
}

@media screen and (max-width: 992px) {
  .puzzle_finished_popup_wrap {
    width: 100%;
    margin-right: 0%;
  }

  .puzzle_finished_overlay {
    align-items: flex-end;
  }
}

.puzzle_finished_popup {
  background: #00c0b5;
  border-radius: 50px;
  border: 11px solid #fff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.puzzle_finished_popup_text {
  color: #fff;
  font: 36px Paytone One;
  padding: 35px 20px;
}

@media (max-width: 800px) {
  .wrapper {
    width: 100%;
    padding: 0;
  }

  .title {
    margin: 50px 10px;
  }

  .img_wrap {
    margin: 0;
    margin-top: 10px;
    height: 219px;
    width: 316px;
  }

  .img_wrap:nth-of-type(2n) {
    margin: 0;
    margin-top: 10px;
    height: 316px;
    width: 219px;
  }

  .img_overlay {
    height: 220px;
    width: 317px;
  }

  .img_wrap:nth-of-type(2n) > .img_overlay {
    height: 317px;
    width: 220px;
  }
}

@media (max-width: 400px) {
  .img_wrap {
    height: 149px;
    width: 215px;
  }

  .img_wrap:nth-of-type(2n) {
    height: 215px;
    width: 149px;
  }

  .img_overlay {
    height: 150px;
    width: 216px;
  }

  .img_wrap:nth-of-type(2n) > .img_overlay {
    height: 216px;
    width: 150px;
  }
}

.image-popup {
  position: relative;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 99;
  border-radius: 20px;
}

.image-popup:before {
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
}

@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .image-popup:before {
    background-color: rgba(255, 255, 255, 0.5);
  }
}

.image-popup > img {
  position: absolute;
  right: 50px;
  bottom: -20%;
  height: 800px;
  margin-top: 50px;
  width: auto !important;
  height: auto !important;
}
.image-popup:hover > img {
  border: 0px;
}
.image-popup1 {
  display: none;
}

.image-popup2 {
  display: none;
}
