@import url("https://fonts.googleapis.com/css2?family=ABeeZee&family=Inria+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Montserrat:wght@300;400;500;600;700;900&display=swap");
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inria Sans", sans-serif;
  color: #000000;
}

/* ----------------------------NAVBAR CSS---------------- */
.navbar {
  background-color: #ececec;
  height: 22vh;
  width: 100vw;
  padding: 1vh 2vw 0 1vw;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  list-style: none;
}

.topbar {
  height: 7vh;
  display: flex;
}

/*------account button styling-----*/

.navbar .accbtn {
  height: 6.5vh;
  width: 8vw;
  margin-left: 2vw;
  margin-right: 1vw;
}

.accbtn a {
  height: 5.5vh;
  width: 8vw;
}

li a .account-button {
  height: 6vh;
  width: 8vw;
  background: #0047ff;
  color: #ffffff;
  border: none;
  border-radius: 3vh;
  font-size: 1.5vw;
  cursor: pointer;
}

li a .account-button:hover {
  background: #464bd1;
}

.topbar .text h3 {
  font-size: 22px;
  padding-top: 6px;
  color: #851f5b;
}

.buttombar {
  display: flex;
}

/* Need Help */
.help {
  width: 10vw;
}
.help .need-help {
  height: 5vh;
  width: 7vw;
  margin-top: 0.5vh;
  margin-left: 1vw;
  background-color: #a7a732;
  font-size: 1.2vw;
  cursor: pointer;
  border-radius: 1vw;
  font-weight: bold;
  border: none;
}

/*---logo styling--*/

.navbar .logo {
  height: 10vw;
  width: 10vw;
}

.navbar .logo .main-logo {
  height: 7vw;
  width: 9vw;
  border-radius: 10%;
}

.main {
  height: 14vh;
  width: 75vw;
  display: flex;
  flex-direction: column;
}
/*------search box styling-----*/

.navbar .search-box {
  height: 5.5vh;
  width: 45vw;
  display: flex;
  background: #ffffff;
  border-radius: 0.5vh;
  margin-left: 17vw;
}

.navbar .search-box .type-book-name {
  height: 5.8vh;
  width: 43vw;
  border: none;
  outline: none;
  padding: 1vh 1vw;
  color: #000;
  font-size: 1.5vw;
}

.navbar .search-box a {
  height: 5.5vh;
  width: 3vw;
  border-radius: 0 0.5vh 0.5vh 0;
  cursor: pointer;
}

.navbar .search-box a:hover {
  background: #e6e6e6;
}

.navbar .search-box .fa-magnifying-glass {
  height: 3vh;
  color: #222222;
  margin-top: 1.5vh;
  margin-left: 1vw;
  margin-right: 1vw;
  cursor: pointer;
}

#search-for-books {
  cursor: pointer;
  border: 1px solid #000;
  background-color: #fff;
}
/*------items styling-----*/

.navbar .items {
  height: 5.5vh;
  display: flex;
  margin-left: 1vw;
}

.navbar .item-pages {
  width: 75vw;
  padding-top: 3vh;
  padding-left: 2vw;
  display: flex;
  justify-content: space-between;
}

.navbar .items a {
  text-decoration: none;
  font-size: 2vw;
  transition: 0.5s;
}
.navbar .items li:hover {
  color: rgb(174, 174, 174);
}

.navbar .item-pages li {
  padding-left: 1vw;
  padding-right: 1vw;
}
.navbar .item-pages li.active {
  background: #ffffff;
  color: #6c6767;
  border-radius: 25% 25% 0 0;
}
/*Cart icon styling*/

.navbar .cart {
  margin-left: 7vw;
  margin-top: -1.5vh;
}

.cart-icon {
  display: flex;
  height: 4.5vh;
}

.cart-icon a {
  height: 3vh;
}

.cart-icon .cart-items-counter {
  height: 3vh;
  width: 1.5vw;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: red;
  color: white;
  margin-top: -0.8vh;
  margin-left: -0.8vw;
}

li .fa-solid {
  cursor: pointer;
  margin-top: 1vh;
}
/*------Hamburger-----*/

.hamburger {
  display: none;
}
.container {
  min-height: 65vh;
}

/* NAVBAR CSS END--------------------------------- */
footer {
  position: sticky;
  bottom: 0vh;
  width: 100%;
}
.footer-content {
  width: 100%;
  background-color: #ececec;
  margin-top: 1vh;
  padding: 2vh 3vw 1vh 3vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
}

