#sidebar {
    background-color: transparent;
    flex-basis: 15rem;
    flex-grow: 1;
    padding: 1rem;
    max-width: 30rem;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    pointer-events: none;
}

    #sidebar .button-container .btn {
        pointer-events: auto;
    }

.button-container {
    order: 1;
}

.directions-container {
    order: 2;
    overflow: auto;
    background-color: white;
}

    .directions-container.closed {
        overflow: hidden;
        opacity: 0;
    }

.search-input-addon {
    color: var(--blue);
    border-color: var(--blue);
    background-color: var(--green);
    border-radius: 0;
}

#map {
    height: 70vh;
}

.homepage-header {
    font-weight: 500;
    font-size: 1.7rem;
}

.search-header {
    font-weight: 700;
    font-size: 2.3rem;
    position: relative;
    display: inline-block;
    max-width: 100%;
}

    .search-header::after {
        content: '';
        width: 50%;
        left: 0;
        height: 0.1rem;
        background: var(--footer-green);
        position: absolute;
        bottom: -0.2rem;
    }

main .form-control,
main .btn-green {
    border-color: var(--blue);
    border-width: 1px;
    border-radius: 0;
}

    main .btn-green:hover {
        background-color: var(--dark-green);
        transition: background-color linear 1.1s;
    }

.select2-container--bootstrap4 .select2-selection,
.select2-container--bootstrap4 .select2-selection__clear {
    border-radius: 0;
}

.select2-container--bootstrap4.select2-container--focus .select2-selection {
    border-color: var(--blue);
}

.select2-container--bootstrap4 .select2-selection {
    border-color: var(--blue);
}

.select2-search--dropdown .select2-search__field {
    border-color: var(--blue);
}

.select2-container--bootstrap4 .select2-dropdown {
    border-color: var(--blue);
}

.search-form {
    margin-top: 1em;
}


@media (min-width: 260px) {
    .search-header::after {
        width: 35%;
    }
}

/* Small screens, header is back in one line, underlines most of the line */
@media (min-width: 370px) {
    .search-header::after {
        width: 90%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .search-header::after {
        width: 40%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .search-header::after {
        width: 90%;
    }

    .search-form {
        margin-top: 2em;
    }
}

.search-img {
    margin: auto;
}

.offices-header::after {
    width: 80%;
    left: 0;
}

.offices-list .card {
    color: white;
}

    .offices-list .card .card-body {
        background-color: var(--blue);
        padding: 1em;
    }

    .offices-list .card:nth-child(even) .card-body {
        background-color: var(--light-blue);
    }

    .offices-list .card .card-text {
        margin-bottom: 0.5em;
    }

.text-green {
    color: var(--green);
}

.offices-list .card p a {
    color: white;
}

.offices-list .card .card-text {
    font-size: 0.8em;
}

.offices-list .card p i {
    color: var(--green);
}

.map-wrapper {
    position: relative;
}

div.overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0.7;
    z-index: 1;
}

    div.overlay .spinner-border {
        --size: 6rem;
        width: var(--size);
        height: var(--size);
        color: var(--blue);
    }

.loader {
    top:0;
    left:0;
    display:flex;
    justify-content:center;
    align-items:center;
    transition: opacity 0.75s, visibility 0.75s;
    opacity:0;
}

.loader::after{
    content:"";
    width:175px;
    height:175px;
    border:15px solid #dddddd;
    border-top-color: #7449f5;
    border-radius:50%;
    animation: loading 0.75s ease infinite;
}

@keyframes loading{
    from{
        transform: rotate(0turn);
    }
    to{
        transform:rotate(1turn);
    }
}



@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    /*background-color: rgb(0,0,0);*/ /* Fallback color */
    /*background-color: rgba(0,0,0,0.4);*/ /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
/*    background-color: #fefefe;*/
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 60%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }

.tooltiptext {
    visibility: hidden;
    width: 100%;
    background-color: lightgray;
    color: black;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    bottom: 100%;
/*    left: 50%;
    margin-left: -60px;*/
    border:1px solid black;
}

#search:hover .tooltiptext {
    visibility: visible;
}
