body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #d5b813;
    overflow: scroll;
}

.container {
    width: 80%;
    margin: 0 auto;
    
}

@media only screen and (max-width: 768px) {
  /* Adjust the width for smaller screens */
  .container {
      width:100%;
  }
}

h3{
    color: #ffffff;
}

header {
    background-color:#001d29e5; 
  /*  background-color: #001d29f5;;*/
    color: #fff;
    text-align: center;
    padding: 2em 0;
    font-family: 'Abril Fatface';
}

header h1 {
    margin: 0;
    font-size: 60px;
    font-family: 'Playfair Display', serif;
}

header p {
    margin: 0;
    font-style: light;
    font-size: 35px;
    font-family: 'Poppins', sans-serif;
}


/*
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


nav li {
    display: inline;
    margin-right: 20px;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}
*/
section {
    margin: 2em 0;
}

section h2 {
    color: rgb(255, 255, 255);
    border-bottom: 2px solid #333;
    padding-bottom: 0.5em;
}
section h3 {
  font-size: 19px;
  font-weight: 200;
}
@media only screen and (max-width: 600px) {
  section h3 {
      font-size: 16px; /* Adjusted font size for phones */
  }
}

section p {
    font-size: 18px;
    /* font-family: 'Merriweather', serif; */
    /*font-family: 'Noto Sans', sans-serif; */
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    display: block;
    text-align: left;
    line-height: 25px;
}
/* Responsive Font Size */
@media only screen and (max-width: 600px) {
  section p {
      font-size: 16px;
  }
}

@media only screen and (min-width: 601px) and (max-width: 768px) {
  section p {
      font-size: 18px;
  }
}





/****************************** image modal **********************************/

/* Style the Image Used to Trigger the Modal */
#myImg {
    border-radius: 5px;
    cursor: pointer;
    /*transition: 0.3s;*/
  }
  
  #myImg:hover {opacity: 0.7;}

  
  /******* The Modal (background) ******/
  .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.895); /* Black w/ opacity */
    
  }
  
  /******** Modal Content (Image) *********/
  .modal-content {
    margin: auto;
    display: flex;
    width: 40%;  
    max-width: 100%; 
    padding: 10px;
    margin-top: 0px;
    padding-bottom: 10px;

    height: auto;
    max-height: auto;;
  }
  
  .modal-content-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-y: auto; 
    overflow-x: sticky; /* Add this line for horizontal scroll */
    white-space: auto; /* Prevent text wrapping */
    margin-bottom: 120px;;
}

.p{
    margin-bottom: 100px;
}


  /* ******* Caption of Modal Image (Image Text) - Same Width as the Image *****/
  #caption {
    margin-bottom: 0px;
    margin-left: 50px;
    display: block;
   /* width: 80%;
    max-width: 700px;*/
    text-align:justify;
    color: #ccc;
    padding-bottom: 0px;
    height: 120px;
    font-size: 22px;

  }
  /* Responsive styles for tablets */
@media only screen and (max-width: 768px) {
  #caption {
      font-size: 18px; /* Adjust font size for tablets */
      margin-left: 15px;
  }
}

/* Responsive styles for phones */
@media only screen and (max-width: 480px) {
  #caption {
      font-size: 16px; /* Adjust font size for phones */
      margin-left: 5px; /* Adjust margin for better readability */
  }
}
  


  /* Add Animation - Zoom in the Modal */
  .modal-content, #caption { 
    animation-name: zoom;
    animation-duration: 0.6s;
  }
  
  @keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
  }
  
  /***************** The Close Button ******************/
  .close {
    position: fixed;
    top: 15px;
    right: 35px;
    color: #dddddd;
    font-size: 60px;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .close:hover,
  .close:focus {
    color: rgb(167, 164, 164);
    text-decoration: none;
    cursor: pointer;
  }
  
  /* 100% Image Width on Smaller Screens */
  @media only screen and (max-width: 700px){
    .modal-content {
      width: 100%;
    }
  }


/********************Portfolio images*********************/
 .project {
    width: 300px;
    display:inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2em;
    padding: 15px;
}

.project-image {
  width: 80%;
  max-width: 300px;
  max-height: 200px;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
  border-radius: 8px;

}

.project-image:hover {
  opacity: 60%;
  transform: scale(1.03);
}


                    /*    .project {
                          margin-bottom: 2em;
                        }
                    */
                        .project img {
                          max-width: 100%;
                          height: auto;
                        }
                        .project p{
                        max-width: 250px;
                        display: block;
                        color:rgba(238, 238, 238, 0.8);
                        }

/*
.project {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2em;
  padding: 15px;
}

.project-image {
  width: calc(33.33% - 15px); 
  max-width: 300px;
  max-height: 200px;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
  border-radius: 8px;
  margin-bottom: 2em; 
}

.project-image:hover {
  opacity: 0.6;
}
*/

/* Adjust width and margin for different screen sizes */
@media screen and (max-width: 768px) {
  .project-image {
      width: calc(50% - 15px); /* Adjust width to fit two images in a row with spacing on smaller screens */
      margin-bottom: 1em; /* Adjust the margin between images */
  }}
  @media screen and (max-width: 480px) {
  .project-image {
      width: calc(100% - 15px); /* Adjust width to fit one image per row on even smaller screens */
  }
}


/* Add the rest of your CSS styles */


/* Add styles for navigation buttons 
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
*/

/****************** scroll bar **************/
/*div.scrollmenu {
    background-color: #333;
    overflow: auto;
    white-space: nowrap;
  }
  
  div.scrollmenu a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px;
    text-decoration: none;
  }
  
  div.scrollmenu a:hover {
    background-color: #777;
  }
  */

  /************************ form ************************/
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  border-radius: 5px;
}

label, input, textarea, button {
  max-width: 300px;
  margin-bottom: 1em;
  font-size: 16px;
  border-radius: 5px;
  padding: 4px;
  opacity: 80%;
}

/* Responsive Styles for Small Screens (e.g., Phones) */
@media only screen and (max-width: 600px) {
form {
    grid-template-columns: 1fr; /* Change to a single column layout */
}

label, input, textarea, button {
    max-width: 100%; /* Make elements take full width */
    margin-bottom: 1em;
    font-size: 14px; /* Adjust font size for smaller screens */
    padding: 4px;
}
}

button {
  background-color: #004867;
  color: #fff;
/*  padding: 0.5em 1em; */
  padding: 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 40px;
}

button:hover {
  background-color:  #004867ad;
}

/********************* footer ****************/
footer {
  background-color: rgba(8, 108, 110, 0.801);
  color: #fff;
  text-align: center;
  padding: 1em 0;
  opacity: 80%;
}

.background {
  padding-top: 20px;
  padding-bottom: 20px;
  padding-right: 40px;
  padding-left: 40px;
  max-width: 100%;
  position: center;
  background-color:#001d29f5;
  text-align: justify;
  color: #FFFFFF;
}