html {
  margin-top: 0 !important;
}

* {
  margin: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
}
.rep_nav {
  width: 320px;
  min-height: 100vh;
  background-color: #202020;
  color: white;
}
.nav_logo {
  height: 80px;
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hamburger {
  display: none;
  margin-right: 10px;
  cursor: pointer;
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: #ffca30;
}
.search__overflow {
  position: fixed;
  right: -100%;
  top: -100%;
  background-color: #000000be;
  height: 100%;
  width: 100%;
  z-index: 99;
  transition: all .3s ease-in-out;
}
.search__overflow.show {
  top: 0;
  right: 0;
}
.close__search {
margin: 20px 20px 20px auto;
width: fit-content;
color: #ffffff;
cursor: pointer;
font-size: 18px;
padding: 20px;
font-weight: 500;

}
.close__search:hover {
  background-color: #616161be;
}
.is-form-style {
  width: 760px;
  margin: auto auto 0 auto;
  z-index: 999;
}
.is-ajax-search-post, .is-ajax-search-post-details {
  padding: 8px 8px 0px 8px !important;
  border-bottom: 1px solid #202020 !important;
}
.is-ajax-search-details a, .is-ajax-search-result a {
  color: #202020 !important;
}
.is-ajax-search-details .is-ajax-search-items>div, .is-ajax-search-post {
  background: #ffca30 !important;
}
.main_content_wrapper {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  /* flex-direction: row-reverse; */
}
.module_content {
  padding: 50px 75px;
  width: calc(100% - 320px);
  margin: 0 auto;
  position: relative;
  order: 3;
}
.choose_mod {
  margin-top: 20px;
  font-size: 14px;
  color: #a1a1a1;
}
.module_desc {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  justify-content: space-between;
  margin: 10px 0 30px;
}
.module_list {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}
.module_list form {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}
.list__number {
  width: 31px;
  height: 31px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  margin-right: 8px;
  cursor: pointer;
}
.current__number {
  background-color: #ffca30;
  border: 1px solid #ffca30;
  color: #fff !important;
}
.list__number {
  color: #b8b8b8;
  text-decoration: none;
}
.list__number:last-of-type {
  margin-right: 0;
}
.list__number:hover {
  background-color: #ffca30;
  color: #fff !important;
  border: 1px solid #ffca30;
}
.preview {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  color: #a1a1a1;
}
.preview a {
  text-decoration: none;
}
.previev__link {
  margin-left: 10px;
  border: 1px solid #c3c3c3;
  border-radius: 6px;
  width: 169px;
  height: 29px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
}
.previev__link span {
  color: #007ddc;
  margin: 0 5px;
}
.previev__link img {
  margin-bottom: 4px;
}
.next_number {
  height: 100px;
  width: 50px;
  background-color: white;
  border: 1px solid #c3c3c3;
  border-radius: 6px;
  cursor: pointer;
  color: transparent;
  background-image: url(../images/chevron_right.svg);
  background-repeat: no-repeat;
  background-position: center;
}
.next_mod {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  cursor: pointer;
  right: 12.5px;
}
.prev_number {
  height: 100px;
  width: 50px;
  background-color: white;
  border: 1px solid #c3c3c3;
  border-radius: 6px;
  background-image: url(../images/chevron_left.svg);
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  color: transparent;
}
.prev_number:hover {
  filter: contrast(1.35);
}
.next_number:hover {
  filter: contrast(1.35);
}

.prev_mod {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  margin-left: -62.5px;
}

.zalogowany .module_content {
  width: calc(100% - 700px);
}

.zalogowany .next_mod {
  right: 395px;
}

.module_content img {
  max-width: 100% !important;
  height: 100% !important;
  width: auto !important;
}

.preview img {
  height: auto !important;
  width: auto !important;
  max-width: auto !important;
}

.nav__wrapper {
  display: flex;
  flex-direction: row-reverse;
}
.search__icon {
  margin-right: 15px;
  cursor: pointer;
  transition: all .1s ease-in-out;

}
.search__icon:hover {
  transform: scale(1.1);
  transition: all .1s ease-in-out;
}
@media only screen and (max-width: 1439px) {
  .module_content {
    padding: 50px 25px;
  }
  .prev_mod {
    display: none;
  }
  .next_mod {
    display: none;
  }
}
@media only screen and (max-width: 1023px) {
  .main_content_wrapper {
    flex-direction: column;
  }
  .module_content {
    width: 100%;
    margin-top: 80px;
  }
  .rep_nav {
    width: 100%;
    min-height: fit-content;
    position: fixed;
    top: 0;
    z-index: 99;
  }
  .rep_nav.active {
    overflow-wrap: break-word;
    overflow-y: scroll;
    max-height: 100%;
  }
  .rep_nav.active::-webkit-scrollbar {
    width: 0px;
}
  .hamburger {
    display: block;
  }
  .nav-list {
    visibility: hidden;
    display: none;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
    padding-bottom: 10px;
    

  }
  .nav-list.active {
    visibility: visible;
    display: block;
    opacity: 1;
    height: calc(100vh - 80px);
    overflow-y: auto;
  }
}

@media screen and (max-width: 910px){
div.is-ajax-search-result {
    max-width: 100% !important;
}

}

@media only screen and (max-width: 767px) {
  .module_desc {
    flex-direction: column;
  }
  .preview {
    margin-top: 20px;
  }

  .is-form-style {
    width: 510px;
  }
  
}

@media only screen and (max-width: 650px) {
  .module_content {
    padding: 50px 10px;
  }
  .module_content h1 {
    font-size: 20px;
    text-align: center;
  }
  .preview {
    align-items: center;
    font-size: 14px;
    justify-content: center;
  }
  .module_desc {
    justify-content: center;
  }
  .module_list {
    justify-content: center;
  }

  .previev__link {
    width: 140px;
  }
  .choose_mod {
    text-align: center;
  }
}
@media only screen and (max-width: 511px){
  .is-form-style {
    width: 100%;
  }
  .is-ajax-search-result {
    width: calc(100% - 17px) !important;
  }
}
