
/*controls positions of elements within the navbar and header*/
.header-container{ 
  display: grid;
  grid-template-columns: repeat(6, 1fr); 
  grid-template-rows: 1fr;
  background-color: #50717b;
  width: 100%;
  padding: 10px 0; 
  height: 50px;
  grid-column: span 6
}

/* Adjusts name element within header*/
.header-container h1{
  margin-top: 10px;
  color: white;
  font-family: monospace;
  font-size: 30px;
}


/* Adjusts the logo size and location*/
.navbar-logo { 
  height: 50px;
  margin-left: 10px;
}

.navbar {
   grid-column: 6;
}

/*Adjusts the unordered list section of the navbar*/
.navbar ul { 
  list-style: none;
  padding-right: 150px ;
  display: flex;
  font-size: 14px;
  letter-spacing: 2px;
}
 
/*Adjusts the ordered list section of the navbar*/
.navbar ul li {
  margin-right: 100px;
  position: relative; 
  font-family: monospace;
}

/*Adjusts the navbar headers*/
.navbar ul li p {
  color: white;
  text-decoration: none;
  border: none;
}

/*Adjusts the navbar headers*/
.navbar ul li p:hover {
  background-color: #3a4042;
  cursor: pointer;
}

.navbar ul li:hover .dropdown-content {
  display: block; 
}

/*Adjusts navebar dropdown menus*/
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; 
  left: 0;
  background-color: #3a4042;
  min-width: 120px;
}

.dropdown-content a {
  display: block; 
  padding: 8px 16px; 
  text-decoration: none;
  color: white; 
}

#nameBar {
  font-size: 36px; /* Default size */
  transition: font-size 0.3s ease; /* Smooth transition when resizing */
  white-space: nowrap; /* Prevent text from wrapping */
  text-overflow: ellipsis; /* Add ellipsis if text overflows */
}


@media (max-width: 1024px) {
  #nameBar {
    font-size: 28px; /* Smaller size for tablets or smaller screens */
  }
}

@media (max-width: 768px) {
  #nameBar {
    display: none;
  }
}

@media (max-width: 480px) {
  #nameBar {
    display: none;
  }
}


body {
  margin: 0;
  padding: 0;
  background-color: #212121;
  font-family: monospace;
  font-size: 20px;
}


/* Horizontal rule that seperates the header, body, and footer*/
hr{
  margin:0px;
  border-color: #8ecccc;
}


/*Footer box containing social media links*/
.box{
background-color: #464b4d;
grid-column: 1/span 12 ;
grid-row:2;
height: 50px;
}

/*Adjusts footer image elements*/
footer ul{
margin-top: 0px;
margin-bottom: 0px;
}

footer ul img{
  margin-top: 10px;
  margin-left: 50px;
}

footer ul img:hover{
  cursor: pointer;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  }

/*Removes all text decorations from hyperlinks*/
a:link { 
  text-decoration: none;
} 
a:visited { 
  text-decoration: none; 
} 
a:hover { 
  text-decoration: none; 
} 
a:active { 
  text-decoration: none; 
}

a{
  color: white;
}


.code{
  grid-column: 1 span 3;
}

.pro7Container {
  display: grid; 
  grid-template-columns: repeat(1fr);
  grid-template-rows: auto;
  color: white;
}


.smallGridContainerV2 {
  display: grid;
  grid-template-rows: auto;
  background-color: #3a4042;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 25px;
  margin-left: 50px;
  margin-right: 50px;
  border-color: #8ecccc;
}

.smallGridContainerV2 h2 {
  grid-column: 1 / -1; /* Span the header across all columns */
}

.smallGridContainerV2 p {
  grid-column: 1 / -1; /* Span text across all columns */
  margin: 0 25px; /* Adjust margins */
}

.smallGridContainerV2 img {
  justify-self: center;
  align-self: auto;
  box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.5);
  position: relative;
  top: -20px; 
  border-radius: 10px;
  margin: 25px;
}

.sectionHeader {
  margin-left: 50px;
  background-color: #2a3b45;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 25px;
margin-top: 50px;

}

.proText {
  margin: 25px;
  color: white;
}

