﻿html
{
    /* Hides the scroll bars when not required. This fixes a bug in IE7 which causes
       the text to move when updating a div innerHTML via JavaScript */
    overflow: auto;
}

.body-content body
{
    background: #fff;
    color: #626469;
    font: 300 100.1% "Helvetica Neue", Helvetica, "Arial Unicode MS", Arial, sans-serif;
}

.body-content #content {
    width: 970px;
    margin-left: auto;
    margin-right: auto;
}


/* Header */

.body-content #header {
}

.body-content #header #ncc-logo {
        float: left;
        margin-right: 6px;
        border-style: none;
    }

.body-content .header-menu h1 {
    font-size: 1.5em;
    font-weight: normal;
    color: #666;
    float: right;
    margin-right: 6px;
    padding-left: 15px;
}

/* Tabs */

#tabs {
    height: 30px;
    padding-left: 10px;
    padding-bottom: 0px;
}

#tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#tabs li {
    float: left;
    border: 1px solid #bbb;
    border-bottom-width: 0;
    margin: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: #333;
    height: 30px;
}

#tabs a {
    text-decoration: none;
    display: block;
    background: #333;
    padding: 0.24em 1em;
    color: #ebebeb;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#tabs a:hover {
    border-bottom: 0 !important;
    background-color: #737575;
    color: #fff !important;
}

#tabs .selected a {
    position: relative;
    top: 0px;
    background: #006666;
    color: #ebebeb;
    font-weight: bold;
    height: 30px;
}

.body-content .nav li {
    height: auto;
}

.body-content .nav li.selected {
        background: #006666;
        color: #ebebeb;
        font-weight: bold;
    }

.body-content .nav a.active {
    background: #006666;
    color: #ebebeb;
    font-weight: bold;
}

.body-content nav {
    background: #333;
    height: auto;
}

.navbar-inverse .navbar-toggler:focus, .navbar-inverse .navbar-toggler:hover {
    background-color: #333;
}

.navbar-inverse .navbar-toggler {
    border-color: #333;
}

.navbar-toggle {
    position: relative;
    float: right;
    padding: 9px 10px;
    margin-right: 15px;
    margin-top: 8px;
    margin-bottom: 8px;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.navbar-toggle:hover {
    text-decoration: none;
}

.navbar-inverse .navbar-toggle .icon-bar {
    background-color: #fff;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    margin-left: 30px;
}


nav a:hover, nav a:focus {
    border-bottom: 1px solid #621942;
    color: #fff;
    text-decoration: none;
}

.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
    border-color: #101010;
}

.container-fluid > .navbar-collapse, .container-fluid > .navbar-header, .container > .navbar-collapse, .container > .navbar-header {
    margin-right: -15px;
    margin-left: -15px;
}

.navbar-collapse {
    padding-right: 15px;
    padding-left: 15px;
    overflow-x: visible;
    border-top: 1px solid transparent;
    -webkit-box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
    -webkit-overflow-scrolling: touch;
}

.navbar-inverse .navbar-nav > li > a {
    color: #fff;
}

.navbar-inverse .navbar-brand {
    color: #fff;
}

.body-content nav {
    text-align: left;
}

/* Footer information */

.body-content #footer {
    color: #666;
    text-align: center;
}

/* MISC */

.divider {
    clear: both;
    border-bottom: 1px solid #ddd;
    height: 0;
    margin: 8px 0px;
}

.clear {
    clear: both;
}

#siteversiontoggle {
    margin-top: 10px;
    text-align: right;
    color: Blue;
}

#siteversiontoggle a {
    text-decoration: none;
    color: Blue;
}

/* Party key */

