html {
	height: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0px;
	font: -apple-system-body;
	font-family: -apple-system-font, "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
	/*font-size: 17px;
	line-height: 21px;*/
	min-height: 95%;
	position: relative;
}

main {
	margin-top: 20px;
	padding-bottom:100px;
}

footer {
	font: -apple-system-footnote;
	width: 100%;
	height: 25px;
	text-align: center;
	position: sticky;
	position: absolute;
	bottom:0;
	padding-bottom: 50px; /* height of navigation */
	z-index: 1;
}

footer a {
	color: #818181;
}

.long {
	color: #53f950;
}

.medium {
	color: #fea805;
}

.short {
	color: #ff5358;
}

/* errors & messages */
.notice {
	display: table;
	min-width: 60%;
	margin: 5%;
	width: 90%;
}

.notice span {
	display: table-cell;
	color: #818181;
	font-size: 25px;
	font-weight: 200;
	text-align: center;
	height: 45vh;
	line-height: 30px;
	vertical-align: middle;
}


h1.kopf {
	position: fixed;
	height: 44px;
	color: #ffffff;
	width: 100%;
	text-align: center;
	background-color: #442277;
	margin: 0 0 35px;
	font-family: -apple-system-font;
	font-size: 17px;
	font-weight: bold;
	line-height: 44px;
	z-index: 10;
}

h2 {
	font: -apple-system-headline;
}

/* @group Head */

#head {
	height: 20px;
	width: 100%;
	background-color: #442277;
	position: fixed;
	top: 0px;
	z-index: 9;
	
	color: #442277;
	font-size: 1px;
}

/* @end */

/* @group Matchday Select */

#matchdaySelect {
	font-family: -apple-system-font;
	font-size: 17px;
	font-weight: bold;
	appearance: none;
	-webkit-appearance: none;
	border: none;
	color: #ffffff;
	cursor: pointer;
	margin-top: 10px;
	margin-bottom: 10px;
	text-align: center;
	background-color: inherit;
}

#matchdayForm {
	display: inline-block;
}

.centerContainer {
	position: fixed;
	width: 100%;
	text-align: center;
	background-color: #442277;
	margin-bottom: 10px;
	z-index: 8;
}

.shadowCenterContainer {
	height: 50px;
}

.centerContainer h2 {
	margin: 0px;
}

.centerContainer a {
	color: #ffffff;
	font-size: 25px;
}

.arrow {
	fill: #ffffff;
}

/* @end */


/* @group Links */

a {
	text-decoration: none;
	color: #442277;
}

a img {
	vertical-align: middle;
}

a span {
	vertical-align: middle;
}

/* @end */

/* @group Navigation */

nav {
	background-color: #f8f8f8;
	text-align: justify;
	font-size: 0.1px; /* IE 9/10 don't like font-size: 0; */
	height: 44px;
	padding-top: 5px;
	padding-left: 5%;
	padding-right: 5%;
	line-height: 15px;
	
	position: fixed;
	bottom: 0px;
	width: 90%;
	
	z-index: 2;
}

nav:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 0px;
    border-top: 1px #b6b6b6 solid;
    content: "";
    transform: scale(0.5);
    -webkit-transform: scale(0.5);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
}

nav:after {
  content: '';
  width: 100%; /* Ensures there are at least 2 lines of text, so justification works */
  display: inline-block;
}

nav a {
	display: inline-block;
	font-size: 11px;
	color: #959595;
	text-align: center;
}

nav a:hover
{
	text-decoration: none;
}

nav a.active {
	pointer-events: none;
	cursor: default;
	color: #442277;
}

/* @end */

/* @group Login */

#formboxcontainer {
	text-align: center;
	width: 100%;
	margin: auto;
	margin-top: 0px;
	padding-top: 0px;
}

.formbox {
	padding-left: 20px;
	text-align: left;
}

/*#formboxcontainer h1 {
	margin-top: 10px;
}*/

#formboxcontainer input[type="text"], #formboxcontainer input[type="password"], #formboxcontainer input[type="email"] {
	background-color: #f0f0f0;
	
	font-size: inherit;
	font-weight: lighter;
	
	appearance: none;
	-webkit-appearance: none;
	border-radius: 0px;
	width: 90%;
	border: none;
	height: 30px;
	padding: 0 0 0 10%;
	margin-bottom: 4px;
}

#formboxcontainer input[type="checkbox"] {
	margin-top: 13px;
}

