@import "_reset.css";

:root {
  --fontcolor: black;
  --backgroundcolor: white;
  --susanfont: "Replica", Helvetica, sans-serif, serif;
  --fontsizenav: 3.8vw;
  --fontsizetext: 0.8em;
  --lineheight: 108%;
  --hover-color: attr(data-color);
  --susan-color: #457a00;
  --active-color: rgb(169, 169, 169);
  --kreissizesmall: 40px;
  --kreissizebig: 1200px;
  --padding: 20px;
}

@font-face {
  font-family: "Replica";
  src: url("/assets/font/ReplicaLLWeb-Regular.woff") format("woff");
}

@font-face {
  font-family: "Replica";
  src: url("/assets/font/ReplicaLLWeb-Regular.woff2") format("woff2");
}

::-moz-selection {
  background: var(--active-color);
  color: white;
}

::selection {
  background: var(--active-color);
  color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--susanfont);
  font-size: var(--fontsizenav);
  line-height: var(--lineheight);
  background-color: var(--backgroundcolor);
  color: var(--fontcolor);
  overflow: scroll;
  -webkit-font-feature-settings: 'liga' on;
          font-feature-settings: 'liga' on;
}

header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding-top: var(--padding);
  padding-left: var(--padding);
  padding-right: var(--padding);
}

#susan:hover,
#susan.active {
  color: var(--susan-color);
}

.link.filter {
  color: inherit;
}

.link.filter:hover,
.link.filter.hovered-from-kreis {
  color: var(--hover-color);
}

.link.filter.active,
.link.filter.active:hover {
  color: var(--active-color);
}

.menu ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  width: 100%;
  -webkit-column-gap: 0.2em;
     -moz-column-gap: 0.2em;
          column-gap: 0.2em;
  list-style: none;
}

.menu li:nth-child(3) span {
  display: none;
}

nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

nav h1 {
  text-decoration: underline;
}

a {
  text-decoration: none;
  color: black;
}

a:hover,
a.active,
button:hover,
button.active {
  color: var(--active-color);
}

main {
  padding-top: 0.75em;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  min-height: calc(100vh - 2.5em);
}

footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  font-size: 18px;
  text-align: left;
  line-height: var(--lineheight);
  padding: var(--padding);
}

.projects {
  margin-left: var(--padding);
  margin-right: var(--padding);
}

.projects.initial li {
  opacity: 0;
  pointer-events: none;
}

figure {
  display: table;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  max-width: 100%;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}

figcaption {
  display: table-caption;
  caption-side: bottom;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  color: black;
  padding-top: 0.3em;
  font-size: 12px;
  line-height: var(--lineheight);
  text-align: left;
}

.kreis {
  position: fixed;
  display: inline-block;
  width: var(--kreissizesmall);
  height: var(--kreissizesmall);
  border-radius: 50%;
  -webkit-transform: translate(-50%, -50%) !important;
      -ms-transform: translate(-50%, -50%) !important;
          transform: translate(-50%, -50%) !important;
  mix-blend-mode: multiply !important;
  pointer-events: all;
  opacity: 1;
  visibility: visible;
  -webkit-transition: width 2s ease-in-out, height 2s ease-in-out, left 2s ease-in-out,
    top 2s ease-in-out;
  -o-transition: width 2s ease-in-out, height 2s ease-in-out, left 2s ease-in-out,
    top 2s ease-in-out;
  transition: width 2s ease-in-out, height 2s ease-in-out, left 2s ease-in-out,
    top 2s ease-in-out;
  will-change: transform, opacity, top, left;
  z-index: 500;
}

.kreis[style*="visibility: hidden"] {
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
  pointer-events: none;
}

.kreis.small {
  width: var(--kreissizesmall);
  height: var(--kreissizesmall);
}

.kreis.big {
  width: var(--kreissizebig);
  height: var(--kreissizebig);
  z-index: 999;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  pointer-events: none;
}

.kreis.link.filter.active {
  pointer-events: all;
}

.kreis.small:hover,
.kreis.active {
  -webkit-transition: width 0.2s ease, height 0.2s ease;
  -o-transition: width 0.2s ease, height 0.2s ease;
  transition: width 0.2s ease, height 0.2s ease;
  width: 50px !important;
  height: 50px !important;
}

iframe {
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 800px) {
  :root {
    --fontsizenav: 26px;
    --fontsizetext: 18px;
    --lineheight: 112%;
    --kreissizesmall: 40px;
    --kreissizebig: 120vw;
    --padding: 12px;
  }
}