@font-face {
  font-family: Quiet-Evening;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Quiet-Evening.ttf);
}

@font-face {
  font-family: FiraCode-Regular;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/FiraCode-Regular.ttf);
}

body {
  font-family: Quiet-Evening;
  font-size: 25px;
  margin: 2em 8%;
  background-image: url(/images/background.webp);
  background-attachment: fixed;
  background-size: cover;
}

div.container {
  background-color: white;
  opacity: 0.8;
  padding: 2em;
  border-radius: 1em;
}

div.container h1 {
  margin-top: 0;
}

a, a.visited {
  cursor: pointer;
  text-decoration: none;
  color: darkslategrey;
}

a:hover {
  color: darkgrey;
}

dl:target {
  background: #eafad7;
}

.light-mode pre code[class*="language-"], .dark-mode pre code[class*="language-"] {
  font-family: FiraCode-Regular;
  font-size: 0.85em;
}

.light-mode .links, .dark-mode .links {
  text-align: center;
}

.links {
  margin-top: 2em;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

@media only screen and (max-width: 600px) {

  .links {
    text-align: center;
  }

  .links svg.icon {
    width: 2.5em;
    height: 2.5em;
  }

}

@page {
  margin: 0mm;
  size: auto;
}

@media print {

  body {
    font-family: Quiet-Evening;
    font-size: 14px;
    margin: 14px;
  }

}

svg.icon {
  width: 2em;
  height: 2em;
  margin: 0 0.25em;
  transition: color 0.4s;
}

svg.icon:hover {
  color: darkgrey;
}

body.profile {
  width: 900px;
  margin: 0 auto;
  padding-top: 3em;
}

body.profile h1.profile-title {
  margin-top: 0;
}

.resume {
  background-image: none;
  margin: 20px;
}

.resume em {
  text-decoration: underline;
  font-style: normal;
}

.resume section > em {
  text-decoration: none;
  font-style: italic;
}

.resume ul {
  padding-left: 1em;
}

.resume h1, .resume h2 {
  margin: 0;
}

.resume h3 {
  margin-bottom: 0.5em;
}

.resume .heading {
  display: flex;
  justify-content: space-between;
}