:root {
  --color-brand-primary: #3863d9;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin: 0;
}

body {
  background: #f7f7f7;
  margin: 0;
  font-family: "Rubik", sans-serif;
}

* {
  box-sizing: border-box;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: #000;
  display: inline-block;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

strong {
  font-family: "Rubik";
}

html {
  scroll-behavior: smooth;
}

.o-wrapper {
  position: relative;
  max-width: 1050px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

body {
  line-height: 1.5;
  background-color: #fafafa;
}

.c-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  background: #fdfdfd;
  padding: 1rem;
  box-shadow: 0 3px 21px 0 rgba(0, 0, 0, 0.03);
}
.c-header .c-logo {
  color: var(--color-brand-primary);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 799px) {
  .c-header .c-logo {
    flex-basis: 100%;
  }
}
@media (min-width: 800px) {
  .c-header .c-logo {
    margin-bottom: 0;
  }
}
@media (min-width: 800px) {
  .c-header {
    display: flex;
  }
}

.c-nav ul {
  display: flex;
}
.c-nav li:not(:last-child) {
  margin-right: 1.5rem;
}
.c-nav a:hover {
  color: var(--color-brand-primary);
}
@media (max-width: 799px) {
  .c-nav {
    flex: 0 0 50%;
  }
}
@media (min-width: 800px) {
  .c-nav {
    margin-left: auto;
    margin-right: 1.5rem;
  }
}

.c-header__follow {
  color: #555;
  text-align: right;
}
.c-header__follow svg {
  width: 22px;
  height: 22px;
  fill: #1da1f2;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 799px) {
  .c-header__follow {
    flex: 0 0 50%;
  }
}

/**** Hero ****/
.c-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(194, 236, 231, 0.8), rgba(194, 236, 231, 0.8)), radial-gradient(#c2ece7, transparent) center/70% 70% no-repeat, url("../img/hero-bg.svg") center/cover no-repeat;
  box-shadow: 0 15px 32px 0 rgba(0, 0, 0, 0.06);
  text-align: center;
  padding: 1rem;
  min-height: calc(300px + 6vmax);
}
@media (min-width: 800px) {
  .c-hero {
    padding: 3rem;
  }
}
.c-hero img {
  display: block;
  margin-bottom: 1rem;
  width: 140px;
}
@media (min-width: 800px) {
  .c-hero img {
    width: 170px;
  }
}
.c-hero p {
  max-width: 580px;
  font-size: 16px;
  color: #4d3535;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}
.c-hero p::selection {
  background: rgba(0, 172, 238, 0.2);
}
@media (min-width: 800px) {
  .c-hero p {
    font-size: 22px;
  }
}

.c-hero__title {
  margin: 0 0 0.5rem;
  font-size: 20px;
  color: var(--color-brand-primary);
}
@media (min-width: 800px) {
  .c-hero__title {
    font-size: 44px;
    margin: 0 0 1rem;
  }
}

/**** Button ****/
.c-button {
  display: inline-block;
  color: #fff;
  background: linear-gradient(to bottom, #00acee, #0072e0);
  font-size: 18px;
  font-weight: 500;
  padding: 8px 26px;
  border-radius: 100px;
  border: 2px solid transparent;
  background-origin: border-box;
  transition: 0.3s ease-out;
}
.c-button:hover {
  box-shadow: 0 0 0 6px rgba(0, 172, 238, 0.2), 0 8px 10px 8px rgba(0, 172, 238, 0.2);
}
.c-button ~ svg .naughty-head {
  transition: 0.3s ease-out;
}

.c-button--primary:hover ~ svg .naughty-head {
  transform: rotate(-7deg);
  transform-origin: 155px 7px;
}

.c-button--ghost:hover ~ svg .naughty-head {
  transform: rotate(9deg);
  transform-origin: 110px 48px;
}

.c-button--ghost {
  background: transparent;
  color: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
}

/**** Section ****/
.c-section {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  align-items: center;
}
@media (min-width: 800px) {
  .c-section {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}
.c-section p {
  max-width: 450px;
}
.c-section p > code {
  display: inline-block;
  padding: 2px;
  border-radius: 4px;
  font-size: 14px;
  color: #4d3535;
  background: #f5f0cd;
}

.c-section__item {
  align-self: start;
}
.c-section__item h3 {
  margin: 0 0 0.5rem;
}
@media (max-width: 799px) {
  .c-section__item > * + * {
    margin-top: 1rem;
  }
}
.c-section__item > img {
  width: 100%;
  max-width: 100%;
}
.c-section__item ol {
  list-style: initial;
  margin: 0;
}

.c-section--outside {
  padding-bottom: 6rem;
}

.c-section--normal,
.c-section--basic {
  display: block;
}
.c-section--normal > * + *,
.c-section--basic > * + * {
  margin-top: 3rem;
}

.c-section--basic .c-section__item {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1rem;
}
@media (min-width: 800px) {
  .c-section--basic .c-section__item {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  }
}
.c-section--basic img {
  max-width: 100%;
}

/**** Frame ****/
.c-wood {
  position: relative;
  height: 0;
  padding-bottom: 69%;
}

.c-wood__frame {
  position: absolute;
  left: 1rem;
  top: 1rem;
  bottom: 1rem;
  right: 1rem;
  z-index: 1;
}
.c-wood__frame path {
  transition: 0.3s ease-in-out;
}

:root {
  --scene-spacing: -75px;
}

.intro-scene {
  position: relative;
  background-color: #f7f5f5;
  border-radius: 5px;
  padding: 6rem 1rem 1rem;
  align-self: start;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.intro-scene form {
  width: 80%;
  padding: 1rem;
  text-align: center;
}
.intro-scene label {
  margin-bottom: 0.5rem;
}
.intro-scene img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: var(--scene-spacing, -75px);
  will-change: margin-top;
  transition: margin-top 0.3s ease-out;
}
.intro-scene .kid {
  position: relative;
  z-index: 2;
}
.intro-scene .ring {
  position: relative;
  z-index: 1;
}
.intro-scene label {
  display: block;
}
.intro-scene form {
  position: absolute;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
}

.water-scene {
  height: 220px;
  background: url("../img/water-bg.svg") center/cover no-repeat;
  padding: 2rem;
  border-radius: 8px;
}
@media (min-width: 800px) {
  .water-scene {
    height: 330px;
  }
}
@media (max-width: 799px) {
  .water-scene .duck {
    width: 50px;
  }
  .water-scene .ring {
    width: 110px;
  }
}
.water-scene > img {
  display: block;
}
.water-scene.s-2 .ring {
  margin-top: -28px;
}
.water-scene.s-3 .ring {
  margin-top: -28px;
}
.water-scene.s-3 .duck {
  position: relative;
}
.water-scene.s-4 .duck {
  position: relative;
  z-index: -1;
}
.water-scene.s-5 {
  position: relative;
  z-index: 1;
}
.water-scene.s-5 .duck {
  position: relative;
  z-index: -1;
}
.water-scene.s-6 {
  display: flex;
  justify-content: center;
  align-items: center;
}
.water-scene.s-7 img {
  display: inline-block;
}
.water-scene.s-7 .ring-purple {
  margin-left: -50px;
}
.water-scene.s-8 .duck {
  opacity: 0.999;
}
.water-scene.s-9 img {
  display: inline-block;
}
.water-scene.s-9 .duck,
.water-scene.s-9 .ring-purple {
  margin-left: -50px;
}
.water-scene.s-10 .duck {
  transform: rotate(30deg);
}
.water-scene.s-11 img {
  display: inline-block;
  vertical-align: top;
}
.water-scene.s-11 .duck {
  margin-left: -40px;
}
.water-scene.s-12 img {
  display: inline-block;
  vertical-align: top;
}
.water-scene.s-12 .duck {
  margin-left: -40px;
}
.water-scene.s-12 .ring-purple {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.water-scene.s-13 img {
  display: inline-block;
  vertical-align: top;
}
.water-scene.s-13 .duck {
  position: relative;
  z-index: 1;
  margin-left: -40px;
}
.water-scene.s-13 .ring-purple {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.water-scene.s-14 {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.water-scene.s-14 .ring-red {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 110px;
  height: 100px;
  background: url("../img/ring-red.svg") center/contain no-repeat;
}
@media (min-width: 800px) {
  .water-scene.s-14 .ring-red {
    width: 154px;
    height: 140px;
  }
}
.water-scene.s-14 .mosquito {
  margin-top: -40px;
  margin-left: -64px;
}
@media (max-width: 799px) {
  .water-scene.s-14 .mosquito {
    width: 35px;
    margin-top: 0;
  }
}
.water-scene.s-14 .ring-purple {
  margin-left: -50px;
  margin-top: -50px;
}
.water-scene.s-15 .duck {
  position: relative;
  z-index: 1;
}
.water-scene.s-16 .ring-red {
  position: relative;
  z-index: 1;
}
.water-scene.s-17 {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.water-scene.s-17 .ring-red {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 110px;
  height: 100px;
  background: url("../img/ring-red.svg") center/contain no-repeat;
  transform: rotate(90deg);
}
@media (min-width: 800px) {
  .water-scene.s-17 .ring-red {
    width: 154px;
    height: 140px;
  }
}
.water-scene.s-17 .fish-small {
  position: absolute;
  left: 1rem;
  top: 1rem;
}
.water-scene.s-17 .fish-large {
  width: 55px;
  margin-left: -30px;
}
@media (min-width: 800px) {
  .water-scene.s-17 .fish-large {
    width: 75px;
  }
}
.water-scene.s-18 .ring-red {
  transform: none;
}
.water-scene.s-18 .fish-large {
  margin-left: -50px;
}
.water-scene.s-19 {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.water-scene.s-19 .ring-purple {
  margin-left: -30px;
}
.water-scene.s-20 {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.water-scene.s-20 .ring-purple {
  margin-left: -30px;
}
.water-scene.s-20 .ring-red {
  transform: rotate(10deg);
}
.water-scene.s-21 .ring-purple {
  transform: rotate(10deg);
}
.water-scene.s-22 {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.water-scene.s-22 .ring-red {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 110px;
  height: 100px;
  background: url("../img/ring-red.svg") center/contain no-repeat;
}
@media (min-width: 800px) {
  .water-scene.s-22 .ring-red {
    width: 154px;
    height: 140px;
  }
}
.water-scene.s-22 .duck {
  position: relative;
  margin-right: -50px;
  z-index: 999;
}
.water-scene.s-22 .fish-large {
  position: relative;
  z-index: 2;
  transform: scaleX(-1);
  width: 100px;
  margin-left: -40px;
}
.water-scene.s-23 .ring-red {
  position: static;
  z-index: auto;
}

#duck.active {
  opacity: 1;
}

.source-order {
  margin: 2rem 0;
}
.source-order li {
  display: flex;
  align-items: center;
  --bg: #000;
  margin-top: -1.2rem;
  font-size: 0.9rem;
}
.source-order li:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  background-color: var(--bg);
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  order: -1;
}
.source-order li:nth-child(1) {
  --bg: #43699d;
}
.source-order li:nth-child(2) {
  --bg: #285aac;
}
.source-order li:nth-child(3) {
  --bg: #ac28a7;
}
.source-order li:nth-child(4) {
  --bg: #28ac6f;
}
.source-order li:before {
  content: "";
  height: 2px;
  background-color: #dfdfdf;
  flex: 0 0 60px;
  margin-right: 0.35rem;
}

.folder {
  background-color: #ecf7f7;
  padding: 1rem;
  margin-top: 0.5rem;
}

.folder__item {
  display: flex;
  align-items: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18.354'%3E%3Cpath d='M1.036 0h4.51a1.031 1.031 0 01.663.241l1.406 1.171a.3.3 0 00.19.068h12.474a1.036 1.036 0 011.036 1.036v3.108a.3.3 0 00.3.3h1.353A1.037 1.037 0 0124 6.957a1.053 1.053 0 01-.029.241L21.5 17.559a1.037 1.037 0 01-1.008.8H1.037A1.036 1.036 0 010 17.318V1.036A1.036 1.036 0 011.037 0zm4.145 7.4a.74.74 0 110-1.48h14.358a.3.3 0 00.3-.3V3.256a.3.3 0 00-.3-.3H7.483a.888.888 0 01-.569-.206L5.467 1.544a.3.3 0 00-.19-.068h-3.5a.3.3 0 00-.3.3v14.8a.3.3 0 00.3.3h18.136a.3.3 0 00.288-.228l2.114-8.881a.269.269 0 00.008-.068.3.3 0 00-.3-.3z' fill='%23272727'/%3E%3C/svg%3E") left center/20px 16px no-repeat;
  padding-left: 26px;
  font-size: 14px;
}
.folder__item.level-2 {
  margin-left: 1.5rem;
}
.folder__item.level-3 {
  margin-left: 3.5rem;
}
.folder__item:not(:last-child) {
  margin-bottom: 1rem;
}
.folder__item:after {
  content: "";
  height: 1px;
  background-color: #dae4e4;
  flex: 1;
  margin-left: 0.5rem;
}
.folder__item[stacking]:before {
  content: attr(stacking);
  order: 1;
  font-size: 0.8rem;
  padding: 4px 12px 4px 12px;
  border-radius: 100px;
  background: #dae4e4;
}

.o-wrapper {
  counter-reset: test;
}

/**** Title ****/
.c-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand-primary);
}
.c-title:before {
  counter-increment: test;
  content: counter(test);
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #60b669 0% 0% no-repeat;
  box-shadow: 0px 3px 0px #5db8664a;
  text-align: center;
  color: #fff;
  font-size: 18px;
  line-height: 30px;
  font-weight: 500;
  margin-right: 0.35rem;
}
@media (min-width: 800px) {
  .c-title {
    font-size: 1.4rem;
  }
  .c-title:before {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 24px;
    margin-right: 0.75rem;
  }
}

/**** Footer ****/
.c-footer {
  background: #74d8d8;
  padding: 2rem 1rem 1rem;
  text-align: center;
  font-size: 15px;
  border: 10px solid #a7e9dc;
  margin-top: 1.25rem;
}
@media (min-width: 800px) {
  .c-footer {
    font-size: initial;
  }
}
.c-footer h2 {
  font-size: calc(14px + 1vw);
}
@media (max-width: 2000px) {
  .c-footer h2 {
    font-size: 1.5rem;
  }
}
.c-footer h2,
.c-footer p,
.c-footer a {
  margin: 0 0 0.5rem;
  color: #222;
}
.c-footer a {
  text-decoration: underline;
}
.c-footer img {
  display: block;
  margin: -75px auto 1rem;
  width: 80px;
}

pre {
  border-radius: 6px;
  max-width: 460px;
}

.mb-2 {
  margin-bottom: 1rem;
}

.note {
  color: #3b3b3b;
  background: #ebf5f2;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 7px;
}
.note a {
  box-shadow: inset 0 -3px 0 0 rgba(0, 0, 0, 0.1);
  transition: 0.1s ease-out;
}
.note a:hover {
  color: #4040c3;
  box-shadow: inset 0 -4px 0 0 currentColor;
}

.other-articles {
  margin-top: 1rem;
}
.other-articles li:not(:last-child) {
  margin-bottom: 1rem;
}
@media (min-width: 800px) {
  .other-articles li {
    font-size: 18px;
  }
}
.other-articles a {
  text-decoration: underline;
  text-decoration-color: cornflowerblue;
}

/* Input range styles from: http://danielstern.ca/range.css */
input[type=range] {
  width: 100%;
  margin: 5.8px 0;
  background-color: transparent;
  -webkit-appearance: none;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  background: #d9d9d9;
  border-radius: 10px;
  width: 100%;
  height: 8.4px;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  margin-top: -6px;
  width: 20px;
  height: 20px;
  background: #7ca956;
  border: 0;
  border-radius: 50px;
  cursor: pointer;
  -webkit-appearance: none;
}

input[type=range]:focus::-webkit-slider-runnable-track {
  background: #d9d9d9;
}

input[type=range]::-moz-range-track {
  background: #d9d9d9;
  border-radius: 10px;
  width: 100%;
  height: 8.4px;
  cursor: pointer;
}

input[type=range]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #7ca956;
  border: 0;
  border-radius: 50px;
  cursor: pointer;
}

input[type=range]::-ms-track {
  background: transparent;
  border-color: transparent;
  border-width: 10.4px 0;
  color: transparent;
  width: 100%;
  height: 8.4px;
  cursor: pointer;
}

input[type=range]::-ms-fill-lower {
  background: #d9d9d9;
  border-radius: 10px;
}

input[type=range]::-ms-fill-upper {
  background: #d9d9d9;
  border-radius: 10px;
}

input[type=range]::-ms-thumb {
  width: 20px;
  height: 20px;
  background: #7ca956;
  border: 0;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 0px;
}

input[type=range]:focus::-ms-fill-lower {
  background: #d9d9d9;
}

input[type=range]:focus::-ms-fill-upper {
  background: #d9d9d9;
}

@supports (-ms-ime-align: auto) {
  input[type=range] {
    margin: 0;
  }
}
#carbonads {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#carbonads {
  position: relative;
  display: flex;
  max-width: 330px;
  margin: 2rem auto;
  background-color: #f3f3f3;
  box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.1);
}

#carbonads a {
  color: inherit;
  text-decoration: none;
}

#carbonads a:hover {
  color: inherit;
}

#carbonads span {
  position: relative;
  display: block;
  overflow: hidden;
}

#carbonads .carbon-wrap {
  display: flex;
}

.carbon-img {
  display: block;
  margin: 0;
  line-height: 1;
}

.carbon-img img {
  display: block;
}

.carbon-text {
  font-size: 13px;
  padding: 10px;
  line-height: 1.5;
  text-align: left;
}

.carbon-poweredby {
  display: block;
  padding: 8px 10px;
  background: -webkit-repeating-linear-gradient(135deg, transparent, transparent 5px, rgba(0, 0, 0, 0.025) 5px, rgba(0, 0, 0, 0.025) 10px) rgba(241, 243, 244, 0.4);
  background: repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(0, 0, 0, 0.025) 5px, rgba(0, 0, 0, 0.025) 10px) rgba(241, 243, 244, 0.4);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  font-size: 9px;
  line-height: 1;
}
