@charset "utf-8";
@import url(https://fonts.googleapis.com/css?family=Press+Start+2P);

body {
  padding: 0 2rem;
  margin: 0 2rem;
}

#nescss > .container {
  max-width: 980px;
  margin: 0 auto;
  margin-top: 150px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  border-bottom: 4px solid #D3D3D3;
  background-color: white;
}

header > .container {
  display: flex;
  align-items: baseline;
  max-width: 980px;
  margin: 0 auto;
  padding-top: 1rem;
  transition: all 0.2s ease;
}

header > .container > .nav-brand {
  margin-right: auto;
}
header > .container > .social-button {
  margin-left: auto;
}

.nav-brand .brand-logo {
  margin-right: 1rem;
}
.nav-brand > a {
  color: #212529;
  text-decoration: none;
}

.social-buttons p {
  margin-bottom: 0;
}

/* Header-sticky */
header.sticky > .container {
  font-size: 0.8rem;
  padding: 0;
  align-items: center;
}
header.sticky .nav-brand h1 {
  margin: 0;
}
header.sticky .nav-brand p {
  display: none;
  margin-bottom: 0;
  font-size: 0.6rem;
}

/* Main */
.main-content {
  margin-bottom: 4rem;
}

/* Footer */
footer {
  text-align: center;
  margin-bottom: 2rem;
}
footer a {
  color: #333;
  text-decoration: none;
}

h2 > a {
  margin-right: 1rem;
}

.topic {
  margin-bottom: 3rem;
}

/* github link */
.github-link {
  position: fixed;
  top: 100px;
  right: -240px;
  z-index: 999;
  display: flex;
  height: 100px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}
.github-link.active {
  right: 10px;
}
.github-link:hover {
  text-decoration: none;
}
.github-link > p.nes-balloon {
  align-self: flex-start;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  color: #333;
}
.github-link > i.nes-octocat {
  align-self: flex-end;
}

/* Showcase */
section.showcase {
  margin-top: 2.5rem;
}
section.showcase > section.nes-container {
  padding-bottom: 2.5rem;
}
section.showcase > section.nes-container,
section.showcase > section.samplecode {
  position: relative;
}
.nes-btn.showcode {
  position: absolute;
  font-size: 12px;
  bottom: 0px;
  right: -4px;
}
.nes-btn.copycode {
  position: absolute;
  font-size: 12px;
  top: 0;
  right: 0px;
}

section.showcase > section.samplecode > pre code {
  font-size: 13px;
  line-height: 1.5;
  padding: 1.5rem;
}

.item {
  margin-bottom: -1rem;
}
.item > * {
  margin-bottom: 1.5rem !important;
}

/* Containers */
.item.containers > .nes-container {
  display: inline-block;
  max-width: 400px;
}

/* Balloons sample */
section.message-list {
  display: flex;
  flex-direction: column;
}
.message-list > .message {
  display: flex;
  margin-top: 2rem;
}
.message-list > .message > .nes-balloon {
  max-width: 550px;
}
.message-list > .message i {
  align-self: flex-end;
}
.message-list > .message.-left {
  align-self: flex-start;
}
.message-list > .message.-right {
  align-self: flex-end;
}
.message-list > .message.-left i {
  margin-right: 2rem;
}
.message-list > .message.-right i {
  margin-left: 2rem;
}

.icon-list > .blur-filter {
  filter: blur(10px);
}

/* Copied balloon */
.nes-balloon.copied-balloon {
  position: absolute;
  display: none;
  padding: 1rem;
  box-shadow: 0 5px 20px 5px rgba(0,0,0,.6);
  z-index: 1;
}