#partyKeyTitle
{
    padding-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

#partyKey {
    margin-top: 10px;
    height: 100%;
    width: 73%;
    background: white;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5px;
    padding-left: 5px;
    padding-bottom: 5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#partyKey-seats {
    margin-top: 10px;
    height: 100%;
    width: 90%;
    background: white;
    margin-left: auto;
    margin-right: auto;
    padding-top: 5px;
    padding-left: 5px;
    padding-bottom: 5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#partyKeyLeft
{
   float: left;
   width: 49%;
}

#partyKeyCenter
{
    float: left;
    width: 30%;
}

#partyKeyRight
{
    float: right;
    width: 49%;
}

.division-information
{
    position: relative;
    margin-bottom: 10px;
    padding-right: 5px;
}

.previous-results
{
    margin-right: 10px;
}

.previous-results-title
{
    font-weight: bold;
}

.input-text
{
    margin-left: 20px;
    font-weight: bold;
}

.color-box 
{
    margin-right: 10px;
    margin-left: 5px;
	float: left;
}

.division-information .color-box 
{
    width: 10px;
    height: 10px;
}

.divisonCounts
{
    font-weight: normal;
}

/* Map */

#canvasRounded /*  Fixes rounded corner / gradient fill problem in IE 9*/
{
    border-radius: 10px;
    overflow: hidden;
}

#canvas {
    height: auto;
    background: #006666;
    padding-left: 20px;
    padding-bottom: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#map-container
{
    position:relative;
    width:100%;
    height:475px;
}

#key-container {
    width: 73%;
    height: 80%;
    background: white;
    padding-bottom: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    height: -moz-fit-content;

    margin-right: auto;
    overflow-y: auto;
}
#key-container.linearize {
    margin-left: 247px;
}
#key-container.zoomed {
    width: 71%;
}

#key-container-seats {
    width: 95%;
    height: 80%;
    background: white;
    padding-bottom: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    height: -moz-fit-content;
    overflow-y: auto;
    margin-left: auto;
    margin-right: auto;
}

#partyKey.zoomed {
    width:71%;
}

#map {
    position: unset;
    height: auto;
    top: 30px;
    width: 73%;
    background: #b2daf7;
    float: left;
    border: 1px solid;
    padding-left: 1px;
    padding-right: 1px;
}

/* Zoomed Classes */

#map.zoomed {
    width: 71%;
}

/* Pie Chart */

#piechart {
    /*float: right;*/
    width: 200px;
    height: 200px;
}

/* Text Only */

.body-content #textonly-canvas {
    height: 100%;
    background: #006666;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.body-content #textonly-table {
    background: white;
    width: 100%;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow-y: hidden;
}

.divisionColumn {
    display: none;
}

/* Seats */

#seats-title {
    padding-top: 10px;
    padding-left: 5px;
    font-size: 120%;
    color: #ebebeb;
    text-align: center;
}

#seats-canvas {
    height: auto;
    background: #006666;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-bottom:20px;
}

#seats {
    top: 30px;
    width: 80%;
    height: 80%;
    margin-left:auto;
    margin-right:auto;
}

/* Summary */

#summary-canvas {
    height: 100%;
    background: #006666;
    padding-left: 20px;
    padding-right: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-top: 30px;
    padding-bottom: 30px;
}

#summary-text {
    background: white;
    height: 95%;
    width: 100%;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#summary-left {
    /*float: left; */
    margin-left: 30px;
    margin-right:30px;
}

#summary-right {
    /*float: right; */
    margin-left: 30px;
    margin-right: 30px;
}

/* Results table */

#results {
    /* Hide results table by default*/
    display: none;
    margin-top: 10px;
}

#results th {
    font-weight: bold;
    text-align: left;
    border-bottom: 1px solid black;
}

/* Division results panel */
#divisionresults-container {
    width: 25%;
    position:absolute;
    top: 481px;
    /*float: right; */
    margin-left: 700px;
    margin-top: -481px;
}

#divisionresults-container.zoomed {
    width: 28%;
    float: right;
    position:unset;
    top: 0;
    margin-left:0;
    margin-top:0;
}

#divisionresults {
    height: 725px;
    /* width: 230px;*/
    font-size: 90%;
    float: right;
    background: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-left: 0px;
}
    
#divisionresultsHeader {
    text-align: left;
    font-size: 150%;
    margin-bottom: 0px;
    padding: 10px;
}

#divisionresultsTurnout {
    margin-bottom: 20px;
    padding-left: 10px;
}

#resultsText {
    padding-left: 10px;
}

#division-name {
    padding-top: 10px;
    padding-bottom: 10px;
    font-weight: bold;
    text-decoration: none;
    color: #D4D4D4;
}

#division-name a {
    text-decoration: none;
    color: #ebebeb;
}


/* Media Queries */