#formboxcontainer input[type="submit"] {
	font-size: inherit;
	
	/*
	appearance: none;
	-webkit-appearance: none;
	border: none;
	background-color: transparent;
	color: #008df6;
	cursor: pointer;
	*/
}

#registerLink {
	font-weight: bold;
}

/* @end */

/* @group Tipping */

#tipping {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
}

#tipping input[type="number"] {
	max-width: 40px;
}

#tipping tbody td {
	border-bottom: 1px solid #eee;
	padding-bottom: 3px;
}

#tipping tbody td, #tipping tfoot td {
	padding-top: 3px;
}

.teamCol {
	font: -apple-system-caption1;
	/*font-size: 12px;*/
	vertical-align: top;
}

.imgContainer {
	display: inline-block;
	width: 36px;
	height: 42px;
	line-height: 42px;
}

.teamCol img {
	max-height: 36px;
	max-width: 42px;
	vertical-align: middle;
}

.otCol {
	white-space: nowrap;
}

@media screen and (max-width: 480px) {
	.tendency { 
		display: none;
	}
}

@media screen and (min-width: 481px) {
	.tendency { 
		display: table-cell;
	}
}

.tendencybarA, .tendencybarB {
	height: 6px;
	float: left;
}

.tendencybarA {
	background-color: #442277;
}

.tendencybarB {
	background-color: #fea805;
}

#tipConfirmation {
	color: #ffffff;
	border-radius: 8px;
	padding-left: 2px;
	padding-right: 2px;
}

.tip_unsaved {
	background-color: #ff5358;
}

.tip_saved {
	background-color: #53f950;
}

.scoreColumn input {
	text-align: center;
}

/* @end */

/* @group Tips & Tipping */

#tipsArea {
	margin-left: 5px;
	margin-right: 5px;
}

.scoreColumn {
	text-align: center;
	white-space: nowrap;
}

#sum {
	border-top: 3px double black;
	text-align: right;
}

/* @end */

/* @group Tips */

#tipsTable {
	width: 100%;
	font-size: 10px;
	border-collapse: collapse;
}

.pointColumn {
	text-align: right;
	white-space: nowrap;
}
/* @end */

/* @group Groups */

#groupSelect {
	padding-left: 5px;
	margin-bottom: 10px;
	overflow-x: scroll;
	white-space: nowrap;
}

a.active {
	pointer-events: none;
	cursor: default;
}

a.active div.circle {
}

.circleLink {
	padding-right: 10px;
}

.circleLink span {
	line-height: 26px;
}

.circle {
	vertical-align: middle;
	display: inline-block;
	border-radius: 50%;
	width: 26px;
	height: 26px; 
	margin-right: 5px;
	background-color: #442277;
}

#selectionMarker {
	background-color: #fff;
	margin: 7px;
	border-radius: 6px;
	width: 12px;
	height: 12px;
}

.newCircle { 
	vertical-align: middle;
	display: inline-block;
	width: 26px;
	height: 26px;
	margin-right: 5px;
}

/* Change Interface */

.colorOption {
	display: inline-block;
	border-radius: 10px;
	width: 20px;
	height: 20px;
	margin: 6px;
	vertical-align: middle;
	
}

.colorSelected {
	border-radius: 12px;
	margin: 6px 4px 6px;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #777;
	
}

.group {
	line-height: 16pt;
	background-color: #f0f0f0;
	width: -moz-calc(100% - 30px);
	width: -webkit-calc(100% - 30px);
	width: -o-calc(100% - 30px);
	width: calc(100% - 30px);
	margin: 5px;
	padding: 10px;
}


/* @end */

/* @group Standings */

table#standings {
	border-collapse: collapse;
	width: 100%;
	text-align: center;
}

table#standings th {
	background-color: #f0f0f0;
}

table#standings tbody tr:nth-of-type(even) {
	background-color: #f0f0f0;
}

#standings .name {
	text-align: left;
	padding-left: 5%;
}

#standings .position, #standings .preposition {
	width: 1px;
	white-space: nowrap;
	text-align: right;
}

#standings .preposition {
	color: gray;
}

#standings thead tr {
	position: sticky;
	position: -webkit-sticky;
	top: 62px;
	z-index: 1;
}

.highlighted {
	background-color: #442277 !important;
	color: white;
}
.highlighted .preposition {
	color: #dfdfdf !important;
}

.maxPoints {
	color: #fea805;
}

/* @end */

/* @group Segmented Control */

