/* css variables*/
:root {
  --primary-color: #232323;
  --primary-color-light: #333;
  --accent-color: #1162CC;
  --accent-color-light: #a9d3f2;
  --accent-color-dark: #1162CC;
  --white-color: #FAFBFC;
  --light-gray-color: #C6CBD1;
  --medium-gray-color: #959DA5;
  --dark-gray-color: #444; 
  --bg-color: #F8F8FA;
  --code-bg-color: #f4fbff;
  --link-color: #0b57d0;
  --highlight-light: #f1c40f;
  --highlight-dark: #f39c12;
}

/* normalized */
html, body {
  padding: 0;
  margin: 0;
  font-family: Segoe UI, SegoeUI, Segoe WP, Helvetica Neue, Helvetica, Tahoma, Arial, sans-serif;
  background-color: white;
}

ul > li {
  padding-bottom: 4px;
}

p {
  font-weight: 400;
  color: #333;
}

a, a:hover {
  font-weight: 500;
  text-decoration: underline;
  color: var(--link-color);
}

hr {
  padding: 1rem 0;
  border: 0;
  border-bottom: 2px solid var(--bg-color);
}

* {
  box-sizing: border-box;
}

.highlight {
  background: #ffe69a;
  background: linear-gradient(90deg, rgba(255, 230, 154, 0) 0, rgba(255, 230, 154, .75) 5%, rgba(255, 230, 154, .25) 95%, rgba(255, 230, 154, 0) 100%);
}

.muted {
  color: var(--medium-gray-color);
}

/* global components */

/* typography */
.section__title {
  color: var(--primary-color);
}

/* tabs */
.tab__container {
  position: relative;
}

.tab__container > ul {
  position: absolute;
  list-style: none;
  margin: 0;
  right: 1rem;
  top: -2rem;
  padding-left: 0;
}

.tab__container .code {
  white-space: normal;
  padding: 1rem 1.5rem;
}

.tab {
  display: inline-block;
  padding: 0.3rem 0.5rem;
  font-weight: 200;
  cursor: pointer;
}

.tab.active {
  border-bottom: 1px solid var(--primary-color);
  font-weight: 700;
  display: inline-block;
}

.tab__pane {
  display: none;
}

.tab__pane.active {
  display: block;
}

/* code */
.code {
  border-radius: 3px;
  font-family: Space Mono, SFMono-Regular, Menlo,Monaco, Consolas, Liberation Mono, Courier New, monospace;
  background: var(--bg-color);
  border: 1px solid var(--code-bg-color);
  color: var(--primary-color-light);
}

.code--block {
  white-space: pre-line;
  padding: 0 1.5rem;
}

.code--inline {
  padding: 3px 6px;
  font-size: 80%;
}

/* buttons */
.button--primary {
  display: inline-block;
  font-size: 18px;
  padding: 14px 22px;
  background-color: var(--accent-color);
  color: white;
  position: relative;
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  transition: all .3s ease-out;
  text-decoration: none;
}

.button--primary:hover {
  text-shadow: 0px 1px 1px var(--accent-color-dark);
  color: white;
  transform: translate3D(0, -3px, 0);
  text-decoration: none;
}

.button--primary:hover::after {
  transform: rotate(90deg);
}

.button--secondary {
  display: inline-block;
  border-radius: 4px;
  padding: 8px 16px;
  border: 2px solid var(--primary-color);
  transition: all 0.5s ease-out;
  text-decoration: none;
}

.button--secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  text-decoration: none;
}

.button--primary i,
.button--secondary i {
  padding-right: 0.5rem;
}

.button--normal {
  cursor: pointer;
  font-size: 14.75px;
  padding: 12px 18px;
}

.button--normal:hover,
.button--normal:hover::after {
  background-color: var(--accent-color-dark);
  transform: none;
}


/* links */
.link {
  text-decoration: none;
  transition: all 0.3s ease-out;
}

.link:hover {
  color: var(--accent-color);
}

.link--dark {
  color: var(--primary-color);
}

.link--light {
  color: var(--accent-color);
}

/* menu */
nav {
  display: grid;
  padding: 4px;
  grid-template-columns: 70px auto;
  background: var(--accent-color);
}

nav .button--secondary,
nav .button--secondary:hover {
  color: #fff;
  border-color: #fff;
  text-decoration: none;
}

.menu {
  margin: 0;
  text-align: right;
  overflow: hidden;
  list-style: none;
}

.toggle {
  display: none;
  position: relative;
}

.toggle span,
.toggle span:before,
.toggle span:after {
  content: '';
  position: absolute;
  height: 2px;
  width: 18px;
  border-radius: 2px;
  background: var(--primary-color);
  display: block;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  right: 0;
}

.toggle span:before {
  top: -6px;
}

.toggle span:after {
  bottom: -6px;
}

.toggle.open span{
  background-color: transparent;
}

.toggle.open span:before,
.toggle.open span:after {
  top: 0;
}

.toggle.open span:before {
  transform: rotate(45deg);
}

.toggle.open span:after {
  transform: rotate(-45deg);
}

.menu__item {
  padding: 5px;
  display: inline-block;
}

.menu__item.toggle {
  display: none;
}

/* table */
table {
  border-collapse: collapse;
  width: 100%;
  transition: color .3s ease-out;
  margin-bottom: 2rem;
}

table td, table th {
  border: 1px solid var(--code-bg-color);
  padding: 0.8rem;
  font-weight: 300;
}

table th {
  text-align: left;
  background-color: white;
  border-color: white;
  border-bottom-color: var(--code-bg-color);
}

table td:first-child {
  background-color: var(--bg-color);
  font-weight: 600;
}

@media screen and (max-width: 600px) {
  nav {
    grid-template-columns: 70px auto;
  }

  /*
  .menu__item{
    display: none;
  }

  .menu__item.toggle {
    display: inline-block;
  }
  */

  .menu {
    text-align: right;
    padding: 0.5rem 1rem;
  }

  .toggle {
    display: block;
  }

  .menu.responsive .menu__item:not(:first-child) {
    display: block;
    padding: 0 0 0.5rem 0;
  }
}

/* layout */
.wrapper {
  margin: 0 auto;
  width: 70%;
  max-width: 900px;
}

.footer {
  text-align: center;
  background-color: var(--primary-color);
  padding: 2rem;
  color: white;
  color: rgba(255, 255, 255, 0.9);
}

.footer a.link {
  text-decoration: underline;
  font-weight: 600;
  color: #fff;
}

.footer a.link:hover {
  text-decoration: none;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0,30px,0);
  }
  100% {
    transform: translate3d(0,0,0);
  }
}

h2 + p,
h3 + p {
  margin-top: 0;
}


textarea {
  margin: 0;
  padding: .78571429em 1em;
  background: #fff;
  border: 1px solid rgba(34, 36, 38, .15);
  outline: 0;
  color: rgba(0, 0, 0, .87);
  border-radius: .28571429rem;
  -webkit-box-shadow: 0 0 0 0 transparent inset;
  box-shadow: 0 0 0 0 transparent inset;
  -webkit-transition: color .1s ease, border-color .1s ease;
  transition: color .1s ease, border-color .1s ease;
  font-size: 1em;
  line-height: 1.2857;
  resize: vertical;
  -webkit-appearance: none;
  tap-highlight-color: rgba(255, 255, 255, 0);
}