* {
  margin: 0;
  padding: 0;
}

body {
  height: fit-content;
  border: 1vw solid black;
  background-color: rgb(255, 241, 181);
}

.paragrafo {
  margin-left: 5%;
}

.paragrafo-grande {
  margin-left: 8%;
}



header {
  background-image: linear-gradient(to bottom, transparent 90%, rgb(255, 241, 181) 99%), url(imagens/vininho-carro.jpg);
  background-size: 100vw;
  background-repeat: no-repeat;
  background-position: center;
  padding-top: 3%;
  animation: expandirAltura linear forwards;
  animation-timeline: scroll(root);
  animation-range: 0% 300%;

}


header h1 {
  text-align: center;
  position: relative;
  font-size: 6vw;
  font-family: "Josefin Sans", sans-serif;
  color: white;
  text-shadow: 0 0.1em 0.2em rgb(0, 0, 0);
}

nav {
  width: 100%;
  height: 6vw;

}

nav ul {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: end;
  list-style-type: none
}

nav ul li {
  list-style-type: none;
  margin: 0 2% 0 2%;

}

nav ul li a {
  display: inline-block;
  text-decoration: none;
  color: black;
  padding: 1vw;
  font-size: 1.3vw;
  font-family: "Josefin Sans", sans-serif;
  transition: background-color 0.2s;
  background-color: rgb(255, 239, 167);
  box-shadow: 0 0 0.2em 0.2em white;
}

nav ul li a:hover {
  background-color: rgb(212, 199, 141);
}

#segundo {
  display: inline-block;
  font-family: "Beau Rivage", cursive;
  font-weight: lighter;
  margin: 7% 0 10% 50%;
  padding: 0.2%;
  text-align: left;
  font-size: 8vw;
  color: white;
  background-color: none;
  text-shadow: 0 0 0.1em rgb(0, 0, 0);
  animation: Desaparecer linear forwards;
  animation-timeline: scroll(root);
  animation-range: 0% 50%;
}


main {
  background-color: rgb(255, 241, 181);
  font-family: "Josefin Sans", sans-serif;
  margin-left: 2%;
  margin-right: 2%;
}

main h3 {
  margin-top: 3%;
  font-size: 3vw;
  line-height: 5vw;
  width: 95%;
}

main #primeiro {
  margin-top: 5%;
  font-size: 2vw;
  line-height: 2.8vw;
  animation: Aparecer linear forwards;
  animation-timeline: scroll(root);
  animation-range: 30% 60%;
}

main #ultimo {
  font-size: 2vw;
  line-height: 2.8vw;
}


@keyframes expandirAltura {
  from {
    height: 100vh;
  }

  to {
    height: 0vh;
  }
}


@keyframes Desaparecer {
  from {
    height: 50vh;
    opacity: 1;
  }

  to {
    height: 0vh;
    opacity: 0;
  }
}

input[type="checkbox"] {
  display: none;
}

.conteudo-oculto {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

input[type="checkbox"]:checked~.conteudo-oculto {
  max-height: 100%;
   transition: max-height 0.5s ease;
}

label {
  display: inline-block;
  padding: 2% 5% 2% 5%;
  background-color: black;
  color: #ffffff;
  cursor: pointer;
}

.conteudo-oculto #ultimo {
  opacity: 0;
  transition: opacity 0.5s ease;
}

input[type="checkbox"]:checked~.conteudo-oculto #ultimo {
  opacity: 1;
}

.botao{
  width: 100%;
  text-align: center;
  margin: 5% 0 5% 0;
  font-size: 2vw;
}

.botao label::after {
  content: 'Leia mais';
}

#leia-mais-toggle:checked ~ .botao label::after {
  content: "Leia menos";
}
