body {
  margin: 0;
  text-align: center;
  font-family: 'Miriam Libre', sans-serif;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: border-box;
}
a, u {
  text-decoration: none;
}
p {
  margin: 0;
}
select {
  border: none;
  position: relative;
}
ul, ol, li {
  margin: 0;
  padding: 0;
}

.header {
  background: purple;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  overflow: hidden;
  /* box-shadow: 0 0 1rem rgba(0,0,0,.8); */
  padding: 2rem 0 0;
  line-height: 2rem;
}
.header h1 {
  text-align: center;
  text-transform: uppercase;
  margin: 0;
}
.header h1 a {
  color: #fff;
  font-size: 1rem;
  letter-spacing: .25rem;
  text-shadow: 0 0 1rem #000;
  outline: 0;
  position: relative;
}
.header h1 a:focus {
  color: yellow;
}
.header h1 a::before,
.header h1 a::after {
  position: relative;
}
.header h1 a::before {
  margin-right: 10px;
}
.header h1 a::after {
  margin-left: 10px;
}
.header h1 a:focus::before,
.header h1 a:focus::after {
  content: '\2014';
}
.header .tagline {
  display: block;
  color: #fff;
  line-height: 2rem;
  font-size: .9rem;
  margin: 0;
  text-align: center;
}

.nav {
  background: rgba(0,0,0,.1);
  max-width: 960px;
  margin: 2rem auto 0;
  border-top-right-radius: 6px;
  border-top-left-radius: 6px;
}
.nav b {
  font-weight: 900;
  font-size: .85rem;
}
.nav b::after {
  content: ':';
}
.nav .toggles li,
.nav .inputs li {
  border: none;
}
.nav .wrap {
  box-shadow: 0 0 1rem rgba(0,0,0,.5);
  padding: 1rem 0;
  border-top-right-radius: 6px;
  border-top-left-radius: 6px;
  margin: 0 auto;
  /* overflow: hidden; */
  display: flex;
}
.nav ul {
  display: flex;
  flex-grow: 1;
  justify-content: flex-start;
  margin: 0 1rem;
}
.nav ul li {
  vertical-align: top;
  align-items: center;
  list-style: none;
  cursor: pointer;
  display: inline-block;
}
.nav ul li:not(:last-child) {
  margin-right: 1rem;
}
.nav .inputs {
  justify-content: center;
}

.nav input,
.nav select,
.nav label {
  height: 30px;
  font-size: 1rem;
  border: none;
  background: none;
  text-transform: uppercase;
  display: inline-block;
  color: rgba(255,255,255,.7);
  outline: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 125ms ease-in-out;
  box-shadow: inset 0 0 0 .1rem transparent;
  font-size: .9rem;
}
.nav input:hover,
.nav select:hover,
.nav label:hover {
  color: rgba(255,255,255,1);
  background: none;
}

.nav label {
  padding-left: 1rem;
  box-shadow: inset 0 0 0 .1rem rgba(0,0,0,.3), inset 0 0 1rem .2rem rgba(0,100,255,.0);
  user-select: none;
  /* background: rgba(0,0,0,.4); */
}
.nav label:hover {
  box-shadow: inset 0 0 0 .1rem #fff;
}

.nav select {
  color: #fff;
  box-shadow: inset 0 0 0 .1rem rgba(0,0,0,.3), inset 0 0 1rem .2rem rgba(0,100,255,.0);
  font-family: 'Miriam Libre', sans-serif;
  vertical-align: top;
  font-size: .8rem;
  /* background: #fff; */
  font-weight: 900;
  color: white;
}
.nav .option::before {
  content: 'language';
}
.nav input {
  max-width: 6rem;
  text-align: center;
  font-family: 'Miriam Libre', sans-serif;
  background: none;
  color: #fff;
  margin-left: .5rem;
  height: 30px;
  vertical-align: top;
}
.nav input:focus {
  cursor: text;
}
.nav select:focus,
.nav input:focus {
  box-shadow: inset 0 0 0 .1rem #fff, inset 0 0 0 .2rem purple;
  background: #fff;
  color: purple;
  outline: 0;
}
.nav input:focus {
  color: purple;
}

