:root {
    --red: #C60000;
    --yellow: #F2CC2C;
    --grey: #AAAAAA;
}


#container {
    width: 500px;
    padding: 0;

}

.logo {
    background-image: url(logo-word-black-331x68.png);
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 80px;
}

#vote-form, #vote-results, #login-section, #message {
    width: 100%;
    text-align: center;
}

#controls {
    margin: 10px 0;
    text-align: center;
}

#message {
    margin-top: 10px;
}

h1 {
    padding: 0 16px;
    margin: 0;
    height: 24px;
    width: calc( 100% - 32px );
    line-height: 24px;
    vertical-align: middle;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.1);
    font-size: 18px;
    letter-spacing: 1pt;
    text-transform: uppercase;
    font-weight: 500;
}

h2 {
    padding: 0 16px;
    margin: 10px 0 0 0;
    height: 24px;
    width: calc( 100% - 32px );
    line-height: 24px;
    vertical-align: middle;
    text-align: center;
    font-size: 18px;
    letter-spacing: 1pt;
    text-transform: none;
    font-weight: 700;
}

h2 span.teamRed {
    border-bottom: 2px solid var(--red);
}

h2 span.teamYellow {
    border-bottom: 2px solid var(--yellow);
}

#login-section, .vote-option, .vote-result {
    margin: 15px 0;
}

#login-section div {
    margin: 15px 0;
}

.vote-option {
    display: inline-flex;
}

.vote-option label {
    display: flex;
    padding: 3px;
    color: #000000;
    width: 100px;
    height: 100px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 5px solid #ffffff;
}

.vote-button {
    height: 50px;
    line-height: 48px;
    text-align: center;
}

input[type="radio"] {
    opacity: 0.01;
    z-index: 100;
}

input[type="radio"]:checked + label,
.Checked + label {
    border: 5px solid #000000;
}

.vote-option label.teamRed {
    background-color: var(--red);
    color: #FFFFFF;
}

.vote-option label.teamYellow {
    background-color: var(--yellow);
}

.vote-option label.teamTie {
    background-color: var(--grey);
}

.vote-result span {
    display: inline-block;
}

.vote-result span.team {
    width: calc( 35% - 10px );
    text-align: right;
}

.vote-result span.sep {
    width: 10px;
    text-align: center;
}

.vote-result span.result {
    width: calc( 65% - 10px );
    text-align: left;
}

.vote-result span.count {
    width: 100px;
    text-align: right;
}

.vote-result span.graph {
    display: inline-block;
    margin-left: 10px;
    height: 20px;
}

.vote-result span.voted {
    font-weight: bold;
    padding: 3px;
    color: #000000;
}

.vote-result span.graph.red,
.vote-result span.voted.red {
    background-color: var(--red);
    color: #FFFFFF;
}

.vote-result span.graph.yellow,
.vote-result span.voted.yellow  {
    background-color: var(--yellow);
}

.vote-result span.graph.tie,
.vote-result span.voted.tie  {
    background-color: var(--grey);
}

#leaderboard-section {
    width: 100%;
    margin: 10px 0;
}

table#leaderboard-table {
    width: 100%;
    margin-top: 10px;
}

table#leaderboard-table tr,
table#leaderboard-table td,
table#leaderboard-table th {
    border: 1px solid black;
    padding: 5px;
}

table#leaderboard-table thead tr th {
    background-color: var(--grey);
    line-height: 24px;
}

table#leaderboard-table thead tr th {
    text-align: center !important;
}

table#leaderboard-table .rank {
    width: 10%;
    text-align: center;
}

table#leaderboard-table .name {
    width: 70%;
}

table#leaderboard-table .points,
table#leaderboard-table .votes {
    width: 10%;
    text-align: right;
}
