body, h1, h2, h3, h4, h5, h6, p {
  font-family: "Roboto", sans-serif;
}

html {
  scroll-padding-top: 90px;
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #fff;
  color: #111;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

pre {
  border: 1px solid black;
  border-radius: 10px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  font-size: 15px;
  overflow-x: auto;
  padding: 10px;
  box-sizing: border-box;
}

.bgimg1 {
  position: relative;
  background-color: rgba(76,175,80, 1.0);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 400px;
  box-sizing: border-box;
  padding-top: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bgimg2 {
  position: relative;
  background-color: rgba(76,175,80, 1.0);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 250px;
  box-sizing: border-box;
  padding-top: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.titletext {
  font-family: "Roboto Mono", monospace;
  text-align: center;
  font-size: 3rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 20px 40px;
  border-radius: 10px;
  margin: 0;
  font-weight: 700;
}

.profile-pic {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid black;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  object-fit: cover;
}

.about {
  padding-top: 35px;
  max-width: 1400px;
  margin: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.centered {
  text-align: center;
  margin: auto;
}

.leftwards {
  position: relative;
  text-align: left;
}

.intro {
  font-size: 1.2rem;
  max-width: 900px;
  margin: auto;
  line-height: 1.6;
  margin-top: 20px;
}

.paragraph {
  max-width: 1000px;
  margin: auto;
  line-height: 1.7;
  text-align: left;
}

.guideText p {
  max-width: 1000px;
  margin: auto;
  text-align: left;
  line-height: 1.7;
}

.guideText h1, .guideText h2 {
  padding-top: 35px;
}

.links {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 75px;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.links a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s ease;
}

.links a:hover, .links a:focus-visible {
  opacity: 0.7;
}

.links a:focus-visible {
  outline: 3px solid #222;
  outline-offset: 3px;
}

.links p {
  margin: 0;
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
}

.project {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px;
  max-width: 100%;
}

.project-description {
  width: 500px;
  max-width: 100%;
  text-align: left;
}

.project-image {
  width: 256px;
  height: 256px;
  max-width: 100%;
}

.project-image-small {
  width: 325px;
  height: 256px;
  max-width: 100%;
}

.project-image-wide {
  width: 400px;
  height: 256px;
  max-width: 100%;
}

.project-links {
  margin-top: 15px;
}

.project-links a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  background-color: #222;
  color: white;
  transition: 0.2s ease;
  display: inline-block;
}

.project-links a:hover, .project-links a:focus-visible {
  opacity: 0.8;
}

.project-links a:focus-visible {
  outline: 3px solid #4CAF50;
  outline-offset: 2px;
}

.shadow {
  border-radius: 15px;
  margin: 20px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.shadowBorder {
  border: 3px solid black;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.school-images {
  display: inline-flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.school-pic {
  height: 250px;
  max-width: 100%;
}

figure {
  margin: 0;
}

figure figcaption {
  margin-top: 10px;
  font-style: italic;
  color: #555;
}

.section-title {
  padding-top: 35px;
}

.experience-list {
  list-style-type: disc;
  padding-left: 40px;
  text-align: left;
  display: inline-block;
  line-height: 1.8;
}

.experience-note {
  display: block;
  color: #555;
}

.tmux-table {
  width: fit-content;
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  font-family: 'Roboto', sans-serif;
  display: block;
  overflow-x: auto;
}

.tmux-table th,
.tmux-table td {
  border: 1px solid #ddd;
  padding: 12px;
  vertical-align: center;
}

.tmux-table th {
  background-color: rgba(76,175,80, 1);
  color: #fff;
  text-align: left;
}

.snapwidget-widget {
  border: none;
  overflow: hidden;
  width: min(960px, 100%);
  height: 320px;
  max-width: 100%;
}

@media (max-width: 900px) {
  .project {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .project-description {
    width: 90%;
    text-align: center;
  }

  .school-pic {
    width: 90%;
    height: auto;
  }

  .titletext {
    font-size: 2rem;
    padding: 15px 25px;
  }

  .links {
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 110px;
  }

  .bgimg1, .bgimg2 {
    padding-top: 76px;
  }

  .titletext {
    font-size: 1.5rem;
    padding: 10px 18px;
  }

  .intro {
    font-size: 1rem;
  }

  .project-image,
  .project-image-small,
  .project-image-wide {
    width: 100%;
    height: auto;
  }
}