html {
    scroll-padding-top: 80px;
}

body {
    font-family: "JetBrains Mono", monospace;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header .switchVersion {
    text-decoration: none;
    transition: 0.2s;
}

@media (max-width: 991px) {
    header .nav-link {
        text-align: center;
    }
}

footer a {
    color: #649aec;
    transition: 0.1s;
}

footer a:hover {
    color: #3f7fdf;
}

@media (max-width: 768px) {

    footer,
    .othersProjects {
        text-align: center !important;
    }
}

/*Version selector*/
.versionSelector .dropdown-menu {
    max-height: 200px;
    overflow-y: scroll;
}

.search-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-body-bg);
    padding: 0.375rem 0.75rem;
    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
    width: 100%;
    max-width: 400px;
}

.search-wrapper:focus-within {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.search-input {
    border: none;
    background: transparent;
    color: var(--bs-body-color);
    outline: none;
    width: 100%;
    margin-left: 0.5rem;
}

.search-input:focus {
    box-shadow: none;
}

.search-icon {
    color: var(--bs-secondary-color);
}

.search-results {
    position: absolute;
    width: 60%;
    top: 100%;
    left: 20%;
    right: 20%;
    z-index: 1000;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

@media (max-width: 991px) {
    .search-results {
        width: 90%;
        left: 5%;
        right: 5%;
        top: 45%;
    }
}

.search-results .list-group-item {
    border: none;
    border-bottom: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    text-decoration: none;
}

.search-results .list-group-item:last-child {
    border-bottom: none;
}

.search-results .list-group-item:hover,
.search-results .list-group-item.active {
    background-color: var(--bs-tertiary-bg);
    cursor: pointer;
}

.search-results .list-group-item h6 {
    color: var(--bs-primary);
    font-weight: 600;
}

.search-results .list-group-item small {
    color: var(--bs-secondary-color);
}

.search-results .list-group-item.active {
    background-color: var(--bs-primary);
}

.search-results .list-group-item.active h6 {
    color: #fff !important;
}

.search-results .list-group-item.active small {
    color: rgba(255, 255, 255, 0.75) !important;
}