.smallGridContainerV2 {
  background-color: #3a4042;
  color: white;
  border-radius: 10px;
  padding: 20px;
  margin: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.smallGridContainerV2 h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.smallGridContainerV2 p {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.smallGridContainerV2 h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.smallGridContainerV2 ul {
  list-style-type: disc;
  padding-left: 40px;
  margin-bottom: 20px;
}

.smallGridContainerV2 li {
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.5;
}



.smallGridContainerV2 {
  display: grid;
  grid-template-columns: 1fr; /* Single-column layout by default */
  grid-gap: 20px; /* Gap between text and images */
  margin: 25px;
  padding: 20px;
  background-color: #3a4042;
  border-radius: 10px;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.textContent {
  grid-column: 1; /* Text occupies the first grid row */
}

.imageContent {
  display: flex;
  flex-wrap: wrap; /* Allow images to wrap if there isn't enough space */
  justify-content: center; /* Center images horizontally */
  gap: 15px; /* Space between images */
}

.imageContent img {
  flex: 1 1 calc(50% - 15px); /* Allow side-by-side images if there's space */
  max-width: auto; /* Limit the size of images */
  max-height: 400px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.5);
}

.title{
  margin-left: 50px;
  font-size: 30px
}

.imageTextPair {
  text-align: center; 
}

.imageTextPair img {
  max-width: 100%; 
  border-radius: 10px; 
}

.imageTextPair p {
  margin-top: -40px; /
  font-size: 14px; 

}

/* Adjust layout for larger screens */
@media (min-width: 768px) {
  .textImageContainer {
    grid-template-columns: 2fr 1fr; /* Text and images side by side if space allows */
    align-items: start;
  }

  .imageContent {
    flex-direction: row; /* Images arranged side by side */
    justify-content: start; /* Align images to the left */
  }
}

/* Responsive stacking for smaller screens */
@media (max-width: 768px) {
  .textImageContainer {
    grid-template-columns: 1fr; /* Stacked layout */
  }

  .imageContent img {
    flex: 1 1 100%; /* Images take full width on smaller screens */
  }
}


.proText{
 margin: 25px;
 color: white;
}

.codeColumn{
  overflow: auto;
  height: 600px;
  grid-column: 1;
  margin-left: 25px;
  background-color: black;
  border: solid black 2px;
}

.code-block {
  border-radius: 5px;
  overflow: hidden;
  grid-column: 1 / -1; 
  margin-left: 25px;
  background-color: #212121;
  max-height: 340px;
  grid-row: 3;
  margin-bottom: 25px;
  min-height: 400px; /* Set the minimum height */
  margin-top: 25px;
}

.code-header {
  background-color: #50717b;
  padding: 8px;
  font-weight: bold;
}

.code-content {
  max-height: 300px; /* Adjust as needed */
  overflow: auto;
}

pre {
  margin-left: 25px;
}

.projects-container h2 {
  grid-row: 1;  /* Place h2 in the first row */
  margin: 0;
  padding: 0;
  font-size: 36px;
  grid-column: 1;
  align-self: center;
  color: white;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* Three columns per row */
  grid-template-rows: auto auto;  /* Two rows, one for each set of projects */
  padding: 10px;
}

/* Individual project cards */
.project-card {
  background-color: #3a4042;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin: 25px;
   display: flex;               
  flex-direction: column;      
  justify-content: center;     
  align-items: center;  
  color: white;      
}

.project-card img {
  max-width: 100%;
  border-radius: 10px;
  max-width: 400px;
  height: auto;
}

.project-card h3 {
  margin: 15px 0 10px;
  font-size: 24px;
}

.project-card p {
  font-size: 16px;
  margin-bottom: 20px;
}

.project-card .view-button {
  display: inline-block;
  padding: 10px 15px;
  background-color: #8ecccc;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-family: monospace;
}

.project-card:hover {
  transform: translateY(-25px);
}

.project-card .view-button:hover {
  background-color: #2980b9;

/*Mobile format adjustments*/
@media only screen and (max-width: 600px){

  .mytext{
    grid-column: 1/span 12 ;
    grid-row:2;
    margin-top: 0px;
    grid-column: 1 span 12;
  }

  .image {
    grid-column: 1/span 12; 
    grid-row: 1;
    margin: 25px;
  }

  .box{
    grid-row:3;
    height: 50px;
    margin-bottom: 0px;

  }

  .navbar ul li{
    margin-right: 30px;
    position: relative; 
  }

/*Adjusts footer image sizes*/
  footer ul img{
    margin-top: 10px;
    margin-left: 40px;
    margin-right: 15px;
  }

/*Sticks footer to the bottom of the page*/
  footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  }

  .projects img{
    width:350px;
    height: auto;
    margin: 10px;
    margin-left: -10px; 
    margin-bottom: 300px;
  }

  .projects{
    display: grid;
  }



@media (max-width: 480px) {
  .pro7Container {
    grid-template-columns: 1fr; /* Simplify to a single column for very small screens */
  }

  .smallGridContainerV2 {
    padding: 10px;

  }

  .smallGridContainerV2 h2,
  .smallGridContainerV2 p {
    margin-left: 10px;
    margin-right: 10px;
  }

  .smallGridContainerV2 img {
    width: 100%;
    max-width: 100%;
    margin: 5px auto;
  }

}
}