/* TOP */
.footer-top {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
.footer-top .why-choose-us {
  margin-top: 5vh;
}
.footer-top .why-choose-us a {
  text-decoration: none;
      color:#851f5b;
  font-size: 2.5vw;
}
.footer-top .footer-logo img {
  height: 10vw;
  width: 20vw;
}

.footer-top .contact {
  margin-top: 5vh;
  display: flex;
}

  .footer-top .contact h2 {
      color:#851f5b;
      margin-left:1vw;
  }
  
.footer-top .contact img {
  height: 3vw;
  width: 3vw;
}

/* MIDDLE */
.footer-share {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 15vh;
  width: 70vw;
  background-color: #b5b5b5;
  margin-top: 4vh;
  margin-left: 10vw;
  border-radius: 2vw;
}
.footer-share h2 {
  color: #fff;
  font-size: 3vw;
}
.footer-share .icons {
  padding-left: 4vw;
}
.icons a {
  text-decoration: none;
  margin-left: 2vw;
}
.social-icon {
  height: 8vh;
  width: 4vw;
  margin-left: 1vw;
}

/* BOTTOM */
.footer-pages {
  margin-top: 8vh;
  padding-bottom: 3vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.footer-pages a {
  text-decoration: none;
  color:#851f5b;
  font-size: 2vw;
}

/* --------------FOOTER CSS END---------------------------- */

.loading {
  position: fixed;
  z-index: 999;
  height: 5em;
  width: 6em;
  overflow: show;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

* {
  font-family: "Poppins";
}

a:hover {
  cursor: pointer;
}

#pagination {
  display: flex;
  margin-top: 7vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

#pagination ul li {
  font-size: 25px;
  display: flex;
}

#pagination ul li a {
  background-color: #619b98;
  color: #fff;
  padding: 5px 10px;
  border: 1px solid;
  border-right: 0;
  text-decoration: none;
}

li.previous,
li.next {
  animation: fadein 0.5s;
}

#pagination li.active a {
  background-color: #178a7d;
}

#pagination li:first-child a {
  border-radius: 5px 0 0 5px;
}

#pagination li:last-child a {
  border-radius: 0 5px 5px 0;
  border-right: 1px solid #3d315b;
}

/* When I feel motivated to get this working */

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* PAGINATION CSS END_--------------------------------------- */

/* ----------------------MAIN CSS------------------------------- */
.container {
  padding: 10vh 3vw 1vh 3vw;
  margin-top: 14vh;
}
/* Discount badge */
.badge {
  background-color: #ae895d;
  width: 60px;
  height: 60px;
  border-radius: 100%;
  text-align: center;
  position: absolute;
  transform: rotate(-30deg);
  zoom: 0.7;
  /* top: -10px; */
}
.badge h3,
.badge h4 {
  color: white;
  position: absolute;
  width: 100%;
  transform: translateY(-50%);
}
.badge h3 {
  top: 18px;
  line-height: 60px;
  font-size: 22px;
}
.badge h4 {
  top: 45px;
  line-height: 30px;
  font-size: 24px;
}

/* Ribbon */
.ribbon {
  position: absolute;
  display: block;
  /* top: -4px; */
  right: -2px;
  /* left: 60px; */
  width: 80px;
  height: 80px;
  overflow: hidden;
}

.ribbon .new,
.trending, .combo {
  position: relative;
  display: block;
  left: -19px;
  top: 20px;
  width: 140px;
  padding: 5px 0;
  font-size: 14px;
  text-align: center;
  color: #fff;
  background-color: #d1757b;
  -webkit-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
  -ms-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
  -webkit-transform: rotate(45deg) translate3d(0, 0, 0);
  -moz-transform: rotate(45deg) translate3d(0, 0, 0);
  -ms-transform: rotate(45deg) translate3d(0, 0, 0);
  transform: rotate(45deg) translate3d(0, 0, 0);
}
.ribbon .trending {
  background-color: #1862be;
}

.ribbon .combo {
  background-color: #8791b1;
}


/*     
    .ribbon .label:before, .ribbon .label:after {
    content: '';
    position: absolute;
    bottom: -4px;
    border-top: 4px solid #a71c26;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    }
    
    .ribbon .label:before {
    left: 0;
    }
    
    .ribbon .label:after {
    right: 0;
    } */

/*-------No books found--------- */
.not-found {
  margin-left: 30vw;
  margin-top: 20vh;
  padding-bottom: 20vh;
  font-size: 50px;
  color: #a71c26;
}

.no-result {
  margin-top: 15vh;
  padding-left: 30vw;
  font-size: 40px;
  color: #a71c26;
}

.out-of-stock {
  color: #a71c26;
  font-size: 1.3rem;
  margin-right: 20px;
}

/*------------------Responsive For width less than 700px------------------------*/

