:root {
  --red: #d5150b;
  --redlight: #d67c77;
  --gray: #eeeeee;
  --gray2: #212121;
  --gray3: #303030;
  --gray4: #424242;
  --gray5: #7e7d7d;
  --green: #407510;
  --green2: #76d51f;
  --white: #ffffff;
  --background: #333333;
  --black: #0c0f11;
}

body {
	font-family: Helvetica, Arial, sans-serif;
	background-color: var(--gray3);
	padding: 0;
	margin: 0;
	height: 100%;
	color: var(--white);
}

a {
	color: var(--redlight);
	text-decoration: none;
}
a.teilnehmerListDetail,
a button {
	color: var(--white);
}
a.matchLink {
	color: var(--white);
}

button,
input[type=submit] {
	border-radius: 5px;
    border: 1px solid var(--red);
    background-color: var(--red);
    color: var(--white);
	padding: 5px 20px;
	font-size: 20px;
	outline: none;
	-webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    margin-right: 5px;
    margin-bottom: 5px;
}
button.button2 {
	background-color: var(--gray4);
}

form {
	padding: 0;
	margin: 0;
}
form#changeSettings {
	display: inline-block;
}

h1, h2, h3 {
	font-weight: normal;
}
h1 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 28px;
}
h1 a {
	color: var(--white)
}
h2.result {
	display: inline-block;
	width: 160px;
	margin-bottom: 10px;
	
}

option.settings1 {
	display: none;
}
img.settings {
    width: 32px;
    vertical-align: bottom;
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
    padding: 6px;
    border-radius: 5px;
    border: none;
    font-size: 20px;
    outline: none;
    width: 100%;
}
textarea {
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
}
input[type="checkbox"].checkboxShow {
    display: inline-block;
}

select.settings {
    background-color: var(--gray3);
    color: var(--white);
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 20px;
    appearance: none;
    cursor: pointer;
    border: none;
    line-height: 23px;
    /*
    * TODO
    * HARD CODED LINK !!!
    */
    background-image: url(/images/settings.png);
    background-repeat: no-repeat;
    background-size: 32px;
    outline: none;
    margin-left: 5px;
    width: 32px;
}

#login input[type="password"],
#login input[type="email"],
#participants input[type="text"],
#password input[type="email"]
{
    width: 400px;
}

#account .accountPaid {
	color: var(--green2);
}
#account .accountUnpaid,
#account .accountUnpaid a {
	color: var(--red);
}
#account .accountTournamentname,
#account .accountTournamentbuttons {
	width: 100%;
	font-size: 20px;
}
#account .accountTournamentbuttons button {
	font-size: 14px;
	margin-top: 10px;
}

#addParticipant input[type="text"],
#addUser input[type="text"],
#addUser input[type="email"] {
	width: 100%;
}
#addParticipant textarea {
	width: 100%;
}
#addParticipant .addParticipantPartList {
	margin-top: 20px;
}
#addParticipant .addParticipantPartList a {
	color: var(--white);
}

.colorNo {
	color: var(--red);
}
.colorYes {
	color: var(--green2);
}

#editMatch .playerTable.grayBoxRow {
	padding: 20px;
	font-size: 20px;
}
#editMatch .matchRoundPairResult {
	padding: 0;
	margin-top: 15px;
}
#editMatch .matchRoundPairName {
	width: calc(100% - 110px);
}
#editMatch h2 {
	width: 260px;
	display: inline-block;
}
#editMatch .timerClock {
	width: calc(100% - 260px);
}
.editMatchName {
	width: 200px;
}

#editTournament input[type="text"],
#editTournament input[type="datetime-local"] {
    padding: 4px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    outline: none;
    width: 500px;
}
#editTournament input[type="datetime-local"] {
    width: 250px;
}
#editTournament input[type=checkbox] {
	display: inline-block;
}
#editTournament textarea {
    border-radius: 5px;
    border: none;
    width: 500px;
}
#editTournament .grayBox {
	width: 550px;
}

.error {
    font-weight: normal;
    color: var(--redlight);
    margin-top: 10px;
}

