.home-image {
  margin-top: -12vw;
}

body {
  background-color: #172141;
}

.ministry {
  width: 20%;
}

.ministry-container {
  position: relative;
}

/* Reset some default styles */
body,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Style the header */
.header1 {
  display: none;
  /* Add this for positioning */
}

/* Style the navigation menu */
.home-ul {
  display: flex;
  flex-direction: column;
  /* Display vertically on smaller screens */
  position: absolute;
  top: 47px;
  left: 0px;
  background-color: #ffffff;
  padding: 20px;
  /* Add some padding for spacing */
  z-index: 1;
}

.home-li {
  margin-bottom: 18px;
  /* Add spacing between menu items */
}

.home-li:hover {
  background-color: white;
}

.home-ul:hover {
  background-color: #406dff;
}

nav a {
  color: #000000;
  text-decoration: none;
  font-size: 20px;
}

.button-1 {
  position: absolute;
}

/* Style the menu icon */
.menu-icon {
  display: none;
  /* Hide by default on larger screens */
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 30px;
  height: 3px;
  background-color: #000000;
  margin: 3px 0;
}

.home-image {
  width: 40vw;
}

.home-image-container {
  position: relative;
  margin-top: -5%;
  margin-left: 51%;
}

@media screen and (min-width: 601px) {
  @media screen and (max-width: 850px) {
    .nav1 {
      background-color: transparent;
      /* Bakground color of the navbar */
      color: white;
      /* Text color of the links */
      padding: 10px;
      margin-top: -8%;
      margin-bottom: 7%;
    }

    .navbar {
      margin-right: 2%;
      display: flex;
      justify-content: flex-end;
      /* Align items to the right */
    }

    .nav-ul1 {
      list-style-type: none;
      margin: 0;
      padding: 10px;
    }

    .nav-li1 {
      margin-left: -4%;
      /* Adjust the spacing between menu items */
      margin-right: 4%;
      display: inline-block;
      padding: 10px;
    }

    .nav-a {
      text-decoration: none;
      color: white;
      padding: 12px;
    }

    .nav-a:hover {
      background-color: #555;
    }
  }
}

@media screen and (min-width: 851px) {
  @media screen and (max-width: 1200px) {
    .nav1 {
      background-color: transparent;
      /* Bakground color of the navbar */
      color: white;
      /* Text color of the links */
      padding: 10px;
      margin-top: -8%;
      margin-bottom: 7%;
    }

    .navbar {
      margin-right: 2%;
      display: flex;
      justify-content: flex-end;
      /* Align items to the right */
    }

    .nav-ul1 {
      list-style-type: none;
      margin: 0;
      padding: 10px;
    }

    .nav-li1 {
      margin-left: -4%;
      /* Adjust the spacing between menu items */
      margin-right: 4%;
      display: inline-block;
      padding: 10px;
    }

    .nav-a {
      text-decoration: none;
      color: white;
      padding: 12px;
    }

    .nav-a:hover {
      background-color: #555;
    }
  }
}

@media screen and (min-width: 1201px) {
  .nav1 {
    background-color: transparent;
    /* Bakground color of the navbar */
    color: white;
    /* Text color of the links */
    padding: 10px;
    margin-top: -10%;
    margin-bottom: 6%;
  }

  .navbar {
    margin-right: 2%;
    display: flex;
    justify-content: flex-end;
    /* Align items to the right */
  }

  .nav-ul1 {
    list-style-type: none;
    margin: 0;
    padding: 10px;
  }

  .nav-li1 {
    margin-left: -6%;
    /* Adjust the spacing between menu items */
    margin-right: 4%;
    display: inline-block;
    padding: 10px;
    padding-left: 40px;
  }

  .nav-a {
    text-decoration: none;
    color: white;
    padding: 12px;
    font-size: 25px;
  }

  .nav-a:hover {
    background-color: #555;
  }
}

@media screen and (min-width: 501px) {
  .smart {
    position: absolute;
    color: rgb(255, 255, 255);
    margin: 1%;
    margin-left: 9%;
    line-height: 1.5;
    width: 40%;
  }

  .smart-para {
    margin-top: 40px;
    position: absolute;
    color: white;
    line-height: 1.3;
    font-size: 18px;
    width: 100%;
  }

  .smart-sub {
    font-size: 44px;
    font-weight: 900;
    font-family: Sans-serif;
  }
}

/* Media query to show/hide menu icon and adjust menu layout */
@media screen and (max-width: 670px) {
  @media screen and (min-width: 370px) {
    .menu-icon {
      display: flex;
      /* Show on smaller screens */
    }

    nav {
      display: none;
      /* Hide the navigation menu by default on smaller screens */
    }

    nav.show {
      display: flex;
      /* Show the navigation menu when the icon is clicked */
    }

    .header1 {
      background-color: #ffffff;
      color: #fff;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 20px;
      position: relative;
      /* Add this for positioning */
    }

    .home-image-container {
      position: relative;
      margin-top: -10%;
      margin-left: 10%;
    }

    .home-image {
      position: fixed;
      margin-top: -13%;
      margin-left: -60%;
      width: 110%;
    }

    .smart {
      position: absolute;
      color: rgb(255, 255, 255);
      margin: 1%;
      margin-left: 45%;
      line-height: 1.5;
      width: 40%;
    }

    .smart-para {
      margin-top: 40px;
      position: absolute;
      color: white;
      line-height: 1.3;
      font-size: 14px;
      width: 100%;
    }

    .smart-sub {
      font-size: 30px;
      font-weight: 900;
      font-family: Sans-serif;
    }

    .but-1,
    .but-2 {
      margin-top: 30vh;
      margin-left: 49%;
      margin-bottom: 50px;
      background-color: white;
      color: #172141;
      padding: 3% 11% 3% 11%;
      border-radius: 60px;
      font-weight: bolder;
      transition: background-color 0.3s ease;
    }

    .but-1,
    .but-2:hover {
      background-color: #406dff;
      color: white;
    }
  }
}

@media screen and (max-width: 370px) {
  .home-image {
    margin-top: 80%;
    margin-left: -60%;
    width: 150%;
  }

  .menu-icon {
    display: flex;
    /* Show on smaller screens */
  }

  nav {
    display: none;
    /* Hide the navigation menu by default on smaller screens */
  }

  nav.show {
    display: flex;
    /* Show the navigation menu when the icon is clicked */
  }

  .header1 {
    background-color: #ffffff;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    /* Add this for positioning */
  }

  .home-image-container {
    position: relative;
    margin-top: -10%;
    margin-left: 10%;
  }

  .smart {
    position: absolute;
    color: white;
    margin: 5%;
    margin-left: 55%;
    font-size: 14px;
  }
}

@media screen and (min-width: 670px) {
  .but-1,
  .but-2 {
    position: absolute;
    margin-top: 360px;
    margin-bottom: 50px;
    margin-left: 10%;
    background-color: white;
    color: #172141;
    padding: 13px 60px 13px 60px;
    border-radius: 60px;
    font-weight: bolder;
    transition: background-color 0.3s ease;
  }

  .but-1,
  .but-2:hover {
    background-color: #406dff;
    color: white;
  }
}

#connect-button {
  border: solid 2px #444;
  font-size: 20px;
  padding: 20px 40px 20px 70px;
  background: #dd6e2e;
  background-image: url("../../Images/mm.png");
  background-size: 40px;
  background-repeat: no-repeat;
  background-position: 20px;
  font-weight: bold;
  color: #fff;
  box-shadow: inset 2px 2px 0 #fff, 0 8px 10px -4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.4s ease;
}
