* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Playfair Display", serif;
  background-color: rgb(255, 251, 233);
}

header {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  background-color: #333;
  padding: 1rem;
}

nav {
  
  display: flex;
  gap: 2rem;
  justify-content: center;
}

nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
}

nav a.home-link {
  display: flex;
  align-items: center;
}

nav a.home-link img {
  height: 20px;
  width: auto;
  filter: invert(100%);
}

nav a:hover {
  color: #4CAF50;
}

nav a:hover img {
  filter: invert(100%) sepia(100%) saturate(500%) hue-rotate(70deg);
}

nav a.active {
  color: #4CAF50;
}

nav a:active img {
  filter: invert(100%) sepia(100%) saturate(500%) hue-rotate(70deg);
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
}

.project-section {
  width: 50%;
  margin: 2rem 0;
  scroll-margin-top: 4rem;
  display: none;
}

.project-section.active {
  display: block;
}

.project-section h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size:xx-large;
  font-style: normal;
  text-align: center;
  margin-bottom: 1rem;
  color: #333;
}

.project-section h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size:x-large;
  font-style: normal;
  text-align: left;
  font-style: italic;
  text-decoration: underline;
  margin-bottom: 1rem;
  color: #333;
}

.project-text {
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 550;
  font-size:larger;
  font-style: normal;
  text-align: justify;
  line-height: 1.6;
  color: #555;
}

.project-section img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.code-block {
  background: #f4f4f4; /* Light gray background */
  border: 1px solid #ddd; /* Subtle border */
  border-left: 3px solid #f36d33; /* Prominent left border */
  color: #666; /* Text color */
  page-break-inside: avoid;
  font-family: monospace; /* Monospaced font */
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto; /* Adds scrollbar if content is too wide */
  padding: 1em 1.5em;
  display: block;
  word-wrap: break-word;
  font-family: monospace
}