@media screen and (max-width: 500px) {
  #header h {
    font-size: 30px;
  }
  #header p {
    font-size: 30px;
  }

  #nav li {
    font-size: 30px;
  }
  #centerpiece {
    text-align: center;
    position: relative;
    top: 40%;
    transform: translateY(-50%);
  }
  body {
    height: 100vh;
  }
  #ruler {
    font-size: 30px;
  }
}

@media screen and (min-width: 500px) {
  #header h {
    font-size: 5vw;
  }
  #header p {
    font-size: 5vw;
  }

  #nav li {
    font-size: 4vw;
  }

  #centerpiece {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    cursor: default;
    color: black;
    text-align: left;
  }

  #ruler {
    font-size: 5vw;
  }
}

.main-body {
  text-align: left;
  margin: 0;
  background-color: white;
  -webkit-transition: 500ms all;
  -moz-transition: 500ms all;
  transition: 500ms all;
}

#first {
  font-family: 'Playfair Display', sans-serif;
  -webkit-transition: 500ms all;
  -moz-transition: 500ms all;
  transition: 500ms all;
}

#first:hover {
  color: white;
  background-color: black;
}

#desc {
  font-family: 'Playfair Display', sans-serif;
}

#header p {
    margin: 0px;
    padding-bottom: 20px;
}

#title {
  color: red;
  border-bottom-style: solid;
  border-bottom-color: black;
}

#nav {
    list-style-type: none;
    padding: 0;
    display: inline-flex;
    margin: 0;
}

#loading {
  height: 3px;
  background-color: black;
  width: 0px;
  border-radius: 4px;
  margin-left: 2px;
  -webkit-transition: 100ms all;
  -moz-transition: 100ms all;
  transition: 100ms all;
}

#ruler {
    font-family: 'Playfair Display', sans-serif;
    position: absolute;
    visibility: hidden;
    height: auto;
    width: auto;
    white-space: nowrap; /* Thanks to Herb Caudill comment */
}

footer li {
   padding-right: 10px;
   font-family: 'Playfair Display', sans-serif;
}

footer li a {
  text-decoration: none;
  color: black;
	-webkit-transition: 400ms all;
  -moz-transition: 400ms all;
  transition: 400ms all;
}
footer li a:hover {
  color: red;
}
