@import "root.css";
@import "scrollbar.css";
@import "lockscreen.css";
@import "status.css";

html, body {
    font-family: 'Lato', sans-serif;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#map {
    height: 100vh;
    width: 100vw;
    position: absolute;
    right: 0;
    max-height: 100vh;
    overflow: hidden !important;
}

#root {
    height: 100vh;
}

.about {
    line-height: 1.25em;
}

.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
}

.right {
    display: flex !important;
    justify-content: right !important; 
    align-items: center !important;
}

.left {
    display: flex !important;
    justify-content: left !important;
    align-items: center !important;
}

.blured {
    background-color: var(--background) !important;
    backdrop-filter: var(--backdrop-filter);
    -webkit-backdrop-filter: var(--backdrop-filter);
}

.padding-1em {
    padding: 1em;
}

.header {
    position: absolute;
    border-radius: var(--border-radius);
    max-width: calc(100% - 2em);
    border: var(--border);
}

.configuration {
    position: absolute;
    border-radius: var(--border-radius);
    max-width: calc(100% - 2em);
    max-height: calc(100vh - 2em);
    border: var(--border);
}

.configuration-list {
    /*border: 1px solid lightgrey;*/
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.5);
    overflow: scroll;
}

.side-panel {
    position: absolute;
    border-radius: var(--border-radius);
    border: var(--border);
    padding-left: 2em;
    padding-right: 2em;
    width: fit-content;
    z-index: 1;
}

.button-container {
    width: fit-content !important;
    position: absolute;
    flex-direction: column;
    width: fit-content;
    right: 1em;
    top: 1em;
    border-radius: var(--border-radius);
    border: var(--border);
}

.language-button {
    width: fit-content !important;
    border-radius: 0.75em;
    margin-right: 1em;
}

.language-flag {
    width: 2em !important;
    height: 1.5em !important;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: var(--border-radius);
}

.cart-button {
    position: absolute;
    top: 1em;
    right: 1em;
    justify-content: end !important;
}

.cart-item {
    border-radius: 0 0.5em 0.5em 0;
    border-left: 5px solid lightgrey;
    box-shadow: none;
    background: var(--background) !important;
    transition: border-left 0.25s, transform 0.25s, color 0.25s;
}

.cart-item:hover {
    border-left: 5px solid var(--accent-color);
    color: var(--accent-color);
}

.cart-item .admin-level,
.cart-item .name {
    padding: 0.5em 0.25em;
}

.cart-drawer {
    transition: 1s;
}

.cart {
    display: flex;
    height: 100vh;
    width: 100%;
}

.actions {
    position: absolute;
    z-index: 1;
}

.message {
    display: flex;
    position: absolute;
    top: 0;
    padding: 0.5em;
    left: 50%;
    transform: translateX(-50%);
}

.button {
    border-radius: var(--border-radius);
    width: 100%
}

.configuration-item {
    display: flex;
    align-items: center;
}

.right {
    justify-content: right;
}

.left {
    justify-content: left;
}

.selector {
    position: absolute;
    border-radius: var(--border-radius);
}

.autocomplete-container {
    margin-top: 1em;
    overflow: scroll;
    /*border: var(--border);*/
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.57);
    box-shadow: rgba(0, 0, 0, 0.05) 0 6px 24px 0, rgba(0, 0, 0, 0.08) 0 0 0 1px;
}

#map .ol-zoom > button,
#map .ol-attribution {
    display: none;
}

.MuiTreeItem-content {
    padding: 0 !important;
    background: inherit !important;
}

.MuiTreeItem-group {
    margin-left: 0 !important;
}

.MuiTreeItem-label {
    padding: 0.5em !important;
    transition: 0.25s;
}

.MuiTreeItem-label:hover {
    color: #4caf50 !important;
}

.MuiTableCell-root {
    padding: 0.5em !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.info-container {
    position: absolute;
    bottom: 1em;
    right: 1em;
    width: fit-content !important;
    border-radius: var(--border-radius);
    max-width: 30%;
}

.admin-level-label {
    display: flex;
    align-items: center;
}

.cart-item-unicode {
    padding: 0;
    margin: 0;
    font-size: large;
    font-weight: bold;
}

.cart-item-paragraph {
    margin: 0;
    margin-left: 0.5em;
}

.css-6od3lo-MuiChip-label {
    padding-left: 8px !important;
    padding-right: 10px !important;
}

.subarea {
    padding: 0.5em 0em;
    padding-left: 0.5em;
}

@media (max-width: 870px) {
    html, body {
        font-size: smaller;
    }
    .header {
        width: 100%;
        bottom: 1em;
        left: 1em;
        right: 0;
    }
    .configuration {
        width: 100%;
        bottom: 1em;
        left: 1em;
        right: 0;
    }
    .side-panel {
        bottom: 1em;
        left: 1em;
    }
    .actions {
        top: 0;
        left: 0;
    }
    .results {
        flex-direction: row !important;
        overflow: auto !important;
    }
    .cart-item {
        min-width: fit-content;
        width: calc(80% - 5px);
        box-shadow: rgba(0, 0, 0, 0.05) 0 6px 24px 0, rgba(0, 0, 0, 0.08) 0 0 0 1px;
    }
    .selector {
        display: none !important;
    }
    .selector-list {
        max-height: 200px !important;
        overflow: scroll !important;
    }
    .autocomplete-container {
        max-height: 50vh;
        overflow: scroll;
    }
}

@media (min-width: 871px) {
    .header {
        top: 1em;
        left: 1em;
        width: 30% !important;
        max-height: calc(100vh - 2em) !important;
        overflow: scroll;
    }
    .configuration {
        top: 1em;
        left: 1em;
        width: 25% !important;
        max-height: calc(100vh - 2em) !important;
        overflow: scroll;
    }
    .side-panel {
        top: 1em;
        left: 1em;
    }
    .actions {
        top: 0;
        right: 0;
    }
    .cart-item {
        width: calc(100% - 5px);
        box-shadow: rgba(0, 0, 0, 0.05) 0 6px 24px 0, rgba(0, 0, 0, 0.08) 0 0 0 1px;
    }
    .selector {
        position: absolute !important;
        width: fit-content !important;
        max-width: 45% !important;
    }
}