.grayBox {
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
	border-radius: 5px;
	border: 1px solid var(--gray4);
	margin-bottom: 20px;
	width: 500px;
}
.grayBoxRow {
    font-weight: bold;
    background-color: var(--gray3);
	border-top: 1px solid var(--gray4);
	padding: 10px;
}
.grayBoxRow a {
	color: var(--white);
}
.grayBoxTitle {
    font-weight: normal;
    font-size: 14px;
    background-color: var(--gray4);
	padding: 10px;
	text-transform: uppercase;
}
.grayBoxColumn {
	display: inline-block;
	margin-right: 10px;
}

#header {
	background-color: var(--black);
	padding: 10px;
}
#header img {
	height: 40px;
}
#header .headerMyaccount {
    display: inline-block;
    right: 60px;
    position: absolute;
    margin-top: 3px;
}
#header .headerMyaccountAvatar {
    border: 2px solid var(--red);
    width: 30px;
    height: 30px;
    border-radius: 20px;
    background-color: var(--gray4);
    color: var(--white);
}
#header .headerMyaccountAvatarText {
    margin-top: 6px;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
}

/*--------------------------------------------------------------
## Lifecounter
--------------------------------------------------------------*/
#lifecounter {
	text-align: center;
	font-family: Arial;
	position: relative;
	overflow: hidden;
}
#lifecounter .lifecounter {
	position: relative;
	margin-top: 50px;
}
.lifecounter.lifecounter1 {
    transform: rotate(180deg);
    margin-bottom: 50px;
    margin-top: 20px !important;
}
#lifecounter #counter-label,
#lifecounter #counter-label2 {
	font-size: 220px;
    font-weight: bold;
    margin-bottom: 0;
    margin-top: 0;
}
#lifecounter .lifecounterIncrement,
#lifecounter .lifecounterDecrement {
    position: absolute;
    top: 55px;
    font-size: 50px;
    padding: 60px 120px 60px 120px;
    cursor: pointer;
}
#lifecounter .lifecounterIncrement {
    right: 10px;
    padding-right: 10px;
}
#lifecounter .lifecounterDecrement {
    left: 10px;
    padding-left: 10px;
}
#lifecounter .lifecounterName {
    font-size: 20px;
}
#lifecounter .lifecounterWin,
#lifecounter .lifecounterWinFilled,
#streaming .lifecounterWin,
#streaming .lifecounterWinFilled {
    border: 2px solid var(--gray5);
    height: 12px;
    width: 12px;
    display: inline-block;
    border-radius: 12px;
}
#lifecounter .lifecounterWinFilled,
#streaming .lifecounterWinFilled {
    border-color: var(--red);
    background-color: var(--red);
}

#lifecounterFinish {
	text-align: center;
	padding: 20px;
}
#lifecounterFinish .lifecounterFinishSelect {
    text-align: left;
    margin-left: 40px;
    margin-right: 40px;
}
#lifecounterFinish .lifecounterFinishSelectPlayer {
    font-size: 20px;
    padding: 10px;
}

/*--------------------------------------------------------------
## Match
--------------------------------------------------------------*/
#editMatch .matchRound {
	display: block;
	width: 400px;
	margin-bottom: 20px;
}
#editMatch .matchRoundPairResult {
	vertical-align: top;
}
#editMatch select {
    font-size: 20px;
    width: 60px;
    font-weight: bold;
    background-color: var(--gray4);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 5px;
}

#match .matchFinal {
	display: inline-block;
	width: 33.3%;
	vertical-align: middle;
}
#match .matchFinal.matchFinalTop4 {
	width: 50%;
}
#match .matchFinalTop8.matchFinalCol2 .matchTop:nth-child(2) {
	margin-bottom: 140px;
}
#match .matchRound {
	display: inline-block;
	width: calc(25% - 12px);
}
#match .matchRound.matchTop {
	width: auto;
	display: block;
}
#match select {
    width: 60px;
}
#match .matchRoundPairName select {
    width: auto;
}
#match input[type="text"] {
    width: 100px;
}

