﻿.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 20px 5px 0 !important;
    white-space: nowrap;	
}

.map-and-results-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1.5em;
    row-gap: 15px; /* same as contest.margin-bottom */

    margin-bottom: 40px;
}

/* Ideal layout: 5:3 ratio between map and results widths.
   If not enough room, shrink until there's not enough room
   for their combined minimum widths, then wrap. */

#map {
    flex: 5;
    min-width: 375px;
    align-self: flex-start;

    height: 500px;
}

.results-container {
    flex: 3;
    min-width: 320px;
    align-self: stretch;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.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;
    /* override break-all; no thanks */
    word-break: normal;
}

#contest {
    width: 100%;
    margin-bottom: 15px; /* same as map-and-results-container.row-gap */
}

.candidates-table {
    margin-bottom: 15px !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 {
    width: 52px;
    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;
}