
* {
  font-size: 16px;
}

html {
  font-family: fabfont, monospace;
  max-width: 900px;
  padding-left: 2%;
  padding-right: 3%;
  margin: 0 auto;
  background: #F5F5F0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
}

a {
  color: black;
  font-weight: bold;
}

img {
  border: none;
  width: 100%;
  height: auto;
  margin-bottom:0.1ch;
  margin-top: 2ch;
}

.border {
  border: 1px solid black;
}

p {
  margin-top: 0px;
  text-align: justify;
}

sup {
  vertical-align: 0.3em;
  font-size: 0.65em;
}

pre {
  font-family: fabfont, monospace;
  background-color: white;
  border: 1px solid Black;
  padding-left: 2%;
  padding-top: 1ch;
  padding-bottom: 1ch;
  overflow-x: auto;
}

pre hr {
  margin-bottom: 0.2ch;
}

.heading {
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 4ch;
}

.title {
  text-decoration: none;
}

img.pixel,
canvas.pixel {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

code {
  font-weight: bold;
  background-color: #e1e1e1;
  border-radius: 0.5ch;
  padding-left: 0.3ch;
  padding-right: 0.3ch;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1ch;
}

.toggle-button, .category-button {
  font-family: fabfont, monospace;
  font-size: 13px;
  padding: 0.9ch 1.4ch;
  background-color: #ddd;
  border: none;
  cursor: pointer;
}

.toggle-button.active, .category-button.active {
  background-color: #bbb;
}

.docs > a {
  text-decoration: none;
  cursor: pointer;
}

.docs > a:hover {
  background-color: #ddd;
  padding: 1.5px;
  padding-left: 2px;
  padding-right: 2px;
}

.grey-out {
  color: grey;
}

table, th, td {
  border: 1px solid black;
  border-collapse: collapse;
}
table, td {
  padding-right: 1ch;
  padding-top: 0.8ch;
  padding-bottom: 0.8ch;
  padding-left: 20px;
  text-align: right;
}

table th {
  font-weight: bold;
  background-color: #BBB;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 5px;
}

.searchInput {
  font-family: fabfont, monospace;
  font-size: 13px;
  letter-spacing: 0.3px;
  min-width: 100px;
  outline: none;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}

.project {
  padding: 1ch;
  border: 1px black solid;
  width: 33%;
}

.project:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.project > small {
  font-size: 0.8em;
}

.project > a {
  font-family: 'Courier New', Courier, monospace;
  text-decoration: underline;
  color: rgb(54, 54, 54);
}

.projects-container {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.project {
  flex: 1;
  margin-right: 20px;
}

.project:last-child {
  margin-right: 0;
}

#Articles .project > a {
  font-size: 0.8em;
}

#Projects .project > a {
  font-size: 1em;
}

#Projects .project {
  width: 97.5%;
  margin-bottom: 0.9ch;
}

#Projects .project:last-child {
  margin-bottom: 0;
}

#Certifications .project {
  width: 97.5%;
  margin-bottom: 0.9ch;
}

#Certifications .project:last-child {
  margin-bottom: 0;
}

@media (max-width: 500px) {
  * {
    font-size: 12px;
  }
  .toggle-button, .category-button {
    font-family: fabfont, monospace;
    font-size: 11px;
    padding: 0.6ch 1.1ch;
    background-color: #ddd;
    border: none;
    cursor: pointer;
  }
  .projects-container {
    flex-direction: column;
  }
  .project {
    margin-bottom: 1ch;
    width: 96%;
  }
  .project:last-child {
    margin-bottom: 0;
  }
  #Projects .project small:first-of-type {
    display: none;
  }
  #Certifications .project small:first-of-type {
    display: none;
  }
}