@media only screen and (max-width: 700px) {
  .navbar {
    height: 80px;
    width: 100%;
    overflow: visible;
    position: fixed;
    top: 0;
  }
  /*---Topbar------*/
  .topbar {
    height: 4vh;
  }
  /*Account Button*/
  .navbar .accbtn {
    height: 25px;
    width: 100px;
  }

  .accbtn a {
    height: 20px;
    width: 45px;
  }
  li a .account-button {
    height: 23px;
    width: 60px;
    margin-left: 2px;
    font-size: 10px;
  }
  .topbar .text h3 {
    font-size: 17px;
    padding-top: 3px;
  }

  /* Need Help */
  .help {
    width: 20vw;
  }
  .help .need-help {
    height: 3vh;
    width: 15vw;
    margin-top: 0;
    font-size: 2.5vw;
    border-radius: 3vw;
  }
  /* Logo */
  .navbar .logo {
    height: 42px;
    width: 40px;
  }
  .navbar .logo .main-logo {
    height: 39px;
    width: 38px;
  }
  .main {
    height: 40px;
  }
  /* Search Box */
  .navbar .search-box {
    height: 32px;
    width: 58vw;
    margin-left: 2vw;
    margin-top: 1vh;
  }
  .navbar .search-box .type-book-name {
    height: 30px;
    width: 53vw;
    font-size: 14px;
  }
  .type-book-name::placeholder {
    font-size: 14px;
    margin-top: 2vh;
    padding-left: 1vw;
  }
  .navbar .search-box .search-icon {
    width: 7vw;
  }

  .navbar .search-box a {
    height: 32px;
    width: 6vw;
  }

  /* Items */
  .navbar .items {
    height: 0vh;
    width: 0vh;
  }
  .navbar .item-pages {
    height:28vh;
    width: 145px;
    position: absolute;
    top: 80px;
    right: 0;
    display: none;
    background-color: #ececec;
  }
  .navbar .item-pages.active {
    display: block;
  }
  .navbar .item-pages a {
    font-size: 18px;
  }

  .navbar .item-pages li {
    margin: 0;
    padding-top: 8px;
    padding-left: 5px;
  }
  .navbar .item-pages li.active {
    background-color: #d8d4d4;
    color: #0047ff;
    border-radius: 0;
    padding:5px;
  }
  .navbar .item-pages li:hover {
    background-color: #c5c4c4;
  }
  /* Cart */
  .navbar .cart {
    margin-left: 62vw;
    margin-top: -5.5vh;
  }

  .cart-icon {
    height: 3vh;
  }
  .cart-icon h6 {
    font-size: 12px;
    margin-top: 2px;
  }
  li .fa-solid {
    font-size: 20px;
    margin-top: 7px;
  }
  .cart-icon .cart-items-counter {
    height: 14px;
    width: 14px;
    margin-top: -3px;
  }
  /*Hamburger*/
  .hamburger {
    height: 16px;
    width: 18px;
    display: block;
    margin-top: 2px;
    cursor: pointer;
    position: absolute;
    right: 20px;
  }
  .hamburger i {
    height: 3vh;
    padding-left: 6px;
  }

  /* NAVBAR CSS END -----------------------------------*/

  /* TOP */
  .footer-top .why-choose-us {
    margin-top: 3vh;
  }
  .footer-top .why-choose-us a {
    font-size: 3vw;
  }
  .footer-top .footer-logo img {
    height: 17vw;
    width: 30vw;
    margin-left: 4vw;
  }

  .footer-top .contact {
    margin-top: 1vh;
  }

  .footer-top .contact img {
    height: 5vw;
    width: 4vw;
    margin-top: 2vh;
  }
  .footer-top .contact h2 {
    font-size: 3vw;
    margin-top: 2vh;
    margin-left: 2vw;
  }

  /* MIDDLE */
  .footer-share {
    height: 10vh;
    width: 80vw;
    margin-top: 2vh;
    border-radius: 3vw;
  }
  .footer-share h2 {
    font-size: 5vw;
  }
  .footer-share .icons {
    padding-left: 0vw;
  }
  .social-icon {
    height: 8vw;
    width: 8vw;
    margin-left: 0;
  }

  /* BOTTOM */
  .footer-pages {
    margin-top: 4vh;
    margin-bottom: 7vh;
  }
  .footer-pages a {
    font-size: 3vw;
  }

  /* FOOTER CSS END_-------------------------------------- */

  #pagination {
    width: 150px;
    margin-left: 40vw;
  }
  #pagination ul {
    width: 140px;
  }
  #pagination ul li {
    width: 25px;
    font-size: 23px;
  }

  /* PAGINATION CSS END---------------------------------------------- */

  /* Discount badge */
  .badge {
    width: 40px;
    height: 40px;
  }
  .badge h3 {
    top: 11px;
    font-size: 14px;
  }
  .badge h4 {
    top: 28px;
    font-size: 16px;
  }

  /* New Ribbon */
  .ribbon {
    width: 60px;
    height: 60px;
  }
  .ribbon .new,
  .trending, .combo {
    left: -28px;
    top: 10px;
    font-size: 9px;
  }
  /*-------No books found--------- */
  .not-found {
    margin-left: 10vw;
    font-size: 25px;
  }
}