.matchFilter {
	display: inline-block;
	width: 280px;
	margin-bottom: 20px;
	margin-top: 10px;
}
.matchFilter button {
	font-size: 14px;
	padding: 5px 10px;
	background-color: var(--gray4);
	border: none;
}
.matchFilter button.matchFilterAllSelected,
.matchFilter button.matchFilterReportedSelected,
.matchFilter button.matchFilterPendingSelected,
.matchFilter button.matchFilterOwnSelected {
	background-color: var(--red);
}

.matchRound {
	margin-right: 10px;
	margin-bottom: 10px;
	background-color: var(--gray4);
}
.matchRound.matchRoundSubmitted {
	background-color: var(--green);
}
.matchRound.alreadyPaired {
	background-color: var(--red);
}
.matchRoundTable {
	padding: 10px;
	text-transform: uppercase;
	font-size: 14px;
}
.matchRoundTableEdit,
.matchRoundTableTitle {
	display: inline-block;
}
.matchRoundTableEdit img {
	width: 15px;
}
.matchRoundTableTitle {
	width: calc(100% - 20px);
}
.matchRoundTableTitle img {
	width: 12px;
	margin-left: 10px;
}
.matchRoundPair.grayBoxRow {
	padding: 0;
}
.matchRoundPair select {
	background-color: var(--gray4);
    padding: 5px;
    border: none;
    border-radius: 5px;
    color: var(--white);
    font-size: 16px;
}
.matchRoundPairDrop .matchRoundPairName,
.matchResultDrop {
    text-decoration: line-through;
    opacity: 0.4;
}
.matchRoundPairResult.matchRoundPairWinner {
	background-color: var(--gray4);
}
.matchRoundPairResult,
.matchRoundPairName {
	display: inline-block;
}
.matchRoundPairName {
	width: calc(100% - 90px);
	padding: 15px;
}
.matchRoundPairDraw .matchRoundPairName {
	padding: 30px 15px;
}
.matchRoundPairResult {
    width: 50px;
    text-align: center;
    background-color: var(--gray4);
    padding: 5px 0;
    border-radius: 5px;
    margin-left: 5px;
}
.matchRoundPairResultBox {
	background-color: var(--gray4);
    padding: 5px !important;
    border: none;
    border-radius: 5px;
    color: var(--white);
    font-size: 16px;
    margin-top: 8px !important;
}
.matchResult {
	background-color: var(--gray3);
	padding: 10px;
    font-size: 14px;
    border-top: 1px solid var(--gray4);
    font-weight: bold;
}
.matchResult:hover,
.matchResult.matchResultSelected {
	background-color: var(--red);
}
.matchResult.matchResultMobile {
	border: none;
}
.matchResult.matchResultMobile:hover {
	background-color: var(--gray3);
}
.matchResultRow {
	display: inline-block;
	margin-right: 10px;
}
.matchResultPlayers {
    font-size: 20px;
    margin-bottom: 10px;
}
.matchResultPlayersResult {
    font-size: 26px;
    margin-bottom: 20px;
}
.matchResultPosition {
	width: 20px;
	text-align: right;
	vertical-align: top;
}
.matchResultList {
	width: calc(33% - 16px);
}
.matchResultList.matchResultListDouble {
	display: inline-block;
	vertical-align: top;
	margin-right: 20px;
}
.matchResultList.matchResultListTop {
	width: 400px;
	margin-bottom: 40px;
}
.matchResultListTop .matchResult {
	font-size: 18px;
}
.matchResultListTop .matchResultPosition {
	width: 50px;
}
.matchResultListTop .matchResultName {
	width: calc(100% - 90px);
}
.matchResultListTop .matchResultRow {
	margin-right: 20px;
}
.matchResultName {
	width: calc(100% - 330px);
}
.matchResultScore {
	width: 20px;
	text-align: center;
}
.matchResultTitle {
	text-transform: uppercase;
    background-color: var(--gray4);
    font-weight: normal;
}
.matchResultTitle:hover {
	background-color: var(--gray4);
}
.matchResultWLT {
	width: 40px;
	text-align: center;
}
.matchResultOMW,
.matchResultGW,
.matchResultOGW {
	width: 60px;
	text-align: center;
}
.matchResultRound {
	width: 40px;
	text-align: right;
}
.matchResultOpponent {
	width: calc(100% - 110px);
}
.matchResultMobile {
	display: none;
}
.matchResultMobile .matchResultOMW,
.matchResultMobile .matchResultGW,
.matchResultMobile .matchResultOGW {
	width: 100px;
	text-align: left;
}

