body {
          display: flex;
    justify-content: center;
    align-items: center;
    margin: 0; margin-top: 20px; margin-bottom:10px;
    color: black;
    background-image: url('images/birthflowerbackground.jpg');
    background-repeat: repeat;
            background-size: cover;
            background-position: center; background-attachment: fixed;
  }


  a:link, a:visited, a:hover, a:active {
  color: blueviolet;
  background-color: transparent;
  text-decoration: none;
}

  p { font-size: 18px; 
      color: black;
      font-family: josefin sans, sans-serif;
      text-align: center;
      margin-top: 30px;
      max-width: 1000px;
      margin: 0 auto;
      font-style: none;
      font-weight: normal; margin-bottom: 20px}

h3 {
  font-size: 25px; font-family: Berkshire Swash, sans-serif;
}


    .text-container {
      width: 100%;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      max-width: 1000px;
      margin: 0 auto;


    }

    .another-container { 
    
    color: gold;
    min-height: 100vh;
    background-attachment: fixed; /
 width: 60%;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      max-width: 1000px;
      margin: 0 auto;
         

  }

    .h1 {
      font-family: Berkshire Swash, sans-serif;
      text-align: center;
      margin-top: 20px;
      font-size: 60px;
      color: black; padding:15px;
      background-color: rgba(255, 253, 227, 0.85);;border: 4px dotted black;
    }

    .h2 {
      font-family: josefin sans, sans-serif;
      text-align: center; font-weight: normal;
      margin-top: 1px;
      font-size: 20px; padding:5px;
      color: black; background-color: rgba(255, 253, 227, 0.85);;border: 2px dotted black;
    }

    .h3 {
      font-family: "josefin Sans", sans-serif;
      text-align: center; background-color: background-color: rgba(255, 253, 227, 0.85);;width: calc(100% - 40px);
padding: 20px;
border: 4px dotted black;
border-radius: 10px;
    margin-bottom: 40px;
      margin-top: 20px ;
   padding-bottom: 40px; font-style: none; font-weight: normal;
      color: black; }

    

      .h4 {

font-family: "josefin Sans", sans-serif;
      text-align: center; background-color: background-color: rgba(255, 253, 227, 0.85);;width: calc(100% - 40px);
padding: 20px;
border: 4px dotted black;
border-radius: 10px;
    margin-bottom: 40px;
      margin-top: 20px ;
   padding-bottom: 40px; font-style: none; font-weight: normal;
      color: black; 

      }
    
   card {
      width: 500px;
      height: 300px;
      position: relative;
      perspective: 1000px;
    }

    .card img {
      border-radius: 20px;
       width: 262px;
      height: 441px;
    }

    .card.spinning {
      animation: spin 2s ease-in-out 2;
      transform: rotateY(1800deg);
    }     

    * {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

    #paragraph {
      font-size: 18px;
      color: black;
      font-family: josefin sans, sans-serif;
      text-align: center;
      margin-top: 30px;
      width: 60%;
      max-width: 1000px;
      margin: 0 auto;
      font-style: none;
    }

    
    


header { 
        position: fixed;
    top:0; left:0; right:0;
    background: #282828; color:gold;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
    padding: 0px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
      

     }

        header .logo{
            font-weight:bolder;
            font-size: 20px;
            color:gold; font-family: "Berkshire Swash", sans-serif; text-decoration: none; 
        }

        header .navbar ul{
            list-style: none; color:gold
        }


        header .navbar ul li{
            position:relative;
            float: left; 
        }

        header .navbar ul li a{
            font-size:18px;
            padding:10px;
            color:deepskyblue;;
            display:block;
font-family: josefin sans, sans-serif; 
        }


header .navbar ul li ul {
  display: none; /* Hide all nested dropdowns by default */
  position: absolute; /* Position nested dropdowns relative to the parent item */
  top: 100%; /* Align the top of the nested dropdown with the bottom of the parent item */
  left: 0; /* Position the nested dropdowns to the left of the parent item */
background-color:white; 
}

.fantasy-submenu-item:hover .fantasy-submenu {
  display: block; z-index: 999; max-height: 600px; overflow: auto ;}

header .navbar ul li ul li ul {
  top: 0; /* Align the top of the inner nested dropdown with the top of the parent item */
  left: 100%;
  background-color:white; z-index: 999; overflow-y: auto; max-height: 400px; /* Position the inner nested dropdowns to the right of the parent item */
}

header .navbar ul li:hover > ul {
  display: block; /* Show the nested dropdowns when the parent item is hovered */
}

        header .navbar ul li a:hover{
            background: gold;
            color:black; border-radius: 5px;
        }

        header .navbar ul li ul{
position:absolute;
      left:0;
      width: 200px; border-radius: 5px;
      background:#fff;
      display: none;
          left: 0;
  right: 0;
  margin: 0;
  padding: 0; /* Add this line to remove any padding */
 }

        header .navbar ul li ul li{
            width:100%;
            border-top: 1px solid rgba(0, 0, 0, .1);
          padding-left: 0;
        }

