/* Common styles for both pages */
body {
  font-family: Arial, sans-serif;
  background-color: #161616;
  color: #f2f2f2;
  margin: 0;
  padding: 0;
  
}

.container {
  max-width: 800px; /* Adjust maximum width to 2/3 of the screen's width */
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 10px;
}

hr {
  border: 2px solid #04AA77;
  margin-top: 10px;
  margin-bottom: 10px;
}

h1 {
  text-decoration: underline;
  margin: 0;
  padding: 0;
}

h2 {
  color: #04AA77;
}
 
table, th, td {
  width: 50%;
  border: 3px solid #04AA77;
  border-collapse: collapse;
  text-align: center;
  padding: 5px;
  margin-left: 2rem;
}
/*header bar*/
.topnav {
  background-color: #060606;
  overflow: hidden;
}

.topnav h1 {
  text-decoration: none;
  text-align: right;
  padding-top: 3px;
  padding-right: 15px;
  color: #04AA77;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
  background-color: #04AA77;
  color: #f2f2f2;
}
/*index*/

.info-container {
  display: inline-block;
  max-width: 80%; /* Adjust maximum width to 2/3 of the screen's width */
  margin-top: 20px;
  margin-left: 10%;
  margin-right: 10%;
  float: center;
  
}

.info-container h3 {
  text-align: center;
  margin-bottom: 0;
}

.info-container h4 {
  margin-top: 0;
  margin-bottom: 0;
  text-decoration: underline;
  color: #04AA77;
}

.page {
  align: left;
  width: 96%;
  margin-top: 20px;
  margin-left: 2%;
  margin-right: 2%;
  padding-top: 20px;
  display: inline-block;
}

.section {
  align: left;
  width: 80%;
  margin-top: 20px;
  margin-left: 10%;
  margin-right: 10%;
  padding-top: 20px;
  display: inline-block;
}

.section h1 {
  text-decoration: none;
}

.section i {
  color: #f2f2f2;
}

.section img {
  width: 100%; /* Image takes full width of container */
  height: 100%; /* Image takes full height of container */
  display: block;
  object-fit: fill;
  border: 3px solid #04AA77;
}

.about {
  float: left;
  width: 56%;
  margin-left: 2%;
}

.about img {
  width: 100%; /* Image takes full width of container */
  height: 100%; /* Image takes full height of container */
  display: block;
  object-fit: fill; /* Ensure the image fills the entire container */
  border: 3px solid #04AA77;
}

.about i {
  color: #f2f2f2;
}

.sidebar {
  float: left;
  width: 35%;
  margin-left: 2%;
  /*padding: 10px;*/
  box-sizing: border-box;
}

.sidebar img {
  width: 100%; /* Image takes full width of container */
  height: 100%; /* Image takes full height of container */
  display: block;
  object-fit: fill; /* Ensure the image fills the entire container */
  border: 3px solid #04AA77;
}

.sidebar i {
  color: #f2f2f2;
}
/* Styles for the portfolio page */
.portfolio {
    display: grid;
    grid-template-columns: 1; /* repeat(1, minmax(300px, 1fr)); /* Minimum box width of 300px, with flexible width */
    grid-gap: 20px;
}

.project-wrapper {
    position: relative;
    width: 100%; /* Take full width of grid cell */
}

.project {
    background-color: #444;
    position: relative;
    overflow: hidden;
    border: 3px solid #04AA77; /* Added border */
}

.project img {
    width: 100%; /* Image takes full width of container */
    height: 100%; /* Image takes full height of container */
    display: block;
    object-fit: fill; /* Ensure the image fills the entire container */
}

.project:hover {
    background-color: #555; /* Minor color change on hover */
}

.project-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8); /* Transparent background for text */
    transition: opacity 0.5s ease; /* Smooth transition for opacity */
}

.project:hover .project-info {
    opacity: 0; /* Hide project info on hover */
}

.project-info h2,
.project-info p {
    margin: 0;
}

.links-container {
    display: none;
}

.project:hover .links-container {
    display: block;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    transition: opacity 0.5s ease; /* Smooth transition for opacity */
}

.links-container a {
    color: #f2f2f2;
    padding: 10px;
    text-decoration: none;
    /*float: center;*/
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Hide links by default */
}

/* Ensure links remain visible on hover */
.project:hover .links-container a {
    transition: opacity 0.5s ease; /* Smooth transition for opacity */
    display: block;
}

.links-container:hover a:hover {
    color: #f2f2f2;
    background-color: #04AA77;
}



