/* Reset some default browser styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body styles */
body {
    font-family: Arial, sans-serif;
    background-image: url('Background image/macbookwithlaptopbook.jpg');
    background-size: cover; /* Cover the entire viewport */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent the background image from repeating */
}

/* Header styles */
header {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-family: "Pacifico" , sans-serif;
}

h1 {
    margin: 0;
    font-family: "Pacifico" , sans-serif;
}

/* Container styles */
.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Left navigation styles */
.left-nav {
    background-color: #d3d2d2;
    width: 200px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.left-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.left-nav li {
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
}

.left-nav li a {
    text-decoration: none;
    color: #333;
}

.left-nav li a:hover {
    background-color: #f0f0f0;
}

.nav-link.active {
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.nav-link.active:hover {
    background-color: #0056b3;
}

/* Main content styles */
main {
    flex: 1;
    background-color: #d3d2d2;
    margin-left: 20px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: auto; /* Push the footer to the bottom */
}

/* Footer styles */
/* Footer styles */
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #fff;
}
/* Responsive styles */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .left-nav {
        width: 100%;
        margin-bottom: 20px;
    }
    main {
        margin-left: 0;
    }
}

#main-content {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#main-content.loaded {
    opacity: 1;
}

.dropdown-menu {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu ul {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu:hover ul {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-link {
    transition: transform 0.3s ease;
}

.nav-link:hover {
    transform: scale(1.1);
}

.sub-dropdown-menu {
    display: none; /* Hide sub-dropdown by default */
    position: absolute; /* Position it relative to the parent dropdown */
    top: 0;
    left: 100%; /* Position it to the right of the parent dropdown */
    min-width: 200px; /* Set a minimum width */
    background-color: #d3d2d2; /* Background color */
    border-radius: 0 5px 5px 5px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Box shadow for depth */
}

.sub-dropdown-menu li {
    padding: 10px 20px;
    border-bottom: 1px solid #ccc;
}

.sub-dropdown-menu li:last-child {
    border-bottom: none; /* Remove border from last item */
}

.sub-dropdown-menu li a {
    color: #333;
    text-decoration: none;
}

.sub-dropdown-menu li a:hover {
    background-color: #f0f0f0;
}
