html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 30px;
}
#medicine{
    display:inline;
    float:left;
    width:33%;
    padding:5%;
}
#surgery {
    display: inline;
    float: left;
    width: 33%;
    padding: 5%;
}
#addProduct {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
}
    #addProduct .form-group {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
#addPodcast {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
}

    #addPodcast .form-group {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

#addQuestion {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
}
    #addQuestion .form-group {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }



h4 {
    width: 50%;
    margin-left: 45%;
}
.form-container {
    margin-bottom: 20px; 
}
.post-title {
    color: blue;
    font-size: 15px;
    text-decoration: underline;
}

    .post-title a {
        color: inherit; 
        cursor: pointer; 
        color:blue;
    }

        .post-title a:hover {
            text-decoration: underline; 
        }

.buttonContainer {
    display: flex;
    gap: 20px; 
}

    .buttonContainer > div {
        flex: 1;
        text-align: center; 
    }

h3 {
    margin-bottom: 5px; 
}
#questionInfo {
    width: 200px;
    position: fixed;
    top: 80px; 
    left: calc(100% - 300px); 
}
#imageContainer {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

    #imageContainer img {
        margin:15px;
        width: calc(15% - 3px); 
        cursor: pointer; 
    }

        
        #imageContainer img:hover {
            opacity: 0.7; 
        }

#posterImage {
    max-width: 100%; /* Set maximum width to 100% of the container width */
    max-height: 100%; /* Set maximum height to 100% of the container height */
    display: block; /* Ensure image behaves like a block element */
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw; /* Set width to 100% of viewport width */
    height: 100vh; /* Set height to 100% of viewport height */
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Modal Content */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    width: 900px;
    height: 700px;
}

/* Modal Body */
.modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Enlarged Image */
#enlargedImage {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto;
    cursor:zoom-in;
}
#siteLogo{
    opacity:0.1;
    display:block;
    margin-left:auto;
    margin-right:auto;
    width:50%;
}
body {
    background-image: url('../images/logo/color logo with background.png');
    background-repeat: no-repeat, repeat;
    background-position-x: 750px;
    background-position-y: 290px;
    background-size: 20%;
    background-attachment: fixed;
    background-position: center center;
    padding-top: 70px;
}
.footer {
    position: fixed; 
    bottom: 0; 
    width: 100%; 
    background-color: #f8f9fa; 
    padding: 10px 0;
}

#name {
    width: 100%;
}
#subject {
    width: 100%;
}
#message {
    width: 100%;
}
#podcastName {
    width: auto;
}
#podcastDescription {
    width: auto;
}
#uploadAudio {
    width: 25%;
}
#addPodcast {
    width: auto;
}
#Category {
    width: auto;
}
#question {
    width: auto;
}
@keyframes progressBarAnimation{
    from {width:0%;}
}
#examProgress{
    width:100%;
    height:10px;
    animation:progressBarAnimation 3s ease-out forwards;
}
#navbar-container {
    display: flex;
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Distribute items evenly */
    flex-wrap: nowrap; /* Prevent wrapping */
    margin-left: 0px;
    width: 100%;
}

.nav-item {
    padding: 0 10px; /* Adjust padding as needed */
    flex: 1; /* Distribute available space evenly among items */
    text-align: center; /* Center text horizontally */
    white-space: nowrap; /* Prevent text from wrapping */
}
#scoreTable{
    width:100%;
    font-family: Arial, sans-serif;
    border-collapse:collapse;
}
#scoreTable td , th{
    border:1px solid red;
    text-align:left;
    padding:5px;
}
tr:nth-child(even){
    background-color:azure;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 70px; /* Ensure the sidebar starts from the top of the screen */
    bottom: 70px; /* Make the sidebar cover the entire height of the screen */
    width: 180px;
    background-color: #f0f0f0;
    padding: 20px;
    transition: transform 0.3s; /* Use transform for smoother animation */
    z-index: 999; /* Ensure the sidebar is above other content */
}
    .sidebar a {
        display: block;
        margin-bottom: 10px;
        text-decoration: none;
        color: #333;
    }

.main {
    margin-left: 220px; /* Add space for the sidebar */
    padding: 20px; /* Add padding to the main content */
}

.sidebar-toggle {
    display: none;
}

/* Media query for smaller screens */
@media (max-width: 268px) {
    .sidebar {
        transform: translateX(-200px); /* Move the sidebar off-screen */
    }

    .main {
        margin-left: 20px; /* Adjust margin for the main content */
        padding-top:80px;
    }

    .sidebar.active {
        transform: translateX(0); /* Bring the sidebar into view */
    }

    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        cursor: pointer;
        z-index: 1000; /* Ensure the toggle button is above the sidebar */
    }
}
h5 {
    margin-top: -80px; /* Offset the padding added to the main content */
    padding-top: 120px; /* Match the padding added to the main content */
}

html{
    scroll-behavior:smooth;
}

.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000; /* Ensure it's above other elements */
}