.segmented {
	margin: 0;
	margin-bottom: 10px;
	padding: 0px;
	list-style-type: none;
	text-align: center;
}
.segmented li {
	display: inline-block;
	text-align: center;
	
	border-top: 1px solid #442277;
	border-bottom: 1px solid #442277;
	
	border-left: 1px solid #442277;
	padding: 5px 10px;
	margin: 0px;
}

.segmented li:first-child {
	border-radius: 0.5em 0 0 0.5em;
}

.segmented li:last-child {
	border-right: 1px solid #442277;
	border-radius: 0 0.5em 0.5em 0;
}

.segmented li.selected {
	background-color: #442277;
	color: white;
}

/* @end */

/* @group Startpage */

/*#leftcolumn {
	float: left;
	width: 65%;
}

#rightcolumn {
	float: right;
	width: 35%;
}*/

#leftcolumn article {
	text-align: justify;
}

#leftcolumn h1 {
	font: -apple-system-headline;
	margin-top: 10px;
	margin-bottom: 5px;
}

#leftcolumn article {
	padding: 10px;
}

#leftcolumn article p {
	padding-bottom: 0px;
}

#leftcolumn figure {
	margin: 0px;
	width: 100%;
	height: 200px;
	background-color: #f0f0f0;
}

#nextMatchdays {
	padding: 5px;
	padding-left: 10px;	
	/*background-color: #f0f0f0;*/
}

#nextMatchdays ul {
	list-style-type: none;
	padding:0; 
	margin:0;
}

#nextMatchdays li {
	padding-left: 0.8em; 
	text-indent: -0.8em;
}

#nextMatchdays li:before {
	display: inline-block;
	text-align: right;
	width: 0.8em;
	content: '';
}

li.checked:before {	
	content: '\2713' !important;
}

h2 {
	font: -apple-system-headline;
	margin-top: 5px;
	margin-bottom: 5px;
}

#teamstandings {
	padding: 10px;
}

#teamstandings table {
	width: 100%;
	border-collapse: collapse;
}

#teamstandings caption {
	text-align: left;
	font-weight: bold;
}

/* @end */

/* @group Bracket */
.bracketcontainer {
	white-space: nowrap;
	overflow-x: scroll;
	text-align: left;
}

.bracketcontainer h2 {
	margin-left: 10px;
}

div.bracket  {
	margin-left: 10px;
	margin-right: 10px;
	font: -apple-system-caption1;
	direction: rtl;
	display: inline-block;
}

.matchbox {
	display: inline-table;
	padding: 0px;
	margin: 0px;
	border-collapse: collapse;
	border: 1px solid #000000;
	height: 60px;
	width: 180px;
	direction: ltr;
	text-align: left;
	vertical-align: middle;
}

.matchbox td {
	border: 1px solid #000000;
	padding: 4px;
	margin: 0px;
}

.matchbox tr td:nth-child(2) {
	text-align: center;
	width: 20px;
}

.bracker {
	/*height: 68px;*/
	width: 10px;
	display: inline-block;
	border: 1px solid #000000;
	border-left: none;
	vertical-align: middle;
	margin-top: -1px; /*fix strange offset*/
}

.brackline {
	display: inline-block; 
	width: 10px; 
	vertical-align: middle;
	border-top: 1px solid #000000;
	border-bottom: none;
	height: 1px;
}

.bracket ul {
	list-style: none;
	display: inline-block;
	vertical-align: middle;
	padding: 0px;
	margin: 0px;
}

.bracket li {
	padding: 0px;
	margin: 0px;
}

.leaf {
	margin-top: 5px !important;
	margin-bottom: 5px !important;
}

.bracket span {
	border: 1px solid #000000;
	vertical-align: middle;
}

/* @end */

/* @group Impressum */

#impressum {
	padding-top: 10px;
	padding-left: 8vw;
}

#impressum dd {
	/*margin-left: 44vw;*/
	margin-left: 55px;
}

#impressum dt {
	display: block;
	float: left;
	width: 55px; 
	text-align: right;
	margin-right: 10px;
}

/* @end */

/* @group Hilfe */

#help {
	padding: 10px 10px 0;
}

#help h2 {
	margin-top: 2em;
}

/* @end */

.clear {
    clear: both;
}

.crossTable {
	border-collapse: collapse;
}

.crossTable td, .crossTable th {
	border: 1px solid #aaa;
	padding: 3px;
	text-align: center;
}