.messageSave {
    color: var(--green2);
    margin-bottom: 20px;
    font-size: 18px;
}
.messageError {
    color: var(--redlight);
    margin-bottom: 20px;
    font-size: 18px;
}

#password input[type="password"],
#password input[type="email"] {
    width: 400px;
}

.pairManualList {
	width: 300px;
}
.pairManualListTitle {
	background-color: var(--gray4);
	padding: 10px;
	text-transform: uppercase;
	font-size: 14px;
}

.playerTable input {
	width: 100%;
}
#player .grayBox {
	width: 500px;
	font-size: 20px;
}
#player .grayBoxRow {
	padding: 20px;
}
#player .grayBoxTitle {
	font-size: 20px;
	padding: 20px;
	text-transform: uppercase;
}
#player .playerCounter button,
#player #counter-value,
#player .playerCounter2 button,
#player #counter-value2 {
	display: inline-block;
	margin: 0;
}
#player .playerCounter button,
#player .playerCounter2 button {
	font-size: 40px;
	width: 100px;
	background: none;
	border: none;
}
#player .playerCounter a {
	color: var(--white);
}
#player .playerDecklist a {
	color: var(--redlight);
}
#player #counter-value,
#player #counter-value2 {
	font-size: 40px;
	width: calc(100% - 200px);
	text-align: center;
}
#player #counter-value {
	transform: rotate(180deg);
}
#player select {
    width: auto;
}

#participants .grayBox {
	width: 500px;
}
#participants .grayBoxRow:hover {
	background-color: var(--red);
}
#participants a{
	color: var(--white);
}
#participants .participantsDecklist a{
	color: var(--green2);
}
#participants .participantsPos {
	width: 25px;
	text-align: right;
	vertical-align: top;
}
#participants .participantsName {
	width: calc(100% - 135px);
}
#participants .participantsPayed,
#participants .participantsPresent,
#participants .participantsDecklist {
	width: 20px;
	text-align: center;
}

#regParticipant {
	width: 500px;
}
#regParticipant input[type="checkbox"] {
	display: inline-block;
}
.regParticipantName input,
.regParticipantEmail input {
	width: 100%;
}


.regParticipantsList {
	width: 600px;
}
.regParticipantsList.regParticipantsListMore {
	width: 760px;
}
.regParticipantsList a {
	color: var(--white);
}
.regParticipantsList .grayBoxRow:hover {
	background-color: var(--red);
}
.regParticipantsListName {
	width: calc(100% - 200px);
}
.regParticipantsListMore .regParticipantsListName {
	width: calc(100% - 410px);
}
.regParticipantsExport {
    border-radius: 5px;
    background-color: var(--gray3);
    color: var(--white);
}
.regParticipantsListFormat {
	width: 90px;
}
.regParticipantsListPayed {
	width: 80px;
}
.regParticipantsListDate {
	width: 100px;
}
.regParticipantsListPresent {
	width: 40px;
}
.regParticipantsListWaitlist {
	width: 40px;
}
.regParticipantWinner {
    font-size: 60px;
    margin-bottom: 40px;
    font-weight: bold;
}