/* Topic */
h3.topic-title {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

h3.topic-title > i {
  margin-right: 1.5rem;
}

/* coreteam */
.coreteam-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.nes-container.member-card {
  display: flex;
  padding: 1rem 1.5rem;
  width: 470px;
  margin-bottom: 2rem;
}

.member-card .avatar > img {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
.member-card > .profile {
  margin-left: 1.5rem;
}
.member-card > .profile > .name {
  font-size: 20px;
}

/* Contributors */
.contributor {
  display: inline-block;
  margin: 1rem;
  text-align: center;
  width: 160px;
}
.contributor > p {
  margin: .5rem;
  font-size: 12px;
}
.contributor img.nes-avatar {
  transition: all .4s;
  display: inline-block;
}
.contributor:hover {
  text-decoration: none;
  opacity: 0.7;
}

/* Articles */
.article-link > .title a {
  color: #333;
}
.article-link > .title span {
  margin-left: 1rem;
}

/* Scroll back to top */
.scroll-btn {
  position: fixed;
  bottom: -60px;
  right: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,.6);
  transition: all 0.3s ease;
}
.scroll-btn.active {
  bottom: 25px;
}
.scroll-btn > span {
  display: block;
  transform: rotateZ(90deg);
}

img.lazy {
  background-color: #D3D3D3;
}

@media screen and (max-width: calc(980px - 4rem)) {
  header > .container {
    margin: 0 4rem;
  }
}

@media screen and (max-width: 768px) {
  body {
    margin: 2rem 0.5rem;
    padding: 0;
  }

  header > .container {
    margin: 0 0.5rem;
  }

  .github-link {
    display: none;
  }

  .message-list > .message > .nes-balloon {
    max-width: 60%;
  }
}

@media screen and (max-width: 580px) {
  #nescss > .container {
    margin-top: 190px;
  }
}

.retro-header {
  /* Turns on Flexbox */
  display: flex;

  /* Stacks the container and the buttons on top of each other */
  flex-direction: column;

  /* Centers everything horizontally */
  align-items: center;

  /* Centers everything vertically */
  justify-content: center;

  /* Adds a nice 8-bit chunk of space between the title and the buttons */
  gap: 0.2rem;

  /* Optional: Adds breathing room around the edges */
  padding: 0.2rem;
}

/* Optional: Centers the buttons next to each other */
.social-buttons {
  display: flex;
  gap: 1rem;
}

