﻿body {
    font-family: "Poppins", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    padding: 0;
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
    margin: 0px;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

h4 {
    margin: 0;
    color: var(--color-primary-blue);
}

button {
    border: none;
    cursor: pointer;
}

cars {
    margin-top: 0.5rem;
    width: 100%;
}


/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;

    display: flex;
    flex-direction: column;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
   
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100vh;
    max-height: 100vh;
}

.span {
    grid-column: span;
}

.content {
    display: flex;
    flex-direction: row;
    overflow-y: auto;
    flex: 1;
}

.navbar {
    background-color: #FCFCFC;
   
    gap: 1rem;

    align-items: center;

    border-radius: 12px;
    padding: 16px 16px;
}


.logo {
    object-fit: cover;
    object-position: center center;
    max-height: 48px;
    height: 48px;
}

.menubar {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: left;
}


#sidebar {
    position: relative;
    border-top: 3px solid;
    border-color: #f6f6f6;
    display: flex;
    flex-direction: column;
    background-color: #fcfcfc;

    padding: 4px 0px 0px 12px;
}

#sidebar-button {
    position: absolute;
    width: 40px;
    height: 80px;
    background: #fcfcfc;

    top: 50%;
    border: 1px solid var(--color-shape);

    font-size: 32px;
    z-index: 10;
    padding: 8px;
    border-radius: 0 8px 8px 0;
}

.margin-right {
    margin-right: 8px;
}

.sidebar-hidden + #sidebar-button {
    left: 0;
    transition: left 0.3s ease;
}

.sidebar-show + #sidebar-button {
    left: 312px;
    transition: left 0.3s ease;
}

.sidebar-hidden {
    width: 0 !important;
    transition: width 0.3s ease;
}

.sidebar-show {
    width: 300px;
    transition: width 0.3s ease;
}

.separator {
    height: 38px;
    width: 2px;
    background-color: #223263;
    margin-left: 1rem;
    margin-right: 1rem;
}

.order-container {
    overflow: auto;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 20px;
}

button.selected {
    border: 2px solid var(--color-bright-blue);
    
}

.map-container {
    flex: 1;
    
}

gmp-map, #map {
    flex: 1;
    background-color: #e9ece9;
    height: 100%
}

.user-indicator {
    width: 44px;
    height: 44px;
    background: var(--color-text-dark);
    border-radius: 50%;
    display: flex;

    div {
         margin: auto;
        border-radius: 50%;
        background: var(--color-primary-blue);
        width: 24px;
        height: 24px;
        border: 8px solid #e9ece9;
        top: 5%;
        left: 5%;
    }
}

.search-button {
    padding: 8px 16px;
    background-color: #1a4f9f;
    color: white;
    font-weight: 500;
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
}

.search-button:disabled {
    background: var(--color-shape);
    cursor: not-allowed;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    padding-bottom: 18px;
    padding-top: 8px;
    background: var(--color-background);
    width: 100%;

    justify-content: center;
    display: flex;
}

.order-tag {
    background-color: var(--color-primary-blue);
    border-radius: 8px;
    color: var(--color-white);
    max-width: 120px;
    border: 3px #223263;
    padding: 10px 14px;
    font-size: 11px;
    cursor: pointer;
    z-index: 10;

    .bold {
              font-weight: 600;
              font-size: 13;
          }

    .address {
        font-style: italic;
    }

    :after {
        content: "";
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translate(-50%, 0);
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 8px solid var(--color-primary-blue);
    }
}

div.selected {
    background-color: var(--color-bright-blue);
    :after {
    border-top: 8px solid var(--color-bright-blue);
    }
}

@media (max-width: 1300px) {

    .logo {
        width: 75px;
            
    }
}

@media (max-width: 924px) {
    .logo {
        display: none;
    }
}

.field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.route-title {
    font-weight: 600;
    
}

.destructive-button {
    padding: 8px 16px;
    color: white;
    font-weight: 500;
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: var(--color-warning);
}

button.button-active {
    background-color: var(--color-bright-blue);
}