#streaming {
	text-align: center;
	padding-bottom: 10px;
}
#streaming .streamingTournament {
	font-size: 60px;
	font-weight: bold;
}
#streaming .streamingRound {
	font-size: 80px;
	text-transform: uppercase;
	font-weight: bold;
}
#streaming #timerClock {
	font-size: 100px;
	height: 200px;
	margin-right: 0;
	height: auto;
}
#streaming .streamingDeck {
	font-size: 25px;
	color: var(--gray5);
	text-align: left;
	text-transform: uppercase;
}
#streaming .streamingName {
	font-size: 35px;
	text-transform: uppercase;
	text-align: left;
}
#streaming .streamingLife {
	font-size: 60px;
}
#streaming .lifecounterWin,
#streaming .lifecounterWinFilled {
    border: 3px solid var(--gray5);
    height: 16px;
    width: 16px;
    display: inline-block;
    border-radius: 16px;
}
#streaming .lifecounterWinFilled {
    border-color: var(--red);
}
#streaming .lifecounterWinFirst {
    margin-left: 15px;
}

#timer select {
	background-color: var(--gray4);
    color: var(--white);
    border: none;
    font-size: 40px;
    width: auto;
}
#timer .grayBox {
	font-size: 40px;
	width: 250px;
}
#timerClock {
	display: inline-block;
	font-size: 150px;
	margin-right: 10px;
	min-height: 55px;
	min-width: 10px;
}
.timerClock {
	display: inline-block;
	text-align: right;
	width: calc(100% - 160px);
	height: 100px;
}
.timerClock img {
	display: inline-block;
	width: 52px;
	margin-right: 10px;
}
.timerClockLink {
	color: var(--white);
}

/*--------------------------------------------------------------
## Tournaments
--------------------------------------------------------------*/
/*
* TODO
* Hard coded link!!!
*/
.tournamentsBanner {
	background-image: url(/images/banner.jpg);
	background-position: 50%;
	min-height: 300px;
}
.tournamentsBannerLogo1 {
    text-align: center;
    padding-top: 40px;
}
.tournamentsBannerLogo2 {
    text-align: center;
    padding-top: 20px;
    font-size: 50px;
}
.tournamentsColumnDate,
.tournamentsColumnName,
.tournamentsColumnEdit,
.tournamentsColumnDelete {
	vertical-align: top;
}
.tournamentsColumnName {
	width: calc(100% - 240px);
}
.tournamentsColumnEdit {
	width: 40px;
	text-align: center;
}
.tournamentsColumnDelete {
	width: 60px;
	text-align: center;
}
.tournamentsList a {
	color: var(--white);
}
.tournamentsList img {
	height: 15px;
}
.tournamentsList .grayBox {
	width: 800px;
	margin-bottom: 30px;
}
.tournamentsList .grayBoxRow:hover {
	background-color: var(--red);
}
.tournamentsColumnDate {
	width: 100px;
}

.tutorialVideo {
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 25px;
	height: 0;
	margin-top: 20px;
}
.tutorialVideo iframe { 
	position: absolute; 
	top: 0; 
	left: 0;
}

#users .grayBox {
	width: 100%;
}
#users .grayBoxColumn {
	width: calc(25% - 10px);
}
#users input[type="text"] {
    width: 400px;
}

select.selectRound {
    background-color: var(--gray3);
    border: none;
    color: var(--white);
    font-size: 24px;
}
.selectTournamentTitle {
    padding: 20px 0 0 20px;
    text-transform: uppercase;
    font-size: 12px;
}

#sidebarMenu select {
    background-color: var(--gray3);
    color: var(--white);
    border-radius: 5px;
    border: none;
    padding: 10px 5px;
    font-size: 16px;
    margin-left: 15px;
    margin-top: 5px;
    outline: none;
    margin-bottom: 5px;
}

#timer img {
	width: 50px;
	margin-right: 10px;
}
#timer #timerClock {
	font-size: 200px;
	padding: 20px 0;
}

.wrapper {
	padding: 10px;
}

