/* General styles */
* {
    color-scheme: light dark; /* Explicitly support both modes */
    -webkit-text-fill-color: currentColor; /* Ensure text color is applied */
}
    

.smartphoneContent {
        margin: 0;
        padding: 0;
        font-family: Courier, monospace;
        background-color: #f5f5f5;
    }

    /* Header container */
    .page-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-image: url('/images/header.jpg'); /* Add background image */
        background-size: cover; /* Ensure the image covers the entire header */
        background-position: center; /* Center the background image */
        background-repeat: no-repeat; /* Prevent the image from repeating */
        padding: 5px 0; /* Reduced padding to minimize space */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Add shadow to the bottom border */
        z-index: 1000;
        display: flex;
        flex-direction: column; /* Stack logo and menu vertically */
        justify-content: flex-start; /* Align items to the top */
        align-items: center;
        overflow: visible;
        border: 2px solid #555; /* Add a modest dark grey border */
        height: 55px; /* Reduced height of the container */
    }

    /* Logo text styles */
    .logo-text {
        font-family: Courier, monospace;
        font-size: 15px; /* Small font size */
        font-weight: normal; /* Non-bold */
        color: #1b1b1b; /* Black text */
        text-align: center; /* Center the text */
        margin-top: 2px; /* Reduced space between top of container and text */
        margin-bottom: 2px; /* Reduced space between logo and menu */
        white-space: nowrap; /* Prevent text from wrapping */
    }

    /* Menu wrapper to keep items horizontal */
    .menu-wrapper {
        position: fixed;
        display: flex;
        justify-content: center; /* Center the menu items horizontally */
        align-items: center;
        width: 100%;
        padding-top: 14px;
        padding-right: 15px;
    }

    /* Menu container styles */
    .menu-container {
        position: relative;
        display: flex;
        flex: 1; /* Allow menu items to grow and shrink */
        justify-content: center; /* Center the menu items within their container */
        margin-left: -20px;
        margin-top: 8px; /* Reduced space to move menu items down slightly */
    }

    /* Hamburger menu styles */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        cursor: pointer;
    }

    .hamburger-menu .bar {
        width: 100%;
        height: 3px;
        background-color: blue; /* Default color */
        transition: all 0.3s ease;
    }

    /* Change hamburger menu bars to black when active */
    .hamburger-menu.active .bar {
        background-color: black; /* Active color */
    }

    /* Menu anchor styles */
    .menu-anchor {
        font-size: 24px; /* Increase font size */
        font-weight: bold; /* Make text bold */
        text-decoration: none;
        color: blue;
        cursor: pointer;
        padding: 10px;
        display: block;
        white-space: nowrap;
        text-align: center; /* Center the text within the anchor */
    }

    .menu-anchor:hover, .menu-anchor.active {
        color: black;
    }

    /* Dropdown menu styles */
    .menu {
        display: none;
        flex-direction: column;
        background-color: #e7e7e7;
        padding: 10px 5px; /* Reduced padding on the left and right */
        position: absolute;
        top: 100%; /* Position below the menu anchor */
        left: 50%; /* Center the menu by default */
        transform: translateX(-50%); /* Center the menu */
        width: auto;
        min-width: max-content;
        border: 1px solid #ccc;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow */
        transition: opacity 0.3s ease-in-out;
    }

    /* Specific style for menu1 (hamburger menu's submenu) */
    #menu1 {
        left: 30%; /* Move menu1 50px to the right */
        transform: none; /* Remove centering for menu1 */
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    }

    .menu a {
        color: blue;
        text-decoration: none;
        padding: 5px 10px;
        display: block;
        text-align: left;
        transition: color 0.3s;
        font-weight: bold; /* Add this line to make the text bolder */
    }

    .menu a:hover, .menu a.active {
        color: black;
    }

    /* Main content area below the header */
    .smartphoneContent {
        font-family: Courier, monospace;
        padding-top: 1px; /* Tiny padding to avoid cutting off iframe content */
        height: calc(100vh - 50px); /* Adjust height to account for header height */
        width: 100%; /* Full width */
        background-color: #f5f5f5; /* Background color */
        position: relative; /* Ensure the iframe is positioned correctly */
        padding-top: 40px; /* Adjust to match header height */
        height: calc(100vh - 50px); /* Ensures it fits below the header */
        margin-left: 0px;
    }

    /* Iframe container */
    .iframe-container {
        display: none; /* Initially hidden */
        width: 100%;
        height: 100%; /* Fill the entire smartphoneContent area */
        border: none; /* Remove iframe border */
        margin: 0; /* Ensure no margin */
        padding: 0; /* Ensure no padding */
    }
        
 /* General styles for the panels */
/* Ensure the parent container is positioned relative */
#globalNav ul li {
    position: relative;
}

/* Styles for the collapsible panel */
/* General styles for the buttons */
#toggleButton, #toggleButton-mobile {
    background-color: lightgrey;
    color: black;
    border: none;
    padding: 5px 10px;
