@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navbar-font: "Montserrat", sans-serif;
  --text-font: "Nunito Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: sans-serif;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: background 0.3s ease;
  z-index: 1000;
  font-family: var(--navbar-font);
  font-weight: 600;
  padding: 15px 50px;
}

ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

ul li {
  font-size: 20;
}

ul a {
  text-decoration: none;
  color: white;
}

.scrolled {
  background: black;
}

body {
  font-family: var(--text-font);
}

.hero {
  height: 100vh;
  width: 100%;
  background: linear-gradient(rgba(20, 20, 20, 0.7), rgba(20, 20, 20, 0.7)), url("../src/hero-image.jpg");
  background-size: contain;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 60%;
  font-weight: 600;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.8rem;
  margin-bottom: 20px;
}

.hero .btn {
  background-color: #ff6600;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #e65c00;
}

.books{
  margin-top: 50px;
  margin-bottom: 50px;
}

.books h1{
  text-align: center;
}

.books hr{
  margin-top: 10px;
}

.book-container{
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.book-card{
    display: flex;
    width: 30%;
    height: 260px;
    gap: 30px;
    padding: 4px;
    border-radius: 4px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.book-card .book-cover img{
    width: 150px;
    height: 250px;
    border: 1px solid rgba(0, 0, 0, 0.322);
    padding: 4px;
    transition: padding 0.3s ease;
}

.book-cover img:hover{
    padding: 2px;
}

.book-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    justify-content: center;
    align-items: flex-start;
    text-align: justify;
}

.book-card button{
    width: 100%;
    padding: 8px 12px;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: rgb(255 206 26 / var(--tw-bg-opacity, 1));
    border-radius: 5px;
    transition: background 0.2s ease-in;
    font-weight: 600;
}

.book-card button:hover{
    background-color: rgba(4, 4, 36, 0.767);
    color: white;
}

.book-card .price-container{
  display: flex;
  gap: 20px;
  font-size: 16px;
}

.price-container .old-price{
  text-decoration: line-through;
}

footer{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  color: white;
  background-color: black;
  font-weight: 600;
}

footer .social-links{
  display: flex;
  gap: 20px;
}

.social-links a{
  text-decoration: none;
  color: white;
}

@media (max-width: 1225px){
  .book-card .book-content h3{
    font-size: medium;
  }
  .book-card .book-content p{
    font-size: small;
  }
}

@media (max-width: 1145px){
  .book-card {
    height: 300px;
  }
  .book-card .book-cover img{
    height: 290px;
  }
}

@media(max-width: 1065px){
  .book-card{
    width: 45%;
    height: 260px;
  }
  .book-card .book-cover img{
    height: 250px;
  }
}

@media(max-width: 765px){
  .book-card{
    width: 80%;
  }
}

@media(max-width: 480px){
  .book-card{
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
  }
}

@media(max-width: 400px){
  .hero .hero-content h1{
    font-size: x-large;
  }
  .hero .hero-content p{
    margin-bottom: 40px;
    font-size: large;
  }

  footer{
    font-size: small;
  }
}