@font-face {
  font-family: "Roboto Mono";
  src: url("../font/RobotoMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("../font/RobotoMono-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 500;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("../font/RobotoMono-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: "Roboto Mono";
  src: url("../font/RobotoMono-BoldItalic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  text-rendering: optimizeLegibility;
}

:root {
  --global-font-size: 18px;
  --global-font-color: #fff;
  --global-space: 10px;
  --mono-font-stack: Roboto Mono, Menlo, Monaco, Lucida Console, Liberation Mono,
    DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
  --font-stack: Roboto Mono, Menlo, Monaco, Lucida Console, Liberation Mono,
    DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
  --global-line-height: 1.6em;
  --page-width: 70vw;
  --display-h1-decoration: 1;
  --primary-color: #1a95e0;
  --secondary-color: #7fff00;
  --error-color: #d20962;
  --progress-bar-background: #727578;
  --progress-bar-fill: #151515;
  /* --code-bg-color: black; */
  --input-style: solid;
  --h1-font-color: #ff1818;
  --h2-font-color: #ffff00;
  --h3-font-color: #40e0d0;
  --code-font-color: #7fff00;
}

* {
  box-sizing: border-box;
  text-rendering: geometricPrecision;
}

.label {
  font-family: var(--font-stack);
}

body {
  font-family: var(--font-stack);
  font-size: var(--global-font-size);
  color: var(--global-font-color);
  display: flex;
  min-height: 99vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: #555;
  background-size: cover;
}

body.terminal::-webkit-scrollbar {
  display: none !important;
}

a {
  cursor: pointer;
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: #39ff14;
}

em {
  font-size: var(--global-font-size);
  font-style: italic;
  font-family: var(--font-stack);
  color: var(--font-color);
}

blockquote,
code,
em,
strong {
  line-height: var(--global-line-height);
}

.logo,
blockquote,
code,
footer,
h1,
h2,
h3,
h4,
h5,
h6,
header,
li,
ol,
p,
section,
ul {
  float: none;
  margin: 0;
  padding: 0;
}
.logo,
blockquote,
h1,
h2,
h3,
ol,
p,
ul {
  margin-top: calc(var(--global-space) * 2);
  margin-bottom: calc(var(--global-space) * 2);
}

.terminal .logo,
.terminal blockquote,
.terminal code,
.terminal h1,
.terminal h2,
.terminal h3,
.terminal h4,
.terminal h5,
.terminal h6,
.terminal strong {
  font-size: var(--global-font-size);
  font-style: normal;
  font-family: var(--font-stack);
  color: var(--global-font-color);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  clear: both;
  line-height: var(--global-line-height);
  font-stretch: expanded;
}

h1 {
  position: relative;
  display: table-cell;
  padding: calc(var(--global-space) * 2) 0 calc(var(--global-space) * 2);
  margin: 0;
  overflow: hidden;
  font-weight: 600;
  float: none;
  font-size: 1.45rem !important;
}

h1 {
  margin-bottom: 200px;
  color: var(--h1-font-color) !important;
}

h1::after {
  content: "====================================================================================================";
  position: absolute;
  bottom: 6px;
  left: 0;
  display: var(--display-h1-decoration);
  color: #fff;
}

h2 {
  color: var(--h2-font-color) !important;
  font-size: 1.25rem !important;
}

h3 {
  color: var(--h3-font-color) !important;
  font-size: 1.15rem !important;
}

code {
  font-weight: inherit;
  background-color: black;
  font-family: var(--mono-font-stack);
  color: var(--code-font-color) !important;
}
code::after,
code::before {
  /* content: "`"; */
  display: inline;
}
pre code::after,
pre code::before {
  content: "";
}
pre {
  display: block;
  word-break: break-all;
  word-wrap: break-word;
  color: var(--secondary-color);
  background-color: var(--background-color);
  border: 1px solid var(--secondary-color);
  padding: var(--global-space);
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
}
pre code {
  overflow-x: scroll;
  padding: 0;
  margin: 0;
  display: inline-block;
  min-width: 100%;
  font-family: var(--mono-font-stack);
}

li,
li > ul > li {
  position: relative;
  display: block;
  padding-left: calc(var(--global-space) * 2);
}
nav > ul > li {
  padding-left: 0;
}
li::after {
  position: absolute;
  top: 0;
  left: 0;
}
ul > li::after {
  content: "-";
}
nav ul > li::after {
  content: "";
}
ol li::before {
  content: counters(item, ".") ". ";
  counter-increment: item;
}
ol ol li::before {
  content: counters(item, ".") " ";
  counter-increment: item;
}
.terminal-menu li::after,
.terminal-menu li::before {
  display: none;
}
ol {
  counter-reset: item;
}
/* ol li:nth-child(n + 10)::after {
  left: -7px;
} */
ol ol {
  margin-top: 0;
  margin-bottom: 0;
}

.terminal-menu {
  width: 100%;
}
/* .terminal-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
} */
ul ul {
  margin-top: 0;
  margin-bottom: 0;
}
.terminal-menu ul {
  list-style-type: none;
  padding: 0 !important;
  display: flex;
  flex-direction: row;
  justify-content: left;
  width: 100%;
  flex-grow: 1;
  font-size: var(--global-font-size);
  margin-top: 0;
}
.terminal-menu li {
  display: flex;
  margin: 0 0 0 1.5em;
  padding: 0;
}
ol.terminal-toc li {
  border-bottom: 1px dotted var(--secondary-color);
  padding: 0;
  margin-bottom: 15px;
}
.terminal-menu li:last-child {
  margin-bottom: 0;
}
ol.terminal-toc li a {
  margin: 4px 4px 4px 0;
  background: var(--background-color);
  position: relative;
  top: 6px;
  text-align: left;
  padding-right: 4px;
}
.terminal-menu li a:not(.btn) {
  text-decoration: none;
  display: block;
  width: 100%;
  border: none;
  color: var(--secondary-color);
}
.terminal-menu li a.active {
  color: var(--font-color);
}
.terminal-menu li a:hover {
  background: 0 0;
  color: inherit;
}
ol.terminal-toc li::before {
  content: counters(item, ".") ". ";
  counter-increment: item;
  position: absolute;
  right: 0;
  background: var(--background-color);
  padding: 4px 0 4px 4px;
  bottom: -8px;
}
ol.terminal-toc li a:hover {
  background: var(--primary-color);
  color: var(--invert-font-color);
}
hr {
  position: relative;
  overflow: hidden;
  margin: calc(var(--global-space) * 4) 0;
  border: 0;
  border-bottom: 1px dashed var(--secondary-color);
}

.window {
  /* max-width: var(--page-width); */
  height: 93vh;
  background-color: rgba(37, 37, 37, 0.95);
  border: 1px solid #c9c9c9;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  transition: all ease-in-out 0.3s;
}

.window-header {
  background-color: #eee;
  height: 25px;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: space-between;
  padding: 3px;
}

.window-controls {
  display: flex;
  height: 100%;
  justify-content: flex-end;
  align-items: center;
}

.window-controls .control-item {
  width: 25px;
  height: 25px;
  text-align: center;
  color: #333;
  transition: all ease-in 0.15s;
}

.window-controls .control-item {
  background-color: #ccc;
}

.control-item.control-close {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}

.control-item.control-close {
  background-color: #ec6060;
  color: #fff;
}

.control-item.control-maximize {
  line-height: 19px;
}

.control-item.control-minimize {
  line-height: 22px;
}

.window-cursor {
  display: flex;
  margin: 5px;
  width: inherit;
}

.window-cursor .i-cursor-indicator {
  color: #fff;
  font-size: 1em;
  font-family: "Consolas", monospace;
  margin: 0 2px 0 5px;
}

.window-cursor .i-cursor-underscore {
  width: 10px;
  height: 3px;
  background-color: #fff;
  align-self: center;
  margin-left: 5px;
  -webkit-animation: blink 1s steps(2, start) infinite;
  animation: blink 1s steps(2, start) infinite;
}

@-webkit-keyframes blink {
  to {
    visibility: hidden;
  }
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.container {
  max-width: var(--page-width);
}

.container,
.container-fluid {
  margin: 0 auto;
  padding: 0 calc(var(--global-space) * 2);
  overflow-y: auto;
}

.scrollable {
  height: 80vh;
  overflow-y: scroll;
}

/* Hide scrollbar for Chrome
*/
.scrollable::-webkit-scrollbar {
  display: none;
  /* width: 0.25rem; */
}

/* .scrollable::-webkit-scrollbar-track {
  background: #1e1e24;
}

.scrollable::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
} */

footer.bottom {
  position: fixed;
  bottom: 0;
}

figure {
  margin-top: 15px;
  margin-bottom: 15px;
  margin-left: 60px;
  margin-right: 60px;
}

.footer {
  clear: both;
  margin-top: 100px;
  padding-top: 10px;
  border-top: 1px solid var(--secondary-color);
  color: var(--global-font-color);
}

.gallery-image {
  margin-top: 10px;
  margin-bottom: 10px;
}

.posts-list {
  position: relative;
  padding-left: 150px;
  top: 0;
  margin-top: 21px;
}

.post h1 {
  padding-top: 0;
}

.posts-list .date {
  display: inline-block;
  position: absolute;
  left: 0px;
  width: 150px;
  z-index: 400;
  font-weight: bold;
  padding-top: 3px;
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--invert-font-color);
}

::selection {
  background: var(--primary-color);
  color: var(--invert-font-color);
}

@media only screen and (max-width: 850px) {
  :root {
    --global-font-size: 15px;
    --global-font-color: #fff;
    --global-line-height: 1.6em;
    --page-width: 70vw;
  }

  /* .terminal-nav {
    align-items: flex-start;
    flex-direction: column;
    display: flex;
  } */

  .terminal-menu ul {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    justify-content: left;
    margin-top: 0;
  }

  .terminal-menu li {
    margin-left: 20px;
  }

  .logo.terminal-prompt a:hover {
    color: brown;
  }

  figure {
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 30px;
    margin-right: 30px;
  }

  .posts-list {
    position: relative;
    padding-left: 0;
    top: 0;
    margin-top: 21px;
  }

  .post h1 {
    padding-top: 0;
  }

  .posts-list .date {
    display: inline-block;
    position: absolute;
    left: 0px;
    width: 150px;
    z-index: 400;
    font-weight: bold;
    padding-top: 3px;
    display: none;
  }

  .footer {
    margin-top: 50px;
    padding-top: 5px;
  }
}

td,
th {
  border: 1px solid white;
}

/* CSS for timeline */

.timeline {
  width: auto;
  position: relative;
  /* padding: 1rem; */
  padding: 0;
  margin: 0 auto;
  margin-bottom: 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  height: 100%;
  border: 1px solid #0fc5d9;
  left: 50%;
  top: 0;
}

.timeline:after {
  content: "";
  display: table;
  clear: both;
}

.timeline__item {
  padding: 1rem;
  border: 2px solid hotpink;
  position: relative;
  margin: 1rem;
  clear: both;
}
.timeline__item:after,
.timeline__item:before {
  content: "";
  position: absolute;
}
.timeline__item:before {
  right: -10px;
  top: 10px;
  border-style: solid;
  border-color: hotpink hotpink transparent transparent;
  border-width: 10px;
  transform: rotate(45deg);
}

.timeline__item--year {
  text-align: center;
  max-width: 150px;
  margin: 0 0 0 38%;
  font-size: 1.8rem;
  background-color: #333;
  line-height: 1;
  padding: 0.5rem 0.5rem 0.5rem;
  color: white;
}
.timeline__item--year:before {
  display: none;
}

.timeline__title {
  margin: 0;
  font-size: 1.5em;
}

.timeline__blurb {
  font-size: 1rem;
  margin: 0.5rem 0 0;
}

@media screen and (min-width: 960px) {
  .timeline {
    padding: 2rem;
    width: 70vw;
  }
  .timeline:before {
    left: calc(50% - 1px);
    right: auto;
  }
  .timeline__item {
    width: 45%;
    margin: 1rem;
  }
  .timeline__item:nth-of-type(2n) {
    float: right;
    margin: 1rem;
  }
  .timeline__item:nth-of-type(2n):before {
    right: auto;
    left: -10px;
    border-color: transparent transparent hotpink hotpink;
  }
  .timeline__item--year {
    text-align: center;
    margin: 0 auto;
  }
  .timeline__item--year:nth-of-type(2n) {
    float: none;
    margin: 0 auto;
    border-image: none;
  }
  .timeline__item--year:nth-of-type(2n):before {
    display: none;
  }
}

@media screen and (max-width: 960px) {
  .timeline {
    padding: 2rem;
    width: 75vw;
  }
  .timeline:before {
    left: calc(50% - 1px);
    right: auto;
  }
  .timeline__item {
    width: 45%;
    margin: 1rem;
  }
  .timeline__item:nth-of-type(2n) {
    float: right;
    margin: 1rem;
  }
  .timeline__item:nth-of-type(2n):before {
    right: auto;
    left: -10px;
    border-color: transparent transparent hotpink hotpink;
  }
  .timeline__item--year {
    text-align: center;
    margin: 0 auto;
  }
  .timeline__item--year:nth-of-type(2n) {
    float: none;
    margin: 0 auto;
    border-image: none;
  }
  .timeline__item--year:nth-of-type(2n):before {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .timeline {
    padding: 2rem;
    width: 90vw;
  }
  .timeline:before {
    left: calc(50% - 1px);
    right: auto;
  }
  .timeline__item {
    width: 45%;
    margin: 1rem;
  }
  .timeline__item:nth-of-type(2n) {
    float: right;
    margin: 1rem;
  }
  .timeline__item:nth-of-type(2n):before {
    right: auto;
    left: -10px;
    border-color: transparent transparent hotpink hotpink;
  }
  .timeline__item--year {
    text-align: center;
    margin: 0 auto;
  }
  .timeline__item--year:nth-of-type(2n) {
    float: none;
    margin: 0 auto;
    border-image: none;
  }
  .timeline__item--year:nth-of-type(2n):before {
    display: none;
  }
}

/* About */
.card {
  background: #f1f1f1;
  height: 100%;
}

.card ul li {
  text-align: right;
  font-size: x-large;
  padding: 5px 15px;
  padding-top: 0;
}

.card ul li.is-active a {
  color: #373a3c;
  cursor: default;
  pointer-events: none;
}

.card img {
  transition: 0.3s ease-out;
}

.card img:hover {
  border: 5px solid #029acf;
  box-shadow: 0 3px 2px;
}

.card-content .border {
  width: 30%;
  height: 3px;
  background: #029acf;
  margin: 0 35%;
  margin-top: -15px;
}

.table-profile td,
th {
  border: none !important;
  font-size: medium;
}

.table-profile td:first-of-type {
  font-weight: bold;
}

.table-profile td {
  padding-left: 30px;
}

.skills-content .media {
  margin: 0 !important;
  padding: 1px !important;
  border: 0 !important;
}

.skills-content .progress {
  height: 6px !important;
}

.media .media-left {
  font-size: xx-large;
  /* margin-right: 20px; */
  text-align: center;
}

.media-content .content {
  font-size: large;
}

.media p strong {
  color: black !important;
}
