a:visited {
    color: blue; /* Or choose a consistent color for unvisited and visited links */
}


body {
    background-color: black;
    font-family: Arial, sans-serif;
    color: whitesmoke;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the content fills the available space */
}

header {
    background: #333;
    color: #fff;
    padding: 1px;
    text-align: center;
    background-image: url('nav_banner_home.jpg'); 
    background-size: cover;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav {
    flex-grow: 1;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul li {
    font-size: 25px;
    margin: 0 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.4s ease; 
}

nav ul li a:hover {
    color: rgb(60, 156, 207);
}

main {
    flex: 1;
    padding: 15px;
    margin-bottom: 0; /* Remove bottom margin */
}

#projects {
    background-image: url(project_background_matrix.jpg);
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: darken;
    padding: 30px;
    border: 2px solid #ccc;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.271);
    margin-bottom: 0; /* Remove bottom margin */
    color: rgb(255, 255, 255);
}

/*Projects Banner*/
.banner {
    width: 100%;
    height: 70px;
    background: linear-gradient(to right, rgba(173, 216, 230, 0), rgba(18, 18, 196, 0.300) 48%, rgba(18, 18, 196, 0.300) 15%, rgba(173, 216, 230, 0));
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.banner-title {
    color: whitesmoke; /* White text color */
    font-size: 45px;
    padding: 20px 20px; /* Adjust padding as needed */

}

#projects h1 {
    color: whitesmoke;
    margin-bottom: 15px;
}

#projects p {
    color: whitesmoke;
    margin-bottom: 15px; /* Add space between paragraphs */
}

.mysql-logo-container {
    display: flex; /* Use flexbox layout */
    align-items: center; /* Align items vertically */
    gap: 20px; /* Space between the image and text */
    margin: 20px; /* Add some margin around the container */
    margin-top: 5px;
    margin-left: 0;

}

.mysql-image {
    width: 100px; /* Set the desired width */
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Ensure the image doesn't exceed the container width */
}

.mysql-title {
    color: whitesmoke; /* Set the text color */
    font-size: 23px; /* Set the font size */
    margin-left: 25px;
}

.mysql-background {
    width: 50%;
    height: 45px; /* Adjust height as needed */
    background: linear-gradient(to right, rgba(0, 3, 17, 0.744), rgba(0, 0, 255, 0));
    display: flex;
    align-items: center;
    padding: 4px; /* Adjust padding as needed */
}

.project-container {
    display: flex;
    justify-content: center; /* Center the boxes */
    gap: 50px; /* Space between the boxes */
    max-width: 100%; /* Set a maximum width for the container */
    margin: 50px; /* Center the container */
}

.project-box {
    flex: 1;
    max-width: 50%; /* Set the maximum width of each box */
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 40px;
    background-color: rgba(0, 0, 0, 0.4); /* Increase transparency by lowering the opacity */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-box h2 {
    font-size: 24px;
    margin: 10px 0; /* Add space above and below the title */
}

.project-box p {
    font-size: 16px;
    margin: 15px 0; /* Add space above and below the paragraphs */
}


#projectlink {
    display: inline-block;
    margin-top: 10px; /* Add space above the project link */
    margin-bottom: 10px; /* Add space below the project link */
    margin-left: 10px;
    font-size: 17px;
    color: blue;
}

#documentation {
    display: inline-block;
    margin-bottom: 20px; /* Add space below the download link */
    margin-left: 10px;
    font-size: 17px;
    color: blue;
}

.line-text {
    font-size: 30px;
    color: blue !important;
}

.project-hr {
    border: none; /* Remove the default border */
    height: 5px; /* Set the height of the line */
    background-color: #0e1a76b3; /* Change the color of the line */
    margin-top: 45px; /* Add space above and below the line */
    margin-bottom: 0;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 5px;
    position: relative;
    width: 100%;
    bottom: 0;
    margin-top: auto; /* Push the footer to the bottom */
}

@media (max-width: 768px) {
  .title {
    font-size: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    font-size: 15px;
    margin: 5px 10px;
  }

  header {
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  main {
    padding: 10px;
    margin-top: 10px;
  }

  #projects {
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px; /* Prevent overlap with footer/nav */
  }

  .project-container {
    flex-direction: column;          /* Stack projects vertically */
    gap: 20px;
    margin: 20px;
  }

  .project-box {
    max-width: 100%;                /* Full width on mobile */
    padding: 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
  }

  .project-box h2,
  .project-box p,
  .project-box a {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
  }

  .project-link,
  #projectlink,
  #documentation {
    display: block;
    font-size: 16px;
    padding: 8px 12px;
    margin: 8px 0;
    word-break: break-word;
  }

  .mysql-logo-container,
  .mysql-background {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
  }

  .mysql-image {
    width: 80px;
  }

  .mysql-title {
    font-size: 18px;
  }

  .banner-title {
    font-size: 30px;
    text-align: center;
  }

  footer {
    padding: 10px;
    font-size: 14px;
    position: relative;
    margin-top: 20px;
  }
}
