@font-face {
  font-family: 'Aciertext Solid';
  src: url('aciertext-solid.otf') format('opentype');
}

body {
  font-family: 'Quattrocento Sans', serif !important;
  color: #F4E6C6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Aciertext Solid', serif !important;
  font-weight: bold;
}

.nav-link {
  font-family: 'Aciertext Solid', serif !important;
}

.price {
  font-family: 'Helvetica Neue', serif !important;
  font-size: 24px;
}

.text-theme {
  color: rgba(244, 230, 198, 1);
}

.font-theme {
  font-family: 'Aciertext Solid', serif !important;
}

.book {
  opacity: 1;
  transition: transform 400ms ease;
}


.book {
  opacity: 1;
  transition: transform 400ms ease, opacity 400ms ease;
}

.books-container:hover .book {
  opacity: 0.8;
}

.books-container:hover .book:hover {
  opacity: 1;
}

.badge-cart {
  background-color: #666;
  position: relative;
  top: 5px;
  left: 0px;
}

@media (max-width: 576px) {
  .badge-cart {
    top: -18px;
    left: 10px;
  }
}

.opacity-0 {
  opacity: 0;
}

div#cartTotal {
  margin-top: 20px;
  border-top: 2px solid #ddd;
  padding-top: 15px;
  text-align: right;
  font-weight: bold;
}

.cart-item {
  margin-bottom: 20px;
}

.itemRow {
  padding-top: 20px;
  padding-bottom: 10px;
}

.cart-item:not(:first-child) .itemRow {
  border-top: 1px solid #DEE2E6;
}

.cart-name {
  font-size: 125%;
  display: block;
  margin-top: 10px;
}



footer {
  font-size: 80%;
  opacity: 0.65;
}

a {
  transition: 0.3s ease;
}

.nav-link:not(.text-danger),
a.nav-link:not(.text-danger),
a:active:not(.text-danger),
a:focus:not(.text-danger),
a:not(.text-danger),
footer a:not(.text-danger),
.custom-toggler .fas:not(.text-danger) {
  color: rgba(244, 230, 198, 0.75) !important;
  text-decoration: none;
}

.custom-togger {
  background: transparent !important;
  border: none !important;
}

a.nav-link:hover {
  color: rgba(244, 230, 198, 1);
  text-decoration: underline;
}

a:hover:not(.text-danger) {
  color: rgba(244, 230, 198, 1) !important;
}

.modal a {
  opacity: 0.75 !important;
}

.modal a:hover {
  opacity: 1 !important;
}

.centered-input {
  text-align: center;
}

.helloBar {
  font-family: 'Libre Baskerville', serif !important;
  background-color: #37473E;
  font-size: 70%;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (max-width: 576px) {
  .custom-btn {
    width: 100%;
  }
}

@media (min-width: 577px) {
  .custom-btn {
    width: auto;
  }
}



/* book animation */
.fullBook {
  width: 320px;
  height: 320px;
  position: relative;
  margin: 0 auto;
  z-index: 1;
}

.cover {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 1s;
}

.cover-face,
.page1 {
  position: absolute;
  width: 100%;
  height: 100%;
}

.page2 {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  z-index: 1;
}

.cover img,
.page1 img,
.page2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 767px) {

  .page1 img,
  .page2 img {
    display: none;
  }
}

/* Add a media query for larger screens */
@media screen and (min-width: 768px) {
  .fullBook {
    perspective: 1000px;
    transform: translateX(0);
    transition: transform 1s;
  }

  .fullBook:hover {
    transform: translateX(150px);
    z-index: 2;
  }

  .cover {
    transform-style: preserve-3d;
    transform-origin: left;
    z-index: 2;
  }

  .cover-face {
    backface-visibility: hidden;
    transform: rotateY(0deg);
  }

  .page1,
  .page2 {
    border: 1px solid #222;
  }

  .page1 {
    backface-visibility: hidden;
    transform: rotateY(180deg);
    box-shadow: -20px 0 20px rgba(0, 0, 0, 1);
  }

  .page2 {
    box-shadow: 20px 0 20px rgba(0, 0, 0, 1);
  }

  .fullBook:hover .cover {
    transform: rotateY(-180deg);
  }

  .page1::after,
  .page1::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    pointer-events: none;
    z-index: 20;
    transform-origin: 0% 50%;
    transition: transform .6s ease;
  }

  .page1::after {
    box-shadow: inset 20px 0px 21px -10px rgba(255, 255, 255, .15), inset 13px 0px 21px -10px #222;
  }

  .page1::before {
    box-shadow: inset -20px 0px 21px -10px rgba(255, 255, 255, .15), inset 13px 0px 21px -10px #222;
  }

}

@media (min-width: 576px) { /* Small devices (landscape phones, 576px and up) */
    .btn-max-width-sm {
        max-width: 175px;
    }
}