@media (max-width: 1200px) {
/*    #map-container {
        width: 930px;
    }*/

    #map svg {
        width: 100%;
    }

    /*#key-container {
        width: 930px;
    }*/
}

@media (max-width: 1024px) {
    #map svg {
        width: 100%;
        height: 475px;
    }

    #divisionresults {
        height: 740px;
    }
}

@media (max-width: 1023px) {
    #map-container {
       /* width: 740px;*/
        height: 395px;
    }
    /*#key-container {
        width: 740px;
    }*/
    #map {
        width: 73%;
    }

    #map svg {
        width: 100%;
        height: 382px;
    }

    #divisionresults {
        width: 100%;
        height: 645px;
    }
}

@media (min-width: 992px) {
    #partyKey {
        width: 73%;
    }


    #summary-left {
        float:left;
    }
    #summary-right {
        /* margin-left: 20px; */
        float: right;
    }
}


@media (max-width: 992px) {
    #header h1 {
        font-size: 1.2em;
        text-align: center;
        margin-left: 6px;
        float: left;
    }

    #content {
        width: auto;
    }

    #summary-canvas {
        height: auto;
    }

    #summary-right {
        float: left;
        margin-left: 0px;
    }

    #summary-left {
        margin-left: 0px;
    }

    #seats {
        padding-left: 0px;
    }

    #partyKey {
        width: 73%;
    }

    #seats-canvas {
        height:auto;
    }

    #summary-canvas {
        height: 1165px;
    }
    #divisionresults-container {
        position: unset;
        top: 0;
        margin-left: 0;
        margin-top: 0;
        float: right;
    }
}


@media (max-width: 768px) {
    #seats-canvas {
        height: 960px;
        padding-bottom: 20px;
    }
}
@media (max-width: 767px) {
    #divisionresults-container {
        width: 100%;
        float: none;
    }
}

@media (min-width: 768px) {
    .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand {
        margin-left: 15px;
    }
}
@media (max-width: 601px) {
    #partyKey {
        /*width: auto;
        margin-left: 0px; */
        display: none;
    }
}
@media (max-width: 600px) {
    #canvas {
        padding-bottom: 20px;
    }

    #seats-canvas {
        padding-bottom: 20px;
        height: 660px;
    }

    /*#map-container {
        width: 500px;
    }*/
    #key-container {
        width: auto;
    }
    #map svg {
        width: 100%;
        height: 344px;
    }

    #map {
        width: 100%;
    }

    #divisionresults {
        width: 100%;
        height: 600px;
    }

    #partyKey {
        width: auto;
        margin-left: 0px;
        
    }
}

@media (max-width: 420px) {
    #map-container {
        /*width: 400px;*/
        height: 361px;
    }
    /*#key-container {
        width: 378px;
    }*/
   

    #map svg {
        width: 100%;
        height: 223px;
    }

    #divisionresults {
        width: 100%;
        height: 600px;
        
    }
}

@media (max-width: 400px) {
    #map-container {
       /* width: 355px;*/
        height: 361px;
    }
    /*#key-container {
        width: 338px;
    }*/
   

    #map svg {
        width: 100%;
        height: 223px;
    }

    #divisionresults {
        width: 100%;
        height: 600px;
        
    }
}

@media (max-width: 360px) {
    /*#map-container {
        width: 340px;
    }
    #key-container {
        width: 318px;
    }*/
    #divisionresults {
        width: 100%;
    }
}

@media (max-width: 359px) {
   /* #map-container {
        width: 300px;
    }
    #key-container {
        width: 288px;
    }*/
   
    
    #map svg {
        width: 100%;
        height: 200px;
    }

    #divisionresults {
        width: 100%
    }
}

@media (max-width: 280px) {
    /*#map-container {
        width: 260px;
    }
    #key-container {
        width: 250px;
    }*/
    #map svg {
        width: 100%;
        height: 170px;
    }

    #divisionresults {
        width: 100%;
        height: 630px;
    }
}

@media (min-height: 1024px) and (orientation: portrait) {
    #seats-canvas {
        height: auto;
    }

    #canvas {
        height: auto;
    }
}

@media (min-height: 992px) and (max-height: 1023px) and (orientation: portrait) {
    #canvas {
        height: auto;
    }
    #seats-canvas {
        height: 800px;
    }
}













