/** RESET */
/*
  The code below has been extracted from the following projects:
  - https://github.com/murtaugh/HTML5-Reset
  - http://meyerweb.com
  - http://html5doctor.com
  - http://html5boilerplate.com
  … and then cleaned up a lot.
*/

/* Base reset */
html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
code,
em,
img,
small,
strong,
sub,
sup,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
footer,
header,
nav,
section,
time,
audio,
video {
  padding: 0;
  border: 0;
  margin: 0;
  background: transparent;
  font-size: 100%;
  font-weight: inherit;
  vertical-align: baseline;
}

article,
aside,
figure,
footer,
header,
nav,
section {
  display: block;
}

html {
  box-sizing: border-box;
}

html,
body {
  background-color: #fff;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

img,
object {
  max-width: 100%;
}

/* Lists */
ul {
  margin: 30px 0 30px 2em;
  list-style: none;
}

ol {
  margin: 30px 0 30px 3em;
  list-style: decimal-leading-zero;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

th {
  font-weight: bold;
  vertical-align: bottom;
}

td {
  font-weight: normal;
  vertical-align: top;
}

input,
select {
  vertical-align: middle;
}

input[type='radio'] {
  vertical-align: text-bottom;
}

input[type='checkbox'] {
  vertical-align: center;
}

strong {
  font-weight: bold;
}

label,
input[type='file'] {
  cursor: pointer;
}

input,
select,
textarea {
  border: 0;
  border-radius: 0;
  margin: 0;
}

button,
input[type='button'],
input[type='submit'] {
  padding: 0;
  border: 0;
  border-radius: 0;
  margin: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

/** MAIN STYLES */
/* ======================
      TYPOGRAPHY
   ====================== */

/* Base Text Styles */
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 145%; /* ~1.45 */
  letter-spacing: 0.02em;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

/* Headings */
h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
}

h2 {
  font-size: 2rem; /* 32px */
  line-height: 1.5; /* 48px */
  margin: 1em 0;
  font-weight: bold;
}

h3 {
  font-size: 1.8rem; /* 28.8px */
  line-height: 1.5; /* 43.2px */
  margin: 1em 0;
  font-weight: bold;
}

h4 {
  font-size: 1.2rem; /* 19.2px */
  line-height: 1.5; /* 28.8px */
  margin: 0 0 1em 0;
}

/* Paragraphs and Lists */
p,
ul,
ol {
  font-size: 1.2rem; /* 19.2px */
  line-height: 1.5; /* 28.8px */
}

p {
  margin: 1.5rem 0;
}

/* List Items */
li {
  line-height: 1.5;
  margin-bottom: 1em;
  position: relative;
}

/* Custom List Bullets */
.content ul li:before {
  content: '—';
  position: absolute;
  left: -2rem;
}

/* Links */
a {
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
  text-decoration: none;
}

a:visited {
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

.article a {
  color: #0065fb;
}

.article a:visited {
  color: #0065fb;
}

/* Code Blocks */
code {
  font-family: monospace;
  padding: 6px;
  color: inherit;
}

/* Blockquotes */
blockquote {
  border-left: 5px solid #abb2ba;
  padding-left: 1em;
  margin: 1em 0;
}

/* Horizontal Rule */
hr {
  margin-top: 12px;
  border: 0;
  border-top: 1px solid #eee;
}

/* Text Formatting */
strong {
  font-weight: bold;
}

small {
  font-size: 0.85em;
}

/* Layout */
.layout {
  width: 100%;
}

.o-flex {
  display: flex;
}

/* Header */
.header {
  z-index: 999;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background-color: #fff;
}

.header h2 {
  font-size: 1.8rem;
  line-height: 2em;
  margin: 0 1em;
  font-weight: bold;
}

.header .inner {
  display: flex;
  flex-wrap: nowrap;
}

.logo {
  flex: 0 0 auto;
}

.header .inner .links__list {
  flex: 1 1 auto;
}

.header .inner .links__list a {
  display: inline-block;
  padding-left: 1em;
  font-size: 1.2rem;
}

/* Footer */
.footer {
  background-color: black;
  color: white;
  margin: max(12vmin, 64px) 0 0;
  padding: 48px 0 140px;
  position: relative;
}

.footer .copyright {
  font-size: 0.8em;
}

/* Content */
.article {
  max-width: 773px;
  width: 100%;
  margin: auto;
}

.article pre {
  overflow-x: auto;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  tab-size: 4;
  display: block;
  padding: 1em;
  font-weight: 500;
  background-color: #8691bb1f;
  font-size: 14px;
}

.article img {
  height: auto;
  width: 100%;
  object-fit: cover;
  min-width: 100%;
}

/* Blog */
.blog {
  display: flex;
}

.blog__content {
  flex: 1 1 auto;
  width: 100%;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  flex: 1 1 auto;
  margin-right: 57px;
  padding-left: 16px;
}

.sidebar .links__list {
  width: 100%;
  margin-right: 0;
  margin-top: 7em;
}

.sidebar .links__list a {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.5em;
  letter-spacing: normal;
  display: block;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
  margin-bottom: 1em;
}

.sidebar .links__list a:hover {
  color: #465eb5;
}

/* Buttons */
button {
  cursor: pointer;
  border: none;
  background: transparent;
}

.btn {
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #465eb5;
  border-radius: 5px;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  line-height: 135%;
  font-family: 'Montserrat', sans-serif;
  padding: 1em 1.5em;
}

/* Quiz */
.quiz {
  margin: 2rem 0;
  padding: 20px;
  text-align: left;
  border: 3px solid #eee;
  border-radius: 10px;
  font-size: 1.5rem;
  width: 100%;
}

.quiz-questions-list {
  list-style: none;
  margin-top: 1em;
}

.quiz-questions-list li:before {
  content: '' !important;
}

.quiz-question__label {
  padding: 2px;
  margin: 2px;
  font-size: 1.2rem;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.quiz-question__correct {
  border-color: green;
}

.quiz-question__wrong {
  border-color: red;
}

.quiz-answer__correct {
  color: green;
  font-weight: bold;
}

.quiz-answer__wrong {
  color: red;
  font-weight: bold;
}

.sketchy {
  padding: 4rem 8rem;
  display: inline-block;
  border: 2px solid #747474;
  background: #ffffff;
  position: relative;
}

/* Mobile Navigation */
nav {
  height: 65px;
  width: 60px;
}

nav a {
  text-decoration: none;
  color: #1e1e23;
  opacity: 1;
  font-family: 'work sans', sans serif;
  font-size: 1.5em;
  font-weight: 400;
  transition: 200ms;
}

nav a:hover {
  opacity: 0.5;
}

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

#menuToggle {
  display: flex;
  flex-direction: column;
  position: relative;
  top: 25px;
  z-index: 1;
  user-select: none;
}

#menuToggle input {
  display: flex;
  width: 40px;
  height: 32px;
  position: absolute;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}

#menuToggle span {
  display: flex;
  width: 29px;
  height: 2px;
  margin-bottom: 5px;
  position: relative;
  background: #000;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 5px 0;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-3px, -1px);
  background: #36383f;
}

#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

#menuToggle input ~ ul {
  display: none;
}

