html, body {
	font-family: 'Roboto', sans-serif;
	height: 100%;
	margin: 0;
}

.championship {
    font-size: 0.75em;
    font-weight: normal;
}

#header {
    align-items: center;
    background-color: #E09100;
    display: flex;
    height: 100px;
    margin: 0;
    min-width: 1400px;
    padding-left: 20px;
}

#header a {
    color: black;
    text-decoration: none;
}

#header img {
    background-color: #F3C566;
    border: 5px solid #F37100;
    height: 80%;
}

#subhead {
    background-color: #F37100;
    color: white;
    height: 60px;
    margin: 0;
    min-width: 1420px;
    width: 100%;
}

h1, h2 {
    font-family: 'Caveat Brush', sans-serif;
}

h1 {
    font-size: 3.5em;
    margin-left: 20px;
}

h2 {
    font-size: 2em;
    margin: 0;
    padding: 10px 0 0 20px;
}

#tournament-id {
    display: none;
}

/* Games Grid */

#games {
	border-spacing: 0;
	margin: 50px 20px 20px 20px;
}

.games-scramble {
    width: 600px;
}

.games-tournament {
    width: 1350px;
}

#games td {
	border-bottom: 1px solid black;
	border-left: 1px solid black;
	height: 40px;
	text-align: center;
	width: 40px;
}

#games #superheader td {
	border-bottom: 0;
	border-right: 3px solid black;
	font-size: 1.5em;
	font-weight: bold;
}

#games .header td {
	font-weight: bold;
	border-bottom:3px solid black;
}

#games .header td.total {
    font-size: 0.75em;
}

#games .header-blank {
    border-left: 0;
    border-right: 3px solid black;
}

#games td.flag {
    border-left: 0;
    text-align: left;
    width: 75px;
}

#games td.flag img {
    height: 100%;
}

#games td.player {
	border-left: 0;
	border-right: 3px solid black;
	font-weight: bold;
	padding-left: 10px;
	text-align: left;
	width: 150px;
}

#games td.player-clickable {
    cursor: pointer;
}

#games td.game img {
    height: 80%;
    width: 80%;
}

#games td.discarded {
    background-image: url('https://d1pvxeahk67ot4.cloudfront.net/images/discarded.png');
    background-size: 100% 100%;
    color: #999999;
}

#games td.not-playing {
    background-color: #999999;
    color: #555555;
}

#games td.total {
	border-left: 3px solid black;
	border-right: 3px solid black;
}

#games tr:last-of-type td {
	border-bottom: 3px solid black;
}

/* Bracket */

#bracket {
    display: flex;
    flex-direction: row;
    float: left;
    margin: 40px 210px 20px 20px;
    width: 602px;
}

#bracket-1, #bracket-2, #bracket-3 {
    flex-basis: 200px;
}

#bracket-vertical-1-2 {
    flex-basis: 1px;
    padding-top: 20px;
}

#bracket-vertical-2-3 {
    flex-basis: 1px;
    padding-top: 40px;
}

.vertical {
    border-left: 1px solid black;
    height: 42px;
}

.vertical-tall {
    border-left: 1px solid black;
    height: 102px;
}

#bracket-2 {
    padding-top: 20px;
}

#bracket-3 {
    padding-top: 70px;
}

.player {
    border-bottom: 1px solid black;
    height: 20px;
    margin-top: 20px;
}

.player:first-of-type {
    margin-top: 0;
}

.result {
    font-size: 0.75em;
    font-style: italic;
    height: 20px;
    padding-left: 10px;
}

.space1 {
    margin-top: 40px;
}

.space2 {
    margin-top: 60px;
}

.space3 {
    margin-top: 80px;
}

.space4 {
    margin-top: 100px;
}

.space5 {
    margin-top: 120px;
}

#bracket-2 .player, #bracket-3 .player {
    padding-left: 10px;
}

#winner-trophy {
    height: 18px;
}

/* Scramble */

#scramble {
    float: left;
    margin: 40px 210px 20px 20px;
    width: 602px;
}

#scramble h3 {
    margin: 0;
    width: 100%;
}

#scramble ol {
    float: left;
    font-size: 1.25em;
    margin: 20px 0 20px 0;
}

/* Other Tournaments */

#tournament-history {
    border-spacing: 0;
    float: left;
    margin: 30px 0 0 20px;
}

#tournament-history h3 {
    margin: 0;
}

#tournament-history .header td {
	font-weight: bold;
	border-bottom:3px solid black;
}

#tournament-history .header .subscript {
    font-size: 0.75em;
}

#tournament-history .highlighted td {
    background-color: #F37100;
    color: white;
}

#tournament-history td {
    height: 40px;
    text-align: center;
    width: 100px;
}

#tournament-history .name {
    padding-left: 10px;
    text-align: left;
    width: 200px;
}

#tournament-history a {
    color: black;
    text-decoration: none;
}

#tournament-history a:hover {
    text-decoration: underline;
}

#tournament-history .highlighted a {
    color: white;
}

/* Pop-up */

#pop {
    background-color: white;
    border: 10px solid black;
    display: none;
    height: 440px;
    left: 30%;
    position: absolute;
    right: 30%;
    text-align: center;
    top: 180px;
    width: 400px;
}

#pop h3 {
    font-size: 2em;
    margin: 5px 0 20px 0;
}

#pop h4 {
    font-size: 1.5em;
    margin-top: 100px;
}

#pop p {
    margin: 0;
    text-align: center;
    width: 100%;
}

#pop-pin {
    font-size: 1.25em;
    height: 40px;
    margin-top: 20px;
    text-align: center;
    width: 150px;
}

#pop-score {
    font-size: 4em;
    height: 150px;
    text-align: center;
    width: 150px;
}

#pop-buttons {
    display: flex;
    height: 60px;
    justify-content: space-around;
    margin-top: 50px;
    width: 100%;
}

#pop-buttons div {
    color: white;
    cursor: pointer;
    flex-basis: 45%;
    font-size: 2em;
    font-weight: bold;
    height: 100%;
    padding-top: 15px;
}

#pop-cancel {
    background-color: #CC9999;
}

#pop-cancel:hover {
    background-color: #CC5555;
}

#pop-submit {
    background-color: #99CC99;
}

#pop-submit:hover {
    background-color: #55CC55;
}

#success, #error {
    display: none;
}