@import "pastie.css";
@import "resume.css";

@font-face {
  font-family: "Bevan";
  src: url("/assets/fonts/Bevan-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "PT Sans";
  src: url("/assets/fonts/PTSans-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "PT Sans";
  src: url("/assets/fonts/PTSans-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "PT Sans";
  src: url("/assets/fonts/PTSans-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "PT Sans";
  src: url("/assets/fonts/PTSans-BoldItalic.ttf") format("truetype");
  font-weight: bold;
  font-style: italic;
}


:root {
  --white: #f9f9f9;
  /* --black: #36383F; */
  --black: #222;
  --gray: #85888C;
  --gray2: #eee;
  --gray5: #ccc;
  --linkblue: #0088cc;
  --linkblue2: #abd7ed;
  --bodyfont: "PT Sans", Arial, sans-serif;
  --titlefont: "Bevan", Georgia, serif;
}

/* variables*/

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: var(--black);
  background-color: var(--white);
  font-family: var(--bodyfont);
  line-height: 1.6em;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Global */
body {
  font-size: 20px;
}

.divider {
  height: 0px;
  width: 100%;
  border: 10px solid var(--black);
  opacity: 0.2;
  border-radius: 20px;
}

h1,
h2,
h3 {
  font-family: var(--titlefont);
  line-height: 1.4em;
}

h2 {
  text-align: center;
}

a {
  color: var(--linkblue);
}

a:hover {
  filter: brightness(85%);
  text-decoration: underline;
}

hr {
  border: 7.5px solid var(--gray2);
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
}

p {
  margin-top: 1em;
  margin-bottom: 1em;
}

pre.highlight {
  max-width: 100vw;
  overflow: scroll;
  /* background: var(--gray2); */
  border: 5px solid var(--gray2);
  padding: 8px 16px 8px 8px;
  border-radius: 8px;
  font-size: 0.8em;
  line-height: 1.4em;
}

ul,
ol {
  margin-left: 24px;
}

li {
  margin-top: 0.6em;
  margin-bottom: 0.6em;
}

ul li {
  list-style: disc;
}

ol li {
  list-style: decimal;
}

/* Header */
.header {
  padding-top: 10px;
  background-color: var(--white);
  box-shadow: 1px 1px 5px 0px var(--gray);
  position: sticky;
  top: 0;
  width: 100%;
  border-bottom: 10px solid var(--black);
}

/* Logo */
.logo {
  display: inline-block;
  color: var(--black);
  margin-left: 10px;
  font-family: var(--titlefont);
  font-size: 32px;
}

.nee {
  /* display: none !important; */
  font-size: 24px;
  display: block;
  color: var(--gray);
  margin-top: 2px;
}

/* Nav menu */
.nav {
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: var(--white);
  overflow: hidden;
}

.menu {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 0;
}

.menu li {
  list-style: none;
  margin-top: 10px;
}

.nav .menu .divider {
  opacity: 0.1;
  width: 80px;
  margin-top: -10px;
  margin-bottom: -10px;
  border-width: 3px;
}

.menu a {
  display: block;
  padding: 24px 24px;
  color: var(--black);
  font-size: 36px;
  font-family: var(--titlefont);
  font-weight: bold;
  color: var(--linkblue);
  text-align: center;
  ;
}

.menu a:hover {
  /* background-color: var(--gray); */
  /* color: white; */
}

.nav {
  max-height: 0;
  transition: max-height 0.2s ease-out;
}

.nav .divider {
  margin: 8px 20px;
  width: calc(100% - 40px);
  border-width: 5px;
}

/* Menu Icon */
.hamb {
  cursor: pointer;
  float: right;
  padding: 30px 20px;
  margin-top: -16px;
}

/* Style label tag */

.hamb-line {
  background: var(--black);
  display: block;
  height: 2px;
  position: relative;
  width: 24px;

}

/* Style span tag */

.hamb-line::before,
.hamb-line::after {
  background: var(--black);
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .15s ease-out;
  width: 100%;
}

.hamb-line::before {
  top: 5px;
}

.hamb-line::after {
  top: -5px;
}

.side-menu {
  display: none;
}

/* Hide checkbox */

/* Toggle menu icon */
.side-menu:checked~nav {
  max-height: 100%;
  border-bottom: 10px solid var(--black);
}

.side-menu:checked~.hamb .hamb-line {
  background: transparent;
}

.side-menu:checked~.hamb .hamb-line::before {
  transform: rotate(-45deg);
  top: 0;
}

.side-menu:checked~.hamb .hamb-line::after {
  transform: rotate(45deg);
  top: 0;
}

.content-column {
  padding: 12px;
}

/* Responsiveness */
@media (min-width: 670px) {
  body {
    display: flex;
    font-size: 20px;
  }

  .nav-column {
    min-width: 400px;
    width: 400px;
    margin-right: 36px;
  }

  .content-column {
    padding: 24px;
    padding-right: 32px;
    max-width: 800px;
  }

  .header {
    border: 15px solid var(--black);
    border-radius: 20px;
    margin-left: 20px;
    margin-top: 30px;
    padding: 20px;
  }

  .nav {
    max-height: none;
    top: 0;
    position: relative;
    /* float: right; */
    width: fit-content;
    border: none;
    transition: none;
    /* background-color: transparent; */
  }

  .menu {
    margin-top: 20px;
    align-items: flex-start;
  }

  .menu a {
    padding: 8px 30px;
    transition: all 0.10s ease-in-out;
  }

  .nav .menu .divider {
    display: none;
  }

  .menu a:hover {
    background-color: transparent;
    filter: brightness(85%);
    text-decoration: underline;
  }

  .hamb {
    display: none;
  }

  a.logo {
    font-size: 52px;
    line-height: 0.9em;
    transition: all 0.10s ease-in-out;
  }

  a.logo:hover {
    /* filter: brightness(85%); */
    color: black;
    text-decoration: none;
  }

  pre.highlight {
    max-width: 65vw;
    /* width: calc(100vw - 500px); */
    overflow: scroll;
    border: 5px solid var(--gray2);
    padding: 8px 16px 8px 8px;
    border-radius: 8px;
  }

  h2 {
    text-align: left;
  }
}



/** Home Page **/
.home {
  display: flex;
  flex-direction: column;
  line-height: 1.6em;
}

.home .headline {
  font-size: 25px;
  border-radius: 20px;
  border: 15px solid var(--gray5);
  margin-top: 5px;
  padding: 17px;
  line-height: 1.6em;
  align-self: flex-start;
}

.home .headline h1 {
  display: inline;
  font-size: inherit;
}

.home .headline p {
  display: inline;
}

.home .rest {
  margin-top: 8px;
  padding-left: 32px;
  padding-right: 32px;
}

.home .rest p {
  margin: 1em 0;
}

.home .rest .post-summary {
  margin-top: 24px;
}

@media (min-width: 670px) {
  .home .rest .post-summary h2 {
    text-align: left;
  }
}

/* .home .rest .divider {
  border-width: 7px;
  align-self: center;
  width: 50%;
} */

/** Page Layout **/
.page h1 {
  /* margin-top: 16px; */
  margin-bottom: 16px;
  line-height: 1.6em;
}

.page h2 {
  margin-top: 20px;
  font-size: 26px;
}

.page h3 {
  font-size: 20px;
}

.page .github a {
  color: var(--linkblue2);
}