#kg-search-page {
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#kg-search-container {
    width: 50vw;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

#kg-results-container {
    padding: 25px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
}

#kg-results-container > h2 {
    text-align: center;
}

#kg-results-grid {
    width: 80vw;
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#search-bar {
    width: 700px;
    padding: 25px 50px 25px 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

#kg-search {
    width: 102.5%;
    padding: 0;
}

#kg-search-submit {
    width: 135px;
    padding: 5px 15px;
    margin: 15px;
    float: right;
    background-color: #002d5b;
    color: white;
    font-size: 14px;
    border-radius: 8px;
}

#kg-results-btns {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    column-gap: 15px;
}

#kg-results-btns > a > button.bm-btn {
    width: 150px;
}

#kg-select {
    width: 180px;
    font-weight: 500;
}

#kg-results-btns > a > button > i {
    margin-left: 6px;
}

.kg-result-card {
    height: auto !important;
    width: 75%;
    padding: 15px;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #333333;
    font-size: 15px;
    font-family: "Montserrat", sans-serif;
    border-radius: 8px;
    box-shadow: 0px 3px 12px -3px rgba(0, 0, 0, 0.35);
}

@media only screen and (max-width: 600px) {
    #kg-results-grid {
        width: 100vw;
        padding: 25px;
    }

    .kg-result-card {
        width: 80vw;
    }

    #kg-search-page {
        padding: 50px;
    }
    
    #kg-search-container {
        width: 100vw;
        padding: 50px;
    }

    #search-bar {
        width: 80vw;
        padding: 15px;
        align-items: center;
        justify-content: center;
    }

    #kg-search {
        width: 80vw;
    }
}

.kg-result-card ul {
    padding: 10px;
    margin: -10px 0px 0px 0px;
    list-style-type: none;
}

.kg-result-card ul > li {
    padding: 2.5px;
}

h2.kg-heading {
    font-size: 32px;
}

h3.kg-heading {
    font-size: 24px;
    line-height: 30px;
}

h5.kg-heading {
    margin-top: -15px!important;
    color: #1877F2!important;
    font-size: 18px;
    line-height: 30px;
    float: right;
}

.kg-img {
    height: 125px;
    border-radius: 6px;
}