body {
  overflow-x: hidden;
}
/* navigation */
.hamburger-menu {
  width: 65px;
  height: 65px;
  background: #7f8b82;
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 200;
  border-radius: 50%;
  outline: none !important;
  transition: all .5s;
}

.line1,
.line2,
.line3 {
  width: 30px;
  height: 2px;
  background: #eee;
  margin: 5px;
  transition: all .5s;
}

.bg-cover {
  background: rgba(35, 37, 40, 0.98);
  width: 55px;
  height: 55px;
  position: fixed;
  z-index: 100;
  border-radius: 50%;
  top: 35px;
  right: 35px;
  transition: all .5s;
}
.change .line1 {
  transform: rotate(-405deg) translate(-5px, 5px);
  background: #777;
}
.change .line2 {
  opacity: 0;
}
.change .line3 {
  transform: rotate(405deg) translate(-5px, -5px);
  background: #777;
}

.change .hamburger-menu{
  background: #eef0eb;
}

.change .bg-cover{
  transform: scale(150);
}

.nav-content{
  position: fixed;
  z-index: 150;
  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, .3);
}
/* end of navigation */
/* header */
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: "Great Vibes", cursive;
  font-size: 10rem;
  margin-right: 20px;
}
.banner-heading img {
  animation: beatingHeart 2s infinite;
}
@keyframes beatingHeart {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.1);
  }
  60% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
/* end of header */
/* common-title */
.common-title {
  display: inline-block;
  font-size: 3rem;
  font-weight: 500;
  text-shadow: 2px 2px 5px #aaa;
  transition: all 0.5s;
}
.common-title:first-letter {
  font-family: "Great Vibes", cursive;
  font-size: 5rem;
  margin-right: 10px;
  font-style: normal;
}
.common-title:hover {
  transform: translate(-5px, -3px);
  text-shadow: 2px 5px 20px #aaa;
}
/* end of common-title */
/* gallery */
.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;
}
/* end of gallery */
/* famous writers */
.famous-writers {
  background: linear-gradient(
      rgba(250, 250, 250, 0.8),
      rgba(250, 250, 250, 0.8)
    ),
    url(../img/writers-bg.jpeg) fixed center no-repeat;
  background-size: cover;
}
/* end of famous writers */
/* suggested books */
.suggested-books {
  height: 100vh;
  background: url(../img/wood-bg.jpeg) center no-repeat;
  background-size: cover;
}
.books {
  position: relative;
  height: 10vh;
}
.book {
  width: 35%;
  position: absolute;
  box-shadow: 5px 5px 15px #444;
  border-right: 5px solid #777;
  border-bottom: 10px solid #444;
  transition: all 0.7s ease-in-out;
}
.book-1 {
  top: 5%;
  left: 20%;
  transform: rotate(-10deg);
}
.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: 20px solid #bbb;
}
/* end of suggested books */
/* popular books */
.popular-books {
  position: relative;
}
.video-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: fill;
  opacity: 0.4;
}
.video-container video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.bg-video {
  object-fit: cover;
}

.book-card {
  position: relative;
  box-shadow: 5px 15px 50px #aaa;
  max-width: 420px;
  overflow: hidden;
  transition: all 0.8s;
}
.rotate {
  perspective: 100rem;
}
.back {
  position: absolute;
  top: -100%;
  background: #fefefe;
  height: 100%;
  width: 100%;
  opacity: 0;
  user-select: none;
  pointer-events: none;
  transform: rotateY(180deg);
  transition: top 0.8s, opacity 0.4s;
}
.back-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.rotate:hover .book-card {
  transform: rotateY(180deg);
}
.rotate:hover .back {
  top: 0;
  opacity: 1;
  user-select: auto;
  pointer-events: auto;
}
/* end of popular books */
/* contact */
.contact {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
    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: transparent;
  font-size: 18px;
  color: #333;
  border-radius: 5px;
  box-shadow: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(250, 250, 250, 0.8);
  box-shadow: none;
}
/* end of contact */
