body {
    font-family: 'Inter', sans-serif !important;
}

html {
    position: relative;
    min-height: 100%;
}

#logo {
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 5px;
    cursor: pointer;
}

#logo,
#ksf-logo,
.dropdown-item,
.list-group-item,
.nav-link.disabled,
a.page-link {
    -webkit-user-select: none;
    user-select: none;
}

#navbarLogo {
    max-width: 250px;
    margin-bottom: -10px;
}

#resultsCard,
.search-result,
.dropdown-menu,
.modal-content {
    border-radius: 10px;
}

.dropdown-toggle-split {
    font-size: 18px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    padding-top: 8px;
    padding-bottom: 5px;
}

#searchField {
    height: 44px;
    font-size: 18px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    vertical-align: middle;
}

#searchBtn {
    font-size: 18px;
    padding-left: 14px;
    padding-right: 11px;
    border-right: 1px solid #3483fd;
}

.navbar-nav {
    margin-bottom: 0px !important;
}

.icon-with-margin {
    margin-right: 3px;
}

@media only screen and (max-width: 332px) {

    #duckDuckGoBtn {
        margin-top: 10px;
    }

}

@media only screen and (min-width: 500px) {

    .list-group-item .form-check-label {
        font-size: 14px;
    }

}

@media only screen and (max-width: 500px) {

    .list-group-item .form-check-label {
        font-size: 14px;
    }

    #logo {
        width: 85%;
        height: 85%;
    }

}

@media only screen and (max-width: 750px) {

    body {
        margin: 0 0 120px;
    }

    .encyclopedia-logo-container {
        width: 53px;
        height: 53px;
        padding: 2px;
        margin-left: 10px;
        margin-bottom: 10px;
        float: right;
    }

    .card-title {
        text-align: left;
        vertical-align: top;
    }

    form.card {
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    #resultsText {
        padding-top: 10px;
    }

    #resultsCard {
        padding: 10px 5px 5px 5px !important;
    }

    .card-body {
        padding: 16px 0px 0px 0px;
        overflow: visible;
    }

    .search-result {
        padding-bottom: 10px;
    }

    #resultsText {
        padding-right: 5px;
    }

    #resultsInfoBox {
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: column;
    }

    #refreshResultsBtn {
        display: block;
        margin-top: 6px;
        white-space: nowrap;
    }

    #resultsText, #refreshResultsBtn {
        align-self: center;
    }

    #navbarLogo {
        max-width: 250px;
    }

    .more-results-img {
        max-width: 24px;
    }

}

@media only screen and (min-width: 750px) {

    body:not(#fullReaderBody) {
        margin: 0 0 100px;
    }
    
    .container {
        margin-left: auto;
        margin-right: auto;
        max-width: 43%;
    }

    .encyclopedia-logo {
        padding: 5px;
    }

    .encyclopedia-logo-container {
        display: inline-block;
        float: left;
        width: 64px;
        height: 64px;
        margin-right: 20px;
        margin-bottom: 20px;
    }

    #resultsInfoBox {
        justify-content: space-between;
    }

    #refreshResultsBtn {
        margin-left: 20px;
    }

    .card-body {
        padding-left: 0;
        padding-right: 0;
    }

    .card-description {
        margin-bottom: 0px;
        overflow: hidden;
    }

    .card-text {
        margin-top: 13px;
    }

    .search-result:not(.nologo) .card-text {
        margin-left: 109px;
    }

    #smallDonateLink {
        display: none;
    }

    .more-results-img {
        max-width: 32px;
    }

    #moreResultsBox span {
        margin-left: 3px;
    }

    .text-muted {
        margin-left: -25px;
    }

}

@media only screen and (min-width: 500px) and (max-width: 750px) {

    #logo {
        width: 75%;
        height: 75%;
    }
}

@media only screen and (min-width: 750px) and (max-width: 1400px) {

    #logo {
        width: 60%;
        height: 60%;
    }

    .container {
        margin-left: auto;
        margin-right: auto;
        max-width: 65% !important;
    }

}

@media only screen and (min-width: 1400px) {
    #logo {
        width: 55%;
        height: 55%;
    }
}

@media only screen and (max-width: 777px) {

    #moreResultsBox span {
        display: block;
        margin-bottom: 5px;
        margin-left: 10px;
    }

}

@media only screen and (max-width: 991px) {

    #navbarSupportedContent {
        border-radius: 10px;
    }

    .navbar .container-fluid {
        max-width: 350px;
        margin-left: 0;
    }

    .navbar-toggler {
        margin-bottom: 5px;
    }

    .nav-link {
        margin: 0 15px 0 15px;
    }

    .nav-link, .nav-item, #leftNav, #rightNav {
        width: fit-content;
    }

    #navbarSupportedContent .navbar-nav {
        flex-direction: row;
    }

    #navbarSupportedContent .show-on-right {
        margin-left: auto;
        text-align: right;
    }

    #leftNav, #rightNav {
        display: flex;
        flex-direction: column;
    }

    #rightNav {
        margin-left: auto;
        margin-top: 2px;
    }

}

