@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700');

:root {
  --grey100: #f5f7f9;
  --grey90: #dfe6ec;
  --grey80: #bfccd9;
  --grey70: #9fb3c6;
  --grey50: #60809f;
  --black: #263340;
  --blue: #0080ff;
  --dblue: #0073e6;
  --lblue: #39f;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: var(--black);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -.25px;
  -webkit-font-smoothing: antialiased;
}

h1 {
  font-size: 1.65em;
  font-weight: 500;
  margin: 0;
}
h3 {
  position: relative;
  font-size: 1.5em;
  font-weight: 700;
  margin-top: 2.5em;
}
h3::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 24px;
  top: -3px;
  bottom: 0;
  margin: auto;
  left: -16px;
  background: var(--blue);
}

h4{
  font-size: 1.15em;
  font-weight: 700;
}

a, a:visited {
  color: var(--blue);
  text-decoration: none;
}
a:hover, a:focus {
  color: var(--dblue);
  text-decoration: underline;
}

aside {
  font-size: .89em;
  color: var(--grey50);
  font-weight: 500;
}

.animate {
  transition: all .2s ease-out;
}

/*================== LAYOUT ==================*/

.page-anchor {
  position: relative;
  top: -2em;
}

header {
  margin: 0;
  padding: 0 24px;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 72px;
  background: white;
  border-bottom: 1px solid var(--grey90);
  box-shadow: 1px 0 4px var(--grey90);
  z-index: 10;
  overflow: hidden;
}

.burger-container {
  width: 28px;
  height: 28px;
  margin-right: 1.5em;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
#navBtn:focus, #navBtn:hover {
  cursor: pointer;
}

.body-container {
  width: 100%;
  display: flex;
}

aside {
  min-width: 296px;
  min-height: calc(100vh + 65px);
  overflow: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}

main {
  width: 100%;
  max-width: 992px;
  padding: 4em 6em;
}

.overlay {
  position: relative;
  overflow: hidden;
}
.overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 100vw;
  bottom: 100vh;
  overflow: hidden;
}

section:not(:last-child) {
  border-bottom: 1px solid var(--grey90);
  padding-bottom: 2.5em;
}

/*================== BURGER BTN ==================*/

.burger > #burgerTop, .burger > #burgerMiddle, .burger > #burgerBottom {
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: all .2s ease-out;
}

.arrow > #burgerTop {
  width: 50%;
  height: 2px;
  background: var(--black);
  transition: all .2s ease-out;
}
.arrow > #burgerMiddle {
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: all .2s ease-out;
}
.arrow > #burgerBottom {
  width: 50%;
  height: 2px;
  background: var(--black);
  transition: all .2s ease-out;
}

/*================== SIDEBAR ==================*/

aside {
  padding: 2em 0 2em 2em;
  background: var(--grey100);
  border-right: 1px solid var(--grey90);
  height: 100%;
}

.sticky {
  position: fixed;
  top: 0;
  left: 0;
}

aside h4 {
  margin: 0;
}

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

nav ul li {
  position: relative;
  width: 100%;
  height: 44px;
  
}

nav ul li a {
  position: absolute;
  padding-left: 1em;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 44px;
  color: var(--grey50)!important;
}
nav ul li a:focus, nav ul li a:hover {
  background: var(--grey90);
  text-decoration: none;
}

.active-nav-link {
  background: white;
  color: var(--blue)!important;
  border-top: 1px solid var(--grey90);
  border-left: 1px solid var(--grey90);
  border-bottom: 1px solid var(--grey90);
}

/*================== CODE ==================*/

pre {
  border-radius: 6px;
  font-size: .89em;
}

/*================== TEXT FORMATING ==================*/

.warning {
  background: rgba(255, 0, 0, .1);
  border-radius: 6px;
  border-left: 4px solid red;
  padding: 1em;
  color: var(--grey50);
}

.warning strong {
  color: red;
  display: block;
}

/*================== MEDIA QUERIES ==================*/

@media screen and (max-width: 768px) {
  body {
    font-size: 15px;
  }
  main {
    padding: 1em 3em 2em 1em;
  }

  .overlay::after {
    background: rgba(0, 0, 0, .65);
  }
}