*, *:before, *:after {
    box-sizing: border-box;
    }
    
    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;  /* Ensure padding and borders do not increase element sizes */
    }
    
    /* Styles for portrait orientation */
    @media (orientation: portrait) {
    body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    padding-bottom: 50px; /* Prevent footer overlap */
    }
    }
    
    /* Styles for landscape orientation */
    @media (orientation: landscape) {
    body {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: white;
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    padding-bottom: 50px; /* Prevent footer overlap */
    }
    }
    
    header.banner {
        background: linear-gradient(90deg, #002f6c, #004080);
        color: white;
        text-align: center;
        padding: 20px;
        position: relative;
    }
    
    header.banner h1 {
        color: white;
        font-weight: 400; /* Adjust the weight as needed (e.g., 100, 200, 300) */
        font-size: 30px;
    }
    
    
    header .menu-icon {
        display: block; /* Ensure the icon is visible */
        font-size: 1.8rem;
        cursor: pointer;
        color: white;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 1000;
    }
    
    
    
    header .dropdown-content {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background-color: #ffffff;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    header .dropdown-content a {
        padding: 15px;
        font-size: 1rem;
        color: #333;
        text-decoration: none;
        text-align: center;
        border-bottom: 1px solid #ddd;
    }
    
    header .dropdown-content a:hover {
        background-color: #f0f0f0;
    }
    
    header .dropdown-content.show {
        display: flex;
    }
    
    .banner .slogan {
        font-size: 0.8em;
        margin-top: 8px;
        color: white;
      }
    
    
    /*   */
    /* My Profile - Modern Collapsible Button - ??? */
    .collapsible {
        background-color: #355e76; /* Green color */
        color: white;
        cursor: pointer;
        padding: 8px;
        width: 100%;
        border: none;
        text-align: left;
        outline: none;
        font-size: 18px;
        border-radius: 8px;
        transition: background-color 0.3s, box-shadow 0.3s;
    }
    
    .collapsible:hover {
        background-color: #457b9d; /* Darker green */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .collapsible.active {
        background-color: #355e76; /* Even darker green when active */
        box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .collapsible .symbol {
        float: right;
        font-size: 22px;
    }
    

/*   */
    /* My Profile - Modern Collapsible Button - ??? */
    .collapsible2 {
        background-color: #355e76; /* Green color */
        color: white;
        cursor: pointer;
        padding: 8px;
        width: 100%;
        border: none;
        text-align: left;
        outline: none;
        font-size: 18px;
        border-radius: 8px;
        transition: background-color 0.3s, box-shadow 0.3s;
    }
    
    .collapsible2:hover {
        background-color: #457b9d; /* Darker green */
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .collapsible2.active {
        background-color: #355e76; /* Even darker green when active */
        box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.2);
    }
    
    .collapsible2 .symbol {
        float: right;
        font-size: 22px;
    }








    /* Collapsible Content */
    .content {
        padding: 0 18px;
        display: none;
        overflow: hidden;
        background-color: white;
        border-radius:0%;
        border-top: 0px solid #008CBA;
        transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    }
    
    .content p, .content h3, .content button {
        margin: 10px 0;
    }
    
    .content.show {
        display: block;
        max-height: 500px; /* Adjust as needed */
        opacity: 1;
        transition: max-height 0.3s ease-in, opacity 0.3s ease-in;
    }
    
    /* Styling for Buttons Inside Content */
    .content button {
        background-color: #008CBA; /* Blue */
        color: white;
        padding: 10px 5px;
        margin: 5px 0;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
    }
    
    .content button:hover {
        background-color: #005f73; /* Darker blue */
    }
    
    .content .video-placard {
        border: 1px solid white;
        border-radius: 0px;
        padding: 25px;
        margin-top: 0px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    /*     */
    
    .button-container {
        display: flex;
        justify-content: center;
        gap: 10px; /* Optional: Add space between the buttons */
        margin-top: 20px; /* Optional: Adjust the top margin as needed */
    }
    
    /*   */
    
    /* 222-My Profile - Style the container element xx- may remove this 030325*/
    .profile-container {
    background-color: #eee;
    border: 1px solid pink;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    padding: 1.5rem;
    margin-top: 0.1rem; /* margin for top */
    margin-right: auto; /* margin for right */
    margin-bottom: 0.1rem; /* margin for bottom */
    margin-left: auto; /* margin for left */
    box-sizing: border-box;
    width: 100%;
    }
    
    .profile-container h3 {
    background-color: #4CAF50; /* Golden color for the banner, but you can change to any color you prefer */
    color: white; /* Text color for the title */
    padding: 0.3rem; /* Padding to give space around the text */
    border-radius: 0px; /* Rounded corners for the banner */
    margin: 1rem 0; /* Space above and below the title, you can adjust as needed */
    font-size: 14px;
    font-weight: normal;
    }
    
    
    .profile-container p {
    margin: 0.5rem 0;
    font-size: 1.0rem;
    }
    
    .profile-container span[contenteditable] {
    border: 1px solid #ccc;
    padding: 0.2rem;
    border-radius: 3px;
    }
    
    #profile-form {
    background-color: white;
    padding: 0;
    border-radius: 5px;
    max-width: 100%;
    margin: 1.5rem auto;
    margin-top: -50px;
    margin-bottom: 0.0px;
    }   
    
    .video-placard {
    text-align: left;
    margin: 2.5rem auto;
    background-color: #F0EAD6;
    border: 1px solid #008CBA;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    padding: 1.5rem;
    margin-top: 1.0rem; /* margin for top */
    margin-right: auto; /* margin for right */
    margin-bottom: 1.5rem; /* margin for bottom */
    margin-left: auto; /* margin for left */
    max-width: 100%;
    font-size: 14px;
    }
    
    .video-placard h3 {
    background-color: #457b9d; /* Golden color for the banner, but you can change to any color you prefer */
    color: #F0EAD6; /* Text color for the title */
    font-weight: normal;
    padding: 0.3rem; /* Padding to give space around the text */
    border-radius: 0px; /* Rounded corners for the banner */
    margin: 1rem 0; /* Space above and below the title, you can adjust as needed */
    margin-top: 0.0rem;
    margin-bottom: 1rem;
    }      
    
    /* Style the error message */
    .error-message {
    color: red;
    font-weight: bold;
    text-align: center;
    margin-top: 1.5rem;
    }
    
    button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #355e76;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    margin: 0 auto;
    }
    
    button[type="submit"]:hover {
    background-color: #457b9d;
    }
    
    .button3{
    display: inline-block;
    max-width: 600px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #555;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    }
    
    
    #previous-button {
    margin-right: 10px;  /* Adjust the space as required */
    }
    
    /* Style the dropdown container */
    .dropdown {
    display: block;  /* makes the span a block-level element */
    top: 55%;
    right: 48%;
    transform: translateY(-50%);
    margin-top: -10px;
    }
    
    /* Style the dropdown button */
    .dropbtn {
    background-color: #36454F;
    color: white;
    padding: 5px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    }
    
    /* Style the dropdown content */
    .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    /* Adjust the left property to open the menu on the left side */
    left: 50%;
    transform: translateX(-50%); /* Center it with respect to the main button */
    top: 100%; /* Align it right below the main button */
    }
    
    /* Style the dropdown links */
    .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 12px; /* Here's the updated font size */
    font-weight: bold;  /* Add this line */
    }
    
    /* Style the dropdown links on hover */
    .dropdown-content a:hover {
    background-color: #f1f1f1;
    }
    
    /* Show the dropdown content (hidden by default) */
    .dropdown:hover .dropdown-content {
    display: block;
    }
    
    /* Add space between list items */
    .list-item-space {
    margin-bottom: 20px; /* adjust as needed */
    list-style-position: inside; /* Numbers align with the content */
    padding-left: 10px;  /* move text to the right by 1 tab space (approximately) */
    }
    
    footer {
    width: 100%;
    text-align: center;
    font-size: 0.6em;
    padding: 1rem 0;
    background: linear-gradient(90deg, #002f6c, #004080);
    color: white;
    position: fixed;
    bottom: 0;
    padding: 0.5ch;
    z-index: 2; /* Ensure the footer stays on top */
    }
    
    footer a {
    color: white;
    text-decoration: none; /* Optional: to remove the underline */
    }
    
    footer a:hover {
    color: white; /* Optional: different color for hover effect, you can choose your own color */
    }
    
    .save-changes-container {
    border-bottom: 2px solid #ccc; /* This creates the dividing line */
    padding-bottom: 1rem; /* This adds some space between the button and the dividing line */
    margin-bottom: 1rem; /* This adds some space between the dividing line and the next section */
    } 
    
    #file-count-display {
    text-align: center;   /* This aligns the content of the div to the left. */
    white-space: nowrap;   /* This prevents the text from wrapping. */
    width: 10%;        /* This ensures the div takes the full width of its parent. */
    }  


    /*     */
    /* Enhancements for Collapsible Button */
