@import url(https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&display=swap);
@import url(https://use.typekit.net/ifj5wno.css);
:root {
  color-scheme: dark;
  --background-color: light-dark(#cacaca, #0d0d0d);
  --menu-color: light-dark(#9d9de0, rgba(0, 0, 0, 0.65));
  --text-color: light-dark(#0d0d0d, #c2c2c2);
  --title-color: light-dark(#ffffff, #000000);
  --link-color: light-dark(#000000, #ffffff);
  --nav-active-color: light-dark(#000000, #7d7db8);
  --error-color: light-dark(#0d0d0d, #e63d3d);
  --error-border-color: light-dark(#0d0d0d, #8a2525);
  --blog-width: 95vw;

  --strong-color: #8383d8;
  --blog-width: 95vw;
}

:root {
  --header-height: 225px;
  --hero-height: 400px;
  --button-shadow: #14141f;
  --button-light: #52527a;
  --button-dark: #29293d;
  --button-hover-shadow: #29293d;
  --button-hover-light: #58588f;
  --button-hover-dark: #52527a;
  --link-underline: #52527a;
}

@media only screen and (min-width: 1920px) {
  :root {
    --hero-height: calc((100vw - 40px) * 400 / 1920);
  }
}

@media only screen and (max-width: 576px) {
  :root {
    --blog-width: 100vw;
  }
}

@media only screen and (min-width: 1200px) {
  :root {
    --blog-width: 1140px;
  }
}

body {
  margin: 0;
  font-family: Verdana, sans-serif;
  font-size: 1em;
  color: var(--text-color);
  background: var(--background-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  color: var(--link-color);
  text-decoration: underline;
  cursor: pointer;
}

.top-menu {
  width: calc(100vw - 20px);
  background: var(--menu-color);
  display: flex;
  margin-bottom: 1em;
}

.top-menu .content {
  width: var(--blog-width);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  grid-auto-flow: column;
}

.logo {
  cursor: pointer;
  height: 70px;
  width: 220px;
}

.logo img {
  background: -webkit-linear-gradient(
    top,
    var(--button-light) 0%,
    var(--button-dark) 93%,
    var(--button-shadow) 93%,
    var(--button-shadow) 100%
  );
  background: linear-gradient(
    to bottom,
    var(--button-light) 0%,
    var(--button-dark) 93%,
    var(--button-shadow) 93%,
    var(--button-shadow) 100%
  );
  box-shadow: 0px 5px 0px 0px rgba(0, 0, 0, 0.7);
}

.logo img:hover {
  background: -webkit-linear-gradient(
    top,
    var(--button-hover-light) 0%,
    var(--button-hover-dark) 93%,
    var(--button-hover-shadow) 93%,
    var(--button-hover-shadow) 100%
  );
  background: linear-gradient(
    to bottom,
    var(--button-hover-light) 0%,
    var(--button-hover-dark) 93%,
    var(--button-hover-shadow) 93%,
    var(--button-hover-shadow) 100%
  );
}

.navigation-options {
  align-self: stretch;
  margin-left: auto;
  display: grid;
  grid-auto-flow: column;
  align-items: flex-end;
  column-gap: 30px;
}

@media only screen and (max-width: 660px) {
  .navigation-options {
    margin-left: 0;
    margin-right: auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, max-content);
    padding-right: 100px;
  }
}

@media only screen and (max-width: 450px) {
  .navigation-options {
    margin-left: 0;
    margin-right: auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, max-content);
  }
}

.navigation-options > a {
  position: relative;
  text-decoration: none;
  box-sizing: border-box;
  font-family: 'Titillium Web', Arial, Helvetica;
  font-weight: 200;
  font-size: 1rem;
  color: var(--link-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: 300ms ease-in-out;
  margin-top: 10px;
  padding-bottom: 15px;
}

.navigation-options > a:hover,
.navigation-options > a.active {
  color: var(--nav-active-color);
}

.navigation-options > a.active {
  cursor: default;
}

.navigation-options > a::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 0px;
  transition: 300ms ease-in-out;
  background-color: var(--link-underline);
}

.navigation-options > a:hover::after,
.navigation-options > a.active::after {
  top: calc(100% - 5px);
  height: 5px;
}

.auth {
  align-self: center;
}

.identity {
  margin-left: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
}

.auth img {
  border-radius: 50%;
  height: 32px;
  width: 32px;
}

.auth iframe {
  color-scheme: light; /* fixes backgound color bug in dark mode */
}

.instructions {
  margin: 1em;
}

.header {
  font-size: 1.25rem;
  font-family: 'Titillium Web', Arial, Helvetica;
}

.content {
  width: var(--blog-width);
}

.content table {
  border-spacing: 1em;
  margin-left: -1em;
  text-align: center;
}

.content input {
  width: 100%;
  min-width: 200px;
}

img.icon {
  width: 16px;
  height: 16px;
  vertical-align: baseline;
  &.disabled {
    filter: brightness(40%);
  }
}

.editor {
  width: var(--blog-width);
  display: grid;
  grid-template-columns: repeat(1, max-content auto);
  flex-direction: column;
  row-gap: 1em;
  column-gap: 0.75em;

  .value {
    display: flex;
    column-gap: 1em;
  }

  .list-value {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1em;
  }

  .error {
    color: var(--error-color);
    align-self: center;
  }

  .tag {
    display: flex;
    column-gap: 0.25em;
    align-items: center;
  }

  .tag img {
    width: 15px;
    height: 15px;
  }

  label {
    margin-left: auto;
    align-self: center;
  }

  input,
  select,
  textarea {
    font-family: Verdana, sans-serif;
    font-size: 1em;
    padding: 0.25em;
    font-size: 1em;
    flex-grow: 1;
  }
}

.formButtons {
  display: flex;
  gap: 1em;
}

.editor button {
  font-family: Verdana, sans-serif;
  font-size: 1em;
}

.editor textarea {
  min-height: 300px;
}

.editor input[type='checkbox'] {
  padding: 0;
  margin: 0;
  width: 1em;
}

.errored {
  border-color: var(--error-border-color);
}

.editor pre {
  padding: 0;
  margin: 0;
  background: var(--menu-color);
  display: block;
  position: fixed;
  bottom: 0;
  right: 0;
}

.previewer {
  display: flex;
  flex-direction: column;
  column-gap: 1em;
}

.delete {
  align-self: center;
}

.loader {
  font-size: 5px;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  animation: loading-spin 1.1s infinite ease;
}

@keyframes loading-spin {
  0%,
  100% {
    box-shadow:
      0em -2.6em 0em 0em #ffffff,
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
      2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
      0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.5),
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7);
  }
  12.5% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.7),
      1.8em -1.8em 0 0em #ffffff,
      2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
      0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5);
  }
  25% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.5),
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7),
      2.5em 0em 0 0em #ffffff,
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
      0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }
  37.5% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5),
      2.5em 0em 0 0em rgba(255, 255, 255, 0.7),
      1.75em 1.75em 0 0em #ffffff,
      0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
      2.5em 0em 0 0em rgba(255, 255, 255, 0.5),
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.7),
      0em 2.5em 0 0em #ffffff,
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2),
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }
  62.5% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
      2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.5),
      0em 2.5em 0 0em rgba(255, 255, 255, 0.7),
      -1.8em 1.8em 0 0em #ffffff,
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }
  75% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
      2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
      0em 2.5em 0 0em rgba(255, 255, 255, 0.5),
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.7),
      -2.6em 0em 0 0em #ffffff,
      -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2);
  }
  87.5% {
    box-shadow:
      0em -2.6em 0em 0em rgba(255, 255, 255, 0.2),
      1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2),
      2.5em 0em 0 0em rgba(255, 255, 255, 0.2),
      1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2),
      0em 2.5em 0 0em rgba(255, 255, 255, 0.2),
      -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.5),
      -2.6em 0em 0 0em rgba(255, 255, 255, 0.7),
      -1.8em -1.8em 0 0em #ffffff;
  }
}

.previewer {
  width: var(--blog-width);
}

