:root {
  --first-color: #d2caae;
  --second-color: #507b60;
  --third-color: #f5f1e8;
  --fourth-color: #e2ddc9;
  --fifth-color: #507b60;
  --black: #000;
  --black-bg: #1f201e;
  --white: #fff;
  --font-title: Adagio;
  --font-text: Bookmania;
  --secondary-font-title: Fixture;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: var(--font-text);
}

html {
  scroll-behavior: smooth;
}

.container {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
  width: 90% !important;
}

@media (max-width: 768px) {
  .container {
    width: 95% !important;
  }
}

.img-responsive {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background-color: var(--black);
}

/* ----- HEADER ----- */

header {
  background-color: transparent;
  padding: 15px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transition: background-color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}

header.scrolled {
  background-color: var(--black-bg);
  border-color: var(--first-color);
}

header img {
  height: 65px;
  transition: 0.4s;
}

header img:hover {
  transform: scale(1.1);
}

ul{
  margin-bottom: 0 !important;
}

#menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

#menu a {
  display: block;
  padding: 5px 10px;
  color: var(--white);
  text-decoration: none;
  position: relative;
}

#menu a::after {
  content: "";
  width: 0%;
  height: 1px;
  background-color: var(--first-color);
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: 0.4s ease-in-out;
}

#menu a:hover::after {
  width: 100%;
}


#btn-mobile {
  display: none;
}

@media (max-width: 1050px) {
  #menu {
    display: block;
    position: absolute;
    width: 100%;
    top: 95px;
    right: 0px;
    background: var(--black-bg);
    transition: 0.6s;
    z-index: 1000;
    height: 0px;
    visibility: hidden;
    overflow-y: hidden;
  }
  #nav.active #menu {
    height: calc(100vh - 70px);
    visibility: visible;
    overflow-y: auto;
  }
  #menu a {
    padding: 1rem 0;
    margin: 0 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  }
  #btn-mobile {
    display: flex;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    gap: 0.5rem;
    color: var(--white);
  }
  #hamburger {
    border-top: 2px solid;
    width: 20px;
  }

  #hamburger::after,
  #hamburger::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--white);
    margin-top: 5px;
    transition: 0.3s;
    position: relative;
  }
  #nav.active #hamburger {
    border-top-color: transparent;
  }
  #nav.active #hamburger::before {
    transform: rotate(135deg);
  }
  #nav.active #hamburger::after {
    transform: rotate(-135deg);
    top: -7px;
  }
}

/* ----- whats button ----- */

.whats-button {
  position: fixed;
  bottom: 20px;
  right: 40px;
  z-index: 9999;
  animation: moveRightLeft 2s infinite alternate ease-in-out;
}

.whats-button img {
  height: 80px;
  width: 80px;
}

@keyframes moveRightLeft {
  0% {
    right: 10px;
  }

  50% {
    right: 40px;
  }

  100% {
    right: 10px;
  }
}

/* ----- FOOTER ----- */

footer {
  padding: 80px 0;
  background-color: var(--black-bg);
  border-top: 3px solid var(--first-color);
}

footer .content-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

footer .logo-footer {
  display: flex;
  align-items: center;
  height: 170px;
}

footer .logo-footer img {
  width: 280px;
}

footer .content-footer ul {
  padding: 0px !important;
}

footer .content-footer li {
  list-style-type: none;
  color: var(--white);
}


footer .content-footer h3 {
  font-size: 18px;
  color: var(--first-color) !important;
  font-weight: 580;
  font-family: var(--font-title);
}

footer .content-footer a {
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
  transition: 0.4s ease-in-out;
}

footer .content-footer a:hover {
  color: var(--first-color) !important;
}

footer .content-footer i {
  font-size: 14px;
  color: var(--white);
  text-decoration: none;
  margin-right: 8px;
}

footer .line{
  height: 1px;
  margin-top: 60px;
  background-color: var(--first-color);
}

footer .dev{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 0;
}

footer .dev a{
  color: gray;
  text-decoration: none;
}

footer .dev i{
  margin-right: 10px;
}

@media (max-width: 991px){

  footer{
    width: 100vw;
  }

  footer .content-footer{
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  footer li{
    width: 80vw;
  }
}
