@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --primary-color: #000080;
  font-size: 62.5%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
}

::-webkit-scrollbar-track {
  background-color: #FFF;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

body {
  background-color: #f7f7f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Menu de navegação */
header {
  padding: 24px 0;
  background-color: var(--primary-color);
  width: 100%;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navMenu {
  list-style: none;
  padding-left: 40px;
  display: flex;
  justify-content: space-evenly;
  gap: 60px;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #FFF;
  font-size: 1.36rem;
  font-weight: 400;
}

nav li a::after {
  content: '';
  border-bottom: 2px solid #FFF;
  position: absolute;
  top: 1px;
  left: 0;
  transition: 0.3s ease-in-out;
  opacity: 0;
  height: 100%;
}

nav li a:hover::after {
  animation: hoverEffect 0.5s forwards;
  opacity: 1;
}

@keyframes hoverEffect {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.hamburger {
  display: none;
  cursor: pointer;
  margin-left: 10%;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  border-radius: 5px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: #fff;
}

.loginBtn {
  margin-right: 3%;
  padding: 5px 35px;
  border-radius: 5px;
  border: 1px solid #fff;
  position: relative;
  z-index: 1;
  display: inline-block;
  overflow: hidden;
  transition: color 1s;
}

.hoverBtn:hover {
  color: var(--primary-color);
}

.hoverBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50px;
  z-index: -1;
  width: 0;
  height: 100%;
  background-color: #fff;
  transform: skewX(35deg);
  transition: width 1s;
}

.hoverBtn:hover::before {
  width: 160%;
}

/* Conteúdo Principal */
main {
  width: 80%;
  margin: 20px auto;
  padding: 0 60px;
  text-align: justify;
}

main article {
  margin-bottom: 50px;
}

article p {
  margin-bottom: 30px;
}

main h2 {
  font-size: 3rem;
}

main li {
  margin-left: 26px;
}

main li,  h3 {
  font-size: 3rem;
  font-weight: bold;
}

main p {
  font-size: 1.8rem;
  font-weight: normal;
}

main figure {
  width: 300px;
}

main img {
  max-width: 100%;
}

.containerBooks {
  width: 100%;
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.boxBook {
  width: 30%;
  height: 150px;
  display: flex;
  align-items: center;
  text-align: justify;
  gap: 10px;
}

.boxBook img {
  width: 100px;
  height: 100%;
}

.bookInfo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.bookInfo p {
  font-size: 1.4rem;
}

.bookInfo a {
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: #FFF;
  font-size: 1.4rem;
  text-decoration: none;
  border-radius: 18px;
}

/* Rodapé */
footer {
  width: 100%;
  height: 60px;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

footer ul {
  list-style: none;
  color: #FFF;
  font-size: 0.89rem;
  display: flex;
  gap: 15px;
}

footer ul a {
  color: #FFF;
  text-decoration: none;
}

/* Media  queries */
@media (max-width: 1210px) {
  .containerBooks {
    flex-direction: column;
    align-items: flex-start;
  }

  .boxBook {
    width:  100%;
    height: 200px;
  }
}

@media (max-width: 860px) {
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .navMenu {
    position: absolute;
    left: -100%;
    top: 50px;
    gap: 0;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
  }

  .navItem {
    margin: 16px 0;
  }

  .navMenu.active {
    left: 0;
  }

  .loginBtn {
    margin-right: 10%;
  }
}