html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main {
    flex: 1;
}

@media (min-width: 993px) {
    .navbar-collapse {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .navbar-nav {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .navbar-nav ul {
        flex: 1;
        text-align: center;
    }
}

#navbarToggleExternalContent {
    position: fixed;
    bottom: 70px;
    right: 16px;
    width: 300px;
    z-index: 1050;
    background-color: #343a40;
    color: #fff;
    border-radius: 8px;
}
.custom-toggler {
    background-color: #0d6efd !important; 
    color: #fff; 
    border: none;
    width: 3em; 
    height: 3em; 
    border-radius: 5px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 9999;
}

.custom-toggler:hover {
    background-color: #0056b3 !important; /* Darker blue for hover */
    color: #fff; /* Text color on hover */
    border: none; /* Remove border on hover */
}

.custom-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"%3E%3Cpath stroke="rgba(255, 255, 255, 1.0)" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"/%3E%3C/svg%3E') no-repeat center;
    background-size: contain;
}

#navbarToggleExternalContent .navbar-nav .nav-link {
    color: #fff;
}

#navbarToggleExternalContent .search-form .form-control {
    background-color: #fff;
    color: #000;
    border: 1px solid #6c757d;
}

#navbarToggleExternalContent .search-form .btn-outline-secondary {
    background-color: #0d6efd;
    color: #fff;
    border-color: #6c757d;
}

#navbarToggleExternalContent .search-form .btn-outline-secondary:hover {
    background-color: #000;
    color: #fff;
}

@media (max-width: 992px) {
    nav#header {
        position: fixed;
        top: 0px;
        width: -webkit-fill-available;
    }
    .navbar-collapse {
        display: none !important;
    }
    .navbar-toggler {
        display: block !important;
    }
    #sidebarMenu, #header {
        z-index: 999;
    }
    #sidebarMenu, #toc {
        position: fixed;
        top: 60px;
        bottom: 0;
        width: 250px;
        transition: transform 0.3s ease-in-out;
    }
    #sidebarMenu {
        left: 0;
        transform: translateX(-100%);
    }
    #sidebarMenu.show {
        transform: translateX(0);
    }
    #toc {
        right: 0;
        transform: translateX(100%);
    }
    #toc.show {
        transform: translateX(0);
    }
    .page-title {
        display: block !important;
        text-align: center;
        flex-grow: 1;
        margin-top: 50px !important;
    }
    .page-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
    #sidebarMenu > div > h3, #toc > div > h3 {
        margin-top: 10px;
    }
}

.page-title {
    flex-grow: 1;
    text-align: center;
    margin: 0;
}

.sidebarMenu > div > ul {
    font-weight: 500;
}

.navbar-toggler {
    z-index: 1050;
}

#header > div > button.navbar-toggler {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1051;
}

.navbar {
    --bs-navbar-toggler-focus-width: unset !important;
}

.navbar-toggler {
    border: none !important;
    outline: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.message {
    background-color: white;
    padding: 1em 1em 1em 1.5em;
    border-left-width: 6px;
    border-left-style: solid;
    border-radius: 3px;
    position: relative;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-top: 1px solid;
    border-right: 1px solid;
    border-bottom: 1px solid;
    box-sizing: border-box;
    display: inline-block;
    width: -webkit-fill-available;
    color: #333;
}

.message + .message {
    margin-top: 2em;
}

.message:before {
    color: white;
    width: 1.5em;
    height: 1.5em;
    position: absolute;
    top: 1em;
    left: -3px;
    border-radius: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    line-height: 1.5;
    text-align: center;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.message p {
    margin: 0 0 1em;
}

.message p:last-child {
    margin-bottom: 0;
}

.message--error {
    border-left-color: firebrick;
    border-color: firebrick;
    background-color: #ffefef;
    color: firebrick;
}

.message--error:before {
    background-color: firebrick;
    content: "\f071";
}

.message--warning {
    border-left-color: darkorange;
    border-color: darkorange;
    background-color: #fff7e6;
    color: darkorange;
}

.message--warning:before {
    background-color: darkorange;
    content: "\f06a";
}

.message--success {
    border-left-color: darkolivegreen;
    border-color: darkolivegreen;
    background-color: #f0f8e0;
    color: darkolivegreen;
}

.message--success:before {
    background-color: darkolivegreen;
    content: "\f058";
}

.message--info {
    border-left-color: dodgerblue;
    border-color: dodgerblue;
    background-color: #e7f3ff;
    color: dodgerblue;
}

.message--info:before {
    background-color: dodgerblue;
    content: "\f05a";
}

footer {
    background-color: #343a40 !important;
    color: white;
    padding: 20px 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.wp-block-custom-dartpad {
    margin-bottom: 20px;
}
.dartpad-block {
    border: 2px solid var(--wp-admin-theme-color, #007cba); /* Fallback kleur is de standaard Gutenberg blauw */
    border-radius: 4px; 
    margin-bottom: 20px;
}