/*** Election Tracker - custom stylesheet ***/
/* Elements copied from Cob.Custom.css */

:root {
    --CoB-blue: #0056ac; /*Accent colour used in callouts and primary buttons*/
    --CoB-Dark-Blue: #003c78; /*Accent colour used in callouts and primary buttons*/
    --CoB-Darkest-Blue: #00070f; /*Body copy navigation links default state */
    --CoB-text-color: #000; /*Body text default color*/
    --CoB-textLink-color: #36c; /*Body hyperlinks default color*/
    --CoB-Accent: #FDB924; /*Accent color use in calls to action*/

    --CoB-gray-200: #e9ecef; /*Accent panels background colour*/
    --CoB-gray-300: #dee2e6;
    --CoB-gray-400: #ced4da; /*Accent panels background colour (additional company footer)*/
    --CoB-gray-500: #adb5bd; /*Global site wide footer background colour*/
    --CoB-gray-600: #6c757d;
    --CoB-gray-700: #495057;
    --CoB-gray-800: #343a40;
    --CoB-gray-900: #212529;
    --system-ui: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

/* Set global font */
* {
    font-family: var(--system-ui);
    font-size: 1rem;
}

@media (min-width: 768px) {
    * {
        font-size: 1.1rem;
    }
}

@media (min-width: 1200px) {
    * {
        font-size: 1.25rem;
    }
}

/* Top bar styling */
.container.headWrapper .top {
    padding: 0px !important;
}

#cobHead {
    background-color: #00070f;
    min-height: 50px;
    margin: 0 -15px 10px;
    padding: 0 15px;
}

@media (max-width: 620px)
{
    #cobHead
    {
        height: 80px;
    }
}



    #cobHead .bramptonLogo img {
        position: absolute;
        left: 5px;
        top: 5px;
    }

    #cobHead .bramptonLogo {
        display: block;
        width: 38px;
        height: 30px;
        position: absolute;
        top: 10px;
        left: 15px;
        overflow: hidden;
        background-image: url('../images/Brampton-WebLogo.png');
        background-repeat: no-repeat;
        background-position: left top;
        background-size: cover;
        z-index: 9999999;
    }

    #cobHead .appTitle {
        position: absolute;
        top: 10px;
        color: #fff;
        z-index: 9999999;
        font-size: 1.5rem;
        line-height: 30px;
        height: 33px;
        left: 60px;
        font-weight: 300;
		 display: block;
    }

@media (min-width:480px) {
    #cobHead .bramptonLogo {
        width: 150px;
        height: 30px;
        background-size: contain;
    }

    #cobHead .appTitle {
        top: 10px;
        line-height: 30px;
        height: 30px;
        left: 180px;
        border-left: 1.5px solid #fff;
        padding-left: 12px;
    }
}

@media (min-width: 768px) {
    #cobHead, #cobHead .headWrapper {
        height: 60px;
    }

        #cobHead .headWrapper .col-12.top {
            height: 0px;
        }

        #cobHead .bramptonLogo {
            width: 190px;
            height: 45px;
        }

        #cobHead .appTitle {
            top: 9px;
            font-size: 1.75rem;
            line-height: 40px;
            height: 40px;
            left: 224px;
            padding-left: 15px;
        }
}

@media (min-width: 1200px) {
    #cobHead .bramptonLogo {
        width: 210px;
        height: 40px;
        top: 9px;
    }

    #cobHead .appTitle {
        line-height: 40px;
        height: 42px;
        left: 244px;
    }
}

/* adjust h2 height in the summary card */
.summary h2 {
    font-size: 1.4rem;
}

/* loading screen styles */
div#spinner-div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 -12px;
    padding: 15px;
    background-color: var(--bs-gray-200);
    min-height: 250px;
}

.cv-spinner {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner {
    padding-bottom: 15px;
}

    .spinner i {
        font-family: 'Font Awesome 7 Pro' !important;
        font-size: 35px;
        animation: rotation 2s infinite linear;
    }

/* Set carousel-inner width */
#electionResults.carousel-inner {
    width: auto;
    transition: height 0.2s ease;
    overflow: hidden;
}

.race-results .leading td {
    background-color: var(--CoB-blue);
    color: #fff;
    border: 1px solid var(--CoB-blue);
    font-weight: bold;
}

    .race-results .leading td:first-of-type {
        padding-left: 6px;
    }

#electionResults .card {
    min-height: 1000px !important;
}

@media(min-width: 768px) {
    .card-container .row-layout {
        height: 100% !important;
    }
}

#electionResults .card-header {
    background-color: var(--bs-gray-400);
}

.race-results {
    background-color: var(--bs-gray-100);
}

.race-summary {
    background-color: var(--bs-gray-200);
    border-top: 2px solid var(--bs-gray-300);
}

#electionResults .card-header h3.card-title {
    margin-left: 10px;
}

#electionResults .card-body table {
    margin-bottom: 0;
}

.race-results tr:last-of-type {
    border-bottom-color: var(--bs-gray-100);
}

.race-results td,
.race-results th {
    background-color: var(--bs-gray-100);
    padding-left: 0;
}

.race-summary tr {
    border-bottom-color: var(--bs-gray-400);
}

    .race-summary tr:last-of-type {
        border-bottom-color: var(--bs-gray-200);
    }

.race-summary td,
.race-summary th {
    background-color: var(--bs-gray-200);
    padding-left: 0;
}

.totals {
    font-weight: bold;
}

#election-tracker-controls {
    margin: 12px auto;
}

    #election-tracker-controls button:enabled {
        color: #000;
    }

#playIcon i {
    font-family: 'Font Awesome 7 Pro' !important;
    font-size: 20px;
}

span#playText {
    font-size: inherit;
}

#election-tracker-controls .btn-group {
    margin-left: 0;
    margin-top: -1px;
}

ul#select-ward-dropdown {
    max-height: 60vh;
    overflow: scroll;
}

.progress-bar-wrap {
    height: 5px;
    margin: 0 -12px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

#slideProgress {
    height: 100%;
    width: 0%;
    background: var(--CoB-blue);
    transition: width 0.1s linear;
}

#controls-play,
#controls-prev,
#controls-next,
#skipToDropdown {
    border: 1px solid #3d3d3d;
    background-color: #fff;
    transition: 0.1s ease-in;
}

    #controls-play:disabled,
    #controls-prev:disabled,
    #controls-next:disabled,
    #skipToDropdown:disabled {
        border: 1px solid #424242;
        background-color: #f2f2f2;
        color: #424242;
        font-style: italic;
    }

    #controls-play:hover, #controls-play:focus,
    #controls-prev:hover, #controls-prev:focus,
    #controls-next:hover, #controls-next:focus,
    #skipToDropdown:hover, #skipToDropdown:focus {
        background-color: #f2f2f2;
    }

@media (min-width: 768px) {
    #controls-prev,
    #controls-play,
    #controls-next {
        width: 20% !important;
    }

    #election-tracker-controls .btn-group {
        width: 40% !important;
        margin-left: -1px;
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    .race-summary {
        border-left: 1px solid var(--bs-gray-300);
        border-top: none;
    }
}
