/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.header {
    background-color: #f3e8de; /* Unified light beige background */
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #ddd;
    position: relative;
}

.header h1 {
    margin: 0;
    font-size: 2em;
    color: #333; /* Dark color for text */
}

.header-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.header-icons img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
}

.header-icons img:hover {
    transform: scale(1.1);
}

main {
    padding: 20px;
}

/* Horizontal banner styling */
.horizontal-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3e8de; /* Same color as header */
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

.banner-text {
    color: #333; /* Dark color for contrast */
    font-size: 1.2em;
    margin-right: 15px;
    font-weight: bold;
}

/* Icon styling */
.horizontal-banner a {
    color: #333; /* Dark color for icons */
    font-size: 40px; /* Larger icon size */
    text-decoration: none;
    margin: 0 15px;
    animation: bounce 2s infinite; /* Continuous animation */
}

/* Animation keyframes */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Hover effect */
.horizontal-banner a:hover {
    color: #555; /* Slightly lighter dark color on hover */
}

/* Semester section styling */
.semester {
    background-color: #fff;
    margin-bottom: 40px; /* Added gap between tables */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.semester h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333; /* Dark color */
    text-align: center;
}

/* Table styling */
.notes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 20px;
}

.notes-table th, .notes-table td {
    padding: 15px 20px; /* Increased padding for better spacing */
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 1em;
}

.notes-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-align: center; /* Center-aligns the table header */
}

.notes-table td {
    font-size: 0.95em;
}

.notes-table td.download-column {
    text-align: center; /* Center-aligns the download button */
}

.notes-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.notes-table th:first-child,
.notes-table td:first-child {
    width: 50px; /* Adjust as needed */
    text-align: center; /* Ensure consistent alignment */
}

/* Ensure padding and margin are consistent */
.notes-table th,
.notes-table td {
    padding: 15px 20px;
    margin: 0;
}


/* Hyperlink styling */
a {
    color: #5a3d2b; /* Dark brown */
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #3e2a1b; /* Darker brown for hover */
}

/* Download icon styling */
.download-icon {
    margin-left: 15px; /* Adjust margin for spacing */
    font-size: 20px;
    color: #b22222; /* Red */
    transition: transform 0.3s ease-in-out;
}

.download-icon:hover {
    transform: scale(1.3) rotate(15deg); /* Adds scale and rotation animation on hover */
}

/* Footer styling */
footer {
    text-align: center;
    padding: 15px;
    background-color: #f3e8de; /* Same color as header */
    color: #333; /* Dark color */
    font-size: 0.9em;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .semester {
        padding: 15px;
    }

    .notes-table th, .notes-table td {
        padding: 10px 15px; /* Reduced padding for smaller screens */
    }

    .header h1, .semester h2 {
        font-size: 1.5em;
    }

    .horizontal-banner a {
        font-size: 36px; /* Adjust icon size for smaller screens */
    }
}