.collapsible {
    background-color: #355e76;
    color: white;
    cursor: pointer;
    padding: 15px;
    font-size: 1.2rem;
    text-align: left;
    border: none;
    border-radius: 0px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.collapsible:hover {
    background-color: #457b9d;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.collapsible.active {
    background-color: #2e4d63;
}

.collapsible .symbol {
    float: right;
    font-size: 1.5rem;
    line-height: 1.2;
}

/* Enhancements for Content Section */
.content {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #ddd;
    display: none;
}

/* Styling for Profile Container - this is the out box outside of Profile form */
.profile-container {
    background-color: #ffffff;
    border: 0px solid #ddd;
    border-radius: 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    padding: 10px;
    max-width: 800px;
}

/* Alert Banner for Incomplete Profile */
.alert {
    background-color: #f44336;
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    margin-top: 40px;
    margin-bottom: 20px;
    display: none;
    font-size: 1rem;
}

/* Inputs and Form Styling */
input[type="text"],
input[type="email"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 10px;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

legend {
    font-size: 1.2rem;
    font-weight: bold;
    color: #355e76;
    margin-bottom: 10px;
}

/* Previous and Next Button in Videos and Transcripts  ???*/button[type="submit"],
.button-container button {
    background-color: #355e76;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 0px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover,
.button-container button:hover {
    background-color: #457b9d;
}


    