html {
    scroll-behavior: smooth;
}

/* Fade-in Animation */

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in-show {
    opacity: 1;
}

/* Fade-in Animation for left to right transition */

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px); /* Start position: slightly to the left */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.fade-in-left-show {
    opacity: 1;
    transform: translateX(0); /* End position: original place */
}

/* Fade-in Animation for right to left transition */

.fade-in-right {
    opacity: 0;
    transform: translateX(50px); /* Start position: slightly to the right */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.fade-in-right-show {
    opacity: 1;
    transform: translateX(0); /* End position: original place */
}

/* styling navbar */

.navbar-brand {
    border: 5px;
}
.nav-link {
    color: #555 !important;
 }
.navbar {
    background: linear-gradient(45deg, rgba(243,210,177) ,rgba(246,222,186), rgba(240,205,170), rgba(238,205,172)) !important;

}

.navbar.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: rgb(250, 249, 238) !important;
    background-repeat: no-repeat;
    background-size: cover;
}

.collapse.scrolled {
    color:black !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: white;
}

.navbar-dark .navbar-brand {
    color: white;
}

.home-section h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

.home-section p {
    font-size: 1.5em;
}

/* Dropdown */

.dropdown-content, .sub-dropdown {
    display: none;
    position: absolute;
    background-color: #c67070;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    padding: 0;
    z-index: 1;
    
}

.dropdown-content {
    top: 100%;
    left: 0;
}

.sub-dropdown {
    top: 0;
    left: 100%;
    margin-left: 1px;
    user-select: none;
}
.dropdown-item:active {
    background-color: white;
}

.dropdown-item, .sub-dropdown-item {
    list-style: none;
}

.dropdown-item a, .sub-dropdown-item {
    padding: 12px 16px;
    display: block;
    color: white;
    text-decoration: none;
}

.nav-item:hover .dropdown-content {
    display: block;
}

.dropdown-item:hover .sub-dropdown {
    display: block;
}

.sub-dropdown.for-her-sub-dropdown {
    top: 50px;
    user-select: none; 
}

.sub-dropdown.for-home-sub-dropdown {
    top: 100px; 
    user-select: none;
}
.dropdown-item:hover {
    background-color: #b85c5c; /* Adjust this value for hover effect */
}

.sub-dropdown-item:hover {
    background-color: #b85c5c;
    color: #ffffff; /* Adjust this value for text hover effect */
}


/* navbar locate button */

.locate-button {
    background: linear-gradient(45deg, #ff6f61, #de6262);
    border: none;
    color: white;
    padding: 7px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    margin: 1px 2px;
    cursor: pointer;
    border-radius: 25px;
    animation: zoom-in-zoom-out 1s ease infinite;
}
@keyframes zoom-in-zoom-out{
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.1, 1.1);
  }
  100% {
    transform: scale(1, 1);
  }
}

.locate-button:hover {
    background: linear-gradient(45deg, #de6262, #ff6f61);
}

/* Media queries for responsiveness */

@media (max-width: 599px) {
        .form-group {
            text-align: center;
        }
        .form-control {
            width: 250px;

        }

}

@media screen and (max-width: 1024px) and (min-width: 600px) {

    .form-control{
        width: 360px;
    }

}

/* search bar */
#searchicon{
    border: none;

}
#searchicon:hover{
    /* background-color: rgb(255, 197, 121) ; */
    background-color: transparent;
}

#searchicon:focus {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

#searchicon:active {
    background-color: inherit;
    color: inherit;
    border-color: inherit;
}

/* star rating */
.checked {
    color: orange;}

.rating li{
    display: inline;
}
