/* template colors 

    - change these based on brand
    - declare them as rgb values
*/

:root {
    /* used in hero background */
    --color-brand-hero: 88 121 141; /* gray-blue */  

    /* used above hero text */
    --color-brand-highlight: 239 195 45; /* yellow */

    /* nav highlight */
    --color-nav-highlight: 211 44 50 /* brand red */
}

:root {
    --site-font-family: "Montserrat", Roboto, sans-serif;
    --color-text-black: #101921;
    --color-suncor-orange: #D07A36;
    --color-suncor-blue: #5F788B;
    --color-gray-border: #D3D3D3;
    --color-light-gray: #ECECEC;
    --color-dark-gray: #363737;
    --responsive-base-font: 1rem;
}

/* resets */
h1, h2, h3, h4, h5, h6, h7 {
    margin: 0px;
}

/* global */

@font-face {
    font-family: ps4;
    src: url(../fonts/ps4.ttf)
}

@font-face {
    font-family: ps7;
    src: url(../fonts/ps7.ttf)
}

/* bootstrap over-rides */

html {
    height: 100%;
}

html body {
    font-family: var(--site-font-family);
    height: 100%;
}

main {
    min-height: 70%;
}

/* global utilities */
.fw-1 {font-weight: 100;}
.fw-2 {font-weight: 200;}
.fw-3 {font-weight: 300;}
.fw-4 {font-weight: 400;}
.fw-5 {font-weight: 500;}
.fw-6 {font-weight: 600;}
.fw-7 {font-weight: 700;}
.fw-8 {font-weight: 800;}
.fw-9 {font-weight: 900;}

.fs-12 {font-size: max(.75rem, calc(var(--responsive-base-font) * .75))}
.fs-14 {font-size: max(.75rem, calc(var(--responsive-base-font) * .875))}
.fs-16 {font-size: max(.75rem, calc(var(--responsive-base-font) * 1))}
.fs-20 {font-size: max(.75rem, calc(var(--responsive-base-font) * 1.25))}
.fs-24 {font-size: max(.75rem, calc(var(--responsive-base-font) * 1.5))}
.fs-28 {font-size: max(.75rem, calc(var(--responsive-base-font) * 1.75))}
.fs-32 {font-size: max(.75rem, calc(var(--responsive-base-font) * 2))}

.lh-200 {line-height: 200%;}

.loader {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .5);
    background-image: url('/lib/img/loading_spinner.gif');
    background-size: 50px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10000000;
}




/* MARK: header and nav 
*/

