body {
  margin-top: 0;
}

.swiper .swiper-slide-inner {
  position: absolute;
  display: flex;
  gap: 10px;
  z-index: 1;

  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  flex-direction: column;

  width: 100%;
  height: 100%;

  padding: 120px calc(50px + 80px);
  padding-bottom: 120px;

  align-items: flex-start;

  color: white;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.8)
  );
}

.swiper .swiper-pagination {
  bottom: 20px;
}

.swiper .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: white;
}

.header-slide-button {
  /* border: 0.200em solid #000; */
  margin-top: auto;
  margin-right: auto;
  border-radius: 0.9375em;
  padding: 20px 45px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border: 4px solid rgba(255, 255, 255, 1);
  transition: all 600ms cubic-bezier(0.23, 1, 0.32, 1);
}
.header-slide-button:hover {
  color: black;
  background-color: white;
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
  transform: translateY(-2px);
}
.header-slide-title {
  font-size: 42px;
  color: rgba(255, 255, 255, 1);
}
.header-slide-subtitle {
  font-size: 32px;
  color: rgba(230, 230, 230, 0.8);
}

.books-section {
  position: relative;
  display: flex;
  gap: 20px;

  align-items: stretch;
  justify-content: flex-start;

  flex-direction: row;
  flex-wrap: wrap;

  width: 100%;

  padding: 40px 0;
}

.books-card {
  position: relative;
  display: flex;

  flex-direction: column;

  width: calc((100% - (20px * 3)) / 4);
  height: 380px;

  padding: 10px;

  border-radius: 8px;

  background: white;
  box-shadow: 0px 10px 12px rgba(0, 0, 0, 0.08),
    -4px -4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s all ease-out;
}
.books-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
}
.books-card .books-card-image {
  height: 100%;
  width: 100%;

  border-radius: 0.5rem;

  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;

  transition: 0.3s all ease-out;
}
.books-card:hover .books-card-image {
  transform: translateY(-25%);
  box-shadow: rgba(226, 196, 63, 0.25) 0px 13px 47px -5px,
    rgba(180, 71, 71, 0.3) 0px 8px 16px -8px;
}

.books-card .books-card-info {
  padding-top: 10px;
  line-height: 75%;
}

.books-card .books-card-title {
  line-height: 1.5;

  font-weight: 900;
  font-size: 1.3em;
}

.books-card .books-card-author {
  margin-bottom: 10px;

  font-size: 0.9em;
}
.books-card .books-card-publication-date {
  margin-bottom: 10px;

  font-size: 0.9em;
}

.books-card .books-card-footer {
  display: flex;

  width: 100%;

  padding-top: 10px;

  border-top: 1px solid #ddd;
}

.books-search-icon {
  position: absolute;
  transition: 0.3s ease-out;
  align-content: flex-end;
  margin-top: 12px;
  margin-left: 12px;
  width: auto;
  background: white;
  border-radius: 500%;
  padding: 2;
  cursor: pointer;
  border: none;
}

.books-search-icon:hover {
  cursor: pointer;
  background: #ffcaa6;
}

.books-search-container {
  display: flex;
  margin-top: 20px;
  width: auto;
  align-items: flex-end;
  align-content: flex-end;
  flex-direction: column;
  margin-left: auto;
  min-width: 25%;
  max-width: 80%;
}

.books-search-box,
.books-search-box:hover,
.books-search-box:focus,
.books-search-box:active {
  margin-left: auto;
  padding: 10px 10px 10px 40px;
  outline: none;
  text-align: start;
  border: none !important;
  border-radius: 24px;
  border-color: transparent !important;
  font-size: 18px;
  min-width: 100%;
  max-width: 100%;
  color: black;
  background: #0c3ff563;
}

.books-card .books-card-button {
  display: flex;
  margin-left: 2.5px;
  padding: 0.3em;
  border: 1px solid #252525;
  border-radius: 50px;
  transition: 0.3s ease-out;
  cursor: pointer;
}

.books-card .books-card-button:hover {
  border: 1px solid #ffcaa6;
  background: #ffcaa6;
}

.books-card .books-card-button svg {
  width: 20px;
  height: 20px;
  align-items: start;
  justify-content: flex-start;
  text-align: start;
}

@media (max-width: 750px) {
  .swiper .swiper-slide-inner {
    padding: 160px 80px;
  }

  .header-slide-title {
    font-size: 32px;
  }
  .header-slide-subtitle {
    font-size: 22px;
  }

  .header-slide-button {
    padding: 15px 25px;
    font-size: 12px;
    border: 3px solid rgba(255, 255, 255, 1);
  }
}

/* Responsive Books. */
@media (max-width: 850px) {
  .books-section .books-card {
    width: calc((100% - (20px * 2)) / 3);
  }
}

@media (max-width: 700px) {
  .books-section .books-card {
    width: calc((100% - (20px * 1)) / 2);
  }
}

@media (max-width: 500px) {
  .books-section .books-card {
    width: 100%;
  }
}
.section#books {
  background-image: url(/assets/imgs/general/background.png);
  background-color: white;
  background-position: center;
}

.dialog-ovelay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  display: flex;
}

.dialog-ovelay .dialog {
  flex-direction: column;
  display: flex;
  width: 400px;
  margin: auto auto auto auto;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.dialog-ovelay .dialog header {
  display: flex;
  padding: 10px 8px;
  background-color: #f6f7f9;
  border-bottom: 1px solid #e5e5e5;
}

.dialog-ovelay .dialog header h3 {
  font-size: 20px;
  margin: auto;
  color: #555;
  display: inline-block;
}
.dialog-ovelay .dialog header .fa-close {
  color: red;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0 2px;
  border-radius: 1px;
}
.dialog-ovelay .dialog header .fa-close:hover {
  color: #b9b9b9;
}
.dialog-ovelay .dialog header .fa-close:active {
  color: #a2a2a2;
}
.dialog-ovelay .dialog .dialog-msg {
  padding: 12px 10px;
}
.dialog-ovelay .dialog .dialog-msg p {
  margin: 0;
  font-size: 18px;
  color: #333;
}
.dialog-ovelay .dialog footer {
  border-top: 1px solid #e5e5e5;
  padding: 8px 10px;
}
.dialog-ovelay .dialog footer .controls {
  direction: rtl;
}

.dialog-button {
  margin-left: 2.5px;
  padding: 0.3em;
  border: 1px solid #252525;
  border-radius: 13px;
  transition: 0.3s ease-out;
  cursor: pointer;
  background-color: white;
  font-size: 16px;
}

.dialog-button:hover {
  border: 1px solid #ffcaa6;
  background: #ffcaa6;
}
