body {
    margin: 0;
    background-color: #FAFAFA;
    text-align: center;
}

.scroll-container {
    display: flex;
    flex-direction: column;
    min-height: 95vh;
    height: 100vh;
    width: 100%;
    overflow-y: auto;
}

.wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

footer {
    margin: 16px;
}

.sidebar {
    width: 150px;
    background-color: #dddddd;
    color: white;
    padding: 2rem;
    flex-shrink: 0; /* Ensures the sidebar doesn't collapse */
    font-family: sans-serif;
}

.sidebar ul {
    list-style-type: none; /* Removes the dots */
    padding: 0;            /* Removes default browser indentation */
    margin: 0;             /* Removes default spacing */
    color: #333;
    font-weight: bold;
}

.sidebar li {
    text-align: left;      /* Ensures text is left-justified */
    margin-left: 16px;
    margin-bottom: 2pt;   /* Adds a little space between links */
}

.sidebar a {
    text-decoration: none; /* Removes the underline from links */
    color: inherit;        /* Keeps text color consistent */
    display: block;        /* Makes the entire area clickable */
    padding: 8px 0;        /* Gives links some vertical breathing room */
    padding-left: 10px;

    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

.sidebar a:hover {
    background-color: #eee;
    padding-left: 25px; /* Optional: subtle "slide" effect when hovering */
    color: #55a38a; /* Optional: change text color on hover */
}

main {
    flex: 1;
    flex-grow: 1; /* Fills the rest of the width */
    padding: 2rem;
    background-color: #f9f9f9;
    /* margin: auto; */
    justify-content: space-around;
}

main ul {
    margin: auto;
    justify-content: space-around;
    width: 700px;
}

main li {
    text-align: left;
    margin-bottom: 4px;
}

h1, h2, h3, h4 {
    color: #656565;
    font-family: sans-serif;
}

h1 {
    font-size: 2.5rem;
    /* text-align: left; */
}

img {
    margin: auto;
    width: auto;
    max-width: 100%;
}

table {
    text-align: justify;
    /* width: 100%; */
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

td, th, tr {
    padding: 0.5em;
    mix-blend-mode: multiply;
    background-color: #f8f8f8
}

th, tr {
}

tr:nth-child(even) {
    background-color: #eee;
}

td:nth-child(1) {
    background-color: #eee;
    font-weight: bold;
}

.card-grid {
    display: grid;
    /* Creates as many columns as fit, minimum 250px wide */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    font-family: sans-serif;
    min-height: 0;
}

.card {
    position: relative;
    border: 2px solid #eee;
    /* box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.1); */
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    max-width: 100%;
}

.card:hover {
    background-color: #f0f0f0;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff4d4d;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    z-index: 10;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.card-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 750px) {
    .wrapper {
        flex-direction: column;
        overflow: auto;
    }
    .scroll-container {
        overflow: visible;
    }
    .sidebar {
        width: auto;
        display: flex;
        flex-direction: row;
        padding: 1rem;
    }
    .sidebar img {
        max-width: unset;
        width: 128px;
        height: 128px;
        margin-bottom: unset;
        margin: 8px;
        padding: 0;
    }
    .sidebar ul {
        flex-shrink: 0;
        flex-grow: 1;
        justify-content: space-around;
    }
    .sidebar li {
        margin: 0;
        padding: 4px;
    }
    .sidebar a {
        background-color: #eee;
        padding: 8px;
    }
    main ul {
        width: unset;
    }
    main {
        flex-shrink: 1;
    }
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
