#kiwixtoolbar {
    padding: .5em;
    transition: 0.3s;
    width: 100%;
    box-sizing: border-box;
    background: #e3e3e3;
    border-bottom: 1px solid #aaa;
}

#kiwixtoolbar>a {
    float: left;
}

#kiwixfooter {
    text-align: center;
    margin-top: 1em;
}

.height_separator {
    height: 3em;
}

.kiwixsearch {
    position: relative;
    height: 26px;
    width: 100%;
    left: 0;
    margin-bottom: 0;
}

.kiwix_searchform {
    width: 20em;
}

#kiwix_serve_taskbar_home_button button {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.kiwix .kiwix_centered {
    max-width: 720px;
    margin: 0 auto;
}

#kiwix_button_show_toggle {
    display: none;
}

#kiwix_button_show_toggle:checked~label~.kiwix_button_cont,
#kiwix_button_show_toggle:checked~label~.kiwix_button_cont>a {
    display: block;
}

#kiwix_button_show_toggle:not(:checked)~label~.kiwix_button_cont {
    display: none;
}

label[for="kiwix_button_show_toggle"] {
    display: inline-block;
    height: 26px;
}

label[for="kiwix_button_show_toggle"] img {
    transition: 0.1s;
    height: 26px;
}

#kiwix_button_show_toggle:checked~label img {
    transform: rotate(-180deg);
}

label[for="kiwix_button_show_toggle"],
.kiwix_button_cont {
    display: block;
}

.kiwix .kiwix_searchform {
    float: right;
}

.kiwix #kiwixtoolbar button,
.kiwix #kiwixtoolbar input[type="submit"] {
    box-sizing: border-box !important;
    height: 26px !important;
    line-height: 20px !important;
    margin-right: 5px !important;
    padding: 2px 6px !important;
    border: 1px solid #999 !important;
    border-radius: 3px !important;
    background-color: #ededed !important;
    font-weight: normal !important;
    cursor: pointer !important;
    font-size: 16px !important;
}

.kiwix #kiwixtoolbar #kiwixsearchform input[type='text'] {
    left: 0;
    box-sizing: border-box !important;
    width: 100%;
    height: 26px !important;
    line-height: 20px !important;
    border: 1px solid #999 !important;
    border-radius: 3px !important;
    background-color: #fff !important;
    padding: 2px 2px 2px 27px !important;
    font-size: 16px !important;
}

label[for=kiwixsearchbox] {
    z-index: 1;
    position: absolute;
    height: 100%;
    left: 5px;
    font-size: 90%;
    line-height: 26px;
    vertical-align: middle;
}

a.suggest, a.suggest:visited, a.suggest:hover, a.suggest:active {
    display: block;
    text-decoration: none;
    color: inherit;
}

.autoComplete_wrapper > ul {
    max-height: none !important;
    column-count: 1 !important;
}

.modal-wrapper {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    background-color: rgba(0, 0, 0, 30%);
}

.modal {
    color: #444343;
    height: 280px;
    width: 250px;
    margin: 15px;
    background-color: #f7f7f7;
    border: 1px solid #ececec;
    border-radius: 3px;
}

.modal-heading {
    background-color: #f0f0f0;
    height: 20%;
    width: 100%;
    border-bottom: 1px solid #ececec;
    display: grid;
    grid-template-columns: 3fr 1fr;
}

.modal-title {
    display: flex;
    font-size: 15px;
    align-items: center;
    padding-left: 20px;
    font-family: poppins;
}

.modal-close-button {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    padding: 20px;
}

#uiLanguageSelector {
  display: none;
}

#uiLanguageSelector .modal {
  height: 140px;
}

#uiLanguageSelector .modal-heading {
  height: 40%;
}

#uiLanguageSelector .modal-content #ui_language {
  width: 100%;
}

#uiLanguageSelectorButton {
  margin: 0px 12px 6px 12px;
  float: right;
  cursor: pointer;
  height: 30px;
}

@media(min-width:420px) {
    .kiwix_button_cont {
        display: inline-block !important;
    }

    .kiwix_button_cont>a {
        display: inline-block !important;
    }

    label[for="kiwix_button_show_toggle"] {
        display: none;
    }
}

@media (max-width: 645px) {

    .autoComplete_wrapper > ul {
        max-height: none !important;
        column-count: 1 !important;
    }

    #kiwix_button_show_toggle~label~.kiwix_button_cont.searching {
        display: none !important;
    }

    label[for="kiwix_button_show_toggle"].searching {
        display: none !important;
    }

    .kiwix_searchform.full_width {
        width: 100%;
    }

    .kiwixsearch {
        float: none;
    }

    .kiwix_searchform {
        width: 36%;
    }

    .height_separator {
        height: 6em;
    }
}

@media(max-width:415px) {
    .kiwix_searchform {
        width: 80%;
    }
}
