﻿.content article {
    margin: 0 !important;
}

.content {
    padding-left: 0.5em !important;
    padding-right: 0.5em !important;
}

.breadcrumb {
    padding-left: 0 !important;
}

.results-page-header {
    text-align: center;
    font-size: 4em !important; 
    color: #c63986;
}

p.download-results a {
    padding: 5px 10px !important;
}

.map-and-results-container {
    margin-bottom: 40px;
}

#map {
    display: inline-block;
    width: 60%;
    height: 500px;
}

.results-container {
    display: inline-block;
    width: 36%;
    min-height: 500px;
    vertical-align: top;
    padding-left: 0.5em;
    margin-left: 1em;
}

.results-container tbody {
    /* override 1; state style adds a gray line */
    border-bottom: 0;
}

.results-container tr {
    /* override 1; state style adds a gray line */
    border-top: 0;
}

.results-container td {
    /* override 0.5em; too much padding */
    padding: 1px;
    /* override 2; too much padding */
    line-height: 1.6;
}

#contest {
  width: 100%;
  margin-bottom: 15px;
}

.candidates-table-container {
    min-height: 240px; /* TODO: make statistics and buttons stick to bottom of results-container instead of this */
}

.candidates-table {
    margin-bottom: 0 !important;
}

.candidates-name-header-cell {
    text-align: left;
    font-weight: bold;
    vertical-align: bottom;
}

.candidates-total-header-cell {
    text-align: right;
    font-weight: bold;
    vertical-align: bottom;
}

.candidates-table tr:nth-child(even) {
  background-color: #f0f3f6;
}

.candidate-name-cell {
    text-align: left;
}

.candidate-percent-cell {
    text-align: right;
}

.candidate-total-cell {
    width: 62px;
    text-align: right;
}

.candidate-color-cell {
    width: 22px;
    text-align: left;

    vertical-align: middle;
    line-height: 0 !important; /* required for vertical-align */
}

.candidate-color-cell span {
  display: inline-block;
  width: 12px;
  height: 12px;
}

.statistics-table {
    margin-bottom: 30px !important;
}

#statistics-header-label-cell, 
#statistics-header-value-cell {
    font-weight: bold;
}

.statistics-table tr:nth-child(even) {
  background-color: #f0f3f6;
}

.statistics-label-cell {
    text-align: left;
}

.statistics-value-cell {
    text-align: right;
}

#results-updated-cell {
    font-style: italic;
}

.button-container {
    display: inline-block;
    width: 48%;
    text-align: center;
}

.district-precinct-button-container {
    padding-right: 0.25em;
}

.refresh-button-container {
    padding-left: 0.25em;
}

.button-container button {
    width: 100%;
    font-weight: bold;

    /* make the buttons a little taller */
    padding-top: 0.8em;
    padding-bottom: 0.8em;
}

#district-precinct-button {
    background-color: #198511;
}

#refresh-button {
    background-color: #007bb2;
}

.dev-credit p {
    font-size: .85em;
    text-align: right;
    margin: 0 20px;
}