﻿header {
    min-height: 0px !important;
    max-height: 100px !important;
    overflow: visible;
    max-width:100vw;
    box-shadow: none !important;
    transition: max-height ease-in-out 0.16s;
    border-color: var(--ui-bg) !important;
    border-bottom-width: 0px !important;
}

header.hidden {
    max-height: 0px !important;
    overflow:hidden;
    border: none !important;
}

header + .ui.grid {
    margin-top: 3.65rem!important;
    padding-top: 0!important;
}

header #title {
    font-family: Orbitron, sans-serif;
    text-decoration: none;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

i.ra {
    font-family: RPGAwesome;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    speak: none;
    text-transform: none;
}

#midsection{
    min-height:calc( 100% - 3.6rem);
    height:unset;
}

#sidebar .right.dropdown.icon {
    margin-left: auto;
    margin-right: 0.25rem;
}

.ui.vertical.menu a {
    text-decoration: none !important;
}
.sidebar .accordion .content {
    margin-left: 0em !important;
}
.sidebar .accordion .title {
    margin: 0em -1.2em;
    padding: 0;
    height: 3rem;
}
.sidebar .accordion .title > a, 
.sidebar .accordion .title > div {
    flex-grow: 1;
    margin: 0rem 0.8rem 0rem 0rem;
    padding: 0em 1.2rem !important;
    height: 100%;
    vertical-align: middle;
    display: inherit;
}

.sidebar .accordion.selected .title {
    background: var(--hovered-bg);
}

.ui.vertical.menu a:hover {
    background: var(--hovered-bg);
    color: var(--hovered-fg)!important;
}

.ui.sidebar .item.selected.visible {
    background: var(--selected-bg)!important;
    color: var(--selected-fg)!important;
}

.ui.vertical.menu .item {
    font-size: 1rem;
    font-size: 1rem;
}

.ui.vertical.menu .item i {
    font-size: 2rem;
    margin-right: 1rem;
}

.ui.vertical.menu .item p {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.ui.vertical.menu .menu .item {
    background: 0 0;
    padding: .5em 1.33333333em;
    font-size: 1.0em;
    color: inherit;
}

.menu a.item:hover {
    background: var(--hovered-bg) !important;
    color: var(--hovered-fg)!important;
}

header + #midsection #sidebar > .menu {
    max-height: calc( 100vh - 50px);
}
header.hidden + #midsection #sidebar > .menu{
    max-height: 100vh;
}
#sidebar {
    padding-right: 0;
    overflow:clip!important;
    box-shadow:none!important;
}
#sidebar > .menu {
/*    scrollbar-gutter: stable;*/
    padding-right: 0rem;
    background: transparent;
    border: none;
    height: 100vh;
    overflow-y: scroll;
    width: 100%;
    transition: margin-top ease-in-out 0.032s;
    scrollbar-color: var(--ui-fg) transparent;
}

.ui.visible.left.sidebar ~ .fixed,
.ui.visible.left.sidebar ~ .pusher {
    transform: translate3d(260px, 0, 0);
}

header.ui.menu,
footer.ui.menu,
#sidebar.ui.sidebar {
    background: var(--ui-bg);
    color: var(--ui-fg);
}

header.ui.menu .item,
footer.ui.menu .item,
#sidebar.ui.sidebar .menu .item,
#sidebar.ui.sidebar .menu .item * {
    color: inherit;
}

header.ui.menu .item:hover,
footer.ui.menu .item:hover {
    background: transparent !important;
}


#midsection{
    background: var(--ui-bg);
}
#midsection > .ui.content {
    border-radius: 0em 0 0 0;
    background:var(--main-bg);
    transition: transform .5s ease,
            border-radius .5s ease;
}

@media screen and (orientation:landscape) {
    #midsection .ui.visible.left.sidebar.overlay ~ .ui.content {
        margin-left: 260px;
    }
}
#midsection .ui.visible.left.sidebar ~ .ui.content{
    border-radius: 7em 0 0 0;
}

/*Search*/

