body { margin: 0; font-size: 16px; }
input, textarea { font-size: 16px; }

/*! normalize.css v3.0.2 | MIT License | git.io/normalize */

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */
html {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -webkit-font-smoothing: antialiased;

  line-height: 1.5;
}

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

* { box-sizing: border-box; }

html {
  height: 100vh;
}

body {
  color: var(--text-color);
  background-color: var(--bg-color);
  width: 100vw;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
}

.site-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  max-width: 950px;
}

hr {
  margin: 2em 0;
  border: none;
  border-top: 1px solid var(--border-color);
}

.dropdown {
  position: relative;
  cursor: pointer;
  color: var(--bg-color);

  ul {
    position: absolute;
    top: 45px;
    left: 0px;
    list-style: none;
    display: none;
    z-index: 1;

    line-height: 1.2;
    box-shadow: rgba(15, 15, 15, 0.1) 0px 0px 0px 1px, rgba(15, 15, 15, 0.2) 0px 5px 10px, rgba(15, 15, 15, 0.4) 0px 15px 40px;
    background-color: var(--button-background-color);
    flex-direction: column;
    border-radius: 4px;
    margin: 0;
    padding: 6px 0;

    li {
      display: flex;
      align-items: center;
      min-height: 26px;
      white-space: nowrap;
      font-size: 13px;
      cursor: pointer;
      padding: 0 12px;
      &:hover {
        background-color: rgba(255, 255, 255, 0.06);
        cursor: pointer;
      }
      a {
        text-decoration: none;
      }
    }
  }

  input[type=checkbox] {
    position: absolute;
    display: block;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    margin: 0px;
    opacity: 0;
    cursor: pointer;
    &:checked {
      position: fixed;
      z-index:+0;
      top: 0px; left: 0px; 
      right: 0px; bottom: 0px;
      & + ul {
        display: flex;
      }
    }
  }
}

.default-button {
  display: inline-flex;
  position: relative;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 6px;
  border: none;
  user-select: none;
  transition-property: background, opacity;
  transition-duration: 100ms;
  transition-timing-function: ease-out;
  cursor: pointer;
  opacity: 1;
  overflow: hidden;

  font-size: 14px;
  height: 32px;
  padding: 0 10px;
  gap: 6px;

  color:      var(--text-color);
  fill:       var(--text-color);
  background: var(--button-background);
  box-shadow: var(--button-box-shadow);

  svg {
    width: 1em;
    height: 1em;
  }

  &:hover  { background: var(--button-background-hover); }
  &:active { background: var(--button-background-active); }
  &:focus  { box-shadow: var(--focus-box-shadow); }
  &:disabled {
    cursor: default;
    opacity: 0.4;
  }
  &.inverted {
    color: var(--inverted-button-color);
    fill: var(--inverted-button-color);
    background: var(--inverted-button-bg);
    box-shadow: var(--inverted-button-shadow);
    &:hover, &:active {
      background: var(--inverted-button-bg-hover);
    }
  }
}

.screenshot {
  overflow: hidden;
  border: 1px solid var(--screenshot-border);
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.14902) 0px 10px 30px 0px;
  /* box-shadow: rgba(0, 0, 0, 0.14902) 0px 10px 20px 0px, */
  /*             rgb(245, 245, 245) 0px -1px 0px 0px; */
}

.toggle-container {
  display: inline-flex;
  border: 1px solid var(--border-color);
  padding: 3px;
  font-size: 14px;
  font-weight: 500;
  background-color: var(--toggle-background-color);
  border-radius: 100px;
  gap: 2px;
  user-select: none;

  .toggle-element {
    padding: 2px 10px;
    height: 26px;
    border-radius: 100px;
    cursor: pointer;
    &.active {
      background-color: var(--button-background);
    }
  }
}

.site-container {
  .content {
    padding: 2em 4em;
    &.center {
      align-items: center;
    }
    @media (max-width: 900px) {
      padding: 1rem 1rem;
    }
  }
}

.content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


@media (max-width: 900px) {
  .desktop {
    display: none !important;
  }
}
@media (min-width: 900px) {
  .mobile {
    display: none !important;
  }
}