.footer {
  padding: 0 0 2rem 0;
  font-size: .8rem;
}
.footer a,
.document a {
  color: #404040;
  border-bottom: .1rem solid rgba(0,0,0,0.2);
}
.footer a:hover,
.document a:hover {
  border-bottom: .1rem solid purple;
  color: purple;
}
.document {
  background: #fff;
  box-shadow: 0 0 1rem rgba(0,0,0,.4);
  border-radius: 6px;
  margin: 0 auto 2rem;
  line-height: 1.5rem;
}
.document ul li {
  list-style: inside;
}
.document .items.full-width .item {
  width: 100%;
  display: block;
  padding: 4rem 6rem 0;
  text-align: center;
}
.document .items.full-width .item p {
  font-size: 1.5rem;
  line-height: 3rem;
  letter-spacing: -.05rem;
  color: rgba(0, 0, 0, .6);
}
.document p {
  font-size: .9rem;
}
.document .items {
  padding: 2rem;
}
.document .item {
  display: inline-block;
  width: 50%;
}

.info h2 {
  text-transform: uppercase;
  text-align: left;
  color: rgba(0, 0, 0, .5);
  border-top: .2rem solid rgba(0, 0, 0, .2);
  font-size: 1rem;
  margin-bottom: 2rem;
  letter-spacing: .1rem;
  padding-top: 1rem;
  margin-right: 2rem;
}

.info {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
}
.info .items {
  max-width: 960px;
  display: flex;
  flex-direction: row;
}
.info .items .item {
  justify-content: space-around;
  text-align: left;
  order: 1;
}
.info .item {
  font-size: .9rem;
}
.info .item p {
  padding-right: 3rem;
}

.api-glossary {
  margin-top: 1rem;
}
.info ul li {
  list-style: inside;
  list-style-type: circle;
}
.info code {
  font-weight: 700;
  font-size: 1.2rem;
}

.stage {
  padding-bottom: 2rem;
}
.stage .wrap {
  margin: 0 auto;
  max-width: 960px;
  background: #fff;
  box-shadow: 0 0 1rem rgba(0,0,0,.4);
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
}

.stage > .wrap > .items {
  z-index: 0;
  background: #fff;
  padding: 2rem;
  margin: 12rem auto 2rem;
  overflow-x: scroll;
  text-align: right;
  text-align: center;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
}
.items input[type="checkbox"] {
  display: none;
}
.stage > .wrap > .items .item {
  overflow: hidden;
  counter-increment: my-counter;
  cursor: pointer;
  vertical-align: top;
  display: inline-block;
  text-align: center;
}
.item .content {
  position: relative;
}
.item:hover .content::before {
  background: greenyellow;
}
.item:hover input:checked ~ .content::before {
  background: green;
  color: white;
}
.items .item .content::before {
  user-select: text;
  display: inline-block;
  border-radius: 10rem;
  line-height: 6rem;
  width: 6rem;
  height: 6rem;
  font-size: 1.2rem;
  font-weight: 100;
  text-align: center;
  font-family: "Bellefair", serif;
}

input:first-child:checked ~ .content::before {
  color: green;
  background: lightgreen;
}

