:root {
  --font-family: "Great Vibes", cursive;
}

body {
  overflow-x: hidden;
}

.hamburger-menu {
  width: 4rem;
  height: 4rem;
  background-color: #7f7b82 !important;
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 999;
  outline: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.7;
  transition: all 0.5s;
}

.line1,
.line2,
.line3 {
  transition: all 0.5s;
  width: 30px;
  height: 2px;
  background-color: #eee;
}

.bg-cover {
  background-color: rgba(35, 37, 40, 0.98);
  width: 55px;
  height: 55px;
  position: fixed;
  top: 35px;
  right: 35px;
  z-index: 998;
  transition: all 0.5s;
}

.change .line1 {
  transform: rotate(-405deg) translate(-5px, 5px);
  background-color: #777;
}
.change .line2 {
  opacity: 0;
}
.change .line3 {
  transform: rotate(405deg) translate(-5px, -5px);
  background-color: #777;
}
.change .hamburger-menu {
  background-color: #eef0eb !important;
}
.change .bg-cover {
  transform: scale(150);
}

.navigation {
  overflow-y: auto;
}

.nav-content {
  position: fixed;
  z-index: 998;
  width: 100%;
}

.link-item {
  font-size: 20px;
  color: #eee;
  border-bottom: 1px solid #eee;
}

.link-item:hover {
  color: #fff;
  border-bottom: 1px solid #fff;
  border-radius: 50% 50% 0 0;
  background: rgba(0, 0, 0, 0.3);
}

header {
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),
    url(/img/header-bg.jpeg) fixed center no-repeat;
  background-size: cover;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.banner-heading::first-letter {
  font-family: var(--font-family);
  font-size: 10rem;
  margin-right: 1.5rem;
}

.banner-heading img {
  animation: heartBeat 2s infinite;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.1);
  }
  60% {
    transform: scale(1.01);
  }
  80% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.common-title {
  display: inline-block;
  font-size: 3rem;
  font-weight: 500;
  text-shadow: 2px 2px 5px #aaa;
  transition: all 0.5s;
  cursor: default;
}

.common-title::first-letter {
  font-family: var(--font-family);
  font-size: 5rem;
  margin-right: 0.6rem;
  font-style: normal;
}

.common-title:hover {
  transform: translate(-5px, -3px);
  text-shadow: 2px 5px 20px #aaa;
}

.gallery-img {
  backface-visibility: hidden;
  transition: all 0.5s;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.first-row {
  transform: translateX(-300px);
  opacity: 0;
  transition: all 2.5s;
}

.second-row {
  transform: translateX(300px);
  opacity: 0;
  transition: all 2.5s;
}

.change .first-row,
.change .second-row {
  transform: translateX(0);
  opacity: 1;
}

.famous-writers {
  background: url(/img/writers-bg.jpeg) fixed center no-repeat;
  background-size: cover;
}

.suggested-books {
  height: 140vh;
  background: url(../img/wood-bg.jpeg) center no-repeat;
  background-size: cover;
}

.books {
  position: relative;
  height: 50vh;
}

.book {
  width: 35%;
  position: absolute;
  box-shadow: 5px 5px 15px #444;
  border-right: 5px solid #777;
  border-bottom: 10px solid #444;
  transition: all 0.4s ease-in-out;
}

.book-1 {
  top: 5%;
  left: 20%;
  transform: rotate(-45deg);
}
.book-2 {
  top: 20%;
  left: 50%;
  transform: rotate(40deg);
}
.book-3 {
  top: 40%;
  left: 40%;
  transform: rotate(55deg);
}
.book-4 {
  top: 35%;
  left: 10%;
  transform: rotate(-38deg);
}

.book:hover {
  transform: scale(1.3) rotateX(20deg);
  z-index: 50;
  box-shadow: 5px 5px 25px #444;
  border-right: 10px solid #ddd;
  border-bottom: 15px solid #bbb;
}

.popular-books {
  position: relative;
}

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

.bg-video {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.book-card {
  position: relative;
  box-shadow: 5px 15px 50px #aaa;
  max-width: 25rem;
  transition: all 0.8s;
}

.back {
  position: absolute;
  background-color: #fefefe;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  user-select: none;
  pointer-events: none;
  transform: rotateY(180deg);
  transition: all 0.8;
}

.rotate {
  perspective: 100rem;
}

.rotate:hover .book-card {
  transform: rotateY(180deg);
}

.rotate:hover .back {
  opacity: 1;
  user-select: auto;
  pointer-events: auto;
}

.contact {
  background: url(../img/header-bg.jpeg) fixed center no-repeat;
  background-size: cover;
}

.items-wrapper {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url(../img/items-wrapper-bg.jpg) center no-repeat;
  background-size: cover;
  border-radius: 5px;
}

.floating-item {
  background: rgba(0, 0, 0, 0.65);
  border-radius: 5px;
}

.first-item {
  animation: float 15s infinite;
}
.second-item {
  animation: float 20s ease-in infinite;
}
.third-item {
  animation: float 40s linear infinite;
}
.fourth-item {
  animation: float 30s infinite;
}
.fifth-item {
  animation: float 25s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-60px);
  }
  100% {
    transform: translateX(0);
  }
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  background: #44444491;
  font-size: 18px;
  color: #fefefe;
  border-radius: 5px;
  box-shadow: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #fefefe;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #44444491;
  box-shadow: none;
}

@media (max-width: 420px) {
  .footer-form {
    border: none !important;
    width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }
}
