body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-image: url('farm-background.jpg'); /* Specify the path to your background image */
  background-size: cover;
  background-position: center;
	justify-content: center; /* Centering horizontally */
    align-items: center; 
}

.container {
  width: 80%;
  margin: 0 auto;
  padding: 10px 0;
	

}
.navbar {
  display: inline-block; /* Ensure the navbar doesn't take full width */
	 margin-left: 80px; /* Push the navbar to the right */
    margin-right: 10000px;
}
.logo {
            max-width: 100px; /* Adjust based on your logo size */
        }

        nav {
            display:block;
            align-items: center;
        }

        nav ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            display: flex;
        }

        nav a {
            text-decoration: none;
            color: black;
            padding: 2rem;
            display: block;
            transition: background-color 0.3s ease;
        }

        nav a:hover {
            background-color: #555;
        }

        .menu-icon {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
        }
       .logo-section {
    display: flex;
   justify-content: center; /* Align items to the right */
    align-items: center; /* Center items vertically */
}
/* Initially hide the menu */


.menu-items {
    list-style: none; /* Remove default list styles */
    margin: 0;
    padding: 0;
}

.menu-items li {
    margin-left: 60px; /* Add spacing between menu items */
}

.menu-items li:first-child {
    margin-left: 0; /* No margin for the first menu item */
}


        @media (max-width: 768px) {
            nav ul {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 100px;
                right: 0;
                width: 100%;
                background-color: #333;
                text-align: center;
            }

            nav ul.show {
                display: flex;
            }

            nav a {
                width: 100%;
            }

            .menu-icon {
                display: block;
            }
			
			.logo-section ul {
  display: none;
}

/* Show the menu when the 'show-menu' class is applied */
.logo-section ul.show-menu {
  display: block;
}
        }
header {
  background-color: #26734d; /* Semi-transparent black background for header */
  color: #fff;
  text-align: center;
  padding: 15px 0;
  position: fixed;
  width: 100%;
  z-index: 999; /* Ensure header is above other elements */
}
.logo {
    display: inline-block;
    margin-right: 20px;
}

.logo img {
    height: 50px; /* Adjust the height of the logo */
    width: auto;
    vertical-align: middle;
}

header h1 {
    display: inline-block;
    margin: 0;
    color: #fff;
    font-size: 24px; /* Adjust the font size of the title */
    font-weight: bold;
    vertical-align: middle;
}

nav ul {
  list-style: none;
  padding: 0;
}
nav ul {
  list-style: none;
  padding: 0;
  text-align: center; 
	
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px;
}

.hero {
  padding: 100px 0; /* Adjust spacing for hero section */
  text-align: center;
  color: black;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.blink {
  animation: blink 2s infinite;
}


.about,
.services,
.contact,
.weather
{
  padding: 80px 0; /* Adjust spacing for other sections */
  text-align: center;
  color: black;
  

}

.login-form {
  background-image: url('https://img.freepik.com/free-photo/agriculture-iot-with-rice-field-background_53876-124635.jpg'); /* Replace 'your-background-image.jpg' with the path to your background image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  animation: fadeIn 1s ease;
}



.login-form h2 {
  margin-bottom: 20px;
  text-align: center; /* Center the login name */
  color: white;
  
}

.form-group {
  margin-bottom: 15px; /* Reduce margin between form groups */
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.form-group input:focus {
  outline: none;
}

.button-container {
  text-align: center;
	/* Align button to center */
}

button[type="submit"] {
  background-color:#26734d;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #26734d;
}



  /* Modify the password validation message */
  .form-group small {
    color: white;
  }
.login-form label {
  color: white;
}

.logo-section {
            display: flex;
            align-items: center;
        }

        #searchInput {
            margin-right: 10px;
        }

        #searchIcon {
            cursor: pointer;
        }
footer {
  background-color:black/* Semi-transparent black background for footer */
  color: #fff;
  text-align: center;
  padding: 5px 0;
  width: 100%;
  position: fixed; /* Position the footer fixed at the bottom */
  bottom: 0; /* Align the footer to the bottom */
}
@media screen and (max-width: 768px) {
      nav ul {
        display: none;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        text-align: center;
      }

      nav ul li {
        display: block;
        margin-bottom: 10px;
      }

      .menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        right: 20px;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        z-index: 1000;
      }

      .menu-toggle.open {
        position: fixed;
      }

      .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: #fff;
        transition: all 0.3s ease;
      }

      .menu-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
      }

      .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
      }

      .menu-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
      }
    }

    /* Add animation for menu toggle */
    .menu-toggle.open .bar {
      transition: all 0.3s ease;
    }
@media screen and (max-width: 768px) {
  .login-form {
    width: 80%;
    top: 60%;
    transform: translate(-50%, -50%);
    height: 60%; /* Adjust the height for small screens */
  }

  .login-form h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .form-group input {
    padding: 8px;
  }

  button[type="submit"] {
    padding: 8px 16px;
    font-size: 16px;
  }
}

.home {
    background-color: #f9f9f9;
    padding: 50px 0;
    text-align: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.slider {
    margin-bottom: 30px;
}


.slider img {
    width:1000px; /* Set a fixed width for all images */
    height: 460px; /* Let the height adjust proportionally */
    border-radius: 0px;
    margin-bottom: 20px;
    margin-top: 80px;
   
    margin-left: auto;
    margin-right: auto;
}

.slider {
    max-width: 1000px; /* Set a fixed width for the slider container */
    margin: 0 auto;
    overflow: hidden; /* Hide overflowing content */
}

.slide-img {
    width: 100%; /* Set the width of images to fill the slider container */
    height: auto;
    display: none; /* Hide images by default */
}

.slider img:first-child {
    display: block; /* Display the first image initially */
}

/* Other styles for slider and dots remain the same */

h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
	mar
}

h3 {
    font-size: 28px;
    color: #555;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    color: black;
    margin-bottom: 30px;
}

.blink-button {
    display: inline-block;
    padding: 5px 10px;
    background-color:  #26734d;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
    animation: blink 1s infinite; /* Added blinking effect */
}

.blink-button:hover {
    background-color: #45a049;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.slider {
    position: relative;
    max-width: 100%;
    
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: auto;
}

.slider-dots {
    text-align: center;
    margin-top: 10px;
}

.slider-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
}

.slider-dots span.active {
    background-color: #555;
}
@media only screen and (max-width: 600px) {
        .slider img {
            max-width: 60%;
            height: auto;
        }
        .button-container {
            margin-top: 5px;
        }
        .button-container a {
            font-size: 14px;
        }
    }

/* Dropdown Button */

  .weather-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



.crop-container h2 {
  margin-bottom: 15px;
}

.form-control {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
}

.btn:hover {
  background-color: #0056b3;
}

.crop-recommendations {
  margin-top: 20px;
}

.crop-recommendations a {
  display: block;
  margin-bottom: 5px;
  color: #333;
  text-decoration: none;
}

.crop-recommendations a:hover {
  text-decoration: underline;
}
