:root {
  --primaty-color: #5b2d86;
  --secondary-color: #262A29;
}

* {
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  margin: 0;
  text-align: center;
  background-color: var(--secondary-color);
  background-image: url(./img/hero.jpg);
  background-repeat: no-repeat;
  background-position: 50% 60%;
  background-attachment: scroll;
  background-size: cover;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.heading {
  padding-top: 15%;
  color: var(--primary-color);
  display: block;
  font-size: 6em;
  font-weight: normal;
  text-shadow: 0 0 10px var(--secondary-color);
}

.heading-subtext {
  color: var(--secondary-color);
  display: block;
  font-size: .6em;
}

.roller {
  height: 4.125rem;
  line-height: 4rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  color: var(--secondary-color);
}

#spare-time {
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 1rem;
  margin-top: 0;
  color: var(--secondary-color);

}

.lading-navbar {
  font-size: medium;
  color: var(--secondary-color)
}

.roller #rolltext {
  position: absolute;
  top: 0;
  animation: slide 5s infinite;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
}

.flex-item-3 {
  flex: 50%;
}

/* Responsive layout - makes a one column layout (100%) instead of a two-column layout (50%) */
@media (max-width: 800px) {
  .flex-item-3, .flex-item-3, .flex-item-3 {
    flex: 100%;
  }
}

@keyframes slide {
  0% {
    top: 0;
  }

  25% {
    top: -4rem;
  }

  50% {
    top: -8rem;
  }

  72.5% {
    top: -12.25rem;
  }
}

@media screen and (max-width: 600px) {
  h1 {
    text-align: center;
    text-transform: uppercase;
    color: #F1FAEE;
    font-size: 2.125rem;
  }

  .roller {
    height: 2.6rem;
    line-height: 2.125rem;
  }

  #spare-time {
    font-size: 1rem;
    letter-spacing: 0.1rem;
  }

  .roller #rolltext {
    animation: slide-mob 5s infinite;
  }
}

  @keyframes slide-mob {
    0% {
      top: 0;
    }

    25% {
      top: -2.125rem;
    }

    50% {
      top: -4.25rem;
    }

    72.5% {
      top: -6.375rem;
    }
  }
}