* {
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
    font-size: 48px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

h2 {
    font-size: 36px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

h3 {
    font-size: 28px;
    padding: 20px;
    margin: 10px 0;
    text-align: center;
}

h4 {
    font-size: 22px;
    padding: 10px;
    margin: 20px 0;
    text-align: center;
}

h5 {
    font-size: 15px;
    font-weight: 200;
    text-align: center;
}

.bold_text,
h5 {
    font-weight: bold;
}

h6 {
    font-size: 14px;
    padding: 5px;
    margin: 5px 0;
    text-align: center;
}

.question-text {
    font-size: 32px;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    background-color: #333;
    color: white;
}

body {
    margin: 0;
    /* Prevents unwanted body scroll-bars */
}

/* Main container for the entire page layout */
.main-container {
    display: flex;
    /* Establishes the flex context */
    min-height: 100vh;
    /* instead of height: 100vh */
    /* Makes the container take up the full viewport height */
}

/* Styling for the navigation bar (sidebar) */
.navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centers links horizontally */
    flex-shrink: 0;
    /* Stacks links vertically */
    width: 10%;
    /* A fixed width for the sidebar */
    background-color: #333;
    padding: 55px;
    /* Allows the sidebar to scroll if content is too long */
    overflow: hidden;
    /* Hides the scrollbar */
    scrollbar-width: none;
}

/* Styling for each link in the sidebar */
.nav-item {
    display: flex;
    align-items: center;
    /* Vertically aligns the image and text */
    margin-bottom: 15px;
    padding: 5px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

/* Image styling within each link */
.nav-item img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    border-radius: 50%;
    object-fit: cover;
    /* Ensures images are not stretched */
}

/* Hover effect for links */
.nav-item:hover {
    background-color: #575757;
}

@media (max-width: 375px) and (max-height: 667px) {
    .navbar {
        width: 60vw;
        /* or use min-width: 200px; */
        min-width: 200px;
        /* ensures it's not too narrow */
        height: auto;
        padding: 50px;
        flex-direction: column;
        overflow-x: auto;
    }

    .nav-item {
        flex: 1 1 100%;
        margin-bottom: 10px;
        font-size: 18px;
        padding: 12px;
        justify-content: flex-start;
    }

    .nav-item img {
        width: 24px;
        height: 24px;
        margin-right: 10px;
    }
}

.content {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-center {
    text-align: center;
    justify-content: center;
    align-items: center;
}

.logout {
    text-align: center;
    justify-content: center;
    align-items: center;
    margin-top: 50vh;
    margin-bottom: 50vh;
}

.input_password_1 {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
    /* Ensures no scrollbar appears */
}

.content-area {
    display: flex;
    justify-content: center;
    /* Vertically centers the child */
    padding: 50px;
    /* Example: Makes the container fill the viewport height */
}

.brand-image,
.img-circle,
.elevation-3 {
    border-radius: 50%;
    object-fit: cover;
}

.img-circle.elevation-2 {
    border-radius: 50%;
    object-fit: cover;
}

/* Center the video inside its container */
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
    /* Ensures a larger video area */
    max-width: 720px;

}

.video-container iframe {
    width: 900px;
    height: 506px;
    /* 16:9 ratio for 900px width */
    max-width: 100%;
    border: none;
    margin: 0 auto;
    padding: 0;
}

/* Styling for the main content container */
.main-content {
    flex-grow: 1;
    /* Allows it to take up the remaining space */
    display: flex;
    flex-direction: column;
    /* This is the key change: stack children vertically */
    align-items: center;
    /* Centers all content items within this column */
    padding: 0;
}

.course_information {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    border: #000000 5px solid;
    background-color: #f1f3ff;
    padding: 10px;
    margin: 20px;
    /* Add padding for spacing */
    max-height: none;
    /* Limit the width of the box */
    max-width: none;
    /* Optional: Sets a maximum width on desktop */
    line-height: 1;
}

@media (max-width: 375px) and (max-height: 667px) {
    .course_information {
        padding: 8px;
        font-size: 14px;
        margin: 10px;
    }
}

/* Update content-wrapper styles */
.content-wrapper {
    overflow-y: auto;
    /* Allows vertical scrolling while keeping full viewport height */
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    /* Space between buttons */
    justify-content: center;
    /* Center buttons horizontally */
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (max-width: 375px) {
    .button-group {
        flex-direction: column;
        /* Stack buttons vertically on small screens */

    }
}

.download-button,
.lab-buttons {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    flex-wrap: wrap;
    font-size: 18px;
    color: white;
    background-color: #4b4b4b;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #0056b3;
}

/* Media query for smaller screens (e.g., mobile phones) */
@media (max-width: 768px) {
    .lab-buttons {
        flex-direction: column;
        /* Buttons stack vertically */
    }
}

.lab-buttons:hover {
    background-color: #0056b3;
}

.collapsible {
    background-color: #777;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: center;
    justify-content: center;
    outline: none;
    font-size: 15px;
    border-radius: 8px;

}

.SCSI_Logo {
    width: 150px;
    height: auto;
    margin-right: 15px;
    object-fit: cover;
    /* Ensures images are not stretched */
}

button:disabled {
    background-color: grey;
    cursor: not-allowed;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
}

@media (max-width: 667px) and (max-height: 375px) {
    footer {
        padding: 12px;
        font-size: 16px;
        text-align: center;
    }
}

.hide-scrollbar {
    scrollbar-width: none;
    /* For Firefox */
    -ms-overflow-style: none;
    /* For Internet Explorer and Edge */
}

hr {
    align-items: center;
    border: none;
    border-top: 5px solid #333;
    margin: 20px 20px;
}

.line-bridge {
    align-items: center;
    border: none;
    border-top: 5px solid #333;
}

.no-indent,
li {
    margin: 20px;
    padding-left: 0;
    list-style-type: none;
}

.practice-text li {
    margin: 10px 0;
    padding-left: 0;
    list-style-type: none;
}

.Zoom_Button {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    flex-wrap: wrap;
    font-size: 18px;
    color: white;
    background-color: #4b4b4b;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    margin-bottom: 20px;
}

.Zoom_Button:hover {
    background-color: #0056b3;
}

.button_center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.legend-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1 1 auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    border: #000000 5px solid;
    background-color: #f1f3ff;
    padding: 20px;
    margin: 10px;
    /* Add padding for spacing */
    max-height: 400px;
    /* Limit the width of the box */
    max-width: 200px;
    /* Optional: Sets a maximum width on desktop */
    line-height: 1;
}

.download-button-online {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    flex-wrap: wrap;
    font-size: 18px;
    color: white;
    background-color: #0ec758;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.download-button-online:hover {
    background-color: #129914;
}
@media (max-width: 375px) and (max-height: 667px) {
    .download-button-online {
        padding: 12px 20px;
        font-size: 16px;
    }
}

.offline-text {
    font-size: 48px;
    color: red;
    font-weight: bold;
    text-align: center;
}       
@media (max-width: 375px) and (max-height: 667px) {
    .offline-text {
        font-size: 32px;
        padding: 10px;
        margin: 10px 0;
        text-align: center;
    }
}

.online-text {
    font-size: 48px;
    color: #0ec758;
    font-weight: bold;
    text-align: center;
}
@media (max-width: 375px) and (max-height: 667px) {
    .online-text {
        font-size: 32px;
        padding: 10px;
        margin: 10px 0;
        text-align: center;
    }
}