#menuToggle input:checked ~ ul {
  display: block;
}

#menu {
  padding: 0;
  font-size: 1em;
  right: 30px;
  top: 30px;
  position: absolute;
  width: 180px;
  height: 250px;
  box-shadow: 0 0 10px #85888c;
  margin: -50px 0 0 -50px;
  padding: 30px;
  padding-top: 50px;
  background-color: #f5f6fa;
  -webkit-font-smoothing: antialiased;
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

#menu li {
  padding: 10px 0;
  transition-delay: 2s;
}

#menuToggle input:checked ~ ul {
  transform: none;
}

/* Media Queries */
@media (min-width: 1600px) {
  .content,
  .footer .inner,
  .header .inner {
    max-width: 1468px;
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  .content,
  .footer .inner,
  .header .inner {
    max-width: 1268px;
    margin-left: auto;
    margin-right: auto;
  }

  .content {
    padding: 3em;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .content,
  .footer .inner,
  .header .inner {
    max-width: 1068px;
    padding: 0 2em;
  }

  .sidebar {
    margin-right: 30px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .blog {
    flex-direction: column;
    padding: 2em;
  }

  .content,
  .footer .inner,
  .header .inner {
    max-width: 100%;
    padding: 0 2em;
  }

  .sidebar {
    margin: 0;
  }

  .sidebar .links__list {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: row;
    margin: 0 0 2em 0 !important;
    padding: 0 !important;
    flex-wrap: wrap;
  }

  .sidebar .links__list a {
    margin: 0 0 0 1em;
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .blog {
    flex-direction: column;
    padding: 1em;
  }

  .header .inner {
    padding: 0 1em;
  }

  .header .inner .links__list a {
    font-size: 1rem;
    padding-left: 0.5em;
  }

  .sidebar .links__list {
    margin-top: 3em !important;
  }

  .sidebar .links__list a {
    font-size: 1.2rem;
    margin: 0 0.5em;
  }

  .article {
    padding: 0 1em;
  }

  .article pre {
    font-size: 12px;
    padding: 0.5em;
  }

  .quiz {
    margin: 1rem 0 !important;
    padding: 0.5em !important;
    font-size: 1.2rem;
  }

  .quiz-question__label {
    font-size: 1rem;
  }

  .sketchy {
    padding: 2rem 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  p,
  ul,
  ol {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header h2 {
    font-size: 1.2rem;
    margin: 0 0.5em;
  }

  .sidebar .links__list {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 1em !important;
  }

  .sidebar .links__list a {
    margin: 0.5em 0;
  }

  #menu {
    width: 150px;
    height: auto;
    right: 15px;
  }

  .footer {
    padding: 24px 0 70px;
  }
}






