@import url("https://fonts.cdnfonts.com/css/inter");

* {
  padding: 0;
  margin: 0;
  color: var(--black);
  box-sizing: border-box;
}

html {
  font-family: "Inter", sans-serif;
  font-size: clamp(15px, 1.5vw, 1.25em);
  background-color: var(--bg);
}

:root {
  --green: #53c319;
  --bg: #eaeaea;
  --blue-hover: #0295ff;
  --blue: #5c9aff;
  --yellow: #e1890c;
  --yellow-hover: #af6906;
  --black: #2e2e2e;
  --transparent-black: rgba(0, 0, 0, 0.174);
}

body {
  
  overflow-x: hidden;
  background-color: var(--bg);
}

.hero-img img {
  width: 50%;
  object-fit: contain;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
}

.container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.navbar {
  width: 100%;
  height: fit-content;
  padding: 10px;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  display: flex;
  align-items: center;
}

.navbar .brand img {
  height: 5rem;
  margin-right: 5px;
}

.navbar .brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.navbar .brand-name {
    font-size: 25px;
    font-weight: bold;
    text-transform: uppercase;
}

@media (max-width: 1050px){
    
    .navbar .brand-name {
        font-size: 20px;
    }
    
}

@media (max-width: 961px){
    
    .navbar .brand-name {
        font-size: 15px;
    }
    
}

a {
  text-decoration: none;
}

.navlink,
.navlink-cta {
  margin-left: 1rem;
  margin-right: 1rem;
  transition: ease 0.2s;
  font-size: 0.9rem;
}

.menu {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  display: none;
  position: relative;
}

.menu span {
  border-radius: 0.5rem;
  width: 1.7rem;
  margin-top: 2px;
  margin-bottom: 2px;
  height: 3px;
  background-color: var(--black);
}

.menu-list {
  position: fixed;
  background-color: var(--blue);
  padding: 1rem;
  height: 100vh;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 0px 39.6px -16px rgba(0, 0, 0, 0.045),
    0px 0px 41.5px -16px rgba(0, 0, 0, 0.06),
    0px 0px 43.2px -16px rgba(0, 0, 0, 0.07),
    0px 0px 48.7px -16px rgba(0, 0, 0, 0.075),
    0px 0px 60.3px -16px rgba(0, 0, 0, 0.077),
    0px 0px 80px -16px rgba(0, 0, 0, 0.07);
  z-index: 4;
  right: -100vw;
  visibility: hidden;
  transition: ease 0.5s;
}

.menu-active {
  right: 0;
  visibility: visible;
  transition: ease 0.5s;
}

.menu-overlay {
  width: 100vw;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background-color: var(--black);
  opacity: 0.3;
  z-index: 3;
  cursor: default;
  display: none;
}

.menu-list a {
  font-size: 1.3rem;
  margin: 1rem;
  transition: ease 0.2s;
  width: fit-content;
}

.menu-list a:hover {
  color: var(--bg);
}

.active-menu-link {
  border-bottom: 2px solid var(--bg);
  color: var(--bg);
}

@media screen and (max-width: 840px) {
  .navlink {
    display: none;
  }

  .menu {
    display: flex;
  }
}

.active-link {
  color: var(--yellow);
  font-weight: bold;
  border-bottom: 2px solid var(--yellow);
}

.navlink:hover {
  color: var(--yellow-hover);
}

.navlink-cta,
.cta-btn {
  background-color: var(--yellow);
  color: var(--bg);
  padding: 0.5rem;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 4px;
  width: fit-content;
  height: fit-content;
  transition: ease 0.2s;
}

.navlink-cta:hover,
.cta-btn:hover {
  background-color: var(--yellow-hover);
}

.hero-section {
  padding-left: 3.5rem;
  padding-top: 4rem;
  width: 100%;
  padding-right: 2.5rem;
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 700px) {
  .hero {
    padding-left: 2.5rem;
  }
}

.hero-section h1 {
  font-size: 1.35rem;
  width: 50%;
}

.hero-section p {
  font-size: 0.85rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  width: 50%;
}
@media screen and (max-width: 840px) {
  .hero-section p {
    width: 60%;
  }

  .hero-section h1 {
    width: 53%;
  }
}
.cta-btn-container {
  display: flex;
  align-items: center;
}

