* {
  margin: 0;
  padding: 0;
  background-color: #000;
}

@font-face {
  font-family: 'digital_glitch';
  src: url(fonts/DigitalGlitchRegular.ttf) format('truetype');
}

@font-face {
  font-family: 'ibm_vga';
  src: url(fonts/ibm_vga_8x16.ttf) format('truetype')
}

@font-face {
  font-family: 'hack_nerd';
  src: url(fonts/HackNerdFont-Regular.ttf) format('truetype')
}

body {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto;

  background-color: #000;
  color: #00FF00;
  font-family: 'digital_glitch', sans-serif;
  max-width: 1500px;
  margin: auto;
}

p {
  font-family: 'ibm_vga', sans-serif;
}

header {
  grid-column: 1;
  grid-row: 1;
}

header a {
  text-decoration: none;
  color: #00FF00;
}

header a:hover {
  color: #555555;
}

header h1 {
  color: #00FF00;
  text-align: center;
  font-size: 1.5em;
}

nav {
  grid-column: 1;
  grid-row: 2;
  text-align: center;
  padding: 1%;
  border: 2px solid #00FF00;
}

nav ul {
  list-style-type: none;
}

nav ul li {
  display: block;
  font-size: 1.5em;
  padding: 0 2%;
}

nav ul li a {
  text-decoration: none;
  color: #00FF00;
}

nav ul li a:hover {
  color: #555555
}

main {
  grid-column: 1;
  grid-row: 3;
  font-family: 'digital_glitch', sans-serif;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;

}

main div {
  text-align: center;
  border: 2px solid #00FF00;
}

main h1 {
  color: #00FF00;
  text-align: center;
  font-size: 0.8em;
  padding: 5px 0 5px 0;
}

main h2 {
  color: #00FF00;
  text-align: center;
  font-size: 0.6em;
  padding: 5px 0 5px 0;
}

main h3 {
  color: #00FF00;
  text-align: center;
  font-size: 0.4em;
  padding: 5px 0 5px 0;
}

main p {
  padding: 5px 5px 5px 5px;
}

main a {
  color: #00FF00;
}

main a:hover {
  color: #555555;
}

.project-img {
  text-align: center;
  max-width: 225px;
  max-height: 225px;
  height: auto;
  padding: 5px;  
}

#anon {
  text-align: center;
  max-width: 300px;
  height: auto;
  padding: 5px;
}

/* div used for main project/CV box */
.center {
  grid-column: 1/4;
  grid-row: 1;
  padding: 1% 1% 1% 1%;
}

.center p {
  text-align: left;
  padding: 0% 0% 0.5% 2%;
}

.cener h1 {
  text-align: center;
  padding: 0% 0% 0% 0%;
}

.center h2 {
  text-align: left;
  padding: 1% 0% 0% 0%;
}

.center h3 {
  font-family: 'ibm_vga';
  font-size: 1em;
  text-align: left;
  padding: 1% 0% 0% 0%;
}

.center h4 {
  font-family: 'ibm_vga';
  font-size: 1em;
  text-align: left;
  padding: 0% 0% 1% 0%;
}

.center ul {
  list-style-type: none;
  padding: 0% 0% 0% 4%;
}

.center ul li {
  font-family: 'ibm_vga';
  text-align: left;
}

/* used for 404 error code */
#error-div {
  grid-column: 1/4;
  grid-row: 1;
}

#errorcode {
  color: #00FF00;
  font-family: 'digital_glitch', sans-serif;
  text-align: center;
  font-size: 5em;
  padding: 5px 0 5px 0;
}

#errortext {
  color: #00FF00;
  font-family: 'ibm_vga', sans-serif;
  padding: 5px 5px 5px 5px;
  font-size: 5em;
  text-align: center;
}

footer {
  grid-column: 1;
  grid-row: 4;
  text-align: center;
  padding: 1%;
  border: 2px solid #00FF00;
  font-family: 'ibm_vga', sans-serif;
}

footer p {
  padding: 5px 0 5px 0;
}

footer ul {
  list-style-type: none;
}

footer ul li {
  font-family: 'hack_nerd', sans-serif;
  display: inline-block;
  font-size: 2em;
  padding: 0 5%;
}

footer ul li a {
  text-decoration: none;
  color: #00FF00;
}

footer ul li a:hover {
  color: #555555
} 

/* Tablet Viewport */
@media only screen and (min-width: 820px) {

  header h1 {
    color: #00FF00;
    text-align: center;
    font-size: 2.4em;
  }

  nav ul li {
    display: inline-block;
    font-size: 1.4em;
    padding: 0% 01% 0% 1%;
  }
  
  main {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  main h1 {
    color: #00FF00;
    text-align: center;
    font-size: 1em;
    padding: 5px 0 5px 0;
  }

  main h2 {
    color: #00FF00;
    text-align: center;
    font-size: 0.8em;
    padding: 5px 0 5px 0;
  }
  
  main h3 {
    color: #00FF00;
    text-align: center;
    font-size: 0.6em;
    padding: 5px 0 5px 0;
  }

  main p {
    font-size: 1em;
  }

  #intro {
    grid-column: 1/3;
  }

  footer ul li {
    font-size: 2.4em;
  }
}


/* Desktop Viewport */
@media only screen and (min-width: 1500px) {

  header h1 {
    color: #00FF00;
    text-align: center;
    font-size: 2.4em;
  }

  nav ul li {
    display: inline-block;
    font-size: 1.8em;
    padding: 0% 01% 0% 1%;
  }
  
  main {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
  }



  main h1 {
    color: #00FF00;
    text-align: center;
    font-size: 1.2em;
    padding: 5px 0 5px 0;
  }
  
  main h2 {
    color: #00FF00;
    text-align: center;
    font-size: 1em;
    padding: 5px 0 5px 0;
  }
  
  main h3 {
    color: #00FF00;
    text-align: center;
    font-size: 0.8em;
    padding: 5px 0 5px 0;
  }

  main p {
    font-size: 1.2em;
  }

  #intro {
    grid-column: 1/4;
    grid-row: 1;
  }

  #vanity {
    grid-column: 1/2;
    grid-row: 2;
    display: grid;
    place-items: center;
  }

  #current_proj {
    grid-column: 2/4;
    grid-row: 2;
    display: grid;
    grid-template-columns: 2;
    grid-template-rows: 2;
  }

  #current_proj h1 {
    grid-column: 1/3;
    grid-row: 1;
  }

  #current_proj a {
    grid-column: 1;
    grid-row: 2;
  }

  #current_proj p {
    grid-column: 2;
    grid-row: 2;
    vertical-align: center;
  }

  .center p {
    font-size: 1.4em;
  }

  .center h1 {
    font-size: 2em;
  }

  .center h2 {
    font-size: 1.8em;
  }

  .center h3 {
    font-family: 'ibm_vga';
    font-size: 1.6em;
    text-align: left;
  }
  
  .center h4 {
    font-family: 'ibm_vga';
    font-size: 1.4em;
    text-align: left;
  }

  .center ul li {
    font-size: 1.4em;
  }

  footer ul li {
    padding: 0 4%;
    font-size: 3em;
  }

} 