﻿/* Main components
-------------------------------------------------- */
html, body {
    height: 100%;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
}

body button {
    cursor: default;
}

#header {
    position: fixed;
    z-index: 5;
    height: 70px;
    width: 100%;
    background-color: #802090;
}

#main {
    margin-top: 70px;
    flex: 1;
}

#footer {
    width: 100%;
    white-space: nowrap;
    /* Set the fixed height of the footer here */
    padding-top: 5px;
    padding-bottom: 5px;
    height: 70px;
    /*line-height: 60px;*/ /* Vertically center the text there */
    z-index: 5;
    background-color: #802090;
}

.main-container {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* Maps nav
-------------------------------------------------- */
#siteInfoSidenav {
    transform: translate(-400px);
}
#companyInfoSidenav {
    transform: translate(-400px);
}

#sidenavOpener {
    position: absolute;
    left: 100%;
    top: 60px;
    z-index: 1;
    font-size: 30px;
    cursor: pointer;
    background: #fff;
    border-radius: 0 2px 2px 0;
    padding: 5px 8px 5px 5px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
}

.sidenavContainer {
    width: 400px;
}

/* Caso alterar o height, alterar também em openSidenavCompanyHeader() e hideSidenavCompanyHeader() no WasteCollectionSites.cshtml */
.sidenav {
    height: calc(100% - 70px);
    width: 400px;
    display: flex;
    flex-flow: column;
    position: absolute;
    z-index: 2;
    left: 0;
    background-color: #FFF;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
}

#sidenavHeader {
    height: 60px;
    width: 400px;
    z-index: 3;
    opacity: 1;
    transition: all ease 0.2s;
    background-color: var(--primary);
    flex-wrap: nowrap;
}

#sidenavHeader ::-webkit-scrollbar-track {
    background-color: var(--primary);
}

#sidenavHeader ::-webkit-scrollbar {
    height: 4px;
    background-color: #fff;
}

#sidenavHeader ::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: #fff;
}

#sidenavHeader.hidden {
    z-index: 0;
    opacity: 0;
    height: 0;
    padding: 0;
}

.sidenavContent {
    flex-grow: 1;
    overflow-y: auto;
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
}

.pac-item {
    font-family: Hero;
}

/* Customizing multiselect
-------------------------------------------------- */
.multiselect.custom-select {
    text-align: left;
    height: inherit;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    overflow-x: hidden;
}

.multiselect-container {
    transition: all 0.1s;
}

.dropdown-item:active {
    color: white;
}

.multiselect-item.filter .dropdown-item {
    background: white;
}

.multiselect-container .checkbox {
    width: 100%;
    vertical-align: middle;
}

.multiselect-container input + span:after {
    float: right;
    content: '';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.checkbox input:checked + span:after {
    content: "\f00c";
}

.multiselect-container input:not(.multiselect-search) {
    display: none;
}


/* Misc
-------------------------------------------------- */
.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.center-full-image {
    width: 768px;
    left: 50%;
    margin-left: -384px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .container-landing {
        width: 700px;
    }

    .container-small {
        width: 500px;
    }

    .container-large {
        width: 970px;
    }

    .center-full-image {
        width: 992px;
        left: 50%;
        margin-left: -496px;
    }
}

@media (min-width: 992px) {
    .container-landing {
        width: 700px;
    }

    .container-small {
        width: 500px;
    }

    .container-large {
        width: 1170px;
    }

    .center-full-image {
        width: 100%;
        left: 0;
        margin-left: 0;
    }
}

@media (min-width: 1200px) {
    .container-landing {
        width: 700px;
    }

    .container-small {
        width: 700px;
    }

    .container-large {
        width: 1500px;
    }
}

.container-landing, .container-small, .container-large {
    max-width: 100%;
}

.main-button {
    font-family: Hero;
    font-weight: bold;
}

/* Nav-bar toggler pra quando a tela tá muito pequena pra mostrar todas as infos na bar. */
.custom-toggler.navbar-toggler {
    border-color: transparent;
    z-index: 9999;
}

.custom-toggler .toggler-icon {
    font-size: 28px;
    color: white;
}

.navbar-collapse.custom-collapse.show,
.navbar-collapse.custom-collapse.collapsing {
    margin-left: -15px;
    margin-right: -15px;
    padding: 20px;
    background: #802090;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#headerNavContainer {
    background-color: #802090;
}

.funcionamento-list-group-item {
    padding: 8px;
    text-align: center;
}

.funcionamento-list-group-item *:not(h6) {
    font-size: small;
}

.btn-circle {
    width: 35px;
    height: 35px;
    padding: 6px 0px;
    border-radius: 17.5px;
    text-align: center;
    font-size: 12px;
    line-height: 1.42857;
}

#mapContainer {
    position: absolute;
    top: 70px;
    height: calc(100% - 70px);
    width: calc(100% - 400px);
    margin-left: 400px;
}

/* Fix to apply this to all page widths */
.form-inline .form-control {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}