html {
  scroll-behavior: smooth;
}
body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
}
@media (min-width: 900px) and (min-height: 700px) {
  body {
    font-size: 1.6em;
  }
}
a {
  color: var(--accent);
}
.topbar {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  background: black;
  color: white;
  box-shadow: 0 0 5px black;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
}
.topbar.past {
  display: flex;
}
.topbar .content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-inline: auto;
  max-width: 1300px;
}
.topbar .content .end {
  display: flex;
  align-items: center;
  gap: 1em;
}
.topbar .content .end .theme-btn {
  appearance: none;
  border: none;
  background: none;
  color: white;
  font-size: 0.8em;
  cursor: pointer;
}
.topbar .content .end a {
  color: white;
}
.header {
  width: 100%;
  position: relative;
  background: black;
}
.header canvas {
  width: 100%;
  height: 85vh;
  min-height: 420px;
}
.header .overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 0;
  margin-inline: auto;
  max-width: 1300px;
  display: flex;
  align-items: end;
}
.header .overlay .content {
  padding: 1em 1em 8vmin 1em;
}
.header .overlay .content .title {
  font-size: 4.2em;
  font-weight: bolder;
  color: white;
}
.header .overlay .content .info {
  width: min-content;
  padding: 1em;
  color: black;
  background: white;
  white-space: nowrap;
}
.intro {
  margin-inline: auto;
  max-width: 1300px;
  padding: 0.5em 0.5em 4em 0.5em;
  padding-bottom: 3em;
}
.intro .about {
  border-bottom: 1px solid var(--front2);
  text-align: center;
  font-size: 1.8em;
  color: var(--front2);
  padding-block: 2em;
}
.section {
  width: 100%;
  margin-inline: auto;
  max-width: 1300px;
  padding: 0.5em;
}
.section > .title {
  font-size: 3em;
  font-weight: bold;
  text-transform: uppercase;
  padding-bottom: 0.5em;
  color: var(--front2);
}
.section.projects {
  display: flex;
  flex-direction: column;
}
.section.projects .project {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
  padding-bottom: 5em;
}
.section.projects .project .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  width: 100%;
}
@media (orientation: landscape) and (min-width: 800px) {
  .section.projects .project .content {
    flex-direction: row;
  }
}
.section.projects .project .content .gallery {
  box-shadow: 0 0 8px -4px var(--shadow);
  width: 100%;
  height: min-content;
  border: 0.3em solid var(--bd3);
}
@media (orientation: landscape) and (min-width: 800px) {
  .section.projects .project .content .gallery {
    width: 50%;
  }
}
.section.projects .project .content .gallery img {
  width: 100%;
  object-fit: cover;
  cursor: pointer;
}
.section.projects .project .content .info {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex-grow: 1;
}
@media (orientation: landscape) and (min-width: 800px) {
  .section.projects .project .content .info {
    width: 60%;
    min-height: 600px;
  }
}
.section.projects .project .content .info .top {
  display: flex;
  flex-direction: column;
  background: var(--box);
  gap: 1em;
  padding: 1em;
  height: 100%;
  width: 100%;
}
.section.projects .project .content .info .top .begin {
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.section.projects .project .content .info .top .begin .title {
  font-size: 2.8em;
  font-weight: bold;
}
.section.projects .project .content .info .top .begin .incomplete {
  border: 1px solid var(--accent);
  border-radius: 0.2em;
  padding: 0.2em 0.5em;
  color: var(--accent);
}
.section.projects .project .content .info .top .description {
  flex-grow: 1;
  font-size: 0.9em;
  color: var(--front2);
}
.section.projects .project .content .info .bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 1em;
  background: var(--box2);
}
@media (orientation: landscape) and (min-width: 800px) {
  .section.projects .project:nth-child(even) .content {
    flex-direction: row-reverse;
  }
}
.section.packages {
  gap: 1em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section.packages .package {
  padding-bottom: 5em;
  width: 100%;
  margin-inline: auto;
  max-width: 1300px;
}
.section.packages .package .content {
  background: var(--box);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1em;
  padding: 1em;
}
.section.packages .package .content .title {
  font-size: 2.8em;
  font-weight: bold;
}
.section.packages .package .content .description {
  font-size: 0.9em;
  color: var(--front2);
}
.section.packages .package .content .links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1em;
}
.technologies {
  display: flex;
  overflow-x: scroll;
  width: 100%;
  gap: 1em;
}
.technologies .technology {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 1em;
  border: 1px solid var(--bd3);
  border-radius: 0.5em;
  padding: 0.2em 0.3em;
}
.technologies .technology .icon {
  font-weight: bold;
  min-height: 1.4em;
  min-width: 1.4em;
  background-size: 110%;
  background-position: center;
  background-image: var(--light);
}
@media (prefers-color-scheme: dark) {
  .technologies .technology .icon {
    background-image: var(--dark);
  }
}
body.dark .technologies .technology .icon {
  background-image: var(--dark);
}
.technologies .technology .bar {
  display: none;
  align-items: center;
  gap: 1em;
  white-space: nowrap;
}
.technologies .technology .bar .name {
  font-size: 0.8em;
}
.technologies .technology .bar .kind {
  font-size: 0.6em;
  font-style: italic;
  color: var(--front2);
}
.technologies .technology:hover .bar {
  display: flex;
}
.contact {
  padding: 0.5em;
  display: flex;
  flex-direction: column;
  margin-inline: auto;
  max-width: 1300px;
  width: 100%;
}
.contact:target {
  border: 1px solid transparent;
}
.contact:target .title {
  color: var(--accent);
}
.contact .title {
  font-size: 1.4em;
  font-weight: bold;
}
.contact .info {
  display: flex;
  flex-direction: column;
}
.contact .info .info-link {
  display: flex;
  align-items: center;
  gap: 1em;
}
.contact .info .info-link .material-icons {
  font-size: 1em;
}
.contact .info .info-link.github .icon {
  width: 1em;
  height: 1em;
  background-size: cover;
  background-image: var(--light);
}
@media (prefers-color-scheme: dark) {
  .contact .info .info-link.github .icon {
    background-image: var(--dark);
  }
}
body.dark .contact .info .info-link.github .icon {
  background-image: var(--dark);
}
.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  color: var(--front2);
  padding: 0.5em;
}
