html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 1em;
  font-family: "Arial";
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  box-sizing: border-box;
  --primary: rgb(0, 0, 255);
  --secondary: rgb(255, 255, 255);
  --focus: rgb(0, 0, 0);
  display: flex;
  width: 100%;
  line-height: 1;
  color: var(--secondary);
  background: var(--secondary);
  height: 100vh;
  overflow: hidden;
  padding: 0.8em 0.8em 0 0.8em;
  gap: 0.5em;
}

.dark {
  --primary: rgb(0, 0, 255);
  --secondary: rgb(0, 0, 0);
  --focus: rgb(255, 255, 255);
}

.contrast {
  filter: saturate(0) contrast(100);
}

.contrast-dark {
  --primary: rgb(255, 255, 255);
  --secondary: rgb(0, 0, 0);
  --focus: rgb(255, 255, 255);
  filter: saturate(0) contrast(100);
}

::selection {
  color: var(--secondary);
  background-color: var(--focus);
}

p {
  margin: 0;
}

a {
  display: table;
  text-decoration: none;
  color: var(--primary);
  text-decoration: none;
}

#left {
  display: flex;
  flex-flow: column nowrap;
  width: 360px;
  padding-bottom: 0.8em;
  gap: 0.5em;
}

#about {
  color: var(--secondary);
  border-radius: 1em;
  border: 1px solid var(--primary);
  background: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1em;
  cursor: default;
}

#about:hover {
  filter: blur(1px) contrast(10000);
  transition: filter 2s;
}

.cv-container {
  display: flex;
  border: 1px solid var(--primary);
  border-radius: 1em;
  background-color: var(--secondary);
  cursor: default;
}

.cv {
  color: var(--primary);
  padding: 1em;
  width: 100%;
}

.cv-date {
  display: flex;
  justify-content: space-between;
}

.cv-degree {
  display: flex;
  justify-content: space-between;
}

.spacer-cv {
  width: 100%;
  height: 1em;
  border-bottom: solid 1px;
  margin-bottom: 0.7em;
}

.spacer {
  display: flex;
  flex: 1;
  border-radius: 1em;
  background-color: var(--primary);
}

.spacer-right {
  display: flex;
  flex: 1;
  border-radius: 1em;
  background-color: var(--primary);
  overflow: hidden;
  margin-top: 0.5em;
}

.spacer-right-i {
  display: flex;
  flex: 1;
  border-radius: 1em;
  border: 1px solid var(--primary);
  background-color: var(--secondary);
  overflow: hidden;
}

.single-row {
  color: var(--primary);
  background: var(--first);
  display: flex;
  gap: 0.5em;
}

.pill {
  border: 1px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
  border-radius: 1em;
  padding: 0.5em 1em 0.5em 1em;
  display: flex;
  justify-content: center;
  text-align: center;
  max-height: 1em;
  white-space: nowrap;
  overflow: hidden;
  flex-grow: 1;
}

.darkmode {
  border: 1px solid var(--primary);
  border-radius: 99999px;
  background-color: var(--primary);
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.5s;
  height: 32px;
  width: 32px;
}

.darkmode:hover {
  background: var(--focus);
  border: 1px solid var(--focus);
}

.contrastmode {
  height: 32px;
  width: 32px;
  border: 1px solid var(--primary);
  border-radius: 99999px;
  background-color: var(--primary);
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.5s;
}

.contrastmode:hover {
  background: var(--focus);
  border: 1px solid var(--focus);
}

.pill:hover {
  background: var(--primary);
  color: var(--secondary);
}

.pill:hover a {
  color: var(--secondary);
}

.pill-i {
  color: var(--secondary);
  background-color: var(--primary);
  border: 1px solid var(--primary);
  cursor: pointer;
  border-radius: 1em;
  padding: 0.5em;
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.pill-i a {
  color: var(--secondary);
}

.pill-i:hover {
  border: 1px solid var(--primary);
  background: var(--secondary);
  color: var(--primary);
  /* filter: blur(1px) contrast(10000);
  transition: filter 5s; */
}

.pill-i:hover a {
  color: var(--primary);
}

.pill-b {
  border: 1px solid var(--primary);
  color: var(--secondary);
  background-color: var(--primary);
  cursor: default;
  border-radius: 1em;
  padding: 0.5em 1em 0.5em 1em;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  text-align: center;
  max-height: 1em;
  white-space: nowrap;
  overflow: hidden;
}

.entry-headline {
  display: flex;
  gap: 0.5em;
  border-radius: 1em;
  font-size: large;
}

.entry-container {
  flex-direction: column;
  gap: 1em;
  display: none;
}

.entry-container-active {
  display: flex;
  z-index: 10;
  cursor: default;
}

.t {
  display: flex;
  gap: 0.5em;
  font-size: large;
}

.d {
  flex: 1;
  font-size: large;
  display: flex;
  flex-direction: column;
  gap: 1em;
  /* min-width: 400px; */
}

.i {
  display: flex;
  gap: 2em;
}

.m {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  font-size: large;
}

.f {
  font-size: small;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.f p a {
  display: inline;
}

.ex {
  display: flex;
  flex-direction: column;
  font-size: small;
}

.exhibitions {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  border-top: 1px solid var(--primary);
  padding-top: 0.5em;
}

#right {
  flex: 1;
}

#categories-container {
  display: flex;
  justify-content: space-around;
  overflow: hidden;
  height: 100%;
  width: 100%;
  gap: 0.5em;
}