.search-container {
  background-color: #fff;
  height: 2rem;
  padding: 0.5rem;
  padding-top: 0px;
  padding-bottom: 0px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-right: 0;
  border: 1px solid var(--yellow);
}

.cta-btn {
  height: 2rem;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.5rem;
  margin-right: 1rem;
}

.search-container i {
  font-size: 18px;
  color: var(--black);
}

.search-icon {
  background-color: var(--yellow);
  padding-left: 10px;
  padding-right: 10px;
  height: 100%;
  display: flex;
  align-items: center;
  margin-left: 5px;
  border-radius: 2px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  cursor: pointer;
  transition: ease 0.2s;
}

.search-icon:hover {
  background-color: var(--yellow-hover);
}

.search-icon i {
  color: var(--bg);
  font-size: 0.9rem;
}

.search-container input:focus,
.search-container input:active {
  outline: none;
  border: 0px solid var(--bg);
}

/* For touch devices */
.search-container input::-moz-focus-inner,
input::-moz-focus-outer {
  border: 0px solid var(--bg);
}

.search-container input {
  background-color: transparent;
  outline: none;
  border: none;
}

.search-container input {
  font-size: 0.8rem;
}

.book-container {
  width: 100%;
  height: fit-content;
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: auto 1fr;
  margin-top: 4rem;
  padding-left: 3.5rem;
  padding-top: 2rem;
  padding-right: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

@media screen and (max-width: 700px) {
  .book-container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.book-container:after,
.quote-container:after {
  content: "";
  width: 70%;
  height: 50%;
  background-color: var(--blue);
  position: absolute;
  right: 0px;
  bottom: -40px;
  border-bottom-left-radius: 4px;
}

.category-container {
  margin-right: 2rem;
}

.category-container h4 {
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.book-tab {
  font-size: 0.7rem;
  padding: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  width: fit-content;
  cursor: pointer;
  margin-bottom: 0.25rem;
  margin-top: 0.25rem;
  border-radius: 4px;
  transition: ease 0.2s;
  white-space: nowrap;
}

.active-book-tab {
  background-color: var(--blue);
  color: var(--bg);
}

.book-tab:hover {
  background-color: var(--blue);
}

.book-container-right {
  height: 100%;
  width: 100%;
  display: flex;
  position: relative;
}

.link-to-page {
  position: absolute;
  right: -15px;
  background-color: var(--blue);
  padding: 0.5rem;
  padding-left: 15px;
  padding-right: 15px;
  top: 40%;
  z-index: 2;
  border-radius: 4px;
  box-shadow: 0px 1px 3.6px rgba(0, 0, 0, 0.052),
    0px 2.6px 10px rgba(0, 0, 0, 0.075), 0px 6.3px 24.1px rgba(0, 0, 0, 0.098),
    0px 21px 80px rgba(0, 0, 0, 0.15);
  transition: ease 0.2s;
}

.link-to-page:hover {
  background-color: var(--blue-hover);
}

.link-to-page i {
  color: var(--bg);
  font-size: 1rem;
}

.book-card {
  z-index: 2;
  /* width: 320px; */
  width: 17rem;
  height: 9rem;
  box-shadow: 0px 1px 3.6px rgba(0, 0, 0, 0.052),
    0px 2.6px 10px rgba(0, 0, 0, 0.075), 0px 6.3px 24.1px rgba(0, 0, 0, 0.098),
    0px 21px 80px rgba(0, 0, 0, 0.15);
  margin-right: auto;
  margin-left: auto;
  background-color: var(--bg);
  position: relative;
  padding: 20px;
  border-radius: 4px;
  display: grid;
  grid-template-columns: 38% 1fr;
  grid-template-rows: 1fr 0.8rem 0.8rem;
  row-gap: 0.5rem;
  transition: ease 0.2s;
  cursor: pointer;
}

.book-card:hover {
  background-color: #fff;
}

.book-card:nth-child(3) {
  margin-right: 0;
}
.book-card .book-cover {
  width: 100%;
  grid-column: 1;
  grid-row: 1 / span 3;
  overflow: hidden;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.book-card .title {
  font-size: 0.8rem;
  text-transform: capitalize;
}

.book-card .get {
  font-size: 0.8rem;
  color: var(--yellow);
}

.book-card .view-details {
  font-size: 0.6rem;
  cursor: pointer;
}

.book-card .view-details i {
  font-size: 0.6rem;
  margin-left: 0.2rem;
  color: var(--yellow);
}

.quote-container {
  width: 100%;
  height: fit-content;
  padding-left: 3.5rem;
  padding-right: 2.5rem;
  display: flex;
  margin-top: 7rem;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  grid-template-rows: 1fr;
  position: relative;
}

@media screen and (max-width: 700px) {
  .quote-container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

.quote-container h4 {
  width: fit-content;
  white-space: nowrap;
  margin-right: 1rem;
  position: relative;
}

.quote-card-wrapper {
  display: flex;
  width: 100%;
  position: relative;
}

.quote {
  width: 100%;
  height: 12rem;
  border-radius: 4px;
  margin-right: 1rem;
  margin-left: 1rem;
  box-shadow: 0px 1px 3.6px rgba(0, 0, 0, 0.052),
    0px 2.6px 10px rgba(0, 0, 0, 0.075), 0px 6.3px 24.1px rgba(0, 0, 0, 0.098),
    0px 21px 80px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  background-color: var(--bg);
  padding: 2rem;
}

.quote p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
          line-clamp: 4;
  -webkit-box-orient: vertical;
}

@media screen and (max-width: 970px) {
  .book-container {
    display: flex;
    flex-direction: column;
  }

  .book-card:nth-child(1) {
    margin-left: 0;
  }

  .category-container {
    margin: 0;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }

  .category-container h4 {
    margin: 0;
    margin-right: 1rem;
  }

  .category-container h4:after {
    content: ":";
    font-family: "Inter", sans-serif;
    font-weight: bold;
    margin-left: 2px;
  }

  .quote-container {
    display: flex;
    flex-direction: column;
  }

  .quote-container h4 {
    margin-bottom: 1rem;
  }

  .quote:nth-child(1) {
    margin-left: 0;
  }
}


@media screen and (max-width: 865px) {
  .book-container-right{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    gap: 2rem;
  }

  .book-card{
    width: 100%;
    height: 12rem;
  }
}
@media screen and (max-width: 750px) {
  .quote-card-wrapper{
    display: grid;
     grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
     grid-template-rows: unset;
     gap: 2rem;
  }

  .quote{
    margin: 0;
    height: 13rem;
  }
}
.quote p {
  padding: 1rem;
  font-size: 0.9rem;
}

.quote .fa-quote-left {
  position: absolute;
  color: var(--bg);
  left: 1rem;
  top: 1rem;
}

.quote i {
  background-color: var(--blue);
  padding: 10px;
  border-radius: 50%;

  box-shadow: 0px 1px 3.6px rgba(0, 0, 0, 0.052),
    0px 2.6px 10px rgba(0, 0, 0, 0.075), 0px 6.3px 24.1px rgba(0, 0, 0, 0.098),
    0px 21px 80px rgba(0, 0, 0, 0.15);
}

.quote .fa-quote-right {
  position: absolute;
  color: var(--bg);
  right: 1rem;
  bottom: 1rem;
}

.quote:nth-child(2) {
  margin-right: 0;
}

.quote .quote-author {
  font-size: 0.8rem;
  position: absolute;
  left: 3rem;
  font-style: italic;
  bottom: 1rem;
  font-weight: bold;
  color: var(--yellow);
}

.quote .quote-author::before {
  content: "--";
}

.footer {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  padding-left: 3.5rem;
  padding-right: 2.5rem;
  margin-top: 5rem;
  background-color: #ddde;
}

.footer h4:after {
  content: "";
  position: absolute;
  width: 40px;
  border-radius: 2px;
  left: 0;
  bottom: -4px;
  height: 3px;
  background-color: var(--yellow);
}

.footer h4 {
  position: relative;
}

.footer .info {
  width: 45%;
  margin-right: 1rem;
}

.footer .info img {
  height: 50px;
  margin-right: 0.5rem;
}

.company-name {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.company-details {
  font-size: 0.8rem;
}

.company-location {
  font-size: 0.8rem;
  margin-top: 1rem;
}

.footer .links {
  margin-top: 0.8rem;
  margin-right: 2rem;
}

ul li {
  list-style: none;
  margin-top: 0.5rem;
}

ul li a {
  transform: ease 0.2s;
}
ul li a:hover {
  color: var(--yellow);
}

.footer-links li a {
  font-size: 0.8rem;
}

.footer .services {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
}

.footer .services a {
  font-size: 0.8rem;
}

.services input {
  /* -webkit-appearance: none; */
  outline: none;
  border: 1px solid var(--yellow);
  border-radius: 4px;
  font-size: 0.8rem;
  padding: 5px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.footer-search-btn {
  background-color: var(--yellow);
  height: 100%;
  border-radius: 4px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 0.3rem;
  transition: ease 0.2s;
  cursor: pointer;
}

.footer-search-btn:hover {
  background-color: var(--yellow-hover);
}

.footer-search-container {
  display: flex;
  height: fit-content;
}
.footer-search-btn i {
  font-size: 0.8rem;
  color: var(--bg);
}

.contact {
  margin-top: 0.8rem;
  margin-left: 1rem;
}

.contact li a {
  font-size: 0.8rem;
}

.contact li a i {
  margin-right: 0.5rem;
}

.copyright {
  font-size: 0.7rem;
  padding-left: 3.5rem;
  padding-bottom: 1rem;
  background-color: #ddde;
}

@media screen and (max-width: 700px) {
  .copyright {
    padding-left: 2.5rem;
  }
}

@media screen and (max-width: 850px) {
  .footer {
    flex-direction: column;
  }

  .contact {
    margin-left: 0rem;
  }
  .copyright {
    padding-top: 1rem;
  }

  .footer .info {
    width: 100%;
    padding-left: 0rem;
    padding-right: 0rem;
  }
}

.mobile-hero {
  display: none;
}

@media screen and (max-width: 750px) {
  .hero-img img {
    width: 50%;
    object-fit: contain;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
  }

  .navbar {
    background-color: var(--blue);
    z-index: 3;
    position: relative;
    padding-left: 10px;
    padding-right: 20px;
  }

  .hero-img {
    display: none;
  }

  .hero-section {
    margin-top: 0;
    background-color: var(--blue);
    padding-top: 5rem;
    padding-bottom: 2.6rem;
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
    border-bottom-left-radius: 3rem;
    border-bottom-right-radius: 3rem;
  }

  .hero-section h1 {
    margin-top: 10rem;
    width: 100%;
    z-index: 2;
  }

  .mobile-hero {
    position: absolute;
    display: block;
    left: 30%;
    top: -5rem;
    height: calc(100% + 8rem);
    width: 100%;
    /* z-index: 0; */
    overflow: hidden;
  }

  .mobile-hero img {
    height: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  .hero-section p {
    width: 98%;
    z-index: 2;
  }

  .hero-section .cta-btn-container {
    z-index: 2;
  }
}
@media screen and (max-width: 700px) {
  .footer {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}
@media screen and (max-width: 600px) {
  .brand-name {
    display: none;
  }

  .mobile-hero {
    left: 14%;
    top: -13rem;
    height: calc(100% + 10rem);
  }
}

@media screen and (max-width: 480px) {
  .mobile-hero {
    left: 20%;
    top: -13rem;
    height: calc(100% + 10rem);
  }
}

@media screen and (max-width: 460px) {
  .mobile-hero {
    left: 13%;
    top: -11rem;
    height: calc(80% + 10rem);
  }

  .cta-btn-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-btn {
    width: 100%;
    margin: 0;
    margin-bottom: 0.5rem;
    justify-content: center;
  }

  .search-container {
    width: 100%;
  }

  .search-container input {
    width: 100%;
  }
}

.event-wrapper {
  display: grid;
  text-transform: capitalize;
  padding: 0.5rem 3.5rem 0.5rem 3.5rem;
  background-color: rgba(0, 0, 0, 0.604);
  grid-template-columns: repeat(1, 1fr);
}

.event-date-wrapper {
  gap: 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.event-wrapper span {
  color: var(--bg);
  font-weight: 100;
  font-size: smaller;
  font-weight: bold;
}

.event-btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-wrapper .icon {
  color: var(--blue);
}

.event-wrapper .event-btn-wrapper a {
  color: white;
  border-radius: 5px;
  padding: 5px 10px 5px 10px;
  background-color: var(--blue);
}

.event-wrapper .event-btn-wrapper a i {
  color: white;
}

.event-wrapper .event-btn-wrapper a:hover {
  background-color: var(--blue-hover);
}

.event-date-wrapper i, .event-date-wrapper {
  color: white;
  font-size: smaller;
}

@media (max-width: 750px) {
  
  .event-wrapper {
    display: grid;
    z-index: 10;
    text-transform: capitalize;
    padding: 0.5rem 1.5rem 0.5rem 1.5rem;
    background-color: var(--black);
    grid-template-columns: repeat(1, 1fr);
  }

}

.buy-overlay,
.reading-overlay,
.read-overlay,
.confirm-transID-overlay {
  display: none;
}

.active-buy-overlay,
.active-reading-overlay, 
.active-read-overlay,
.active-confirm-transID-overlay {
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  padding-top: 3%;
  position: absolute;
  justify-content: center;
  background-color: var(--transparent-black);
}


.buy-overlay form, 
.reading-overlay form, 
.read-overlay form,
.confirm-transID-overlay form {
  width: 50%;
  position: fixed;
  border-radius: 10px;
  padding: 2rem 0.5rem;
  height: fit-content;
  background-color: white;
  box-shadow: 0px 1px 3.6px rgba(0, 0, 0, 0.052),
    0px 2.6px 10px rgba(0, 0, 0, 0.075), 0px 6.3px 24.1px rgba(0, 0, 0, 0.098),
    0px 21px 80px rgba(0, 0, 0, 0.15);
}

form .head-section {
  padding: 5px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  background-color: var(--yellow);
  box-shadow: 0px 1px 3.6px rgba(0, 0, 0, 0.052),
    0px 2.6px 10px rgba(0, 0, 0, 0.075), 0px 6.3px 24.1px rgba(0, 0, 0, 0.098),
    0px 21px 80px rgba(0, 0, 0, 0.15);
}


.buy-overlay form .input-wrapper,
.reading-overlay form .input-wrapper,
.read-overlay form .input-wrapper,
.confirm-transID-overlay .input-wrapper {
  display: grid;
  padding-top: 0.5rem;
  grid-template-columns: repeat(1, 1fr);
}

.buy-overlay form input,
.reading-overlay form input,
.read-overlay form input,
.confirm-transID-overlay form input {
  outline: none;
  font-size: 18px;
  border-radius: 3px;
  border: solid grey 1px;
  padding: 3px 5px;
}

.buy-overlay .btn-wrapper,
.reading-overlay .btn-wrapper,
.read-overlay .btn-wrapper,
.confirm-transID-overlay .btn-wrapper {
  gap: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: end;
  padding: 1rem 10px 0 10px;
}

.buy-overlay .btn-wrapper button,
.reading-overlay .btn-wrapper button,
.read-overlay .btn-wrapper button,
.confirm-transID-overlay .btn-wrapper button {
  outline: none;
  border:  none;
  border-radius: 3px;
  padding: 5px 2rem;
  box-shadow: 0px 1px 3.6px rgba(0, 0, 0, 0.052),
    0px 2.6px 10px rgba(0, 0, 0, 0.075), 0px 6.3px 24.1px rgba(0, 0, 0, 0.098),
    0px 21px 80px rgba(0, 0, 0, 0.15);
}

/* Buy modal btn */
.buy-overlay .buy-book-modal,
.reading-overlay .buy-book-modal,
.read-overlay .read-book-modal,
.confirm-transID-overlay .transId-book-modal {
  color: white;
  background-color: var(--yellow);
}

.buy-overlay .cancel-buy,
.reading-overlay .cancel-buy,
.read-overlay .cancel-buy,
.confirm-transID-overlay .cancel-buy {
  color: white;
  background-color: var(--black);
}

.warning span {
  font-size: 12px;
}

.btn-wrapper button {
  font-size: 20px;
}

.btn-wrapper button:hover {
  box-shadow: 5px 5px 2px grey;
}

@media (max-width: 768px) {

  .buy-overlay form,
  .reading-overlay form,
  .read-overlay form,
  .confirm-transID-overlay form {
    width: 80%;
  }

  .buy-overlay form input,
  .reading-overlay form input,
  .read-overlay form input,
  .confirm-transID-overlay form input {
    font-size: 17px;
  }
  
  .warning span {
    font-size: 10px;
  }

  .btn-wrapper button {
    font-size: 15px;
  }
  
}

@media (max-width: 350px) {

  .buy-overlay form,
  .reading-overlay form,
  .read-overlay form,
  .confirm-transID-overlay form {
    width: 95%;
  }

  .buy-overlay form input,
  .reading-overlay form input,
  .read-overlay form input,
  .confirm-transID-overlay form input {
    font-size: 15px;
  }
  
}