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

  /* HACK: button sizing seemed a bit off so it's bigger now */
  .button {
    line-height: 2rem;
  }

  /* Responsive portfolio full page on small screen */
  .column {
    width: 100%;
  }
}

/* Responsive portfolio most of but not atll of screen width on tablet screen */
@media screen and (max-width: 800px) {
  .column {
    width: 75%;
  }
}

/* inconsolata-regular - latin */
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local(''),
    url('../fonts/inconsolata-v21-latin-regular.woff2') format('woff2'),
    /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../fonts/inconsolata-v21-latin-regular.woff') format('woff');
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

:root {
  
  --font-size: 1rem;
  --element-color: #2B2C30;
  --text-color: #BBBBC4;
  --button-height: 0.4rem;
  --doc-color: #202124;
  --error-color: #e91c1c;
  --scrollbar-thumb-color: #6FC1FF;
  --scrollbar-track-color: rgba(95, 97, 101, 0.3);
  background-color: var(--doc-color);
  color: #fff;
  border: 0;
  width: auto;
  -webkit-user-select: none;
  /* Chrome/Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE10+ */
  user-select: none;
  font-size: var(--font-size);
  font-family: 'Inconsolata', 'Jetbrains Mono', 'DM Mono', 'Fira Code', 'Roboto Mono', monospace;
  /* these are monospace fonts from google fonts so there's a good chance the user might have them cached incase my font doesn't load */
  scroll-behavior: smooth;
}

h1 {
  top: 4rem;
  text-align: center;
  justify-content: center;
  
}

.homebutton{
  top: 3rem;
  text-align: center;
  justify-content: center;

  border: 0;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  font-family: 'Inconsolata', 'Jetbrains Mono', 'DM Mono', 'Fira Code', 'Roboto Mono', monospace;
  scroll-behavior: smooth;
}

a {
  background-color: var(--element-color);
  border-color: var(--element-color);
  color: var(--text-color);
  text-align: center;
  line-height: 2;
  font-size: 1rem;
  padding: var(--button-height);
  margin: .7rem;
  border-radius: .1rem;
  appearance: none;
  text-decoration: none;
  font-family: 'Inconsolata', 'Jetbrains Mono', 'DM Mono', 'Fira Code', 'Roboto Mono', monospace;
  scroll-behavior: smooth;
}
a.bluelink{
  color:var(--scrollbar-thumb-color);
  padding: 0;
  margin: 0;
  appearance: initial;
}

body, html {
  margin: 0;
  height: 100%;
}

.button {
  margin: 0;
  margin-bottom: 1em;
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%, -0%);
  transform: translate(-50%, 0%);
  text-align: center;
  width: inherit;
  padding-top: 0px;
}

a:hover {
  transition: cubic-bezier();

  background-color: #3d404a;
}

.selected {
  background-color: #202124 !important;
  /* NOTE: needs to be the same color as the document background to look unclickable  */
  /* HACK: can't use varible next to important (???) so hardcode it (???) */
  font-size: calc(--);
}

.center {
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%, -0%);
  transform: translate(-50%, 0%);
  text-align: center;
}

.subtitle {
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
  position: relative;
  left: 50%;
  bottom: 4px;
  -webkit-transform: translate(-50%, -0%);
  transform: translate(-50%, 0%);
  text-align: center;
  padding: 10px;
}

.content {
  width: inherit;
  padding-left: 70px;
  padding-right: 70px;
  padding-bottom: 70px;
  max-width: 1200px;
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
}

@media screen and (max-width: 500px) {
  body {
    padding-left: 0px;
    padding-right: 0px;
  }

  .content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .CodeMirror-sizer {
    margin-left: 0px !important;
  }

  .CodeMirror-gutters {
    display: none !important;
  }
}

.error {
  color: var(--error-color);
}

.big{
  font-size: 1.5rem;
}



/* ====================================================================
 HERO PAGE
 ==================================================================== */
/* The hero image */
.hero-image {
  /* Use "linear-gradient" to add a darken background effect to the image (hero.webp). This will make the text easier to read */
  background-image: linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.56)), url("img/heromobile.webp");
  /* Set a specific height */
  height: 100%;
  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Place text in the middle of the image */
.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-color);
}

p.hero-text {
  line-height: 1rem;
}

/* ====================================================================
 WEBKIT SCROLLBAR
 ==================================================================== */
/* scrollbar */
::-webkit-scrollbar {
  width: 8px;
  padding-right: 10px;
  background-color: #20212400;
}

/* scrollbar track */
::-webkit-scrollbar-track:hover {
  background-color: var(--scrollbar-track-color) !important;
  border-radius: 4px;
}

/* scrollbar thumb */
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:active {
  background-color: var(--scrollbar-thumb-color) !important;
  border-radius: 4px;
}

/* ====================================================================
 NON WEBKIT SCROLLBAR
 ==================================================================== */
::-scrollbar {
  width: 8px;
  padding-right: 10px;
  background-color: #20212400;
}

/* scrollbar track */
::-scrollbar-track:hover {
  background-color: var(--scrollbar-track-color) !important;
  border-radius: 4px;
}

/* scrollbar thumb */
scrollbar-color: var(--scrollbar-thumb-color);
/* MOZ specific scrollbar */
scrollbar-width: 4px;

/* moz specific width */
::-scrollbar-thumb,
::-scrollbar-thumb:active {
  background-color: var(--scrollbar-thumb-color) !important;
  border-radius: 4px;
}

/* ====================================================================
RESPONIVE PORTFOLIO
==================================================================== */
/* Create a single column of imgs */
.column {
  position: relative;
  width: 55%;
}

.column img {
  margin-top: 16px;
  vertical-align: middle;
  padding: 4px 4px;
  width: 100%;
  height: auto;
}

/* Responsive portfolio most of but not atll of screen width on tablet screen */
@media screen and (max-width: 850px) { /*800px should be portrait oriented tablets and large phones. EDIT: It just barely isn't for an iPad Air. Increasing to 850px */
  .column {
    width: 75%;
  }
}

@media screen and (max-width: 600px) {
  .column {
    width: 98%;
  }
}

/* ====================================================================
 RESUME OVERRIDES
 ==================================================================== */
.resumeLinks {
  background: var(--doc-color);
  color: #6FC1FF;
  margin: 0;
  padding: 0;
  text-decoration: underline;
}

/* ====================================================================
  ANIMATIONS
  ==================================================================== */
.fade {
  animation-name: fade;
  animation-duration: 2s;
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
