/* Original left menu styles */
.menu-chapter {
    background-color: #dddddd;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.menu-chapter:hover {
    background-color: #d0d0d0;
}

#menu {
    border: 0px;
}

/* Styles for the .md file buttons, similar to .menu-chapter */
.file-item {
    background-color: #dddddd;
    padding: 10px;
    padding-left: 30px; /* Add extra left padding to indent the button text */
    margin-bottom: 5px;
    cursor: pointer;
    text-align: left;
    border-radius: 5px;
    border: 0px;
    width: calc(100%); /* Adjust width to account for padding */
    display: block; /* Display as a block to fill the width of the container */
    outline: none; /* Optional: remove the outline on focus for aesthetic reasons */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.file-item:hover {
    background-color: #d0d0d0;
}

/* Adjust the .file-list container if necessary */
.file-list {
    padding: 0;
    margin: 0; /* Reset margins to align with .menu-chapter */
}


/* Dropdown button style */
.dropdown-btn {
    display: none; /* Initially hidden */
    background-color: #dbdbdb; /* Grey background */
    color: #333; /* Dark grey text */
    padding: 10px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    width: 100%; /* Full width */
}

/* Dropdown menu styles */
.dropdown-menu {
    display: none; /* Hidden initially */
    background-color: white; /* White background */
    padding: 10px;
    border: 1px solid #ddd; /* Light grey border */
    z-index: 1000; /* Make sure it's above other content */
}

.dropdown-chapter {
    background-color: #eeeeee;
    padding: 10px;
    border-bottom: 1px solid #dddddd;
}

.dropdown-menu .chapter-contents a {
    padding: 8px;
    display: block;
    color: #333;
    text-decoration: none;
    background-color: #ffffff;
    border-bottom: 1px solid #dddddd;
}

.dropdown-menu .chapter-contents a:hover {
    background-color: #f6f6f6;
}

/* Using CSS Grid for main layout */
.container {
    display: grid;
    grid-template-columns: 1fr 3fr; /* Start with a 1:3 ratio */
    grid-gap: 5%; /* Responsive spacing between columns */
    padding: 5%; /* Responsive overall padding */
    align-items: start; /* Align grid items at the top */
}

/* Additional styles for the center box */
.center-box {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.box-header {
    background-color: #dddddd;
    color: rgb(23, 23, 23);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.box-content {
    padding: 20px;
}