eader .navbar ul li ul li a
        header .navbar ul li ul li ul{
          max-height: 200px;
  overflow-y: auto;
  padding-left: 0;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 999;
}


    header .navbar ul li:focus-within > ul, 
    header .navbar ul li:hover > ul{
  display: initial;
}


#menu-bar{display: none;}

header label {
    font-size: 20px;
    color:deepskyblue;;
    cursor:pointer;
    display: none;
font-family: josefin sans, sans-serif;
}

/* Mobile styles */
@media (max-width: 991px) {
  /* Reduce the font size of the menu items */

  header .navbar {border-radius: 5px}

header .navbar ul { padding-left:5px; padding-top: 5px; padding-bottom: 10px; margin-top: 5px; max-height: 400px;
        padding-left: 0 !important;}

  header .navbar ul li a {
    font-size: 18px;
  }
  
  header .navbar ul li ul { height: 300px; 
        left: 0;
        right: 0;
        margin: 0 auto;
        max-height: 200px;
        overflow-y: auto;
        padding-left: 0 !important; /* Remove the left padding on mobile devices */
    }
  
  header .navbar ul li ul li {
    padding-left: 0; /* Remove the left padding on mobile devices */
  }

  /* Reduce the font size of the submenus */
  header .navbar ul li ul li a {
    font-size: 16px; 
  }
header .navbar ul li ul {
    left: 0; /* Reset the left position */
    right: 0; /* Reset the right position */
    margin: 0 auto; /* Center the menu horizontally */
  max-height: 200px; /* Adjust the max-height as per your preference */
  overflow-y: auto; padding-left: 0;
  }
  

}



@media(max-width:991px){

    header{
        padding:20px;
    }

    header label {
        display: initial;
    }

    header .navbar{
        position:absolute;
        top:100%; left:0; right:0;
        background:#fff;
        border-top: 1px solid rgba(0, 0, 0, .1);
        display: none;
}

    header .navbar ul li{
        width: 90%;  margin: 0;
  padding: 0;
  left: 0;
  right: 0;
    }
    header .navbar ul li ul {
        position: relative;
        width: 100%;
    }
    header .navbar ul li ul { height: 300px;
  margin: 0;
  padding: 0;
  left: 0;
  right: 0;
}
.menu-container {
  padding: 0;
}


    header .navbar ul li ul li{
        background:#eee;
    }

    header .navbar ul li ul li ul {
  max-height: 200px;
  overflow-y: auto;
  padding-left: 0;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 999;
}

#menu-bar:checked ~ .navbar{
    display: initial;
}

     /* Styles for the menu */
        .menu-container {
            background-color: #33424f;
            padding: 10px;
            text-align: center;
        }

        .menu-icon {
            cursor: pointer;
        }

        .menu {
            list-style-type: none;
            margin: 0;
            padding: 0;
        }

        .menu li {
            display: none;
            margin: 10px 0;
        }
      
      .menu li a:hover {
  background-color:gold; color:black;
        }

        .menu li a {
            display: block;
            padding: 5px;
            border-radius: 5px;
            color: white;
            text-decoration: none;
          font-family: josefin sans, sans-serif
          font-size:14px;
        }

        input[type="checkbox"]:checked ~ .menu li {
            display: block;
        }

        @media screen and (max-width: 600px) {
            .button {
                font-size: 40px;
                padding: 5px 10px;
            }
          
     @media (max-width: 991px) {
    .header .navbar ul li ul {
        left: 0;
        right: 0;
        margin: 0 auto;
        max-height: 200px;
        overflow-y: auto;
        padding-left: 0;
    }
}


/* Styles for mobile devices */
@media (max-width: 991px) {
    header .navbar ul li ul {
        max-height: 200px; /* Set the maximum height for the submenu */
        overflow-y: auto; /* Enable vertical scrolling when content overflows */
        padding-left: 0px;
        padding-right: 0px; /* Remove the left padding on mobile devices */
        position: absolute; /* Position the submenu absolutely */
        top: 100%; /* Position the submenu below the parent menu item */
        left: 0; /* Align the submenu to the left of the parent menu item */
        background-color: #fff; /* Set the background color of the submenu */
        z-index: 999; /* Ensure the submenu appears above other elements */
        display: none; /* Hide the submenu by default */
    }

    header .navbar ul li:hover ul {
        display: block; /* Display the submenu on hover */
    }

    header .navbar ul li ul li {
        width: 100%; /* Set the width of submenu items to 100% */
        border-top: 1px solid rgba(0, 0, 0, .1);
    }
}
        input[type="checkbox"]:checked ~ .menu li {
            display: block;
        }


        @media screen and (max-width: 600px) {
            .button {
                font-size: 26px;
                padding: 5px 10px;
            }
          
     @media (max-width: 991px) {
    .header .navbar ul li ul {
        left: 0;
        right: 0;
        margin: 0 auto;
        max-height: 200px;
        overflow-y: auto;
        padding-left: 0;z-index: 999;
    }
}