@media only screen and (min-width: 1280px) {
	.matchResultList {
	    width: calc(50% - 22px);
	}
}
@media only screen and (min-width: 1500px) {
	#match .matchRound {
		width: calc(20% - 14px);
	}
}
@media only screen and (min-width: 1800px) {
	#match .matchRound {
		width: calc(14.2% - 14px);
	}
	.matchResultList {
	    width: calc(33% - 16px);
	}
}
@media only screen and (min-width: 2100px) {
	.matchResultList {
        width: calc(25% - 24px);
    }
}
@media only screen and (min-width: 2200px) {
	#match .matchRound {
		width: calc(12.5% - 14px);
	}
}
@media only screen and (min-width: 2500px) {
	#match .matchRound {
		width: calc(11.1% - 14px);
	}
}
@media only screen and (min-width: 2800px) {
	#match .matchRound {
		width: calc(10% - 14px);
	}
}
@media only screen and (min-width: 3200px) {
	#match .matchRound {
		width: calc(8.3% - 14px);
	}
}

@media only screen and (max-width: 1000px) {
	#match .matchRound {
		width: calc(33% - 12px);
	}
	
	.tournamentsList .grayBox {
		width: 100%;
	}
}
@media only screen and (max-width: 800px) {
	#login input[type="password"],
	#login input[type="email"],
	#participants input[type="text"],
	#password input[type="email"],
	#users input[type="text"] {
	    width: 100%;
	}
	
	#match .matchRound {
		width: calc(50% - 12px);
	}
	.regParticipantsList {
		width: 100%;
	}
	
	.timerClock {
		height: auto;
	}
}
@media only screen and (max-width: 600px) {
	.grayBox,
	#editTournament .grayBox,
	#player .grayBox {
		width: 100%;
	}
	#editMatch .matchRound,
	#match .matchRound {
		width: 100%;
		margin-right: auto;
	}
	#match .matchFinal,
	#match .matchFinal.matchFinalTop4,
	#match .matchFinal.matchFinalTop8 {
		width: 100%;
		display: block;
	}
	
	#editTournament input[type="text"],
	#editTournament input[type="datetime-local"] {
	    width: 100%;
	}
	#editTournament textarea {
	    width: 100%;
	}
	
	.matchResultList,
	.matchResultList.matchResultListTop {
		width: 100%;
	}
	.matchResultName {
		width: calc(100% - 120px);
	}
	.matchResultMobile {
		display: block;
		padding: 0 10px 10px 10px;
	}
	.matchResultOMW,
	.matchResultGW,
	.matchResultOGW {
		display: none;
	}
	.matchResultMobile .matchResultOMW,
	.matchResultMobile .matchResultGW,
	.matchResultMobile .matchResultOGW {
		display: inline-block;
		width: calc(33% - 19px);
		font-weight: normal;
		font-size: 12px;
	}
	
	#participants .grayBox,
	#participants input,
	#participants button {
	    width: 100%;
	}
	#participants button.particpantsButtonAdd {
		width: auto;
	}
	#participants input[type=text] {
	    margin-bottom: 5px;
	}
	
	#regParticipant,
	#regParticipant input {
		width: 100%;
	}
	
	.teilnehmerList {
		font-size: 12px;
	}
	.teilnehmerListName {
		width: 40%;
	}
	.teilnehmerListFormat {
		width: 20%;
	}
	
	#timer img {
		width: 30px;
		margin-right: 10px;
	}
	#timer #timerClock {
		font-size: 100px;
	}
	
	#timerClock {
		font-size: 40px;
		margin-right: auto;
		min-height: 35px;
	}
	.timerClock img {
		width: 22px;
	}
	
	.tournamentsBanner {
		min-height: 215px;
		background-size: 250%;
	}
	.tournamentsBannerLogo1 img {
	    width: 300px;
	}
	.tournamentsBannerLogo2 {
	    font-size: 35px;
	}
	.tournamentsColumnDate {
	    width: 80px;
	}
	.tournamentsColumnName {
	    width: calc(100% - 170px);
	}
	.tournamentsList .tournamentsColumnEdit,
	.tournamentsList .tournamentsColumnDelete {
		width: 30px;
	}
	.tournamentsList .tournamentsColumnDelete {
		margin-right: auto;
	}
	.tournamentsList .grayBoxTitle .tournamentsColumnEdit,
	.tournamentsList .grayBoxTitle .tournamentsColumnDelete {
		display: none;
	}
	
	.tutorialVideo iframe {
		width: 100%; 
		height: 100%;
	}
}