* {
	box-sizing: border-box;
	/* font-size: 12px; */
	font-family: Tahoma, sans-serif;
}
html, body {
	width: 100%;
	height: 100%;
	-webkit-appearance:none;
}
body {
	overflow-y: scroll;
	margin: 0px;
	background-image: url("../img/background.jpg");
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center;
	background-size: cover;
}
.main_box {
	background-color: rgba(255,255,255,0.5);
	/* border-radius: 5px; */
	border-style: solid;
	border-width: 0px 2px;
	border-color: rgba(0,0,0,1);
	padding: 5px;
	margin: auto;
	width: 50%;
	min-height: 100%;
	min-width: 580px;
	overflow: hidden;
}
.header {
	height: 200px;
	background-image: url("../img/logo.png");
	background-repeat: no-repeat;
	background-attachement: fixed;
	background-position: center center;
	background-size: 600px 200px;
	position: relative;
}
.content {
	width: 100%;
	min-height: 50%;
}
h1 {
	text-align: center;
}
input, select {
	border: none;
}
option:checked {
	font-weight: bold;
}
input:invalid {
	background-color: lightpink;
}

/* Table Classes */
table {
	padding: 0px;
	margin: 0px;
	width: 100%;
	/* background: rgba(255,255,255,0.5); */
	background: linear-gradient( rgba(255,255,255,0.8), rgba(255,255,255,0.2) );
	clear: both;
}
th {
	text-align: left;
}
td {
	/* border: 1px solid rgba(0,0,0,1); */
}
table table {
	background: none;
}
.table {
	display: table;
	/* background: rgba(255,255,255,0.5); */
	background: linear-gradient( rgba(255,255,255,0.8), rgba(255,255,255,0.2) );
	width: 100%;
	/* border-collapse: collapse; */
}
.tr {
	display: table-row;
	width: auto;
}
.td, .th {
	display: table-cell;
	width: auto;
	padding: 2px;
}
.th {
	font-weight: bold;
}
.login {
	margin: 15% auto;
	padding: 2%;
	width: 0%;
}

/* Participants Table Special */ 
.group_table {
	display: table;
	width: 100%;
	height: 10px;
	margin: auto;
}
.group_tr {
	display: table;
	margin: 1px;
	/* background: rgba(255,255,255,0.5); */
	background: linear-gradient( rgba(255,255,255,0.8), rgba(255,255,255,0.2) );
}
.group_td {
	display: table;
}
.participants .group_tr {
	float: left;
	width: 100%;
	// min-width: 200px;
	// width: calc((100%/4) - 2px);
}
.participants:has(> :last-child:nth-child(2)) .group_tr {
	width: calc((100%/2) - 2px);
}
.participants:has(> :last-child:nth-child(4)) .group_tr {
	width: calc((100%/4) - 2px);
}
.participants:has(> :last-child:nth-child(6)) .group_tr {
	width: calc((100%/3) - 2px);
}
.participants:has(> :last-child:nth-child(8)) .group_tr {
	width: calc((100%/4) - 2px);
}
.participants:has(> :last-child:nth-child(12)) .group_tr {
	width: calc((100%/4) - 2px);
}

/*
.participants .group_tr:first-child:nth-last-child(4), .participants .group_tr:first-child:nth-last-child(4) ~ div {
	width: calc((100%/4) - 2px);
}
.participants .group_tr:first-child:nth-last-child(6), .participants .group_tr:first-child:nth-last-child(6) ~ div {
	width: calc((100%/6) - 2px);
}
.participants .group_tr:first-child:nth-last-child(8), .participants .group_tr:first-child:nth-last-child(8) ~ div {
	width: calc((100%/8) - 2px);
}
*/

.group_th {
	font-weight: bold;
	padding-left: 2px;
}
.group_td {
	padding-left: 2px;
}

/* Specials */
.games .th, .games .td {
	float: left;
	width: calc((100%/7) - 2px);
}
input.tipp {
	width: 18px;
	text-align: center;
}
.flags {
	height: 14px;
	margin: 0 2px;
}
.result {
	font-weight: bold;
	color: grey;
}
.win, .success {
	color: green;
}
.loss, .error {
	color: red;
}
.draw {
	color: blue;
}

/* ADMIN SHEET */
.gamedate {
	width: 180px;
}
select.admin_setup_select {
	width: 120px;
}
.admin_group {
	width: 100%;
}

/* Buttons & Links */
a, button {
	display: inline-block;
	width: 100%;
	background-color: rgba(0,0,0,0.5);
	color: white;
	text-decoration: none;
	font-weight: bold;
	padding: 5px;
	margin: 1px 0px;
	border: none;
	cursor: pointer;
	border-radius: 5px;
}
a:hover, button:hover {
	background-color: rgba(0,0,0,0.8);
}
a.mail_link {
	display: inline;
	padding: 0px 5px;
	margin: auto;
}
button.champ_btn {
	display: inline;
	padding: 2px;
	margin: 0px 5px;
	width: auto;
}

/* Mobile & Small Screens */
/* @media screen and (max-device-width: 480px) */
@media only screen and (max-width: 768px) {
	/* body {
		font-size: 10px;
	}
	table {
		font-size: 9px;
	} */
	/* td img {
		vertical-align: middle;
	} */
	.header {
		height: 120px;
		background-size: 360px 120px;
	}
	.main_box {
		width: 98%;
		min-width: auto;
	}
	/* .participants .group_tr {
		min-width: 80px;
		// width: calc((100%/4) - 2px);
	}
	.participants .group_tr:first-child:nth-last-child(4), .participants .group_tr:first-child:nth-last-child(4) ~ div {
		width: calc((100%/4) - 2px);
	}
	.participants .group_tr:first-child:nth-last-child(6), .participants .group_tr:first-child:nth-last-child(6) ~ div {
		width: calc((100%/6) - 2px);
	}
	.participants .group_tr:first-child:nth-last-child(8), .participants .group_tr:first-child:nth-last-child(8) ~ div {
		width: calc((100%/8) - 2px);
	} */
	/* .group_td img {
		vertical-align: middle;
	} */
	/* input.tipp {
		font-size: 9px;
		width: 12px;
	} */
	td.game_date {
		font-size: 8px;
	}
}
:root {
  color-scheme: light;
}