/* Responsive layout styles */
/* Default styles for desktop */
#mainwrapper {
    display: block;
}

#m_mainwrapper {
    display: none;
}

/* Mobile styles will be applied via JavaScript */
body.mobile-view {
    /* Additional mobile-specific body styles if needed */
    font-size: 16px;
}

/* Media query as a fallback if JavaScript is disabled */
@media screen and (max-width: 767px) {
    #mainwrapper {
        display: none;
    }
    
    #m_mainwrapper {
        display: block;
    }
    
    /* Ensure hamburger menu is visible in mobile view */
    .hamburger-menu {
        display: block !important;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: fixed;
    top: 80px;
    right: 15px;
    z-index: 1000;
    cursor: pointer;
    background-color: #64CE3B;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /* Display by default in mobile view */
    display: none;
}

@media screen and (max-width: 767px) {
    .hamburger-menu {
        display: block;
    }
}

.hamburger-icon {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

.hamburger-icon.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-icon.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

.nav-menu {
    position: fixed;
    top: 0;
    left: -80%;
    width: 80%;
    height: 100%;
    background-color: white;
    z-index: 999;
    overflow-y: auto;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.nav-menu.open {
    left: 0;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
}

.nav-overlay.open {
    display: block;
}

.nav-menu-header {
    background: linear-gradient(#9DE458, #64CE3B);
    padding: 15px;
    color: white;
    font-size: 6vw;
    font-weight: bold;
    text-align: center;
}

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

.nav-menu li {
    border-bottom: 1px solid #eee;
}

.nav-menu li a {
    display: block;
    padding: 15px;
    color: #005B25;
    text-decoration: none;
    font-size: 5vw;
}

.nav-menu li a:hover, 
.nav-menu li a:active {
    background-color: #f5f5f5;
}

/* Hide the original navigation when hamburger menu is active */
.hamburger-active .main-nav {
    display: none;
} 