@media only screen and (min-width: 991px) {

    .nav-item.align-right {
        margin-left: auto;
    }

    #rightNav {
        margin-left: auto;
    }

}

.search-result {
    padding-left: 16px;
    padding-right: 16px;
}

.small-padding {
    padding-top: 15px;
}

.large-padding {
    padding-top: 140px;
}

.dropdown-item-text {
    font-size: 15px;
}

#resultsPane {
    margin-top: 30px;
}

#resultsInfoBox {
    display: flex;
    align-items: baseline;
    font-size: 15px;
    padding-bottom: 5px !important;
    padding: 10px;
}

#resultsBox {
    margin: 10px;
}

#resultsText {
    text-align: center;
    overflow: hidden;
}

#preloader {
    padding-bottom: 10px;
}

#loadingText {
    display: block;
    padding-left: 15px;
    padding-top: 3px;
}

.encyclopedia-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pixelated {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
    font-size: 80%;
}

footer .container {
    display: inline;
    text-align: center;
}

small {
    font-size: 12px;
}

#ksf-logo, .result-title {
    cursor: pointer;
}

.nav-link {
    cursor: pointer;
    user-select: none;
}

.form-check-input {
    margin-right: 5px;
}

.btn-primary.dropdown-toggle {
    padding-left: 5px;
    padding-right: 5px;
    border-left: 1px solid #3483fd;
}

#encyclopediasList {
    max-height: 50vh;
    overflow: scroll;
    overflow-x: hidden;
    border-radius: 0;
}

#encyclopediasList .list-group-item {
    padding-right: 65px;
}

.list-group-item .form-check-label {
    max-width: 95%;
    white-space: normal;
    padding-right: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.list-group-item .form-check-label .bi-box-arrow-up-right:before {
    vertical-align: text-top;
}

.encyclopedia-logo-small {
    max-width: 53px;
    max-height: 53px;
    float: right;
    padding: 5px;
    background-color: #dcdcdc;
    border-radius: 5px;
    position: absolute;
    top: 12px;
    right: 10px;
}

.grayscale {
    filter: grayscale(100%) brightness(75%);
}

.category-name {
    font-size: 12px;
    margin-left: 0;
    margin-top: -5px;
}

#disableAllDropdownBtn, #enableAllDropdownBtn {
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 5px;
}

#enableAllDropdownBtn {
    float: right;
}

.card-description {
    padding-top: 5px;
}

.card-title, .card-description {
    hyphens: auto;
}

.card-description:empty {
    margin-bottom: -10px;
}

.result-snippet {
    margin-bottom: 5px;
}

#resultsCard {
    padding-top: 0px !important;
    padding-bottom: 10px !important;
}

#searchGroup {
    margin-bottom: 0 !important;
}

.alert {
    margin-bottom: 50px;
}

.bi-box-arrow-up-right {
    padding-left: 5px;
}

.category-name.text-muted {
    text-decoration: none;
    padding-left: 24px;
}

#refreshResultsBtn {
    float: right;
    font-size: 15px;
    padding: 5px 10px 5px 10px;
    margin-top: 10px;
    margin-right: 0px;
    white-space: nowrap;
}

.search-result .card-text a {
    text-decoration: none;
}

.text-muted {
    color: #6c757d;
    text-decoration: underline;
    text-decoration-color: #6c757d !important;
}

#paginationNav, #mobilePaginationNav {
    display: block;
    margin: 0 auto;
    padding-top: 16px;
}

#moreResultsBox {
    padding-left: 9px;
    padding-bottom: 12px;
}

#braveSearchBtn, #duckDuckGoBtn {
    margin-left: 10px;
    padding: 8px;
    border-radius: 7px;
}

.range-container {
    display: flex;
    flex-wrap: nowrap;
    padding-top: 5px;
}

.range-input-container {
    flex-grow: 2;
}

.range-label-container {
    padding-left: 15px;
    padding-right: 15px;
}

.bi-suit-heart-fill {
    color: #ef0000;
    margin-right: 3px;
}

.result-title-namespace, .result-title-namespace:hover {
    color: gray;
    text-decoration: underline;
    text-decoration-color: gray;
}

.more-results-img {
    margin-right: 5px;
}

.page-item:first-child .page-link {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.page-item:last-child .page-link {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.text-primary {
    font-weight: bold;
}

.bi-search {
    margin-right: 3px;
}

#suggestionBox {
    margin-bottom: -5px !important;
}

#errorIcon {
    display: block;
    font-size: 35px;
}

#errorBox * {
    color: #dd1111;
}