.nes-icon.earth::before {
  /* Set up the 1x1 pixel canvas */
  width: 1px;
  height: 1px;
  color: #000;

  /* Paint the globe pixel by pixel */
  box-shadow:
    /* Row 1 */
    6px 1px, 7px 1px, 8px 1px, 9px 1px, 10px 1px,
    /* Row 2 */
    4px 2px, 5px 2px, 6px 2px #55a8ff, 7px 2px #55a8ff, 8px 2px #55a8ff, 9px 2px #55a8ff, 10px 2px #55a8ff, 11px 2px, 12px 2px,
    /* Row 3 */
    3px 3px, 4px 3px #3b8fd7, 5px 3px #55a8ff, 6px 3px #55a8ff, 7px 3px #55a8ff, 8px 3px #55a8ff, 9px 3px #c5d45d, 10px 3px #c5d45d, 11px 3px #c5d45d, 12px 3px #c5d45d, 13px 3px,
    /* Row 4 */
    2px 4px, 3px 4px #3b8fd7, 4px 4px #55a8ff, 5px 4px #55a8ff, 6px 4px #55a8ff, 7px 4px #55a8ff, 8px 4px #c5d45d, 9px 4px #c5d45d, 10px 4px #c5d45d, 11px 4px #c5d45d, 12px 4px #c5d45d, 13px 4px #acbd4b, 14px 4px,
    /* Row 5 */
    2px 5px, 3px 5px #3b8fd7, 4px 5px #55a8ff, 5px 5px #55a8ff, 6px 5px #55a8ff, 7px 5px #55a8ff, 8px 5px #acbd4b, 9px 5px #c5d45d, 10px 5px #c5d45d, 11px 5px #acbd4b, 12px 5px #acbd4b, 13px 5px #acbd4b, 14px 5px,
    /* Row 6 */
    1px 6px, 2px 6px #3b8fd7, 3px 6px #55a8ff, 4px 6px #55a8ff, 5px 6px #55a8ff, 6px 6px #55a8ff, 7px 6px #acbd4b, 8px 6px #55a8ff, 9px 6px #55a8ff, 10px 6px #acbd4b, 11px 6px #acbd4b, 12px 6px #acbd4b, 13px 6px #acbd4b, 14px 6px #8b984b, 15px 6px,
    /* Row 7 */
    1px 7px, 2px 7px #3b8fd7, 3px 7px #55a8ff, 4px 7px #55a8ff, 5px 7px #55a8ff, 6px 7px #c5d45d, 7px 7px #c5d45d, 8px 7px #c5d45d, 9px 7px #55a8ff, 10px 7px #3b8fd7, 11px 7px #3b8fd7, 12px 7px #8b984b, 13px 7px #8b984b, 14px 7px #8b984b, 15px 7px,
    /* Row 8 */
    1px 8px, 2px 8px #3b8fd7, 3px 8px #55a8ff, 4px 8px #55a8ff, 5px 8px #c5d45d, 6px 8px #c5d45d, 7px 8px #c5d45d, 8px 8px #c5d45d, 9px 8px #c5d45d, 10px 8px #acbd4b, 11px 8px #acbd4b, 12px 8px #2763a1, 13px 8px #8b984b, 14px 8px #8b984b, 15px 8px,
    /* Row 9 */
    1px 9px, 2px 9px #3b8fd7, 3px 9px #3b8fd7, 4px 9px #55a8ff, 5px 9px #c5d45d, 6px 9px #c5d45d, 7px 9px #8b984b, 8px 9px #c5d45d, 9px 9px #acbd4b, 10px 9px #acbd4b, 11px 9px #8b984b, 12px 9px #8b984b, 13px 9px #2763a1, 14px 9px #8b984b, 15px 9px,
    /* Row 10 */
    1px 10px, 2px 10px #c5d45d, 3px 10px #3b8fd7, 4px 10px #3b8fd7, 5px 10px #8b984b, 6px 10px #8b984b, 7px 10px #8b984b, 8px 10px #8b984b, 9px 10px #acbd4b, 10px 10px #acbd4b, 11px 10px #8b984b, 12px 10px #8b984b, 13px 10px #2763a1, 14px 10px #2763a1, 15px 10px,
    /* Row 11 */
    2px 11px, 3px 11px #c5d45d, 4px 11px #3b8fd7, 5px 11px #3b8fd7, 6px 11px #3b8fd7, 7px 11px #3b8fd7, 8px 11px #acbd4b, 9px 11px #acbd4b, 10px 11px #8b984b, 11px 11px #8b984b, 12px 11px #2763a1, 13px 11px #2763a1, 14px 11px,
    /* Row 12 */
    2px 12px, 3px 12px #8b984b, 4px 12px #c5d45d, 5px 12px #3b8fd7, 6px 12px #3b8fd7, 7px 12px #3b8fd7, 8px 12px #8b984b, 9px 12px #8b984b, 10px 12px #8b984b, 11px 12px #2763a1, 12px 12px #2763a1, 13px 12px #2763a1, 14px 12px,
    /* Row 13 */
    3px 13px, 4px 13px #8b984b, 5px 13px #8b984b, 6px 13px #3b8fd7, 7px 13px #3b8fd7, 8px 13px #8b984b, 9px 13px #8b984b, 10px 13px #2763a1, 11px 13px #2763a1, 12px 13px #2763a1, 13px 13px,

    /* Row 14 */
    4px 14px, 5px 14px, 6px 14px #2763a1, 7px 14px #2763a1, 8px 14px #2763a1, 9px 14px #2763a1, 10px 14px #2763a1, 11px 14px, 12px 14px,
    /* Row 15 */
    6px 15px, 7px 15px, 8px 15px, 9px 15px, 10px 15px;
}
