/*
 * ==============================================
 * Settings for mobile devices => Width < 650px
 * ==============================================
 */

:root {
    color-scheme: light dark;
}

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

    .wh_logo_and_publication_title_container {
        max-height: 60px;
    }

    .container-fluid {
        padding-left: 5px;
        padding-right: 5px;
    }

    .wh_logo img {
        width: 50px;
        height: 50px;
    }

    .wh_logo_and_publication_title {
        height: 60px;
    }

    #assistant_button,
    #menu_toggler,
    #theme_toggler,
    #lang_toggler {
        width: 50px;
        min-width: 50px;
        height: 50px;
    }

    #assistant_button {
        width: 50px;
        background-position: center;
        background-image: url('resources/images/modern/bilibili_dark.svg'), linear-gradient(90deg, rgba(0, 255, 185, 1) 0%, rgba(0, 230, 220, 1) 75%);
        background-size: 40%, 100%;
        content: none;
        color: transparent;
    }

    .light #assistant_button {
        background-image: url('resources/images/modern/bilibili_dark.svg'), linear-gradient(90deg, rgba(0, 255, 185, 1) 0%, rgba(0, 230, 220, 1) 75%);
    }

    .dark #assistant_button {
        background-image: url('resources/images/modern/bilibili_dark.svg'), linear-gradient(90deg, rgba(0, 255, 185, 1) 0%, rgba(0, 230, 220, 1) 75%);
    }
}

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


@media only screen and (max-width : 840px) {
    .wh_search_button {
        display: none;
    }

    .wh_search_input {
        width: 100%;
        margin-left: 5px;
        margin-right: 5px;
        padding-top: 0;
    }

    .wh_logo_and_publication_title_container {
        max-height: 60px;
    }

    #searchForm {
        width: 100%;
    }

    .wh_main_page_toc {
        /*width: 90vw;*/
    }

    .wh_menu_mobile_button,
    .navbar-toggler-icon {
        display: none !important
    }

    .navbar-toggler {
        display: none;
    }

    .wh_tile>div {}

    .wh_tiles {
        margin-left: unset;
        row-gap: 10px;
        column-gap: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .wh_tile {
        min-width: 10px;
        max-height: 200px;
        min-height: 10px;
        max-width: 40% !important;
        aspect-ratio: 1 / 1 !important;
        height: unset !important;
        margin: 0px;
    }

    .wh_logo {
        display: block !important;
    }

    .wh_publication_title {
        display: none;
    }

    .wh_tile_image {
        max-width: 90%;
        margin: 0 auto;
        position: relative;
    }

    .wh_tile_title {
        font-size: medium;
        text-align: center;
    }

    .wh_tile_shortdesc {
        display: none;
    }


    .wh_tiles {
        justify-content: center;

    }



    .wh_publication_title {
        width: 20%;
        font-size: 50% !important;
        font-weight: bold;
        margin-left: 0 !important;
        overflow: hidden;
        line-break: strict;
    }

    #langToggle {}

    .lang_toggler {
        display: none;
    }

    .wh_logo_and_publication_title_container {
        display: block;
    }

    /*

    #menu_toggler, #theme_toggler, #assistant_button, #lang_toggler{
        max-width: 10%;
        min-width: 10%;
    }

    #assistant_button {
        color: transparent;
        
        background-repeat: no-repeat;
        background-position: center;
        background-size: 40%;
        font-size: 0;
        content: none;
    }

    .light #assistant_button{
        background-image: url('resources/images/modern/bilibili_light.svg');
    }
    .dark #assistant_button{
        background-image: url('resources/images/modern/bilibili_dark.svg');
    }*/

    .wh_footer {
        font-size: xx-small !important;

    }

    .wh_search_textfield {
        height: 50px;
    }


    .footer_div_left,
    .footer_div_right {
        display: none;
    }


    .wh_toggle_button {
        background-color: light-dark(#007993, #00cccc);
    }

    .navbar-toggler-icon {
        background-color: light-dark(#007993, #00cccc);
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
    }

    #go2top {
        right: 20%;
        bottom: 10px;
        color: light-dark(#007993, #00cccc);
        background-color: light-dark(#FFFFFF, #000028);
        border-color: light-dark(#007993, #00cccc);
        border-radius: 0;
        width: 44px;
        height: 44px;
        text-align: center;
        display: none;
        overflow: hidden;
        padding: 4px 12px;
    }

    #go2top:hover {
        border-color: light-dark(#005159, #00ffb9);
        color: light-dark(#005159, #00ffb9);
    }

    .oxy-icon-up::after {
        content: unset;
        font-family: unset;
        margin-left: 5px;
    }
}


/*
 * ------------------------------------------------------------------
 *
 * Search area
 *
 */

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

    .wh_main_page .wh_search_input,
    .wh_search_input {
        /*padding: 3em 0;*/
    }
}

/*
 * ------------------------------------------------------------------
 *
 * Publication TOC
 *
 */

@media only screen and (max-width : 650px) {
    .wh_publication_toc {
        border-radius: 0;
        padding: 1em 0.5em;
        margin-top: 10px;
        border: 1px solid #e0e0e0;
    }

    .wh_related_links,
    .wh_child_links,
    .wh_topic_content .related-links {
        border: 1px solid #e0e0e0;
    }
}


@media only screen and (min-width: 767px) and (max-width: 1020px) and (orientation: landscape) {
    .wh_tile_title {
        font-size: large;
    }

    .wh_tile img {
        width: 40%;
    }

    .wh_tile {
        width: 225px;
        height: 225px;
        min-width: 225px;
        min-height: 225px;
    }
}