body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
  background-color: gainsboro;
}
.container{

}
.after-nav{
 display: flex;
flex-direction: column;
align-items: center;
}
section{
  padding: 50px;
}

.index{
  background-image: url(home.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 80vh;
  max-width: 80vw;
  background-position: center;
  position: relative;
}

.bg{
  font-size: 170%;
  text-align: left;
  line-height: 150%;
  color: black;
  padding-top: 0%;
  margin-left: 0%;
  font-weight: bolder;
   -webkit-text-stroke: 0.5px whitesmoke; /* Stroke width and color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Shadow for better visibility */
}

.contacted{
  font-size: 150%;
  text-align: left;
  line-height: 150%;
  color: white;
  font-weight: bolder;
  padding: 10px;
}
.con{
      font-size: 200%;
      text-align: left;
      line-height: 150%;
      color: white;
      padding-top: 32%;
      margin-left: 10px;
      font-weight: bolder;
  }

.about{
  background-image: url(2.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 80vh;
  position: relative;
}

.contact{
  background-image: url(11.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

.prog{
  background-image: url(3.jpg);
  background-size: cover;
  min-height: 80vh;
  background-position: center;
  position: relative;
}

/* header{
  background-color: rgb(8, 54, 8);
  color: white;
  padding: 15px;
  font-style: oblique;
  font-family:cursive;
  font-weight: bolder;
  font-size: 20px;
} 
*/
/*   nav a {
  text-decoration: none;
  color: white;
  margin: 8px;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: red;              
  transform: scale(1.05);
}


nav{
  background-color: rgb(8, 54, 8);
  width: 110%;
}

.navlinks li{
  display: inline-flex;
  margin-right: 15%;
  padding: 0.1%;
}

nav img{
  width: 50px;
  height: 50px;
  margin-top: 2px;
  margin-left: -95%;
}
*/

nav {
    background-color: rgb(8, 54, 8);
    color: white;
    display: flex;
    justify-content: flex-start;
    gap: 30%;
    align-items: center;
    padding: 0.75rem 1rem;
    position: relative;
    z-index: 1;
  }
  nav img {
    width: 50px;
    height: 50px;
  }
  .nav-links {
    display: flex;
    gap: 3rem;
  }
  .nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  .nav-links a:hover {
    color: red;
    transform: scale(1.05);
  }
  .nav-toggle {
    display: none ;
    font-size: 1.5rem;
    cursor: pointer;
  }
.class a{
  color: black;
  text-align: justify;
  font-size: larger;
  line-height: 150%;
}

.forms{
  padding-top: 8%;
}
form{
display: flex;
flex-direction: column;
align-items: center;
}
.form-section{
display: flex; 
flex-direction: column; 
width: 400px; 
align-items: flex-start; 
align-content: flex-start;
}
label, input, button, ::placeholder, legend{
/* font-size: large; */
border: 20%;
border-radius: 10px;
cursor: pointer;
margin-top: 2%;
}
input:not([type ="checkbox"]){
width: 300px;
padding: 5px;
}

button{
  background-color: rgb(8, 54, 8);
  color: white;
  font-weight: bolder;
  font-size: larger;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

h1, h2{
  color: rgb(8, 54, 8);
  text-align: center;
  padding-top: 5%;
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 10px;
}

.grid-item {
  background-color: #f0f0f0;
  padding: 15px;
  font-size: 16px;
  border-radius: 8px;
  /* text-align: center; */
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px; 
}

.image-gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.image-gallery img:hover {
  transform: scale(1.05); 
}


footer {
  background-color: rgb(8, 54, 8);
  color: white; 
  padding: 3%;
  margin-top: 5%;
}

@media screen and (max-width: 970px) {
 .about{
    min-height: 50vh;
    background-size: contain;
  }
}


@media screen and (max-width: 768px) {
  body {
    text-align: left;
    padding: 10px;
  }

  header {
    font-size: 16px;
    padding: 10px;
    text-align: center;
  }
  nav{
    justify-content: space-between;
  }
.nav-links {
      display: none;
      flex-direction: column;
      background-color: rgb(8, 54, 8);
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      padding: 1rem 0;
    }
    .nav-links.show {
      display: flex;
      padding-left: 16px;
      box-sizing: border-box;
    }
    .nav-toggle {
      display: block;   
    }
  /* .navlinks li {
    display: block;
    margin: 10px 0;
    text-align: center;
  } */

  nav img {
    margin-left: 0;
    display: block;
    margin: 0 auto;
  }

  .bg, .note {
    font-size: 100%;
    padding-top: 10%;
    margin-left: 0%;
  /*   -webkit-text-stroke: 0cap; /* Remove stroke */ */
    text-shadow: white 10px 10px 10px; /* Lighter shadow */
  }

  .text-grid {
    grid-template-columns: 1fr; /* Stack items vertically */    
  }

  .image-gallery {
    grid-template-columns: 1fr; /* One image per row */
  }

  input, textarea, button {
    font-size: 14px;
    /* width: 100%; */
  } 

  form {
    padding: 5% 0;
  }

  section {
    padding: 0px;
  }

  h1, h2 {
    padding-top: 10px;
    font-size: 24px;
  }
  label{
  width: 300px;
  }
 
  .index{
    background-size: contain;
    min-height: 50vh;
    max-width: 70vw;
  }
}

@media screen and (max-width: 480px) {

  input, textarea, button {
    /* Make inputs and buttons take up most of the screen width */
    font-size: 16px;
  }
  form {
    padding: 5% 0;
    font-size: 16px; /* Smaller font size for form elements */
  }
  .grid-item {
    padding: 10px;
    font-size: 16px; /* Smaller font size for grid items */
    width: 100%;
    box-sizing: border-box;
  }
  h1, h2 {
    font-size: 20px;
  }
  .text-grid {
    grid-template-columns: 1fr; /* Stack items vertically on very small screens */
    padding: 0px;
  }

  .image-gallery {
    grid-template-columns: 1fr; /* Stack items vertically on very small screens */
    padding: 0px;
  }

  .form-section{
    padding: 5px;
    width: 300px;
    margin-bottom: 10px;
    align-items: center;
  }
  
  input:not([type ="checkbox"]){
width: 200px;
padding: 5px;
}

.contact{
/*    background-size: contain;  */
height: 40vh;
}
.about{
min-height: 35vh;

}
.contacted{
font-size: 120%;
padding: 5px;
margin-left: 5px;
}
.con{
font-size: 150%;
padding: 5px;
margin-left: 5px;
}
#userMessage{
width: 300px;
}
  
}
@media screen and (max-width: 330px){
.about{
  min-height: 25vh;
}
}