/* General Reset */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styling */
header {
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    /* position: fixed;
    top: 0; */
    width: 100%;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    display: flex;
    align-items: center;
    font-size: 24px;
}

nav .logo img {
    width: 40px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

nav ul li a:hover {
    color: #FFEB3B;
}


/* Side Bar */
.container {
    display: flex;
    width: 100%;
    height: 100vh;
    /* Full screen height */
    padding: 0 20px;
    /* Small margin on left and right */
    padding: 0;
}

.sidebar {
    width: 25%;
    /* Adjusted to take more horizontal space */
    /* background-color: #2d6a4f; */
    padding: 30px;

    /* Small gap between sidebar and content */
    flex-shrink: 0;
    /* Prevent sidebar from shrinking */
    height: 100%;
    overflow-y: scroll;
    /* Allows scrolling if the list is too long */
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 50px;
}

.sidebar-list-item {
    margin: 15px 0;
}

.sidebar-list-item a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.sidebar-list-item a:hover {
    color: #7fbb65;
}

.sidebar-list-item.active a {
    color: #7fbb65;
    font-weight: bold;
}

#video-list li {
    color: #4CAF50;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

#video-list li:hover {
    color: #7fbb65;
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 90%;
    border: none;
    margin-top: 20px;
}

/* Display Area */
.display-area {
    overflow-y: scroll;
    min-width: 75%;
    padding: 20px;
}

#display-content {
    width: 100%;
    height: 100%;
}

.resource-menu {
    width: 100%;
    height: 100%;
}

.materials-list {
    list-style: none;
}

.papers-list {
    padding: 100px;
    list-style: none;
}

.papers-list li {
    display: inline;
    font-size: large;
    margin: 10px;
    padding: 20px;
    /* border: 2px solid #000; */
    border-radius: 5px;
    cursor: pointer;
    background-color: rgb(231, 230, 230);
}

.papers-list li:hover {
    transform: scale(2);
    /* Scales the <li> by 2 times */
    background-color: rgb(196, 196, 196);
    transform-origin: center;
    /* Keeps the scaling centered */
    transition: transform 0.3s ease, background-color 0.3s ease;
    /* Smooth transition */
}

.materials-list {
    padding: 100px;
    list-style: none;
}

.materials-list li {
    display: inline;
    font-size: large;
    margin: 10px;
    padding: 20px;
    /* border: 2px solid #000; */
    border-radius: 5px;
    cursor: pointer;
    background-color: rgb(231, 230, 230);
}

.materials-list li:hover {
    transform: scale(2);
    /* Scales the <li> by 2 times */
    background-color: rgb(196, 196, 196);
    transform-origin: center;
    /* Keeps the scaling centered */
    transition: transform 0.3s ease, background-color 0.3s ease;
    /* Smooth transition */
}



/* Course Page */
.course-page {
    padding: 100px 20px 20px;
}

.course-header {
    text-align: center;
    margin-bottom: 40px;
}

.course-header h1 {
    font-size: 36px;
    color: #388E3C;
}

.course-header p {
    font-size: 18px;
}

/* Side Bar */

/* Resources Section */
.resources-section {
    text-align: center;
}

.resource-menu {
    margin-bottom: 30px;
}

.resource-button {
    background-color: #388E3C;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.resource-button:hover {
    background-color: #4CAF50;
}

.resource-display {
    display: none;
    margin-top: 20px;
    text-align: left;
}

.resource-thumbnails {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style-type: none;
    padding: 0;
}

.resource-thumbnails li {
    text-align: center;
}

.resource-thumbnails img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.resource-thumbnails img:hover {
    transform: scale(1.1);
}


.gallery {
    display: flex;
    gap: 10px;
    padding: 20px;
}

.pdf-thumbnail {
    padding: 10px 20px;
    background-color: #ddd;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.pdf-thumbnail:hover {
    transform: scale(1.1);
    background-color: #bbb;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    height: 100%;
    border: none;
    /* border-radius: 10px; */
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}