:root {
  /* Colors */
  --white: #fff;
  --black: #131517;
  --grey: #ddd;
  --grey-dark: #555;
  --grey-light: #f3f3f5;
  --red: #e34e46;
  --blue: #409ad7;
  --green: #34ba9c;
  --yellow: #efc241;
  --bg-color: #fdfdfd;

  /* Breakpoints */
  --media-md: (min-width: 600px);
  --media-lg: (min-width: 900px);
  --media-xl: (min-width: 1200px);
  --media-xxl: (min-width: 1800px);
  --media-xxxl: (min-width: 2100px);
}

html {
  font-size: 10px;
}

@media (min-width: 1800px) {
  html {
    font-size: 12px;
  }
}

@media (min-width: 2100px) {
  html {
    font-size: 14px;
  }
}

body {
  background: var(--bg-color);
  font-size: 1.8rem;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

a,
a:active,
a:visited,
a:focus {
  border-bottom: 1px solid var(--grey);
  color: var(--black);
}

a:hover {
  color: var(--red);
}

code {
  background: none;
  border: 0;
  font-size: 0.9em;
  padding: 0;
}

h1 {
  color: var(--blue);
  margin-bottom: 5rem;
}

h2,
h3,
h4 {
  margin-top: 5rem;
}

h1 span,
h2 span {
  font-size: 0.6em;
  color: var(--grey-dark);
}

.ExamplesTitle {
  color: var(--red);
  margin-top: 2rem;
}

@media (min-width: 600px) {
  .ExamplesTitle {
    margin-top: 0;
  }
}

.Content {
  margin: 0 auto;
  max-width: 60rem;
  padding: 5rem 2rem;
  position: relative;
  text-align: center;
  width: 100%;
}

.Footer {
  background: var(--grey-light);
  margin-top: 30rem;
  padding: 10vh 0;
}

@media (min-width: 600px) {
  .Footer {
    padding: 20vh 0;
  }
}

.Footer h2 {
  color: var(--blue);
  font-size: 2.4em;
  margin: 0;
}

.Footer h3 {
  font-size: 1.6em;
  margin: 0 0 5rem;
}

.Footer button {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 5rem;
  color: var(--black);
  cursor: pointer;
  padding: 1.1rem 2rem;
  transition: border 250ms;
}

.Footer button:hover,
.Footer button:focus {
  border: 1px solid var(--black);
}

.Footer-links {
  margin: 1rem 0 5rem;
}

.Footer-links a {
  font-size: 2rem;
  margin: 0.5rem;
  padding: 0.4rem 0;
}

.Controls {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  z-index: 10;
}

.Controls button {
  background: var(--grey-light);
  border: 0;
  font-size: 1.4rem;
  padding: 0.6rem 1rem;
  opacity: 0.92;
  cursor: pointer;
  transition: 250ms all;
}

.Controls button:hover {
  background-color: var(--blue);
  color: #fff;
}

/* ----- DEMOS ----- */

.Demo {
  text-align: center;
}

.Explosion {
  height: 24rem;
  margin: 0 auto 10rem;
  position: relative;
  width: 24rem;
}

.Explosion-box {
  background: var(--grey);
  border-radius: 0.3rem;
  float: left;
  height: 5.4rem;
  margin: 0.3rem;
  width: 5.4rem;
}

/* $phone-ratio: 2.01; */

.Phone {
  height: 30.15rem; /* 15rem * $phone-ratio; */
  margin: 0 auto;
  position: relative;
  transform: rotate(90deg) scale(0);
  width: 15rem;
}

@media (min-width: 600px) {
  .Phone {
    height: 50.25rem; /* 25rem * $phone-ratio; */
    width: 25rem;
  }
}

.Phone-svg {
  display: block;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 10;
}

.Phone-content {
  height: 74%;
  left: 8%;
  overflow: hidden;
  position: absolute;
  top: 13.5%;
  width: 85%;
  z-index: 0;
}

.Phone-contentPlx {
  background: var(--blue);
  height: 100%;
  width: 100%;
}

.Phone-contentSection {
  background: var(--red);
  color: var(--white);
  font-size: 3rem;
  font-weight: 300;
  height: 100%;
  padding-top: 75%;
  text-align: center;
  width: 100%;
}

.Phone-contentSection:nth-child(2) {
  background: var(--blue);
}

.Phone-contentSection:nth-child(3) {
  background: var(--green);
}

@media (min-width: 600px) {
  .Phone-contentSection {
    font-size: 5rem;
  }
}

.Links {
  border-radius: 50%;
  height: 12rem;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  width: 12rem;
}

@media (min-width: 600px) {
  .Links {
    bottom: 50px;
    position: fixed;
    right: 50px;
    z-index: 10;
  }
}

.Links-plx {
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: opacity 250ms;
  width: 100%;
  z-index: 0;
}

.Links-plx.Plx--below,
.Links-plx.Plx--below + .Links-content {
  opacity: 0;
}

.Links-circle {
  background: var(--blue);
  border-radius: 50%;
  height: 1rem;
  position: absolute;
  top: -0.5rem;
  transform: translate3d(0, 0, 0);
  width: 1rem;
}

.Links-circle:nth-child(1) {
  left: 50%;
  margin-left: -0.5rem;
}

.Links-circle:nth-child(2) {
  background: var(--red);
  left: 0.2rem;
  top: 70%;
}

.Links-circle:nth-child(3) {
  background: var(--yellow);
  right: 0.2rem;
  top: 70%;
}

.Links-content {
  position: relative;
  text-align: center;
  transition: opacity 250ms;
  z-index: 10;
}

.Links-content a {
  display: inline-block;
  line-height: 1.2em;
  margin: 0.2rem;
}

.StickyText {
  bottom: 0;
  left: 0;
  max-width: 54rem;
  opacity: 0;
  padding: 0 2rem;
  position: fixed;
  width: 100%;
}

@media (min-width: 600px) {
  .StickyText {
    left: auto;
    padding: 0;
  }
}

.StickyText h2 {
  margin: 0;
  transform: translateY(50%);
}

.StickyText-trigger {
  margin-top: 50vh;
}
