body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  color: white;
}

.main-grid {
  height: 100vh;
  display: grid;

  grid-template-columns: 1fr repeat(5, 1fr) 1fr;
  grid-template-rows: 80px repeat(5, 1fr);
}

/* header / nav */
header {
  position: sticky;
  grid-column: 1 / -1;
  grid-row: 1 / span 1;
}

nav {
  font-family: "Lobster", cursive;
  color: #da0033;
  display: flex;
  flex-direction: row;
  height: 80px;
}

nav h1 {
  margin: auto 0;
  font-size: 30px;
  padding-left: 40px;
}

nav h1:hover {
  cursor: pointer;
}

nav i {
  margin: auto 0 auto auto;
  padding-right: 40px;
  font-size: 30px;
}

nav i:hover {
  cursor: pointer;
}

/* main content */
.content {
  display: flex;
  position: relative;
  grid-column: 3 / 6;
  grid-row: 3 / 6;
}

.content h2 {
  font-size: 40px;
  font-weight: 600;
  margin-top: 0;
  text-align: center;
}

.content p {
  font-size: 20px;
  text-align: center;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: absolute;
  z-index: 2;
}

.content-wrapper-wrapper {
  max-width: 500px;
  min-width: 350px;
}

/* CTA button */
a {
  text-align: center;
  color: white;
  font-size: 25px;
  text-decoration: none;
  padding: 15px 30px;
  background: #bc002d;
  border-radius: 50px;
  display: block;
  cursor: pointer;
  min-width: 250px;
  margin-top: 100px;
  transition: 1s;
}

a:hover {
  background: #be1a40;
  transform: scale(1.2);
}

/* translucent background */
.overlay-dark {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2 / -1;
}

.overlay-dark-child {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.808);
  z-index: 1;
}

/* background images */
.img-container {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2 / -1;
  background: rgb(255, 255, 255);
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.img-container img {
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* rotating images */
.img-container img:nth-child(1) {
  animation: fade1 20s infinite;
}
.img-container img:nth-child(2) {
  animation: fade2 20s infinite;
}
.img-container img:nth-child(3) {
  animation: fade3 20s infinite;
}
.img-container img:nth-child(4) {
  animation: fade4 20s infinite;
}
.img-container img:nth-child(5) {
  animation: fade5 20s infinite;
}

@keyframes fade1 {
  0% {
    opacity: 1;
  }
  20% {
    opacity: 0;
  }
  40% {
    opacity: 0;
  }
  60% {
    opacity: 0;
  }
  80% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade2 {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
  60% {
    opacity: 0;
  }
  80% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fade3 {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  80% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fade4 {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0;
  }
  40% {
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  80% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fade5 {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0;
  }
  40% {
    opacity: 0;
  }
  60% {
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
