* {
  box-sizing: border-box;
}

html {
  background: #001;
  color: #cde;
  font-size: 1.1rem;
  font-family: "Berkeley Mono", monospace, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Symbola';
}

body {
  display: flex;
  flex-direction: column;
  height:100vh;
  padding: 0.25em 7em;
  text-align: center;
}

.header {
  text-align: left;
}

/* Increase header font */
.header h1 {
  font-size: 25px;
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 1.5em;
}

.navbar a {
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffcc00;
  transition: width 0.25s ease;
}

.navbar a:hover::after {
  width: 100%;
}

a,
a:visited {
  color: #cde;
  position: relative;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffcc00;
}

/* Underline slide-in from left for main content links */
.main a {
  text-decoration: none;
}

.main a::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: #ffcc00;
  transition: width 0.25s ease;
}

.main a:hover::before {
  width: 100%;
}

/* External link arrow */
a[href*="://"] {
  margin-right: 1em;
}

a[href*="://"]::after {
  content: "↗";
  position: absolute;
  right: -1em;
  font-weight: bold;
  color: #ffcc00;
  transition: transform 0.2s ease;
}

a[href*="://"]:hover::after {
  transform: translate(2px, -2px);
}


/* Main column */
.main {
  -ms-flex: 80%; /* IE10 */
  flex: 80%;
  padding-top: 3%;
  text-align: justify;
}

/* makes unordered lists invisible by default*/
/* ul { */
/*     display:none;  */
/* } */
/* adds some space between elements of a list*/
li {margin-bottom: 15px;}

/* Footer */
.footer {
  bottom:0;
  width:100%;
}

/* Responsive layout - when the screen is less than 700px wide  */
@media screen and (max-width: 700px) {
  body {
    padding: 0.25em 2em;
    width: 100%;
  }
}

/* Responsive layout - when the screen is less than 400px wide  */
@media screen and (max-width: 400px) {
  body {
    float: none;
    padding: 0.25em 1em;
    width: 100%;
  }
}

code, .code-block {
  font-family: "BerkeleyMonoFtl", monospace;
}

.code-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(205, 222, 238, 0.12);
  border-left: 3px solid #ffcc00;
  border-radius: 4px;
  -webkit-text-size-adjust: none;
  font-weight: 100;
  overflow-x: auto;
  font-size: 0.85rem;
}

.code-block .code-block-inner {
  font-size: inherit;
  font-family: inherit;
  line-height: 1.5;
  padding: 1em 1.2em;
  tab-size: 2;
}

.code-block.has-language-tag .code-block-inner {
  padding-top: 2.2em;
}

.code-block .language-tag {
  line-height: 1.1;
  width: auto;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(255, 204, 0, 0.15);
  color: #ffcc00;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0 0 4px 0;
}

.code-block .code-block-inner {
  width: 100%;
  overflow-x: auto;
}

.code-block .copypaste {
  position: absolute;
  right: 0px;
  top: 0px;
  background: none;
  padding: 12px;
  cursor: pointer;
  width: auto;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: inherit;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  transition: border-color 0.1s ease-in-out;
  border-radius: 4px;
}

/* Syntax highlighting tokens */
.code-block .kw {
  color: #ffcc00;
}

.code-block .ty {
  color: #6eb5ff;
}

.code-block .fn {
  color: #b8d7a3;
}

.code-block .str {
  color: #ce9178;
}

.code-block .num {
  color: #b5cea8;
}

.code-block .cmt {
  color: #6a9955;
  font-style: italic;
}

.code-block .mac {
  color: #c586c0;
}

.code-block .life {
  color: #d7ba7d;
}

.code-block .attr {
  color: #9cdcfe;
}

.code-block .op {
  color: #d4d4d4;
}

.code-block .self {
  color: #569cd6;
}