[data-list-type="decimal"] .content::before {content: counter(my-counter, decimal)}
[data-list-type="decimal-leading-zero"] .content::before {content: counter(my-counter, decimal-leading-zero)}
[data-list-type="arabic-indic"] .content::before {content: counter(my-counter, arabic-indic)}
[data-list-type="armenian"] .content::before {content: counter(my-counter, armenian)}
[data-list-type="upper-armenian"] .content::before {content: counter(my-counter, upper-armenian)}
[data-list-type="lower-armenian"] .content::before {content: counter(my-counter, lower-armenian)}
[data-list-type="bengali"] .content::before {content: counter(my-counter, bengali)}
[data-list-type="cambodian"] .content::before {content: counter(my-counter, cambodian)}
[data-list-type="khmer"] .content::before {content: counter(my-counter, khmer)}
[data-list-type="cjk-decimal"] .content::before {content: counter(my-counter, cjk-decimal)}
[data-list-type="devanagari"] .content::before {content: counter(my-counter, devanagari)}
[data-list-type="georgian"] .content::before {content: counter(my-counter, georgian)}
[data-list-type="gujarati"] .content::before {content: counter(my-counter, gujarati)}
[data-list-type="gurmukhi"] .content::before {content: counter(my-counter, gurmukhi)}
[data-list-type="hebrew"] .content::before {content: counter(my-counter, hebrew)}
[data-list-type="kannada"] .content::before {content: counter(my-counter, kannada)}
[data-list-type="lao"] .content::before {content: counter(my-counter, lao)}
[data-list-type="malayalam"] .content::before {content: counter(my-counter, malayalam)}
[data-list-type="mongolian"] .content::before {content: counter(my-counter, mongolian)}
[data-list-type="myanmar"] .content::before {content: counter(my-counter, myanmar)}
[data-list-type="oriya"] .content::before {content: counter(my-counter, oriya)}
[data-list-type="persian"] .content::before {content: counter(my-counter, persian)}
[data-list-type="lower-roman"] .content::before {content: counter(my-counter, lower-roman)}
[data-list-type="upper-roman"] .content::before {content: counter(my-counter, upper-roman)}
[data-list-type="tamil"] .content::before {content: counter(my-counter, tamil)}
[data-list-type="telugu"] .content::before {content: counter(my-counter, telugu)}
[data-list-type="thai"] .content::before {content: counter(my-counter, thai)}
[data-list-type="tibetan"] .content::before {content: counter(my-counter, tibetan)}

/* source: https://codepen.io/beben-koben/pen/BoLyf */
#forkMe {
  bottom: 3em;
  left: -6em;
  color: #fff;
  display: block;
  position: fixed;
  text-align: center;
  text-decoration: none;
  background-color: magenta;
  padding: 0.5em 5em 0.4em 5em;
  transform: rotate(45deg) scale(0.75,1);
  font-size: .8rem;
  font-weight: 900;
  -webkit-transform: rotate(45deg) scale(0.75,1);
  z-index: 10;
  text-transform: lowercase;
  background: linear-gradient(-45deg, #444, #666, #888, #CCC);
  background-size: 400% 400%;
  -webkit-animation: Gradient 15s ease infinite;
  -moz-animation: Gradient 15s ease infinite;
  animation: Gradient 15s ease infinite;
}
#forkMe:before {
  content: '';
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  margin: -0.3em -5em;
  transform: scale(0.7);
  -webkit-transform: scale(0.7);
  border: 2px rgba(255,255,255,0.7) dashed;
}
#forkMe:hover {
	background: linear-gradient(-45deg, #EE7752, #E73C7E, #23A6D5, #23D5AB);
	background-size: 400% 400%;
	-webkit-animation: Gradient 15s ease infinite;
	-moz-animation: Gradient 15s ease infinite;
	animation: Gradient 15s ease infinite;
}

/* source: https://codepen.io/P1N2O/pen/pyBNzX */
@-webkit-keyframes Gradient {
	0% {background-position: 0% 50%}
	50% {background-position: 100% 50%}
	100% {background-position: 0% 50%}
}
@-moz-keyframes Gradient {
	0% {background-position: 0% 50%}
	50% {background-position: 100% 50%}
	100% {background-position: 0% 50%}
}
@keyframes Gradient {
	0% {background-position: 0% 50%}
	50% {background-position: 100% 50%}
	100% {background-position: 0% 50%}
}