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

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: center no-repeat url(./assets/images/ocean.jpg);
  background-size: cover;
  font-family: 'Raleway', 'sans-serif';
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  align-items: center;
  height: 100vh;
}
header {
  background-color: rgb(255, 255, 255, 0.3);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 5px;
  width: 100%;
  padding: 0 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  align-items: end;
  gap: 1em;
  font-size: 1em;
}
a {
  text-decoration: none;
  cursor: pointer;
}
.icon-links {
  color: rgb(28, 27, 65);
  font-size: 1.3em;
}
.icon-links:hover {
  color: rgb(17, 92, 145);
  font-size: 1.4em;
}

.hero-container {
  width: 100%;
  position: absolute;
  top: 23em;
  padding: 0 5em;
}
.hero-header {
  color: rgb(240, 246, 255);
  letter-spacing: 3px;
  font-size: 3em;
  font-weight: 600;
  margin-top: 1.5em;
}
button {
  padding: 13px 20px;
  border: none;
  font-size: 1.2em;
  background-color: white;
  color: rgb(62, 60, 60);
  letter-spacing: 1px;
  font-weight: 700;
  margin-top: 1em;
  cursor: pointer;
}
button:hover {
  opacity: 0.8;
  color: #000;
}

/* SLIDESHOW */
#slideshow-container {
  width: 100%;
  padding: 2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#slideshow {
  overflow: hidden;
  height: 510px;
  width: 728px;
  margin: 0 auto;
  margin-top: 1em;
}

.slide-wrapper {
  width: 2912px;
  -webkit-animation: slide 18s ease infinite;
}

.slide {
  float: left;
  height: 510px;
  width: 728px;
}

.slide:nth-child(1) {
  background: #fff;
}

.slide:nth-child(2) {
  background: #fff;
}

.slide:nth-child(3) {
  background: #000;
}

.slide:nth-child(4) {
  background: #000;
}

.slide-number {
  color: #000;
  text-align: center;
  font-size: 10em;
}
.slideshow-image {
  max-width: 100%;
  width: 728px;
  height: auto;
  object-fit: cover;
  display: flex;
}

@-webkit-keyframes slide {
  20% {
    margin-left: 0px;
  }
  30% {
    margin-left: -728px;
  }
  50% {
    margin-left: -728px;
  }
  60% {
    margin-left: -1456px;
  }
  70% {
    margin-left: -1456px;
  }
  80% {
    margin-left: -2184px;
  }
  90% {
    margin-left: -2184px;
  }
}

@media (max-width: 771px) {
  .icon-links {
    font-size: 1em;
  }
  .logo {
    width: 13em;
  }
  .hero-container {
    top: 14em;
    padding: 0 2em;
  }
  header {
    padding: 0 .5em;
  }
  .hero-header {
    margin-top: .2em;
    font-size: 2.7em;
    text-align: center;
  }
  main {
    padding: 2em;
  }
  #slideshow {
    width: 300px;
    height: 220px;
  }
  .slideshow-image {
    width: 300px;
  }
}
