:root[color-mode="dark"] {
  --background-color: #212529;
  --foreground-color: #fafafa;
}

:root[color-mode="light"] {
  --background-color: #fafafa;
  --foreground-color: #212529;
}

:root[color-mode="dark"] .mb-theme__dark--hidden {
  display: none;
}

:root[color-mode="light"] .mb-theme__light--hidden {
  display: none;
}

.mb {
  background-color: var(--background-color);
  color: var(--foreground-color);
}

.mb-body {
  align-items: center;
  display: flex;
  flex-flow: column nowrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  height: 100vh;
  justify-content: center;
  line-height: 1.5;
  margin: 0 1em;
}

.mb-theme {
  position: absolute;
  top: 1em;
  right: 1em;
}

.mb-theme__btn {
  background-color: transparent;
  border: none;
  font-size: 2rem;
  height: 56px;
  line-height: 1.2;
  margin: 0;
  outline: none;
  padding: 0;
  width: 56px;
}

.mb-toasts {
  position: absolute;
  bottom: 1em;
  margin-right: 1em;
}

.mb-toast {
  animation: slide-in-bottom 0.5s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  background-color: rgba(225, 43, 56, 0.16);
  border-radius: 0.5em;
  color: #e12b38;
  margin: 0;
  padding: 1em;
}

.mb-splash {
  animation: puff-in-center 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) both;
  display: flex;
  flex-flow: column nowrap;
  text-align: center;
}

.mb-splash__link,
.mb-splash__link:visited {
  color: #00bcf2;
  order: 1;
  text-decoration: none;
}

.mb-splash__link:active,
.mb-splash__link:hover {
  text-decoration: underline;
}

.mb-splash__icon {
  align-self: center;
  font-size: 6rem;
}

.mb-splash__title {
  font-size: 2.9rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0;
  margin-top: 0;
}

.mb-splash__summary {
  margin-bottom: 1em;
  margin-top: 0;
  text-transform: uppercase;
}

.mb-footer {
  position: absolute;
  bottom: -2.5em;
  margin-bottom: 1em;
}

.mb-copyright {
  margin: 0;
}

@media screen and (min-width: 48em) {
  .mb-body {
    align-items: center;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
  }

  .mb-toasts {
    margin-right: 0;
    width: 40em;
  }

  .mb-splash {
    display: grid;
    grid-template-columns: min-content 1fr;
    grid-template-rows: 1fr min-content;
    column-gap: 1em;
    text-align: left;
  }

  .mb-splash__link,
  .mb-splash__link:visited {
    margin-left: 0.375em;
    order: -1;
  }

  .mb-splash__icon {
    font-size: 5rem;
    grid-row: 1 / 4;
  }

  .mb-splash__title {
    font-size: 5rem;
  }

  .mb-splash__summary {
    letter-spacing: 0.20625em;
    margin-bottom: 0;
    margin-left: 0.375em;
  }
}

@media screen and (min-width: 62em) {
  .mb-toasts {
    bottom: auto;
    top: 1em;
  }

  .mb-toast {
    animation: slide-in-top 0.5s 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }

  .mb-footer {
    bottom: 1em;
    margin-bottom: 0;
  }
}

/**
 * ----------------------------------------
 * animation puff-in-center
 * ----------------------------------------
 */
@keyframes puff-in-center {
  0% {
    transform: scale(1.5);
    filter: blur(4px);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    filter: blur(0px);
    opacity: 1;
  }
}

/**
 * ----------------------------------------
 * animation slide-in-top
 * ----------------------------------------
 */
@keyframes slide-in-top {
  0% {
    transform: translateY(-1000px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/**
 * ----------------------------------------
 * animation slide-in-bottom
 * ----------------------------------------
 */
@keyframes slide-in-bottom {
  0% {
    transform: translateY(1000px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
