body {
  margin: 0;
  padding: 0;
  font-family: "Poppins";
}

nav,
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem;
}

.logo {
  width: 180px;
  cursor: pointer;
  z-index: 3;
}

ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

ul li {
  margin-right: 20px;
}

ul li a {
  color: black;
  text-decoration: none;
  transition: color 0.3s;
}

ul li a:hover {
  color: rosybrown;
}

.checkbtn {
  font-size: 28px;
  color: black;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

.nav-button {
  border-style: solid;
  display: block;
  width: 75px;
  background: linear-gradient(rgb(42, 0, 0), rgb(128, 0, 0));
  padding: 12px;
  text-align: center;
  border-radius: 10px;
  line-height: 25px;
}

footer {
  color: maroon;
  font-size: 16px;
}

.socials {
  align-items: center;
  width: 50px;
  cursor: pointer;
}

.info {
  display: flex;
  align-items: center;
  margin: 0 220px 150px 220px;
}

.pic {
  width: 90%;
}

.pic img {
  width: 100%;
}

.caption {
  margin-left: -200px;
  background-color: maroon;
  padding: 60px;
  color: white;
  width: 50%;
}

.caption-left {
  margin-right: -200px;
  background-color: maroon;
  padding: 60px;
  color: white;
  width: 50%;
  z-index: 1;
}

.anim > h1 {
  text-align: center;
  margin-bottom: 80px;
  font-size: 56px;
}

.anim {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  animation: moveup 0.5s linear forwards;
}
@keyframes moveup {
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

a {
  color: maroon;
}

span {
  color: white;
}

@media (max-width: 900px) {
  .checkbtn {
    display: block;
    order: 1;
    margin-right: 20px;
    z-index: 3;
  }

  nav ul {
    position: fixed;
    top: 0px;
    right: -100%;
    background-color: maroon;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    z-index: 2;
  }

  ul li {
    margin: 20px 0;
  }

  ul li a {
    font-size: 20px;
    color: white;
  }

  #check:checked ~ ul {
    right: 0;
  }

  nav,
  footer {
    margin: 1rem 2rem;
  }

  footer {
    font-size: 14px;
  }

  .socials {
    width: 40px;
  }

  .nav-button {
    width: 85px;
    padding: 15px;
  }

  .info {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 1rem;
    text-align: center;
    flex: 1;
  } 

  .r {
    flex-direction: column-reverse;
  }

  .pic,
  .caption,
  .caption-left {
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 1rem;
    padding: 0rem;
    text-align: center;
    flex: 1;
    border-radius: 20px;
  }

  .caption h1, .caption p, .caption-left h1, .caption-left p{
    padding:1rem
  }

  .anim  > h1 {
    margin: 2rem;
  }
}
