/**
 * Globals
 */

* {
	zoom: 1.0;
	box-sizing: border-box;
	max-width: 100%;
	font-family: Arial, sans-serif;
}

html {
	font-size: 15px;
}

body {
	padding: 0;
	margin: 0;
	min-width: 320px;
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0px;
	line-height: 1em;
	margin-bottom: 1em;
	font-weight: 400;
}

p {
	margin-top: 0;
	margin-bottom: 1rem;
}
p strong {
}
p:last-child {
	margin-bottom: 0;
}

img {
	border: 0px none;
}

a {
	outline: none;
	text-decoration: none;
}
a img {
	border: 0px none;
}
a:hover img {
}
button {
	cursor: pointer;
}

.clear {
	display: table;
	clear: both;
}

.clearfix:after {
	content: "";
	display: table;
	clear: both;
}

main {
	overflow-x: auto;
}

.wrapper {
	width: 1000px;
	margin: 0 auto;
	padding: 15px;
}


/**
 * Header
 */
.site-header {
	background-color: #ffd230;
	color: #000;
}
.site-header > .wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 15px;
	row-gap: 5px;
}
.site-header__logo {
	font-size: 60px;
	font-family: "Tourney", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	font-variation-settings:
		"wdth" 100;
}
.site-header__logo-link {
	color: #000 !important;
	font-family: inherit;
}
.site-header__sponsorship {
	font-size: 18px;
}


/**
 * Nav
 */
 .site-nav {
	background-color: #121212;
	color: #fff;
	margin-bottom: 30px;
}
.site-nav > .wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: start;
	padding-top: 0;
	padding-bottom: 0;
}
.site-nav__link {
	color: #fff;
	border-right: #5a5a5a 1px solid;
	padding: 15px 10px;
}
.site-nav__link:last-of-type {
	border-right: 0 none;
}
.site-nav__link.current,
.site-nav__link:hover {
	padding-bottom: 10px;
	border-bottom: #ffd230 5px solid;
}


/**
 * Tables
 */
table {
	border-collapse: collapse;
	margin-bottom: 45px;
}
thead {
	background-color:  #f7f7f5;
}
th {
	border-bottom: 1px solid #dbdbdb;
	padding: 16px 16px 4px 16px;
	vertical-align: top;
	text-align: left;
	font-weight: bold;
}
table.sortable th {
	cursor: pointer;
}
td {
	border-bottom: 1px solid #ededed;
	padding: 8px 16px;
	vertical-align: top;
	text-align: left;
}

td a {
	color: #000;
}
td a:hover {
	text-decoration: underline;
}

tr.status--c td {
	font-weight: bold;
	background-color: #44c424;
	color: #fff;
}
tr.status--c td a,
tr.status--c td .points-gained,
tr.status--c .rank-change.fa-chevron-up {
	color: #fff !important;
}

td.team,
td.entrant,
td.points {
	font-weight: bold;
}
td.entrant a:hover {
	text-decoration: none;
}
td.entrant a:hover span {
	text-decoration: underline;
}
td.no-score {
	background-color:  #f7f7f5;
	cursor: pointer;
}
td.score {
	font-weight: bold;
	background-color: #dbdbdb;
	text-align: center;
	cursor: pointer;
}
td.score span.aet {
	font-size: 80%;
}

tr.fixture-guesses-container {
	display: none;
}
tr.fixture-guesses-container > td {
	padding: 8px 8px 32px 8px;
}

table.fixture-guesses-table {
	width: 100%;
	margin-bottom: 15px;
}
td.guess .guess-flex {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	column-gap: 5px;
}
td.guess .predicted-score {
	white-space: nowrap;
}
td.correct-score {
	font-weight: bold;
	background-color: #44c424;
	color: #fff;
}
td.correct-result {
	font-weight: bold;
	background-color:#5a5a5a;
	color: #fff;
}
.rank-change {
	margin-left: 5px;
}
.rank-change.fa-chevron-up {
	color: #44c424;
}
.rank-change.fa-chevron-down {
	color: #d00;
}
.points-gained {
	color: #44c424;
	font-size: 90%;
}
.points-gained i.fa {
	font-size: 80%;
}


/**
 * Forms
 */
label {
	cursor: pointer;
}
input[type="checkbox"],
input[type="radio"] {
	display: inline-block;
	vertical-align: middle;
	margin: 0 10px 3px 0;
	cursor: pointer;
}
.radio-button:not(:last-of-type) {
	margin-bottom: 10px;
}


