body {
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #111122;
  }

  header {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
  }

  header h1 {
    font-size: 2.5em;
    color: #1f78b4;
    margin: 0;
  }

  nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }

  nav li {
    margin: 0 15px;
  }

  nav a {
    text-decoration: none;
    color: #1f78b4;
    font-size: 1em;
  }

  nav a:hover {
    text-decoration: underline;
  }

  main {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
  }
   

  h1, h2, h3, h4 {
    color: #1f78b4;
  }

  button {
    background-color: #cee7f1;
    color: #000;
    border: 2px solid #1f78b4;
    cursor: pointer;
    padding: 5px 9px;
    border-radius: 3px;
  }
    
  button:hover {
      background: #a6cee3;
  }

  .intro h1 {
    text-align: center;
    font-size: 3em;
    color: #1f78b4;
    margin-bottom: 10px;
  }
  
  .intro h2 {
    text-align: center;
    font-size: 1.5em;
    color: #555555;
    margin-bottom: 20px;
  }
  
  .intro p {
    text-align: center;
    font-size: 1em;
    color: #333333;
    max-width: 600px;
    margin: 0 auto 30px;
  }

  .projects {
    text-align: center;
    font-size: 1em;
    color: #333333;
    max-width: 600px;
    margin: 0 auto 30px;
  }
  
  .project {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
  }

  .project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;    
  }
  
  .project img {
    max-width: 100%;
    height: auto;
    max-height: 200px;object-fit: contain; /* Prevents image distortion */
    border-radius: 3px;
    margin-bottom: 10px;
  }
  
  .project h3 {
    text-align: center;
    font-size: 1.25em;
    color: #1f78b4;
    margin-bottom: 10px;
  }
  
  .project p {
    text-align: center;
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
  }

  .recent h3 {
    text-align: center;
    font-size: 1.25em;
    color: #1f78b4;
    margin-bottom: 10px;
  }

  .recent p {
    text-align: left;
    font-size: 1em;
    color: #555555;
    margin-bottom: 10px;
    margin-left: 20px;
  }

  section {
    margin-bottom: 40px;
  }

  /* Borrowed from: https://www.w3schools.com/howto/howto_css_thumbnail.asp */
  .thumb {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px;
    margin: 12px;    
    width: 175px;
  }
  .thumb:hover {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
  }

  figure {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 15px;
  }

  code {
    font-family: monospace; /* Use a monospace font for code */
    font-size: 16px; 
    background-color: #f0f0f0; 
    padding: 2px 4px; /* some padding for better readability */
    border-radius: 3px; /* rounded corners */
  }
  pre {
    background: #f4f4f4;
    padding: 10px;
    border: 1px solid #ddd;
    overflow-x: auto;
  }

  table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #aaa;
  }
  
  th, td {
    text-align: left;
    padding: 10px;
  }
  
  tr:nth-child(even){background-color:#d3e7f1}
  tr:hover {background-color: #b2df8a;}

  footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
  }

  footer p {
    margin: 5px 0;
    color: #555555;
  }

  footer a {
    color: #1f78b4;
    text-decoration: none;
  }

  footer a:hover {
    text-decoration: underline;
  }

  footer h3 {
    color: #1f78b4;
    text-align: center;
    margin-top: 20px;
  }

  /* Media Query for smaller screens - responsive design */
@media (max-width: 768px) {
  h1 {
      font-size: 32px;
  }
  h2 {
      font-size: 28px;
  }
  h3 {
      font-size: 24px;
  }
  h4 {
      font-size: 20px;
  }
  p {
      font-size: 18px;
  }
  nav ul {
        flex-direction: column; /* Stacks links vertically */
        align-items: center;    /* Centers the stacked links */
    }

    nav li {
        margin: 10px 0; /* vertical spacing between stacked links */
    }
}