:root {
  --primary-blue: #242482;
  --secondary-blue: #33339e;
  --tertiary-blue: #4b4b93;
  --header-text-color: white;
}

body, html {
  margin: 0;
  padding: 0;
}

/* NAVIGATION */

nav {
  background: var(--primary-blue);
}

nav ul {
  margin: 0;
  list-style: none;
}

nav #contact {
  margin-right: 40px;
}

nav li {
  display: inline-block;
  padding: 10px;
  font-family: 'Open Sans', sans-serif;
}

nav a {
  color: var(--header-text-color);
  text-decoration: none;
}

nav {
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
}

#contact i {
  margin-right: 5px;
}

nav #name {
  border: 1px solid white;
  display: inline-block;
  color: var(--header-text-color);
  background: var(--secondary-blue);
}

#mobile-menu-button {
  display: none;
  border: 1px solid white;
  color: var(--header-text-color);
  background: var(--secondary-blue);
}

#mobile-menu {
  position: fixed;
  z-index: 2;
  top: 0;
  right: -100%;
  width: 50%;
  height: 100%;
  background: var(--tertiary-blue);
  transition: right 200ms;
  padding-top: 10px;
}

#mobile-menu-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
  
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

#mobile-menu hr {
  width: 80%;
  margin: 0 auto;
  opacity: 0.8;
}

#mobile-menu li {
  display: block;
}

@media (max-width: 530px) {
  nav {
    display: block;
  }

  nav ul {
    margin: 0;
    padding: 0;
    text-align: center;
  }

  nav #name {
    box-sizing: content-box;
    margin: 0 auto;
    text-align: center;
    flex-grow: 90;
    margin-right: 10px;
  }

  nav #contact {
    display: none;
  }

  #nav-primary {
    display: flex;
    width: 90%;
    margin: 0 auto;
    justify-content: space-between;
  }
  
  nav #resume {
    display: none;
  }

  nav #mobile-menu-button {
    flex-grow: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
    font-size: 20px;
  }

  .mobile-menu-active {
    right: 0 !important;
  }

  .mobile-menu-active + #mobile-menu-backdrop {
    opacity: 1;
    pointer-events: all;
  }
}

@media (max-width: 850px) {
  nav ul#contact .contact-text {
    display: none;
  }
}

/* HEADER */

header {
  color: var(--header-text-color);
  background: var(--primary-blue);
}

header {
  height: 200px;
}

header h1 {
  color: var(--header-text-color);
  font-family: 'PT Serif', sans-serif;
  text-align: center;
  width: 100%;
  top: 100px;
  padding: 0;
  margin: 0;
  font-weight: 200;
  font-size: 50px;
  position: absolute;
}

header canvas {
  max-height: 200px !important;
}


main {
  margin: 0 auto;
  margin-top: 30px;
  /* padding: 0 100px; */
  width: 80%;
  font-size: 25px;
  line-height: 1.3;
  font-family: 'PT Serif', serif;
  max-width: 1000px;
}

main a {
  color: black;
}

main a:hover {
  color: var(--secondary-blue);
}

iframe {
  width: 100%;
  height: 500px;
}