/**
 * Specific date form
 */
form.specific-date-form {
	display: flex;
	flex-direction: row;
	margin-bottom: 30px;
}
form.specific-date-form select:not(:first-child) {
	margin-left:  30px;
}
.as-it-stood {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-left:  30px;
}
.as-it-stood input {
	margin: 0 5px 0 0;
}


/**
 * Homepage
 */
.homepage {
	text-align: center;
}
.homepage-news {
	margin: 0 auto 60px;
}
.homepage-news h1 {
	text-transform: uppercase;
	font-weight: 800;
}
.homepage-news img {
	display: block;
	margin: 0 auto;
}
.homepage-chris-sutton {
	margin: 0 auto 60px auto;
}
.homepage-chris-sutton img {
	display: block;
	margin: 0 auto;
}
.homepage-hotpots {
	margin: 0 auto 60px auto;
}
.homepage-hotpots iframe {
	margin: 0 auto 0 auto;
}
#cheddira {
	border: 5px solid #DE0000;
	padding: 30px;

}
#celebrate {
	width: 800px;
}
#celebrate h1 {
	font-size: 60px;
	margin-bottom: 15px;
}
@media screen and (max-width: 700px) {
	#celebrate h1 {
		font-size: 40px;
	}
}
#celebrate img {
	width: 100%;
}



/**
 * Admin
 */
main.admin {
	padding: 30px;
}
p.add-score-fixture {
	margin-bottom: 30px;
}
label.add-score-label {
	display: inline-block;
	vertical-align: middle;
	min-width: 100px;
}
label.add-score-label--home {
	text-align: left;
	margin-right: 5px;
}
label.add-score-label--away {
	text-align: right;
	margin-left: 5px;
}
p.add-score-fixture input {
	display: inline-block;
	vertical-align: middle;
	width: 50px;
}
input.add-guess-score {
	width: 100px;
}
span.add-score-meta {
	display: inline-block;
	vertical-align: middle;
	width: 250px;
	margin-left: 15px;
	text-align: right;
}


/**
 * Stats
 */
.stats-page-selector {
	margin-bottom: 30px;
}
.points-progress {
	width: 970px;
	max-width: 970px;
	margin-bottom: 60px;
}
.guess-distribution th {
	white-space: nowrap;
}
.guess-distribution td.boring::after,
.guess-distribution td.variety::after {
	content: "%";
}
.stats-filter-form {
	margin-bottom: 30px;
}
.guess-distribution-filter-form {
	margin-bottom: 20px;
}
.guess-distribution-filter {
	display: inline-block;
	white-space: nowrap;
	margin-bottom: 10px;
}
.guess-distribution-filter:not(:last-child) {
	margin-right:  30px;
}
.guess-distribution-filter input {
	margin-right: 5px;
}



/**
 * Awards
 */
h1.awards-title {
	width: 1600px;
	margin: 0 auto 30px;
	font-family: 'Forum', cursive;
	color: #d4af37;
	text-shadow: 1px 1px 5px #403511;
	text-transform: uppercase;
	font-size: 60px;
	font-weight: 900;
}
.awards {
	width: 1600px;
	min-width: 430px;
	margin: 0 auto;
	background-image: url('../../assets/images/worms-sports.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	padding: 50px;
}
.awards-table-wrapper {
	position: relative;
	width: 1300px;
	margin: 0 auto;
}
.awards-table-wrapper::before {
	content: " ";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: #fff;
	opacity: 0.9;
}
table.awards-table {
	position: relative;
	width: 100%;
	font-size: 20px;
	color: #000;
	margin-bottom: 0;
}
table.awards-table th,
table.awards-table td {
	border-bottom: 1px solid #fff;
}
table.awards-table td {
	padding: 32px 16px
}
table.awards-table td.award {
	font-family: 'Forum', cursive;
	text-transform: uppercase;
	font-weight: 900;
}
table.awards-table td.notes {
	width: 45%;
}
@media screen and (max-width: 700px) {
	h1.awards-title {
		font-size: 40px;
	}
	.awards {
		padding: 15px;
	}
}
@media screen and (max-width: 500px) {
	table.awards-table {
		font-size: 16px;
	}
	table.awards-table th,
	table.awards-table td {
		padding-left: 8px;
		padding-right: 8px
	}
}