.category-collumn {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  flex: 0 1 auto;
  width: 25%;
}

.active-category-collumn {
  width: 50%;
}

.collapsible {
  border: 1px solid var(--primary);
  border-radius: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding: 1em 1em 1em 1em;
}

.collapsible:hover {
  color: var(--focus);
  cursor: pointer;
  border: 1px solid var(--focus);
}

.collapsible-active {
  padding: 1em 1em 1em 1em;
}

.collapsible-active:hover {
  color: var(--primary);
  cursor: pointer;
  border: 1px solid var(--primary);
}

.entry-list {
  color: var(--primary);
  background-color: var(--secondary);
  /* padding: 1em; */
  cursor: default;
  overflow: hidden;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding-bottom: 0.8em;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.entry-list::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.entry-list {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* .proj {
  padding: 0 0.5em 0.5em 0.5em;
} */

.overlay {
  width: 150px;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    var(--secondary) 100%
  );
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 1em;
}

.img-container {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.interactive-frame {
  position: relative;
  width: 100%;
  height: clamp(360px, 65vh, 760px);
  box-sizing: border-box;
  border-radius: 1em;
  overflow: hidden;
  clip-path: inset(0 round 1em);
  /* Keep composited iframe canvases inside rounded corners in WebKit. */
  -webkit-mask-image: linear-gradient(#fff, #fff);
  mask-image: linear-gradient(#fff, #fff);
  isolation: isolate;
  flex-shrink: 0;
  background: #fff;
}

/* Paint above the iframe: its composited canvas can cover an ancestor border. */
.interactive-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid var(--primary);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.interactive-media {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  clip-path: inset(0 round 1em);
}

.media-row {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}

.media-row .img-container,
.media-row .videos {
  flex: 1;
  min-width: 0;
}

@media only screen and (max-width: 630px) {
  .media-row {
    flex-direction: column;
  }
}

.img-container img {
  flex: 1 1 200px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1em;
}

video {
  flex: 1 1 200px;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1em;
}

.description {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.exh-row {
  margin-bottom: 0.5em;
}

#c-list {
  display: none;
}

#t-list {
  display: none;
}

.teaching-entry {
  display: flex;
  gap: 0.5em;
  align-items: center;
}

.teaching-headline {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.teaching-group {
  display: flex;
  flex-direction: column;
  gap: 1em;
  border: 1px solid var(--primary);
  border-radius: 1em;
  padding: 1em;
}

.teaching-year {
  display: flex;
  gap: 0.5em;
  border-radius: 1em;
  font-size: large;
}

.teaching-type {
  font-size: small;
  background-color: var(--primary);
  padding: 0.5em 1em;
  color: var(--secondary);
  border-radius: 1em;
}

.teaching-entry-right {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

#currently {
  border: 1px solid var(--primary);
  border-radius: 1em;
  padding: 1em;
}

.mobile-menu {
  display: none;
}

@media only screen and (max-width: 1500px) {
  #categories-container {
    flex-direction: column;
    height: auto;
  }
  .i {
    flex-direction: column;
  }
  #right {
    padding-bottom: 0.8em;
    overflow-y: scroll;
  }

  .category-collumn {
    width: 100%;
  }
}

@media only screen and (max-width: 630px) {
  body {
    flex-direction: column;
    height: auto;
    overflow-y: scroll;
  }

  #left {
    width: 100%;
    padding-bottom: 0;
  }
  #categories-container {
    flex-direction: column;
  }
  .i {
    flex-direction: column;
  }

  #right {
    overflow: hidden;
  }

  .menuitem {
    display: none;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    border-bottom: 3px dotted var(--primary);
    gap: 0.5em;
    padding-bottom: 1em;
  }

  .screen-categories {
    gap: 0 !important;
    padding-top: 1em;
  }
}