margin-top: 8px; 
    cursor: pointer;
    font-family: Courier, monospace;
    position: relative;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5); /* Edgy shadow */
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}


/* Highlight effect for buttons */
#toggleButton:focus, #toggleButton-mobile:focus {
    outline: none;
    box-shadow: 0 0 10px 2px white; /* White highlight */
}

/* Styles for the collapsible panels */
.panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Avoid flexbox centering issues */
    text-align: left;
    line-height: 1.5;
    max-height: 700px;
    font-family: Courier, monospace;
    color: blue;
    font-weight: bold;
    font-size: 14px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 425px;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow-x: scroll; /* Enable horizontal scrolling */
    overflow-y: scroll;
    box-sizing: border-box; /* Prevent padding from affecting width */
    padding-right: 15px;
    border: 1px solid #ccc;
    background-color: lightgrey;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5); /* Edgy shadow */
    border-radius: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    background-image: url('/images/header.jpg'); /* Add background image */
}


#collapsiblePanel a {
color: rgb(96, 96, 255);
text-decoration: none;
}

.panel > * {
    flex-shrink: 0; /* Prevent content from being cut off */
}

.panel.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.7); /* More pronounced shadow when visible */
}

/* Highlight effect for panels */
.panel:focus-within {
    box-shadow: 0 0 15px 3px white; /* White highlight */
}
/* General styles for the buttons */
#toggleButton, #toggleButton-mobile {
    color: #777777;
    border: none;
    padding: 2px 5px;
    cursor: pointer;
    font-family: Courier, monospace;
    font-size: 16px;
    font-weight: bold;
    position: relative;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Ensure the shadow persists when the button is active or focused */
#toggleButton, #toggleButton:focus, #toggleButton:active
#toggleButton-mobile, #toggleButton-mobile:focus, #toggleButton-mobile:active {
    background-color: #ccc; /* Slightly darker on active/focus */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* More pronounced shadow on active/focus */
}

.chevron, .chevron-mobile {
    display: inline-block;
transition: transform 0.3s ease;
}

.chevron-up {
    transform: rotate(180deg);
}

.rotate {
    transform: rotate(180deg);
}

        .back-link {
            display: block;
            text-align: right;
            font-weight: bold;
            margin-bottom: 10px;
            cursor: pointer;
            font-size: 0.8em; /* Smaller font size */
        }
        h2 {
            font-weight: bold;
            text-align: center;
            margin-top: 10px;
            font-size: 1.2em; /* Slightly smaller header */
        }
        p {
            font-size: 1em; /* Main content text normal size */
        }
        
.page-header {
    position: fixed; /* Add this line */
}
        
* {
    -webkit-tap-highlight-color: rgba(201, 201, 201, 0.5); /* Example: red with 50% opacity */
}        

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .menu-anchor {
            font-size: 20px; /* Slightly reduce font size for smaller screens */
            padding: 8px; /* Reduce padding for smaller screens */
        }
.panel {
        width: 100%; /* Full width on mobile */
        max-width: none; /* Remove max-width restriction */
max-height: 500px;
        left: 0; /* Align to the left edge */
display: none; /* Initially hidden */
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    margin-top: 5px;
margin-right: 15px;
line-height: 2;
    }
.panel.show {
    display: block; /* Show the panel */
}
#collapsiblePanel-mobile {
        position: fixed;
        top: 55px;
        left: 0;
        width: 100%;
        max-width: none;
        z-index: 1000;
        box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.5); /* Consistent shadow on mobile */
        overflow-y: scroll;
    padding-top: 0px;
margin-right: 15px;
    }

    #collapsiblePanel-mobile.show {
        box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.7); /* More pronounced shadow when visible */
    }
        .menu-anchor {
    position: relative;
    padding: 10px; /* Keep the original padding */
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: blue;
    cursor: pointer;
    display: block;
    white-space: nowrap;
    text-align: center;
}
.menu-anchor:active {
    background-color: white; /* Light blue for tap feedback */
    border-radius: 5px; /* Optional: Add rounded corners for a softer look */
}

.menu-anchor::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: transparent; /* Transparent background */
    z-index: -1; /* Place it behind the text */
}
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px; /* Keep the original width */
    height: 24px; /* Keep the original height */
    cursor: pointer;
    position: relative; /* Required for pseudo-element positioning */
    padding: 15px; /* Add transparent padding to expand the clickable area */
    margin: -15px; /* Compensate for the padding to keep alignment */
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px; /* Keep the original bar height */
    background-color: blue; /* Default color */
    transition: all 0.3s ease;
}

.hamburger-menu.active .bar {
    background-color: black; /* Active color */
}

        }

    @media (max-width: 480px) {
        .menu-anchor {
            font-size: 18px; /* Further reduce font size for very small screens */
            padding: 6px; /* Further reduce padding */
        }
    }