html,
body {
  background: #171d23;
  color: #95c5d3;
  margin: 0;
  padding: 0;
  height: 100%;
  line-height: 1.7;
  font-family: Helvetica, Arial, sans-serif;
}

/* main container */

#peterned {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  min-width: 320px;
  min-height: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 10px 40px 30px;
  background: #1d252c;
  box-shadow: 5px 5px 40px rgba(0, 0, 0, 0.15);
}

/* menu */

#menu {
  display: block;
  margin: 0 0 2em;
}

#menu ul,
#menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#menu ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#menu li a {
  display: block;
  padding: 10px 20px;
  border-bottom: 3px solid transparent;
}

#menu li a.active {
  border-bottom-color: #debf78;
}

/* article styles */

@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translate3d(20px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

article {
  margin-bottom: 2em;
}

article.active {
  display: block;
  animation: slide-in 0.2s ease-out;
}

article.inactive {
  display: none;
}

/* blink */

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.caret {
  animation: blink 1s step-start infinite;
}

/* content styles */

h1,
h2 {
  font-family: "Courier New", Courier, monospace;
  font-weight: normal;
  margin: 1rem 0;
}

h1 {
  font-size: 4em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 2px 5px 20px rgba(0, 0, 0, 0.2);
  margin: 2rem 0;
}

h2 {
  color: #ebbf83;
}

p {
  margin: 1.5em 0;
}

strong {
  color: #e27e8d;
  font-weight: normal;
}

a {
  color: #68a1f0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.photo {
  display: block;
  max-width: 200px;
  float: left;
  margin: 0 30px 20px 0;
  border-radius: 5px;
}

.skills li {
  margin-bottom: 0.5em;
}

/* footer */

footer {
  display: flex;
  margin: auto 0 1em;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

footer h2 {
  display: none;
}

.button {
  display: block;
}

.button img {
  height: 32px;
}

/* mobile exceptions */

@media only screen and (max-width: 480px) {
  h1 {
    font-size: 3em;
  }

  .photo {
    float: none;
    margin: 0 auto 20px;
  }

  .caret {
    display: none;
  }
}