header {
    img.logo {
        width: 140px;
    }
    h1 {
        font-size: 1.2rem;
    }

    .navbar {
        button.navbar-toggler {
            height: 60px;
            margin-left: auto;
            position: absolute;
            top: -75px;
            right: 5px;
        }
        .container-fluid {
            margin-left: -20px;
        }
    }

    .navbar-collapse {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .navbar-collapse.collapsing,
    .navbar-collapse.show  {
        flex-direction: column;
    }
    
    .navbar-expand-lg {
        margin: auto;
        max-width: 1600px;
    }
    
    .navbar-nav {
        gap: 1rem;
        width: 100%;
        list-style: none;
        margin: 0px;
        padding: 0px;
        li {
            list-style: none;
            margin: 0px;
            padding: 0px;
        }

        li:last-child {
            margin-left: auto;
        }
        a {
            display: inline-block;
            border: none;
            color: var(--color-text-black);
            position: relative;
            padding: 10px;
            &.active {
                color: rgb(var(--color-nav-highlight));
            }
            &:hover {
                text-decoration: none;
                background: inherit;
                color: rgb(var(--color-nav-highlight));
            }
            &[aria-current] {
                font-weight: bold;
                color: rgb(var(--color-nav-highlight));
            }
            &::after {
                content: '';
                position: absolute;
                bottom: 9px;
                left: 10px; /* = padding-x */
                width: calc(100% - 20px); /* 100% - 2*padding-x */
                height: 2px;
                background-color: black;
                opacity: 1;
                transform: scale(0);
                transform-origin: center;
                transition: transform 150ms;
            }
            &:hover::after {
                transform: scale(1);
            }
    
        }
    }
}

/* MARK: hero 
*/

main.hero-section {

    --hero--image-gradient-mask: linear-gradient(90deg,rgba(var(--color-brand-hero) / 0) 50%, rgba(var(--color-brand-hero) / 1) 50%,  rgba(var(--color-brand-hero) / 1) 100%);

    --hero--image-x-offset: -400px;
    
    --hero--image-size: offset;

    background: var(--hero--image-gradient-mask), url(../img/banner.jpeg) var(--hero--image-x-offset) 0;

    background-size: cover !important;

    &>div.container-xl {
        background: linear-gradient(90deg,rgba(var(--color-brand-hero) / 0) 0%, rgba(var(--color-brand-hero) / 1) 35%)
    } 
    margin-top: 28px !important;
    margin-bottom: 28px !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    width: auto;
}

@media (max-width: 1400px) {
    /* body {
        background-color: red;
    } */
    main.hero-section {
        --hero--image-x-offset: -200px;
    }
    
}

@media (max-width: 1200px) {
    /* body {
        background-color: orange;
    } */
    main.hero-section {
        --hero--image-x-offset: -800px;
    }
}

@media (max-width: 1000px) {
    /* body {
        background-color: yellow;
    } */
    main.hero-section {
        .container-xl::before {
            display: block;
            content: '';
            width: calc(100% + 24px);
            height: 100px;
            background: url(../img/banner.jpeg) 0 25%;
            background-size: cover;
            margin-left: -12px;
        }
        background: none;
        &>div.container-xl {
            background-color: rgb(var(--color-brand-hero));
        } 
    }
}


@media (max-width: 800px) {
    /* body {
        background-color: green;
    } */
}



xmain.hero-section {background-position: -400px 0;}

@media (min-width: 1000px) {
    xmain.hero-section {
        &>div {
            /* background: linear-gradient(90deg,rgba(88,121,141,0),rgba(88,121,141,1) 30%); */
            /* background: linear-gradient(90deg,rgba(var(--color-brand-hero) / 0),rgba(var(--color-brand-hero) / 1) 30%); */
            min-height: 400px;
        }
        /* background-color: rgb(88, 121, 141);
        background-image: url(../img/banner.jpeg);
        background-repeat: no-repeat;
        background-size: 1700px auto;
        background-position: -600px 0; */
        &::before {
            display: none;
        }
    }
}
@media (min-width: 1200px) {
    xmain.hero-section {background-position: -400px 0;}
}
@media (min-width: 1400px) {
    xmain.hero-section {background-position: -200px 0;}
}

.pageContent-home {
    padding: 30px 10px 30px 10px;
    color: white;
    h2 {
        font-size: 3rem;
        font-weight: 700;
        border-top: 5px solid rgb(var(--color-brand-highlight));
        padding-top: 40px;
        padding-bottom: 40px;
        display: inline-block;
    }
}

@media (min-width: 1000px) {
    .pageContent-home {
        padding: 60px 0px 60px 400px;
    }
}

/* MARK: footer 
*/

footer {
    border-width: 10px;
    border-style: solid;
    border-color: red;
    border-image-slice: 1;
    border-image-source: linear-gradient( to right, #EFC32D, #D32C32 );
    border-left: 0px;
    border-right: 0px;
    border-bottom: 0px;
    padding-top: 2em;
    padding-bottom: 2em;
    /*position: absolute;*/
    bottom: 0;
}


.top-border {
    border-top: 1px solid var(--color-gray-border);
}

/* MARK: pg: Map */


#box-table {
    td {
        text-wrap-mode: wrap;
    }
}

.newSitePopUp {
    margin: 2rem;
}


#MicrosoftNav { 
    /* left: 0 !important;  bing over-ride */
}
.bm_bottomRightOverlay { 
    right: 400px !important; /* bing over-ride */
}

.mapWrapper {
    position: relative;
    overflow: hidden;
}

.mapControls {
    background: rgba(255 255 255 /.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 10px;
    position: absolute;
    top: 0;
    margin: .5em;
    border-radius: 20px;
    /* right: 0;*/
    width: 400px;
    min-width: 400px;
    z-index: 100000;
    transition: left 1s ease-in-out;
    overflow-x: visible;   
    left: 0;
    .mapControls-innerWrapper {
        height: 100%;
        padding: 16px;
        overflow-y: auto;
    }
    &.closed {
        left: -390px;
      /*  visibility: hidden;*/
        button.mapToggle {
            .toggleIcon {
                rotate: 135deg;
            }
        }
    }

button.mapToggle {
    all: unset;
    background: rgba(255 255 255 /.75);
    border-radius: 5px 0 0 5px;
    width: 40px;
    height: 40px;
    rotate: 180deg;
    position: absolute;
    top: 10px;
    left: 390px;
    text-align: center;
    padding-right: 6px;
    box-sizing: border-box;
    .toggleIcon {
            margin: auto;
            width: 14px;
            height: 14px;
            border: 4px solid #666;
            border-top: 0;
            border-left: 0;
            rotate: -45deg;
            transition: rotate 1s ease-in-out;
        }
    }
}

#containerBarChart {
    height: 300px;
}

.customInfobox {
    background-color: rgba(255,255,255,0.5);
    color: black;
    max-width: 450px;
    border-radius: 10px;
    padding: 5px;
    font-size: 12px;
    pointer-events: auto !important;
}

    .customInfobox .title {
        font-size: 14px;
        margin-bottom: 5px;
    }

.hover-over-card {
    border-bottom: 10px solid #5fa9ce;
    font-size: 14px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin: 0;
}

.bordered-card {
    padding: 0.5em;
    border-top-left-radius: 15px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 15px;
    /*max-width: 250px;*/
    font-size: small;
    margin: 0;
    margin-top: 0.25rem;
}