@import url(header.css);
@import url(reset.css);

.body {
  font-family: 'Didact Gothic';
  overflow-x: hidden;
  width: 100%;
  height: 100%;
  background: var(--white);
}

.page-index {
  font-weight: bold;
  text-decoration: underline;
}

.modal {
  position: fixed;
  background-color: var(--footer);
  border: solid 1px white;
  top: 10%;
  padding: 10px;
  opacity: 0;
}

.modal:target {
  opacity: 1;
  pointer-events: auto;
}

.main {
  display: flex;
  flex-direction: column;
  color: black;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--white);
  height: 85%;
  padding-bottom: 3%;
}

.carrosel {
  width: 800px;
  height: 450px;
  margin: 50px auto;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  border-radius: 3%;
}

.carrosel ul {
  display: flex;
  list-style: none;
  width: 4800px;
  height: 450px;
}

.carrosel li {
  position: relative;
  animation: slide 20s infinite ease-out;
}

@keyframes slide {
  0% {
    left: 0px
  }

  15% {
    left: 0px
  }

  20% {
    left: -800px
  }

  35% {
    left: -800px
  }

  40% {
    left: -1600px
  }

  55% {
    left: -1600px
  }

  60% {
    left: -2400px
  }

  75% {
    left: -2400px
  }

  80% {
    left: -3200px
  }

  95% {
    left: -3200px
  }

  100% {
    left: 0px
  }
}

ul li img {
  width: 800px;
  height: 450px;
}

.about {
  margin: 0% 20%;
}

h1 {
  margin-bottom: 3%;
}

@media(max-width:1120px) {
  .carrosel {
    width: 600px;
    height: 350px;
  }

  .carrosel ul {
    width: 3600px;
    height: 350px;
  }

  ul li img {
    width: 600px;
    height: 350px;
  }

  @keyframes slide {
    0% {
      left: 0px
    }

    15% {
      left: 0px
    }

    20% {
      left: -600px
    }

    35% {
      left: -600px
    }

    40% {
      left: -1200px
    }

    55% {
      left: -1200px
    }

    60% {
      left: -1800px
    }

    75% {
      left: -1800px
    }

    80% {
      left: -2400px
    }

    95% {
      left: -2400px
    }

    100% {
      left: 0px
    }
  }
}

@media(max-device-width:710px) {
  .carrosel {
    width: 470px;
    height: 300px;
  }

  .carrosel ul {
    width: 2820px;
    height: 300px;
  }

  ul li img {
    width: 470px;
    height: 300px;
  }

  @keyframes slide {
    0% {
      left: 0px
    }

    15% {
      left: 0px
    }

    20% {
      left: -470px
    }

    35% {
      left: -470px
    }

    40% {
      left: -940px
    }

    55% {
      left: -940px
    }

    60% {
      left: -1410px
    }

    75% {
      left: -1410px
    }

    80% {
      left: -1880px
    }

    95% {
      left: -1880px
    }

    100% {
      left: 0px
    }
  }
}

@media(max-device-width:530px) {
  .carrosel {
    width: 270px;
    height: 200px;
  }

  .carrosel ul {
    width: 1620px;
    height: 200px;
  }

  ul li img {
    width: 270px;
    height: 200px;
  }

  @keyframes slide {
    0% {
      left: 0px
    }

    15% {
      left: 0px
    }

    20% {
      left: -270px
    }

    35% {
      left: -270px
    }

    40% {
      left: -540px
    }

    55% {
      left: -540px
    }

    60% {
      left: -810px
    }

    75% {
      left: -810px
    }

    80% {
      left: -1080px
    }

    95% {
      left: -1080px
    }

    100% {
      left: 0px
    }
  }

  footer a {
    font-size: .8rem;
    margin-bottom: 2%;
  }
}

hr {
  width: 100vw;
  height: 2vh;
  background-color: transparent;
}

.footerText {
  color: black;
}

.footerText:hover {
  font-weight: bold;
}

footer {
  display: flex;
  background-image: linear-gradient(to bottom, #C3DBC2, #edf5ed);
  text-align: center;
  font-size: 1.2vmax;
  justify-content: center;
  height: 7vh;
  align-items: flex-end;
}
