* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  position: relative;
}

body {
  font-family: 'Merriweather', serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Lato', sans-serif;
  color: #222;
  margin-bottom: 0;
}

pre,
code {
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
}

code {
  border-radius: 3px;
  padding: 1px 3px;
  background: #f0f0f0;
  -webkit-hyphens: none;
  hyphens: none;
}

pre {
  overflow-x: auto;
  padding: 8px 12px;
  border-radius: 3px;
  background: #202020;
  color: #d0d0d0;
}

pre code {
  padding: initial;
  background: transparent;
}

a:hover,
a:active {
  outline: none;
  background-color: rgba(0,0,0,0);
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

blockquote {
  border-left: 5px solid #ccc;
  background: #f5f5f5;
  margin: 20px;
  padding-left: 10px;
}

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

.wrapper {
  overflow: hidden;
  position: relative;
}

.header {
  padding: 10px 0;
  background: #2a90e7;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  font-family: 'Lato', sans-serif;
  text-align: right;
}

.nav-logo img {
  display: block;
  max-height: 40px;
  width: auto;
}

.nav-links {
  margin: 0;
  padding: 0;
  font-size: 14px;
  list-style: none;
}

.nav-links li {
  display: inline-block;
  margin: 0 0 0 15px;
}

.nav-links li:first-child {
  margin-left: 0;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
}

.nav-links a:hover {
  text-shadow: 1px 1px rgba(0,0,0,0.25);
}

.content {
  display: block;
  max-width: 800px;
  margin: 20px auto;
  padding: 0 15px;
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

.content img,
.content video {
  display: block;
  max-width: 100%;
}

.article-title {
  font-size: 34px;
  color: #222;
  margin: 0;
  line-height: 1.3;
}

.article-subtitle {
  display: flex;
  align-items: center;
}

.article-date {
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  color: #777;
}

.article-content p {
  margin: 15px 0 25px;
}

.article-content h2 + p,
.article-content h3 + p,
.article-content h4 + p,
.article-content h5 + p,
.article-content h6 + p {
  margin-top: 0;
}

.article-content a {
  text-decoration: none;
  color: inherit;
  border-bottom: 2px solid #2a90e7;
}

.article-content a:hover,
.article-content a:active {
  border-color: #1765a8;
}

.article-content hr {
  width: 150px;
  margin: 50px auto;
  height: 1px;
  overflow: hidden;
  border: none;
  background: #e8e8e8;
}

.article-taxonomy {
  list-style: none;
  padding-left: 0;
  font-family: 'Lato', sans-serif;
  color: #404040;
  font-size: 14px;
  text-align: left;
}

.article-taxonomy hr {
  width: 200px;
  margin: 5px 0 10px;
  height: 1px;
  border: none;
  background: #e8e8e8;
}

.article-taxonomy a {
  display: inline-block;
  margin: 0 10px 0 0;
  text-decoration: none;
  color: inherit;
  transition: color 300ms;
}

.article-taxonomy a:hover,
.article-taxonomy a:active {
  color: #ccc;
}

.article-image-large {
  padding: 2px;
  border: solid 1px #e6e6e6;
  opacity: 1;
  transition: opacity 1s;
}

.article-image-large:hover,
.article-image-large:active {
  opacity: 0.5;
}

.article-next-links {
  background-color: #f7f7f7;
  padding: 15px;
  border-radius: 4px;
}

.article-next-links ul {
  display: flex;
  margin: 0 -5px;
}

.article-next-links li {
  margin: 10px 5px 0;
  max-width: 50%;
}

.article-next-links a {
  display: block;
  height: 100%;
  color: #444;
  text-decoration: none;
  padding: 10px;
  border: 1px solid #eee;
  background-color: #fff;
  border-radius: 4px;
}

.article-next-links a:hover {
  border-color: #777;
}

.article-next-links p {
  margin: 0;
  color: #777;
  font-size: 80%;
  line-height: 1.4;
}

.list,
.category,
.tag-cloud {
  margin: 0;
  padding: 0;
  line-height: 1.3em;
}

.list-title,
.category-title,
.tag-cloud-title {
  font-size: 32px;
  margin-top: 60px;
  padding-bottom: 10px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 20px;
  padding: 0;
}

.list-item-date {
  display: block;
  padding: 4px 0;
  font-family: 'Lato', sans-serif;
  color: #ccc;
  font-size: 14px;
}

.list-item-tags {
  flex: 1 0 auto;
  margin: 0 10px;
  display: inline-flex;
}

.list-item-tags li {
  display: inline-flex;
  align-items: center;
}

.list-item-tags li:not(:first-of-type) {
  margin-left: 4px;
}

.list-item a:not(.tag) {
  display: inline-block;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 0;
  text-decoration: none;
  font-size: 17px;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  color: #222;
  border-bottom: 1px solid #ddd;
  transition: border-color 300ms;
}

.list-item a:not(.tag):hover {
  border-color: #222;
}

.category-item {
  display: block;
  list-style: none;
  margin: 5px 0 15px;
  padding: 0;
}

.category-item a {
  display: inline-block;
  padding: 5px 0;
  text-decoration: none;
  font-size: 19px;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  color: #222;
  transition: color 300ms;
}

.category-item-count {
  font-family: 'Lato', sans-serif;
  margin-right: 15px;
  color: #ccc;
  font-size: 14px;
  font-weight: bold;
}

.tag-cloud-item {
  margin: 0;
  padding: 0;
}

.tag-cloud-item li {
  display: inline-block;
  list-style: none;
  padding: 0 15px 15px 0;
}

.tag-cloud-item a {
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-weight: bold;
  color: #222;
  transition: color 300ms;
}

.tag-cloud-item a:hover,
.tag-cloud-item a:active,
.category-item a:hover,
.category-item a:active {
   color: #ccc;
}

.footer {
  display: none;
  margin: 0;
  padding: 10px 0 25px;
  text-align: center;
  font-family: 'Lato', sans-serif;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #ccc;
  font-size: 14px;
}

.footer-links li {
  margin: 0;
  padding: 0;
  display: inline-block;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  transition: color 300ms;
  margin: 0 5px;
}

.footer-links a:hover {
  color: #222;
}

.footer-links li::before {
  content: '•';
  position: relative;
  left: -2px;
}

.footer-links li:first-child::before {
  display: none;
}

.page-links {
  margin: 25px 0;
  padding: 0;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
}

.page-links li {
  display: inline-block;
}

.page-links a {
  text-decoration: none;
  padding: 0 5px;
  color: #555;
  transition: color 300ms;
}

.page-links a:hover {
  color: #ccc;
}

.page-links-active a,
.page-links-disabled a {
  text-decoration: none;
  color: #ccc;
}

.error-page-title {
  text-align: center;
  font-size: 76px;
}

.error-page-content {
  text-align: center;
}

.error-page-content a {
  text-decoration: none;
  color: inherit;
  transition: color 600ms;
}

.error-page-content a:hover,
.error-page-content a:active {
  color: #ccc;
}

.tag {
  padding: 2px 8px;
  font-size: 12px;
  text-transform: lowercase;
  text-decoration: none;
  background-color: #333 !important;
  color: #fff;
  border-radius: 4px;
}

.tag-javascript {
  background-color: #f0db4f !important;
  color: #333;
}

.tag-html {
  background-color: #e24f24 !important;
}

.tag-css {
  background-color: #2161ae !important;
}

iframe[src*="//codepen.io/"] {
    margin: 0 -150px;
    width: calc(100% + 300px) !important;
    max-width: calc(100vw - 20px);
}

iframe[src*="//codepen.io/"] + p {
    margin-top: 1.5em;
}

@media (min-width: 600px) {
  code {
    padding: 2px 4px;
  }

  pre,
  code {
    font-size: 17px;
  }

  .header {
    padding: 20px 0;
  }

  .nav-logo img {
    max-height: 50px;
  }

  .nav-links {
    font-size: 18px;
  }

  .nav-links li {
    margin: 0 0 0 30px;
  }

  .content {
    font-size: 19px;
    line-height: 1.8;
    margin: 40px auto;
  }

  .article-title {
    font-size: 42px;
  }

  .article-date {
    font-size: 19px;
  }

  .article-taxonomy {
    font-size: 17px;
  }

  .list-title,
  .category-title,
  .tag-cloud-title {
    font-size: 38px;
  }

  .list-item a:not(.tag) {
    padding: 5px 0;
    font-size: 21px;
  }

  .list-item-date {
    padding: 5px 0;
    font-size: 17px;
    text-align: right;
    float: right;
  }

  .category-item {
     display: inline-block;
  }

  .category-item a {
     font-size: 21px;
  }

  .footer-links {
    font-size: inherit;
  }

  .footer-links a {
    margin: 0 15px;
  }

  .page-links {
    font-size: 19px;
  }

  .error-page-title {
    font-size: 114px;
  }
}


table {
	border-collapse: collapse;
	width: 80%;
	margin: auto;
	background-color: #fafafa;
}

td, th {
	padding: 5px 10px;
	border: 1px solid #777;
}

.article-content li {
  list-style-type: disc;
  margin-left: 30px;
}

button {
  padding: 10px 15px;
  border-radius: 20px;
  border: 0;
  outline: none;
}

@media (max-width: 480px) {
  .header .nav-links {
    display: none;
  }

  table {
    width: 100%;
  }
}

@media(prefers-color-scheme: dark) {
  body {
    background-color: #222;
  }

  .header {
    background-color: #000;
  }

  .article-title, h2, h3 {
    color: #fff;
  }

  .content {
    color: #eee;
  }

  code {
    background-color: #000;
    color: #fff;
  }

  .article-next-links {
    background-color: #444;
  }

  .article-next-links a {
    background-color: #ddd;
  }

  .list-item a:not(.tag) {
    color: #fff;
  }

  table {
    background-color: #444;
  }
}
