* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

.big-icon {
  aspect-ratio: 1/1;
  margin: 12px 0;
  display: block;
  height: 180px;
  width: 180px;
}

.medium-icon {
  aspect-ratio: 1/1;
  margin: 12px;
  display: inline-block;
  height: 120px;
  width: 120px;
}

.medium-icon.smaller {
  height: 95px;
  width: 95px;
}

.pfp {
  aspect-ratio: 1/1;
  height: 4.2em;
  width: 4.2em;
  border-radius: 99px;
  display: block;
  background: #cad5d8;
}

.pfp:hover {
  animation: spin 5000ms linear infinite;
}

section.icons {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav {
  width: 100%;
  max-width: 540px;
  margin: 10px auto 5px auto;
  padding: 12px 15px 10px 15px;
  display: flex;
  align-items: center;
}

nav .left {
  flex: 1;
  display: flex;
  align-items: center;
}

nav .right a {
  margin-left: 10px;
}

main {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 0 15px;
  font-size: 1.2em;
  font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;
  font-weight: normal;
  text-align: justify;
  hyphens: auto;
}

a {
  text-decoration: underline;
  text-decoration-style: dotted;
  color: inherit;
}

nav .right a {
  text-decoration-style: wavy;
}

a:active,
a:hover,
a.active {
  text-decoration-style: solid !important;
}
a.active {
  font-weight: bold;
}

a.lang {
  text-decoration: none;
  border: 1px solid black;
  border-radius: 2px;
  padding: 1px 2px;
  font-size: 90%;
}

.blocked {
  font-size: 0.8em;
  background: black;
  color: black;
}

footer {
  text-align: center;
  padding: 70px 20px 20px 20px;
}

footer p {
  font-size: 0.8em;
}

footer a {
  color: #595959;
}

.badge.sustainable {
  overflow: visible;
  width: 200px;
  max-width: 100%;
}

.badge.sustainable .badge-bg {
  animation: spin 12s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.badge.sustainable text {
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, roboto, noto, arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  font-style: normal;
  fill: #000;
  stroke: none;
}

ul {
  padding-left: 1em;
}

ul.projects {
  padding-left: 0;
}

ul.projects li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.error-page {
  margin: 150px auto 100px auto;
  text-align: center;
}

.error-page h1,
.error-page h3 {
  margin: 0;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width:620px) {
  .medium-icon {
    height: 54px;
    width: 54px;
  }

  .medium-icon.smaller {
    height: 45px;
    width: 45px;
  }

  ul.projects li {
    display: block;
    margin-bottom: 8px;
  }
  .project-desc {
    display: block;
  }
}