.card {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px;
    display: inline-block;
    width: 150px;
    text-align: center;
    cursor: pointer;
}

body {
    font-family: Arial, sans-serif;
    margin: 40px;
}
.content-section {
    margin-bottom: 20px;
}
.subtopic {
    margin-left: 20px;
}
/* Styles for the left navigation */
.nav {
    width: 200px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f4f4f4;
    padding: 20px 0;
}

.nav a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: #ddd;
}

/* Adjust the main content to account for the left navigation */
.main-content {
    margin-left: 220px;
    padding: 20px;
}

/* Styles for the side navigation */
.side-nav {
    width: 200px;
    background-color: #e9e9e9;
    padding: 20px;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.1);
    float: left;
    margin-right: 20px;
}

.side-nav h2 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.side-nav a {
    display: block;
    padding: 5px 0;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.side-nav a:hover {
    color: #007BFF;
}
/* Styles for the back navigation */
.back-nav {
    margin-bottom: 20px;
    font-size: 16px;
}

.back-nav a {
    text-decoration: none;
    color: #007BFF;
    transition: color 0.3s;
}

.back-nav a:hover {
    color: #0056b3;
}

//* Styles for the previous and next navigations */
.prev-next-nav {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prev-next-nav a {
    text-decoration: none;
    color: #007BFF;
    padding: 10px 20px;
    border: 1px solid #007BFF;
    transition: background-color 0.3s, color 0.3s;
    flex: 1;  /* Allow the links to grow and take up equal space */
}

.prev-next-nav a:first-child {
    text-align: left;  /* Align the "Previous" link to the left */
}

.prev-next-nav a:last-child {
    text-align: right;  /* Align the "Next" link to the right */
}
