.content {
  background-color: #ffff !important;
  box-shadow: var(--mainshadow);
  border-radius: var(--border-sm) !important;
}

.library-search input {
  padding: 1rem 2rem;
  border-radius: var(--border-li);
  border: 1px solid var(--bordergray);
}

.library-search input:focus {
  outline: none;
}

.library-search button {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: unset;
}

.library-search {
  width: 50rem;
  /* margin-right: 5rem; */
}

.search-box {
  z-index: 111111111111111111;
}

.library-search-header:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  background-image: url(../img/library-books-wood.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  width: 100%;
  border-radius: var(--border-sm) !important;

}

.library-advanced-search-box {
  bottom: 10rem;
  background-color: #fff;
  transition: 0.5s;
  border-radius: var(--border-sm);
  z-index: 111;

}


/*CHECK BOX START*/


.library-advanced-search-box .library-checkbox {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
}

.library-advanced-search-box .library-ch {
  position: relative;
  height: 4rem;

}

.library-advanced-search-box .library-ch button {
  width: 100%;
  height: 100%;
}

.library-advanced-search-box .library-ch input {
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.library-advanced-search-box .library-ch input:checked ~ button {
  background: var(--blue) !important;
  color: #fff !important;
}

.library-advanced-search-box .library-ch input:checked ~ :before {
  content: "\f00c";
  font-family: FA;
}


/*CHECK BOX END*/


.search-header .search-details {
  width: 50%;
  top: 60%;
}
#advanced-search{
  z-index: 111;
}

.cog {
  background-color: white;
  padding: 1.2rem;
  border-radius: 50%;
  color: var(--blue);
  border: 1px solid var(--bordergray);
}

.library-search-middle {
  display: grid;
}


.library-search-middle .item {
  padding: 1rem;
  /*box-shadow: var(--mainshadow);*/
  box-shadow: 0px 0px 11px -8px black !important;
  border-radius: var(--border-sm);

}

.library-search-middle .item .img-container {
  aspect-ratio: 1 / 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--border-sm);

}

.library-search-middle .item .img-container img {
  min-width: 100%;
  height: fit-content;
}

@media (min-width: 0px) {
  .library-search-middle {
    display: grid;
    grid-template-columns: repeat(1, minmax(150px, 1fr));
    gap: 5rem;
  }

  .library-search-header {
    aspect-ratio: 16 / 9;

  }

  #search-box {
    width: 100% !important;
  }

  .library-advanced-search-box {
    position: relative;
    bottom: 0;
  }

  .library-search-header form{
    width: 100%;
  }
}

@media (min-width: 380px) {
  .library-search-middle {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 2rem;
  }
}

@media (min-width: 576px) {
  .library-search-middle {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 2rem;
  }
  .library-search-header form{
    width: auto;
  }
}

@media (min-width: 768px) {
  .library-search-header .box-scale-in {
    bottom: -2rem;
    transition-delay: .25s;
  }

  .library-search-header .box-scale-out {
    visibility: hidden;
    opacity: 0;
  }

  .up {
    transform: translateY(-15rem);
    transition: .7s;
  }

  .down {
    transform: translateY(0);
    transition: .7s;
  }

  .library-advanced-search-box {
    position: absolute;
    width: 55rem;
  }

  .library-advanced-search-box .library-checkbox {
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }


}

@media (min-width: 992px) {
  .library-search-middle {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 3rem;
  }

  .library-search-header .box-scale-in {
    bottom: 3rem;
  }
}

@media (min-width: 1200px) {
  .library-search-middle {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 3rem;
  }
  .library-search-header {
    aspect-ratio: 22 / 9;

  }
  .library-search-header .box-scale-in {
    bottom: 1rem;
  }
}

@media (min-width: 1400px) {
  .library-search-middle {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 3rem;
  }
  .library-search-header .box-scale-in {
    bottom: 8rem;
  }
}


@media (min-width: 1600px) {
  .library-advanced-search .box-scale-in {
    bottom: 7rem;
  }
}

@media (max-width: 992px) {}
