::selection {
  color: white;
  background: rgba(0, 0, 255, 0.99);
}

::placeholder {
  opacity: 1;
  color: black;
}

@font-face {
  font-family: 'ManifontGrotesk';
  src: url('fonts/ManifontGroteskBook-webfont.woff') format('woff');
  font-display: swap;
  font-weight: 300;
}

@font-face {
  font-family: 'ManifontGrotesk';
  src: url('fonts/ManifontGroteskBookItalic-webfont.woff') format('woff');
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: 'ManifontGrotesk';
  src: url('fonts/ManifontGroteskBookDot-webfont.woff') format('woff');
  font-display: swap;
  font-weight: 500;
}

@font-face {
  font-family: 'ManifontGrotesk';
  src: url('fonts/ManifontGroteskBold-webfont.woff') format('woff');
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: 'ManifontGrotesk';
  src: url('fonts/ManifontGroteskBoldItalic-webfont.woff') format('woff');
  font-display: swap;
  font-weight: 800;
}

* {
  box-sizing: border-box;
}

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

body {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  padding: 1em;
  font-family: 'Arial';
  font-size: 18px;
  overflow: hidden;
  color: black;
  background: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin: 0;
  padding: 0;
  word-break: break-all;
}

a, a:visited {
  color: initial;
  text-decoration: none;
}

a:hover {
  filter: blur(1.5px);
}

textarea {
  width: 100%;
  margin: 0;
  padding: 0.4em 0 0.2em 0;
  font-family: 'ManifontGrotesk';
  font-size: 7em;
  font-weight: 300;
  text-align: center;
  font-variant-ligatures: none;
  border-radius: 1000px;
  line-height: 1;
  border: 0;
  z-index: 1;
}

textarea:focus {
  outline: none;
  box-shadow: 0em -0.05em 0.2em rgba(0, 0, 0, 0.2);
  z-index: 10;
}

textarea.full {
  height: 80vh;
  padding: 0 0.5em;
  text-align: left;
  border-radius: 0;
}

textarea.info {
  padding: 0 1.5em;
  font-size: 2em;
}

textarea.full:focus, textarea.info:focus {
  box-shadow: none;
  z-index: 1;
}

.invert {
  filter: invert(100) blur(3px);
  background: black;
}

.controls {
  display: flex;
  margin: 1em 0 0 0;
}

.controls input {
  width: 18px;
  height: 18px;
  margin: 0 5px 0 0;
  /* transform: scale(2); */
}

.side {
  position: absolute;
  padding: 1rem 4rem;
  text-align: center;
  background: white;
  box-shadow: 0em -0.05em 0.2em rgba(0, 0, 0, 0.2);
  z-index: 3;
}

#top {
  top: 0;
  left: 0;
  width: 100vw;
}

#right {
  bottom: -3rem;
  right: 0;
  width: 100vh;
  transform: rotate(90deg);
  transform-origin: top right;
}

#bottom {
  bottom: 0;
  width: 100vw;
}

#left {
  bottom: -3rem;
  left: 0;
  width: 100vh;
  transform: rotate(-90deg);
  transform-origin: top left;
}

.switch {
  position: absolute;
  width: 1em;
  height: 1em;
  z-index: 5;
  border: 2px solid black;
  border-radius: 100px;
  cursor: pointer;
}

.switch:hover {
  background: black;
}

.switch.active {
  background: black;
}

#switch-invert {
  bottom: 1em;
  right: 1em;
}

#switch-show-full {
  bottom: 1em;
  left: 1em;
}

#switch-context {
  top: 1em;
  left: 1em;
}

#switch-info {
  top: 1em;
  right: 1em;
}

#context {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  z-index: 4;
}

#context.show {
  display: flex;
}

#context img {
  max-height: 100vh;
  box-shadow: 0em -0.05em 0.2em rgba(0, 0, 0, 0.2);
}

#context img:first-of-type {
  margin: 0 1em 0 0;
}

@media screen and (max-width: 600px) {
  body {
    font-size: 13px;
  }

  textarea {
    font-size: 2em;
  }

  #context img {
    max-width: 45vw;
  }
}