#desktopSearch {
    width: 100%;
    height: 100%;
    padding: 0 !important;
}

    #desktopSearch.ui.search .prompt:focus,
    #desktopSearch.ui.search .prompt:valid {
        max-width: 1280px;
    }

    #desktopSearch.ui.search .prompt {
        border-radius: var(--border-radius) !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        transition: all 0.5s ease-in-out;
        width: 33vw;
        max-width: 12em;
    }

    #desktopSearch > .results .result .title {
        color: var(--text-1);
    }

    #desktopSearch > .results .category .result {
        text-decoration: none !important;
        color: inherit;
        border-color: var(--border-1);
        position: relative;
        z-index: 1;
    }

    #desktopSearch > .results .result .image + .content {
        margin: 0;
        position: relative;
    }

    #desktopSearch > .results .category .result .image {
        position: absolute;
        width: 25%;
        height: auto;
        left: 74%;
        z-index: 2;
        top: 0em;
        bottom: 0;
    }

        #desktopSearch > .results .category .result .image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            max-width: 100%;
        }

    #desktopSearch > .search.ui > .results > .action {
        z-index: 5;
    }

    #desktopSearch > .results .category .result .content {
        z-index: 3;
    }

    #desktopSearch > .results .category .result:hover .title, .ui.search > .results .result:hover .title {
        color: inherit;
    }

    #desktopSearch > .results {
        border: none !important;
        top: 50px;
        margin-top: 0px;
        overflow-y: auto;
        max-height: 85vh;
    }

    #desktopSearch .ui.icon.button {
        border-radius: 0 var(--border-radius) var(--border-radius) 0 !important;
    }

    #desktopSearch .input:hover {
        background: transparent;
    }
#mobileSearch {
    padding-bottom: 0 !important;
}

    #mobileSearch > .results {
        border: none !important;
        margin-top: 8px;
        width: 100%;
        left: 6vw;
        overflow-y: auto;
        max-height: 8em;
        max-width: calc(100vw - 12vw);
    }

@media only screen and (orientation:portrait) {
    .ui.search .results {
        max-width: calc(100vw - 28vw);
    }
}

#mobileSearch > .results .result {
    font-size: 1rem !important;
    padding: 0.5em 1.14285714em !important;
    border-bottom: 1px solid rgba(34,36,38,.1);
}

#mobileSearch > .action {
    background: #baaf6d;
    padding: 0.4em 1em !important;
}

#mobileSearch .prompt {
    border-radius: 5px;
}

#desktopSearch > .results .category .results {
    background: var(--main-bg);
    border-left: none;
    color: var(--text-1);
}

#desktopSearch > .results .category > .name {
    background: var(--head-bg);
    font-variant: var(--font-variant);
    color: var(--head-fg);
    white-space: pre-wrap;
}

.search.ui > .results > .action {
    position: sticky;
    bottom: -1px;
    z-index: 1000;
}

    .search.ui > .results > .action:hover {
        background: var(--hovered-bg);
        color: var(--hovered-fg);
    }

#desktopSearch > .results .result .price {
    float: right;
    font-variant: var(--font-variant);
    font-size: 1rem;
    text-align: right;
    color: inherit;
    max-width: 9em;
    text-shadow: var(--main-bg) 1px 1px 1px, var(--main-bg) -1px 1px 1px, var(--main-bg) 1px -1px 1px, var(--main-bg) -1px -1px 1px, var(--main-bg) 0px 0px 10px;
}

#desktopSearch > .results .result:hover .price {
    text-shadow: var(--bg-hovered) 1px 1px 1px, var(--bg-hovered) -1px 1px 1px, var(--bg-hovered) 1px -1px 1px, var(--bg-hovered) -1px -1px 1px, var(--bg-hovered) 0px 0px 10px;
}

#desktopSearch > .results .category .result:hover, .ui.search > .results .result:hover {
    background: var(--hovered-bg);
    color: var(--hovered-fg);
}

#desktopSearch .title .extra-info {
    font-weight: lighter;
    font-variant: var(--font-variant);
    line-height: 1.5em;
    font-size: 0.85rem;
    white-space: normal;
    display: block;
    max-width: 75%;
}

.extra-info b {
    font-weight: 800;
}

.results .result .description {
    color: inherit !important;
}

#desktopSearch .results .result .description {
    color: inherit !important;
    max-width: 75%;
}


.search .results > a.action {
    font-family: var(--font-1);
    font-variant: var(--font-variant);
    font-style: italic;
}