main,
nav {
  display: block;
}

html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #57585c;
  color: var(--color-text);
  background: #fff;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a:focus {
  outline: thin dotted;
}

a:active,
a:hover {
  outline: 0;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

b,
strong {
  font-weight: bold;
}

small {
  font-size: 80%;
}

img {
  border: 0;
}

button {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  line-height: normal;
  text-transform: none;
  -webkit-appearance: button;
  cursor: pointer;
}

.button {
  background-color: #ffbec9;
  border: none;
  color: #39424e;
  padding: 12px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 17px;
  margin: 10px 10px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.button:hover,
.button:active,
.button:focus {
  background-color: #ffa7b2;
  color: #39424e;
}
button[disabled] {
  cursor: default;
}

button::-moz-focus-inner {
  border: 0;
  padding: 0;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 60px;
  z-index: 10000;
}

.logo img {
  width: 100%;
}

/* Fade effect */

.js body {
  opacity: 0;
  transition: opacity 0.3s;
}

.js body.render {
  opacity: 1;
}

/* Page Loader */

.js .loading::before {
  content: "";
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

.js .loading::after {
  content: "";
  position: fixed;
  z-index: 100000;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.4;
  background: var(--color-text);
  animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
  to {
    opacity: 1;
    transform: scale3d(0.5, 0.5, 1);
  }
}

a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
}

a:hover,
a:focus {
  color: var(--color-link-hover);
  outline: none;
}

button:focus {
  outline: none;
}

.hidden {
  position: absolute;
  overflow: hidden;
  width: 0;
  height: 0;
  pointer-events: none;
}

.content {
  flex-direction: column;
  height: auto;
  min-height: 0;
}

.content--fixed {
  position: relative;
  z-index: 1000;
  display: block;
  padding: 0.85em;
}

main {
  position: relative;
  width: 100%;
}

.content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content--switch {
  padding: 2.5rem 1rem;
}

@media screen and (min-width: 75em) {
  .content {
    margin: 0 auto;
    min-height: 100vh;
  }
  .js .content--switch {
    display: none;
  }
  .js .content--switch-current {
    display: flex;
  }
  .content--fixed {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    display: grid;
    align-content: space-between;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: 100vh;
    padding: 1.5em;
    pointer-events: none;
    grid-template-columns: 70% 30%;
    grid-template-rows: auto auto 4em;
    grid-template-areas: "header ..." "... ..." "menu demos";
  }
  .content--fixed a {
    pointer-events: auto;
  }
}
