/*splash*/

#splash {
  position: relative;
  margin-bottom: 2rem;
  background-color: var(--red4);
  height: calc(100vh - 3.4rem);
}

#splash-bottom {
  height: 6rem;
  background-color: var(--red3);
  width: 100%;
  position: absolute;
  bottom: 0;
}

#splash svg {
  bottom: 5rem;
  position: absolute;
}

#title,
#tagline {
  color: var(--red1);
  position: absolute;
  text-align: center;
  padding: 0;
  margin: 0;
}

#title {
  width: 95%;
  font-size: 2rem;
  top: 1rem;
  height: 2.3rem;
  left: 2.5%;
}

#tagline {
  top: 5rem;
  width: 90%;
  font-size: 3rem;
  left: 5%;
}

#tagline span {
  max-width: 35ch;
  margin: auto;
  display: block;
}

#splash-button {
  left: 50%;
  bottom: 2.2vw;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: nowrap;
}

#splash-button a {
  margin: 1rem;
}

#splash-button button {
  display: block;
}

@media screen and (max-width: 850px) {
    #splash-bottom {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
    }

    #splash-text {
      padding-top: 2rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }

    #title,
    #tagline {
      /* position: unset; */
      margin-inline: auto;
    }

    #tagline {
      top: 5rem;
      width: 90%;
      font-size: 2rem;
      left: 5%;
    }

    #tagline span {
      max-width: 35ch;
      margin: auto;
      display: block;
    }

    #splash-button {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
      gap: 1rem;
    }

    #splash-button button {
      display: block;
      width: calc(8ch + 1rem);
      border: 1px solid black;
    }
}

/*body*/
#why-top-cards {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.why-top-card {
  max-width: 40vw;
  display: flex;
  margin: 2rem;
}

.why-top-card p {
  margin-right: 2rem;
  max-width: 30vw;
}

.why-top-card svg {
  height: 10rem;
}

#why-bottom {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: center;
}

#why-bottom p {
  max-width: 80ch;
  text-align: center;
}

#why-bottom svg {
  height: 11rem;
  max-width: 90vw;
}

.what-card {
  max-width: 75vw;
  margin: auto;
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

.what-card p {
  font-size: 1.3rem;
}

.what-card svg {
  height: 12rem;
  margin: 2rem;
  max-width: 75%;
}

.center {
  max-width: 70ch;
  text-align: center;
  margin: 3rem auto;
}

#ship {
  margin: 4rem auto;
  max-width: 60vw;
  display: block;
  max-height: 50vh;
}

.small {
  font-size: 1rem;
}

#infolab {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
}

#infolab p {
  max-width: 40ch;
}

#infolab img {
  width: 50vw;
}

#discord {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  margin: 3rem 0;
}

#discord p {
  max-width: 90%;
  margin: 2rem auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

#discord svg {
  height: 1.4rem;
  margin: 0.3rem;
  margin-left: 0.5rem;
}

#bottom-join {
  display: block;
}

#who-join{
  max-width:80ch;
  margin:auto;
  font-size: 1.3rem;
}

.actions{
display:flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: max-content;
  max-width: 100vw;
  margin-inline: auto;
  margin-bottom: 2rem;
}

@media screen and (max-width: 850px) {
  .why-top-card {
    flex-direction: column;
    align-items: center;
    max-width: 60ch;
  }

  .why-top-card p {
    max-width: unset;
    margin-right: unset;
  }

  #why-bottom p {
    max-width: 90vw;
  }

  .what-card {
    flex-direction: column;
  }

  .what-card svg {
    max-width: 80vw;
  }

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

  .center {
    max-width: 90vw;
    margin: 3rem auto;
  }
  #infolab p {
    max-width: 90%;
    margin: 2rem auto;
  }
}

/*------------------------ animation------------*/

@keyframes fadeInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.fade-in-up {
  animation: 3s both fadeInUp;
}
