/* Overall Text */
html,
body {
  margin: 0;
  height: 100%;
  background: black;
}

h3, p {
  font-family: 'Space Mono', monospace;
  margin: 0;
  padding: 0;
  font-size: 14px;
  margin-bottom: 15px;
}

h3 {
  font-size: 18px; 
  letter-spacing: .075em; /* Adjust as needed */
  margin-bottom: 10px;
  visibility: hidden;
}

h1 {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: 80px;
  font-weight: 300;
  padding-top: 25vh;
  margin-bottom: 30px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Overall Links */

a {
  font-family: 'Space Mono', monospace;
  color: white;
  text-decoration: none;
  font-size: 12px;
  color: #777;
}

a:hover {
  color: #fff;
  text-decoration: none;
}
a.active {
  color: #fff;
  text-decoration: none;
}

/* Left hand nav */

header {
  position: fixed;
  left: 20px;
}

.anchor-nav {
  display:flex;
  flex-direction: column;
  height: 100vh;
}

.anchor-nav a {
  flex-grow: 1;
  display:flex; 
  align-items:center;
  border-bottom:1px solid #777;
}

.anchor-nav a:last-child {
  border-bottom:none;
}


/* Prev/Next Buttons */

.local-nav .js-prev {
  position: fixed;
  left: 90vw;
  top: 60vh;
  align-items: center;
}

.local-nav .js-next {
  position: fixed;
  right: 5vw;
  bottom: 10vh;
  align-items: center;
  z-index: 1000;
}

.js-prev, .js-next {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.fa {
  width: 24px;
  opacity: 0.4;
  transition: 0.5s;
  animation: MoveUpDown 2s linear infinite;
}

.fa:hover {
  opacity: 1.0;
}


@keyframes MoveUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}


/* CONTENT SECTIONS */

section {
  display: flex;
/*   justify-content: center; */
  align-items: center;
  text-align: center;
  color: #EFEFEF;
  flex-direction: column;
}

.hero {
	height:100vh;
  background-color: #000;
  background-image: url('glitch-assets/trip_to_moon2.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.footer {
	height:90vh;
  background-color: #000;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url('glitch-assets/sunrise.gif');
}

.white {
	background-color: #fff;
}

.black {
 background-color: #000;
 padding-top: 5vh;
 padding-bottom: 20vh;
}

#section-1, #section-10 {
  padding-bottom: 70vh; /*small sections */
}

#section-1 {
  padding-top: 40vh;
  padding-bottom: 50vh;
}

.box {
/*   margin-left: 10vw; */
  width: 50vw;
/*   padding-left: 100px; */
  text-align: left;
  padding-bottom: 35vh;
}

.box .data {
  width: 50vw;
  margin-top: 20px;
}

.box p {
  margin-top: 25px;
  margin-bottom: 25px;
  line-height: 24px;
}

img {
  margin-top: 10px;
  margin-bottom: 10px;
}

.title-text {
  width: 40vw;
}

/* Typewriter Animation */

.typewriter {
  visibility: visible;
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: .15em solid #8FCA54; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  animation: 
    typing 3.5s steps(40, end),
    blink-caret .75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #8FCA54; }
}

@media (max-width: 768px) {
  h1 {
    font-size: 40px;
    padding-top: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  
    .hero {
    justify-content: center;
  }

  .anchor-nav {
    display: none !important;
  }

  .box {
    width: 85vw;
  }

  .box .data {
    width: 85vw;
  }

  .title-text {
    width: 85vw;
  }

  h3 {
    font-size: 15px;
    letter-spacing: 0;
  }

  #section-1 {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 100vh;
    justify-content: center;
  }

  #section-1 .box {
    padding-bottom: 0;
  }
}