*{
    margin: 0;
    padding: 0;
   
}
html{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: rgb(36, 5, 5);
   
}

.body{
    padding: min(50px,7%);
    background-color: black;
}
/*Nav Bar Styling*/

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafafa;
  padding: 25px 20px;
}

.logo {
  color: white;
  font-size: 24px;
  font-weight: bold;
  flex: 0 0 20%;
 
  
 
}

.logo_img img{
  height: 80px;
  justify-content: center;
  margin: auto;
  display: block;
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 10px;
  flex: 0 0 80%;
 justify-content: center;
}

.nav-menu li {
  padding: 0px 10px;
  
}

.nav-menu a {
  text-decoration: none;
  color: black;
  font-size: 12px;
  transition: color 0.3s;
  align-items: center;
  align-items: center;
  font-family: montserrat;
  font-weight: 400;
}

.nav-menu a:hover {
  color: green;
}

/* Mobile Menu Toggle */


.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 101; /* Ensure it appears above the menu */
}

.bar {
  background-color: green;
  height: 3px;
  width: 25px;
  margin: 3px 0;
  transition: 0.3s; /* Smooth animation */
}

.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px); /* Top bar rotates */
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0; /* Middle bar disappears */
}

.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px); /* Bottom bar rotates */
}


.card{
    padding: 30px;
    background-image: url(./bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    text-align: center;
    border: none;
    background-color: black;
    color: aliceblue;
    
}
.card h2{
    
    text-transform: uppercase;
    font-size: 16px;
    padding: 5px 0px;
}



.container, .header{
    width: 70%;
    margin: auto;
    background-color: aliceblue;
}

.grid-container{
    
    margin: auto;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 50px 50px;

}

.fieldset-style{
    border: 2px solid green;
    border-radius: 5px;
}
legend{
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: green;
}

.funeral-name{
    margin-top: 100px;
}
.funeral-name span{
    margin-top: 10px;
    font-size: 16px;
    color: black;
    font-weight: 500;
}

.funeral-name p{
    margin-top: 10px;
    font-size: 16px;
    color: black;
    font-weight: 500;
    text-align: center;
}
.funeral-name h1{
    font-size: 20px;
    text-align: center;
    color: green;
    text-transform: uppercase;
}



/* Responsive Adjustments (768px)*/
@media (max-width: 1024px){

    .container, .header{
        width: 100%;
        margin: auto;
    }
    .grid-container{
        margin: auto;

    }
    .card{
        padding: 40px 45px;
        background-image: url(./bg.png);
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        width: 100%;
        height: auto;
        box-sizing: border-box;
        text-align: center;
        border: none;
        background-color: black;
        color: green;
        
    }

    .menu-toggle {
      display: flex;
    }
  
    .logo {
      text-align: center;
    }

    .logo_img img{
      height: 35px;
    }
  
    .nav-menu {
      display: none; /* Initially hidden */
      flex-direction: column;
      position: fixed; /* Make the menu cover the entire screen */
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #ffffff;
      justify-content: center;
      align-items: center;
      padding: 0;
      z-index: 100;
      gap: 20px;
    }
  
    .nav-menu.active {
      display: flex; /* Show menu when toggled */
    }
  
    .nav-menu li {
      margin: 5px 0;
    }
  
    .nav-menu a {
      font-size: 15px; /* Larger font for full-screen menu */
      text-align: center;
    }
    
      .menu-toggle {
        display: flex; /* Show the toggle for smaller screens */
      }
  }
    
    
