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

html, body, pre, code, kbd, samp {
    font-family: "Press Start 2P";
}

body {
  padding: 0 1rem;
  margin: 0 2rem;
  color: #fff;
  background-color: #212529;
}

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

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

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;
  align-items: center;
}

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

.nav-brand .brand-logo {
  margin-right: 1rem;
}
.nav-brand > a {
  color: #fff;
  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 {
  transition: margin-left .5s;
  margin-bottom: 4rem;
}

.break-all {
  word-break: break-all;
}

/* Sidebar */

.sidebar {
  height: 100%;
  width: 0px;
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  background-color: #212529;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 100px;
  /*border-right: 4px solid #949797;*/
}

.sidebar a {
  padding: 8px 8px 8px 0px;
  text-decoration: none;
  font-size: 16px;
  display: block;
  transition: 0.3s;
}

.sidebar .close-button {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 24px;
  margin-top: 80px;
  margin-left: 100px;
  padding-bottom: 20px;
}

.open-button {
  padding: 8px 8px 8px 8px;
  position: absolute;
  top: 80px;
  left: auto;
  font-size: 24px;
  margin-top: 0px;
  margin-left: 0px;
  margin-bottom: 10px; 
}

 #list { 
  width: 90%; 
  padding-bottom: 20px;
  margin-bottom: 20px;
  /*border-bottom: 5px solid #fff;*/
}

.data-row {
    margin-bottom: 20px;
}

.hline {
  /*border-top: 5px solid #fff;*/
  height: 20px;
}

.hline > td {
  border-top: 5px solid #fff;
  padding-bottom: 20px;
}

 #overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.8); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  overflow: auto;
  overscroll-behavior: none;
  /*cursor: pointer; /* Add a pointer on hover */
}

#button-overlay {
  position: fixed; /* Sit on top of the page content */
  display: block; /* Hidden by default */
  /*width: 100%; /* Full width (cover the whole page) */
  /*height: 100%; /* Full height (cover the whole page) */
  top: 0px;
  left: 0px;
  /*background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 3; /* Specify a stack order in case you're using a different order for other elements */
  /*cursor: pointer; /* Add a pointer on hover */
}

#message-overlay {
  position: fixed; /* Sit on top of the page content */
  display: block; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: auto; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 6; /* Specify a stack order in case you're using a different order for other elements */
  overflow: auto;
  overscroll-behavior: none;
  /*cursor: pointer; /* Add a pointer on hover */
}

#message-overlay > .container {
  max-width: 980px;
  margin: 0 auto;
  margin-top: 80px;
}

#preview-overlay{
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.8); /* Black background with opacity */
  z-index: 4; /* Specify a stack order in case you're using a different order for other elements */
  overflow: auto;
  overscroll-behavior: none;
  /*cursor: pointer; /* Add a pointer on hover */
}

#preview-overlay > .container {
  max-width: 980px;
  margin: 0px auto;
  margin-top: 80px;
}

.overlay{
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.8); /* Black background with opacity */
  z-index: 5; /* Specify a stack order in case you're using a different order for other elements */
  overflow: auto;
  overscroll-behavior: none;
  /*cursor: pointer; /* Add a pointer on hover */
}

.overlay > .container {
  max-width: 980px;
  margin: 0px auto;
  margin-top: 100px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidebar {padding-top: 15px;}
  .sidebar a {font-size: 14px;}
}

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

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

.topic {
  margin-bottom: 3rem;
}

/* 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;
}

textarea {
  width: calc(100% - 10px);
}

.nes-field.is-inline.-right {
  align-self: flex-end;
}

/* 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: 800px;
}
.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;
}

/* 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: 1024px) {
  body {
    margin: 2rem 0.2rem;
    padding: 0;
    font-size: 8pt;
  }

  header > .container {
    margin: 0 0.2rem;
    font-size: 11pt;
  }

  header > .container > a {
    font-size: 11pt;
  }

  #nescss > .container {
    /*margin-top: 190px;*/
    margin-left: 50px;
    font-size: 8pt;
  } 
  
  #nescss > .nes-container {
    margin-right: 0.1em;
  }

  /*#button-overlay {
    top: 80px;
  }*/

  #message-overlay > .container {
    margin-left: 50px;
    margin-right: 50px;
  }

  #preview-overlay > .container {
    margin-left: 50px;
    margin-right: 50px;
  }

  .overlay > .container {
    margin-left: 50px;
    margin-right: 50px;
  }

  .github-link {
    display: none;
  }

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

@media screen and (max-width: 600px) {

  body {
    font-size: 8pt;
  }

}
