html,
body {
    overflow-x: hidden; /* Prevent scroll on narrow devices */
}

body {
    padding-top: 56px;
}

@media (max-width: 991.98px) {
    .offcanvas-collapse {
        position: fixed;
        top: 56px; /* Height of navbar */
        bottom: 0;
        left: 100%;
        width: 100%;
        padding-right: 1rem;
        padding-left: 1rem;
        overflow-y: auto;
        visibility: hidden;
        background-color: #343a40;
        transition: transform .3s ease-in-out, visibility .3s ease-in-out;
    }
    .offcanvas-collapse.open {
        visibility: visible;
        transform: translateX(-100%);
    }
}

.nav-scroller .nav {
    color: rgba(255, 255, 255, .75);
}

.nav-scroller .nav-link {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: .875rem;
    color: #6c757d;
}

.nav-scroller .nav-link:hover {
    color: #007bff;
}

.nav-scroller .active {
    font-weight: 500;
    color: #343a40;
}

.bg-purple {
    background-color: #6f42c1;
}


main {
    min-height: 60vh;
}


.card-body:hover {
    background-color: #eef7ff;
}


[data-bs-theme="light"] img.svg {
    filter: brightness(0) invert(0);
}

/* Darkmodus automatisch */
[data-bs-theme="dark"] {
    .card-body:hover {
        background-color: #1a1a2e;
    }

    img.svg {
        filter: brightness(0) invert(1);
    }
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

h1 {
    margin: 25px 0 30px 0;
}

p {
    margin: 15px 0 30px;
}

.section-heading {
    font-size: 36px;
    font-weight: 700;
    margin-top: 60px;
}

.post-preview>a {
    text-decoration: none;
    color: #212529
}

.post-preview>a:focus,.post-preview>a:hover {
    text-decoration: none;
}

.post-preview>a>.post-title {

    margin-bottom: 10px
}

.post-preview>a>.post-subtitle {
    font-weight: 300;
    margin: 0 0 10px;
}

.post-preview>.post-meta {

    font-style: italic;
    margin-top: 0;
    color: #6c757d;
}

.post-preview>.post-meta>a {
    text-decoration: none;
    color: #212529
}

.post-preview>.post-meta>a:focus,.post-preview>.post-meta>a:hover {
    text-decoration: underline;
}
