:root {
    --top-bar-height: 50px;
    --padding-large: 12px 24px !important;
    --result-border-radius: 5px;
    --float-length: 90%;
    --img-margin: 1%;
    --float-depth: 5%;
    --logo-size: 40px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.design-blue {
    background-color: #020f23;
    color: whitesmoke;
}
.design-white {
    color: #020f23;
    background-color: whitesmoke;
}
.design-gray, .design.grey {
    color: #020f23;
    background-color: #9e9e9e;
}
.design-lightblue {
    background-color: #152f56;
    color: whitesmoke;
}
*[class*="design-alpha-"] {
    background: none;
    border: none;
}
.design-alpha-light {
    color: whitesmoke;
}
.design-alpha-light:hover {
    background-color: #152f56;
}
.design-alpha-dark {
    color: #020f23;
}

*, text, body {
    color: whitesmoke;
    font-family: Verdana, Tahoma, sans-serif;
}

h2 {
    margin-top: 0;
    font-weight: bold;
    
}

.logo {
    padding: calc((var(--top-bar-height) - var(--logo-size)) / 2) !important;
    margin-right: 2em;
}
.logo>img {
    width: auto;
    height: var(--logo-size);
    border-radius: 10px;
}

#navigation {
    display: block;
    position: fixed;
}

#navigation-bar {
    position: fixed;
    height: var(--top-bar-height);
    display: flex;
    align-items : center;
    justify-content: flex-start;
}

main {
    display: block;
    position: fixed;
    height: calc(100% - var(--top-bar-height));
    width: 100%;
    top: var(--top-bar-height);
    padding: var(--padding-large);
    overflow-y: scroll;
    background-color: #1f3c67;
}

select {
    border-radius: 10px;
    margin-right: 2em;
}

select.design-white>option, select.design-gray>option, select.design-grey>option {
    background-color: #020f23;
}

.dark-text {
    color: black;
}

#search {
    border-radius: 10px 0 0 10px;
}
#search-button {
    border-radius: 0 10px 10px 0;
    margin-right: 2em;
}
/* Result image list */
div.search-result {
    box-shadow: none;
}

header.result {
    border-top-left-radius: var(--result-border-radius);
    border-top-right-radius: var(--result-border-radius);
}
header.result p, footer.result p {
    word-wrap: break-word;
    margin: 0;
    text-align: center;
    font-size: 1em;
    line-height: 1.1em;
}
footer.result {
    border-bottom-left-radius: var(--result-border-radius);
    border-bottom-right-radius: var(--result-border-radius);
}

#infopanel {
    display: block;
    position: fixed;
    top: 1%;
    right: 1%;
    width: max-content;
    z-index: 100;
    padding: 0;
    background-color: #152f56;
    box-shadow: 3px 3px #020f23;
    opacity: 0.0;
    transition: opacity 0.2s linear;
}

#infopanel[state="open"] {
    opacity: 1.0;
}

#infopanel_message {
    padding: 15px 20px;
}

#infopanel_timerbar {
    width: 100%;
    height: 4px;
    background-color: #1f3c67;
    border-bottom: 2px solid #9e9e9e;
}


.result {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
img[src*="deleted"] {
    opacity: 0.1;
}
.result-container {
    padding: 0;
}
a.nodecor {
    text-decoration: none;
}

/* Pagebars */
div[type="pagebar"] {
    word-wrap: break-word;
}

div a.page {
    text-decoration: none!important;
    padding: 0 0.5em;
}

a.page.active {
    font-weight: bold;
}
/* **** */




/* icons */
span[class^="icon-"] {
    color: inherit;
    background-color: inherit;
}
span[class^="icon-"].smaller {
    font-size: 0.85em;
}
span.icon-price-tag {
    color: #8B8000;
}

button.dl-trigger {
    background: none;
    border: none;
    outline: none;
}
span[pool_id] {
    background: none;
    display: inline-block;
    transform-origin: center;
    transition: transform 0.3s ease;
}
span[pool_id][class*="icon-spinner"] {
    animation: spin 1s infinite linear;
}



/* Icon Rotations */
span[class*="icon-"][class*="rotate-"] {
    display: inline-block;
}
span[class*="icon-"].rotate-45 {
    transform: rotate(45deg);
}
span[class*="icon-"].rotate-90 {
    transform: rotate(90deg);
}
span[class*="icon-"].rotate--45 {
    transform: rotate(-45deg);
}
span[class*="icon-"].rotate--90 {
    transform: rotate(-90deg);
}
span[class*="icon-"].rotate--180, span[class*="icon-"].rotate-180 {
    transform: rotate(180deg);
}

/* Floating Menus */
.floating {
    position: fixed;
    top: calc(var(--top-bar-height) + (100% - var(--float-length))/2);
    height: calc(var(--float-length) - var(--top-bar-height));
    width: var(--float-depth);

    opacity: 0;
    transition: opacity 0.3s ease;
    /* cursor: pointer; */
    background-color: #FFFFFFCC;

    display: flex;
    justify-content: center;
    align-items: center;
}

.floating span {
    font-size: 3em;
    font-weight: bold;
    color: black;
}
.floating>a {
    text-decoration: none;
    margin: 1em;
}

.floating.left {
    left: 0;
    border-radius: 0 10px 10px 0;
}

.floating.right {
    right: 0;
    border-radius: 10px 0 0 10px;
}

.floating.top {
    top: var(--top-bar-height);
    left: calc((100% - var(--float-length)) / 2);
    border-radius: 0 0 10px 10px;
    width: var(--float-length);
    height: var(--float-depth);
}
.floating.top span {
    font-size: 2em;
}

.floating:hover {
    opacity: 0.5;
}

.floating.left>a, .floating.right>a {
    margin: 0;
    height: 100%;
    display: contents;
    vertical-align: middle;
}

a[onclick] {
    cursor: pointer;
}


span.seperator.h {
    width: 1em;
    height: 1px;
}
span.seperator.v {
    height: 1em;
    width: 1px;
    display: block;
}

.expandme {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.hideme {
    visibility: hidden;
}


/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: 100%; /* Moves it right below the element */
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px; /* Adds extra downward spacing */
}

.tooltip:hover .tooltip-text {
    visibility: visible;
}

/* Menu */
#rightMenu {
    display:none;
    right:0;
    width: 80vh;
    top: var(--top-bar-height);
}

/* tag auto suggestions */
#autocomplete-box {
    position: absolute;
    left: 45%;
    width: fit-content;
    height: fit-content;
    z-index: 100;
}