/* General Styling */
 body {
      margin: 0;
      background: #fff8dc;
      display: block;
      justify-content: center;
      align-items: center;
      /*min-height: 100vh;*/
      height: 100vh;
      font-family: sans-serif;
    }

/* Navigation Bar */

nav {
      /*background-color: #6d4c41c7;*/
      background-color: #6d4c41;
      color: white;
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      align-items: center;
      padding: 10px 5px;
      position: relative;
    }

    nav nav2 {
      color: white;
      display: flex;
      flex-direction: column;
      position: relative;
      text-align: center;
      margin-bottom: 0;
    }

    nav .logo {
      font-size: 1em;
      font-weight: bold;
    }

    nav .name {
      font-size: 0.7em;
      font-weight: bold;
      font-style: italic;
    }

    nav .title {
      margin-top: -25px;
      font-size: 1em;
      font-weight: bolder;
    }

    nav .menu-toggle {
      display: none;
      font-size: 0.7em;
      cursor: pointer;
    }

    nav ul.nav-container {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 15px;
      transition: max-height 0.3s ease;
    }

    nav ul.nav-container li {
      margin: 5px;
    }

    .navis {
      font-weight: bolder;
      color: black;
      text-decoration: none;
      padding: 2px 2px;
      border-radius: 20px;
      height: 50px;
      min-width: 100px;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }

    .navis i {
      font-size: 1em;
      font-weight: bold;
      margin-bottom: 5px;
    }

    .bttn {
      border-radius: 15px;
      list-style: none;
      padding: 10px;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      border: 0;
      overflow: hidden;
      cursor: pointer;
      transition: color 0.3s ease;
      background: #fff8dc;
      position: relative;
      z-index: 5;
    }

    .bttn::before {
      content: "";
      position: absolute;
      border-radius: 15px;
      top: 0;
      right: 0;
      width: 100%;
      height: 100%;
      background: #6d4c41;
      transform: scaleX(0);
      transform-origin: right;
      transition: transform 1s ease;
      z-index: -1;
    }

    .bttn:hover::before {
      transform: scaleX(1);
      transform-origin: left;
    }

    .bttn:hover {
      color: #6d4c41;
    }

    @media (max-width: 768px) {
  nav .menu-toggle {
    display: block;
    margin-top: 10px;
  }

  nav ul.nav-container {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    width: 100%;
    padding: 0;
    align-items: center;
  }

  nav ul.nav-container.show {
    max-height: 300px;
  }

  nav ul.nav-container li {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .bttn {
    width: 40%;
    margin: 5px 0;
  }
  .bttn {
    width: 40%;
  }

}

    
/*----------------------------------------- */
/* Notification Badge */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: bold;
    color: white;
}
.badge.gray {
    background-color: #6c757d;
}
.badge.green {
    background-color: #28a745;
}
.badge.brown {
    background-color: #A52A2A;
}
.colorgreen {
    background-color: #28a745;
    color: white;
    padding: 10px;
    border-radius: 5px;
}
.colorgray {
    background-color: #ccc;
    color: black;
    padding: 10px;
    border-radius: 5px;
}
/*---------------------------------------------*/
/* Dropdown menu hidden by default */
nav ul .dropdown {
    display: none;
    position: absolute;
    background-color: #8d6e63; /* Slightly lighter shade */
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 225px;
    z-index: 1000;
    border-radius: 20px;
}

nav ul .dropdown li {
    padding:0;
    width: 100%;
    flex-direction:column;
    margin: 0 auto;
}

/* Show dropdown on hover */
nav ul li:hover > .dropdown {
    display: block;
}

/* Dropdown links */
nav ul .dropdown li a {
    color: white;
    display: block;
    text-align: center;
}

/* Add hover effect to dropdown items */
nav ul .dropdown li a:hover {
    background-color: #5d4037; /* Darker brown */
}

/*---------------------------------------------*/

 .slider {
      position: relative;
      margin: 0 auto;
      width: 100%;
      max-width: 800px;
      overflow: hidden;
      border-radius: 15px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

.carousel-caption {
    bottom: 25px;
  }

/* Content */
.content {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.content h1 {
    font-size: 2em;
    color: #6d4c41;
}
.content p {
    font-size: 1em;
    line-height: 1.6;
}

.gallery-container {
  display: grid;
  width:90%;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  padding: 20px;
  margin: 0 auto;
  overflow:hidden;
  border-radius:20px;
}
.gallery-item 
{
    position: relative;
    overflow: visible;
    width:90%;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
 
}
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, top 0.3s, left 0.3s;
}


/* Preview box is centered and hidden by default */
.preview-box {
  position: absolute;
  display: none;
  padding: 10px;
  background: white;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 999;
  max-width: 300px;
  pointer-events: none; /* prevents flickering */
}

.preview-box img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
/* Footer */
footer {
    background-color: #6d4c41;
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 1.2em;
}
.goto-gallery {
  display: inline-block;
  padding: 15px 30px;
  background-color: #6d4c41;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  border-radius: 30px;
  text-align:center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.goto-gallery:hover {
  background-color: #8d6e63;
  transform: scale(1.05);
}
.goto-gallery-container {
  margin: 30px auto;
  display: grid;
  width:90%;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  
}

@media screen and (max-width: 768px) {

    nav {
        background-color: #6d4c41;
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
        padding: 15px 20px;
        position: relative;
        margin: 0 auto;
}
    nav nav2 {
        background-color: #6d4c41;
        color: white;
        display: flex;
        flex-direction: column;
        position: relative;
    }
   nav .menu-toggle {
        display: block;
        font-size: 2em;
        cursor: pointer;
        color: white;
        padding: 10px;
        top: 100px;
        margin: 0 auto;
    }
    .nav-container {
    display: none;
        
    }
nav1
    {
    align-content: center;
    justify-content: center;
    display: flex;
    }

    .navis {
    color: black;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 15px;
    display: block;
    border-radius: 20px;
    height: 35px;
    margin: 0px;
    min-width: 100px;
}

.navis i 
    {
    font-size: 1.5em; /* Make the icon larger */
    font-weight: bold; /* Make it bold */
    margin-bottom: 5px; /* Space between icon and text */
    }
    .navis:hover {
    text-decoration: none;
}
    nav ul {
        display: none;
        flex-direction: column;
        width: 50%;
        position: absolute;
        top: 5px;
        text-align: center;
        z-index: 1000;
        border-radius: 20px;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        overflow-y: auto; /* Enable scrolling */
        max-height: 40vh; /* Prevent overflow */
        list-style: none;
    }

    nav ul.active {
        display: inline;
        position: relative;
    }

    nav ul li {
        margin: 10px 0;
        margin: 0 auto;
    }
    nav .dropdown {
        display: none;
        flex-direction: column;
        width: 70%;
        background-color: #6d4c41;
        position: absolute;
        top: 140px;
        text-align: center;
        z-index: 1000;
        border-radius: 20px;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }
    
    .slideshow-container {
        width: 100%;
        height: 400px;
        position: relative;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .bttn::before 
    {
      content: "";
      position: absolute;
      border-radius:20px;
      top: 0;
      right: 0;
      width: 100%;
      height: 100%;
      background: #6d4c41;
      transform: scaleX(0);
      transform-origin: right;
      transition: transform 0.4s ease;
      z-index:-1;
    }

    .bttn:hover::before 
    {
      transform: scaleX(1); /* Fills from right to left */
      transform-origin: left;
    }

    .bttn:hover
    {
        color:#6d4c41;
    }
}
