body {
    background: linear-gradient(-45deg, #ba52ee, #3c6de7, #23a6d5, #23d5ab);
      background-size: 400% 100%;
      animation: gradient 5s ease infinite;
  }


  .index {
    padding-top: 40px;
    padding-bottom: 40px;
    margin: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  @keyframes gradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  .Section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logo {
    width: 50px;
    height: 50px;
    border-radius: 100%;
  }

  img {
    width: 50%;
  }

  #profilePic {
    width: 128px;
    height: 128px;
    border: solid black 4px;
    border-radius: 100%;
  }

  #Socials {
    display: flex;
    align-items: center;
    gap: 30px;
  }

  .link {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 5px 20px;
    justify-content: space-around;
    background-color: rgb(213, 213, 213);
    border: solid black 4px;
    border-radius: 10px;
    margin: 5px;
    text-decoration: none;
  }


  /*projects.html*/
  .projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
  }

  .course-card {
    background-color: #f9f9f9;
    border-left: 5px solid #0077cc;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .course-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #0077cc;
  }

  .course-card ol {
    margin: 0;
    padding-left: 1.25rem;
  }

  .course-card li {
    margin-bottom: 0.3rem;
  }

  @media (max-width: 600px) {
    .projects-container {
      grid-template-columns: fr;
    }
  }

  .finished {
    color: #2e7d32; /* green */
    font-weight: 500;
  }

  .in-progress {
    color: #ef6c00; /* orange */
    font-style: italic;
  }

  .planned {
    color: #9e9e9e; /* gray */
    text-decoration: underline dotted;
  }

  .cancelled {
    color: #c62828; /* dark red */
    font-style: italic;
    text-decoration: line-through;
    opacity: 0.8;
  }

  .center-text {
    text-align: center;
  }
  
  .right-text {
    text-align: right;
  }
  
  .left-text {
    text-align: left;
  }


/*Navigation Bar*/
nav ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

nav a {
  background-color: #333;
  border-radius: 10px;
  display: block;
  color: white;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
}

nav a:hover {
  background-color: #111;
}

/*TRoF Page*/

/* Center project pages */
body.project {
    display: flex;
    flex-direction: column;
    align-items: center; /* centers block children horizontally */
    text-align: center;  /* centers inline text inside elements */
    padding: 2rem;
    box-sizing: border-box;
}

/* constrain content width so long lines stay readable */
.Section {
    max-width: 900px;
    width: 100%;
}

/* center navigation items */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

nav a {
    text-decoration: none;
    /* keep existing color/font rules if present */
}

/* make gallery images centered and responsive */
.screenshot-gallery img {
    display: block;
    margin: 0.5rem auto;
    max-width: 100%;
    height: auto;
}

/* small spacing for captions */
.screenshot-gallery p {
    margin: 0.25rem 0 1rem 0;
}
