/* ----------------------------  Basic styles  ----------------------------- */

h1 {
    color: #004499;
    font-size: 20pt;
    font-family: Arial,Helvetica,Verdana;
    text-align: center;
    padding: 9px 9px;
}

h2 {
    color: #004499;
    font-size: 18pt;
    font-family: Arial,Helvetica,Verdana;
    text-align: center;
    padding: 6px 6px;
}

h3 {
    color: #0077FF;
    font-size: 16pt;
    font-family: Arial,Helvetica,Verdana;
    text-align: center;
    padding: 3px 3px;
}

h4 {
    color: #0077FF;
    font-size: 14pt;
    font-family: Arial,Helvetica,Verdana;
    text-align: center;
    padding: 3px 3px;
}

html, body {
    font-size: 11pt;
    font-family: Arial,Helvetica,Verdana;
    background-image: url('background.png');
    background-repeat: repeat;
    background-position: center top;
}

p {
    font-size: 11pt;
    font-family: Arial,Helvetica,Verdana;
    text-align: left;
}

.notes {
    font-size: 11pt;
    font-family: Arial,Helvetica,Verdana;
    text-align: left;
}
table {
    color: #666666;
    font-size: 11pt;
    font-family: Arial,Helvetica,Verdana;
}

a {
    color: #000099;
    font-weight: bold;
    text-decoration: none;
    font-size: 11pt;
    font-family: Arial,Helvetica,Verdana;
}

    a:hover {
        color: #0000CC;
        font-weight: bold;
        text-decoration: none;
        font-size: 11pt;
        font-family: Arial,Helvetica,Verdana;
    }

    a:active {
        color: silver;
        font-weight: bold;
        text-decoration: none;
        font-size: 11pt;
        font-family: Arial,Helvetica,Verdana;
    }

/* ------------------------- sections -------------------------------- */

.wrapper800 {
    /* background-color: dodgerblue; */
    display: block;
    width: 800px;
    padding: 6px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-right: auto;
    margin-left: auto;
}

.wrapper600 {
    /* background-color: dodgerblue; */
    display: block;
    width: 600px;
    padding: 6px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-right: auto;
    margin-left: auto;
}

.wrapper400 {
    /* background-color: dodgerblue; */
    display: block;
    width: 400px;
    padding: 6px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-right: auto;
    margin-left: auto;
}

/* top row with clubname and logo*/

.row_top {
    display: inline-block;
    /* background-color: #eeeeff; */
    width: 400px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-right: 50px;
    margin-left: 50px;
    vertical-align: middle;
}

.clubname {
    display: inline;
    float: left;
    max-width: 300px;
    color: #004499;
    vertical-align: middle;
    font-size: 22pt;
    font-weight: bold;
    font-family: Arial,Helvetica,Verdana;
    padding: 8px;
    vertical-align: middle;
    margin-left: 10px;
    margin-right: auto;
}

.logopic {
    display: inline;
    float: right;
    min-width: 100px;
    color: #004499;
    vertical-align: middle;
    padding: 8px;
    margin-left: auto;
    margin-right: 10px;
}

/* by default we will show title and logo and the button for the score at the bottom of the page  */
#content-desktop {
    display: block;
}

#content-mobile {
    display: none;
}

/* but for smaller screens we will make the top and the bottom of the page smaller */
@media only screen and (max-height: 700px) {

    #content-desktop {
        display: none;
    }

    #content-mobile {
        display: block;
    }
}

/* ------------------------------  menu  ------------------------------ */

.menubar {
    /* background-color: yellow; */
    display: block;
    /* geen width want die hangt af van het aantal items, die stellen we in HTML */
    padding: 4px;
    margin-top: 0px;
    margin-bottom: 10px;
    margin-right: auto;
    margin-left: auto;
}

.menuitem {
    /* background-color: orange; */
    display: inline-block;
    padding: 4px;
    text-align: center;
    vertical-align: top;
}

    .menuitem.light a {
        background-color: white;
        color: #0077FF;
        padding: 4px 6px;
    }
    .menuitem.light b {
        background-color: #0077FF;
        color: white;
        padding: 4px 6px;
    }
    .menuitem.light i {
        background-color: #CCCCCC;
        color: gray;
        padding: 4px 6px;
    }
    .menuitem.dark a {
        background-color: black;
        color: silver;
        padding: 4px 6px;
    }
    .menuitem.dark b {
        background-color: silver;
        color: black;
        padding: 4px 6px;
    }
    .menuitem.dark i {
        background-color: #333333;
        color: gray;
        padding: 4px 6px;
    }

/* ------------------------------  presence  ------------------------------ */

.playerpresenceitem {
    float: left;
    width: 150px;
    height: 40px;
    padding: 6px;
    margin: 6px;
    vertical-align: middle;
    display: inline-block;
    border-style: solid;
    border-width: 1px;
    border-color: silver;
    background: white;
}

.playerslider {
    display: inline-block;
}

/* ------------------------------  scores  ------------------------------ */

/* row with player names and indicator which player starts the leg */
.row_start {
    display: block;
    top: 0px;
    /*background-color: #ebc8c8; */
    padding: 0px;
    height: 40px;
}

.playername {
    font-size: 16pt;
    font-weight: bold;
    font-family: Arial,Helvetica,Verdana;
    padding: 0px;
}

/* row with legs won and scores for each player */
.row_main {
    padding: 0px;
    /* background-color: #f3f6b7; */
    color: #0000CC;
    flex: 1 1 auto;
}

.legswon {
    font-size: 16pt;
    font-weight: bold;
    font-family: Arial,Helvetica,Verdana;
    padding: 0px;
}

/* score table, by default we show medium amount of rows*/
div.scrollscores {
    margin: 4px, 4px;
    padding: 4px;
    background-color: white;
    top: 0px;
    width: 280px;
    max-height: 100px; /* ca 3 rijen excl logo = 3x 33 */
    overflow-x: hidden;
    overflow-x: auto;
    overflow-y: scroll;
    text-align: justify;
    display: flex;
    flex-direction: column-reverse;
}

/* bigger screens we show more rows*/
@media only screen and (min-height: 790px) {
    div.scrollscores {
        max-height: 200px; 
    }
}

/* bigger screens we show more rows*/
@media only screen and (min-height: 1000px) {
    div.scrollscores {
        max-height: 300px; 
    }
}






.scoretable tr td {
    text-align: center;
    height: 30px;
}
/*  scoretable has two rows for player1 */
.scoretable tr td:nth-child(2) {
    background: #EEEEFF;
    min-width: 50px;
}

.scoretable tr td:nth-child(3) {
    background: #CCCCFF;
    min-width: 50px;
}
/*  and also 2 columns vor player 2 */
.scoretable tr td:nth-child(5) {
    background: #FFEEEE;
    min-width: 50px;
}

.scoretable tr td:nth-child(6) {
    background: #FFCCCC;
    min-width: 50px;
}

/* row to show points left for each player to finish */
.row_finish {
    display: block;
    padding: 10px 0px 20px;
    /*background-color: #cfed9e;*/
    height: 64px;
}

.finishhint {
    font-size: 11pt;
    font-weight: normal;
    font-family: Arial,Helvetica,Verdana;
    padding: 0px;
}
/* the points left if the player is NOT on a finish */
.scoreleft {
    background-color: white;
    color: black;
    font-size: 24pt;
    font-weight: bold;
    font-family: Arial,Helvetica,Verdana;
    padding: 5px;
}
/* the points left if the player IS on a finish (highlight points left) */
.finishleft {
    background-color: yellow;
    color: black;
    border: 1px;
    font-size: 32pt;
    font-weight: bold;
    font-family: Arial,Helvetica,Verdana;
    padding: 5px;
}

/* the row with the form and input elements to add a score OR statistics */
.row_entry {
    display: block;
    bottom: 0px;
    /*background-color: #cba5f1; */
    padding: 0px;
    flex: 0 1 300px;
}

.newscorelabel {
    font-size: 16pt;
    font-weight: bold;
    color: black;
    font-family: Arial,Helvetica,Verdana;
    padding: 15px;
}

.newleftlabel {
    font-size: 16pt;
    font-weight: bold;
    color: red;
    font-family: Arial,Helvetica,Verdana;
    padding: 15px;
}

/* ------------------------- tables --------------------------- */

.filtercombo {
    font-size: 13pt;
    /* font-weight: bold; */
    font-family: Arial,Helvetica,Verdana;
    padding: 0px;
}

/* tables with statistic data */
.statstable {
    font-family: arial, sans-serif;
    border-collapse: collapse;
}

    .statstable th {
        border: 1px solid #eeeeff;
        background-color: #000099;
        border: 1px solid silver;
        color: white;
        padding: 10px;
    }

    .statstable td {
        border: 1px solid silver;
        padding: 10px;
    }

    .statstable tr:nth-child(even) {
        background-color: #eeeeff;
    }

/* tables on the index page containing games to be played or selected */
.gamestable {
    font-family: arial, sans-serif;
    /* border-collapse: collapse; */
}

    .gamestable th {
        border: 1px solid #eeeeff;
        background-color: #000099;
        border: 1px solid silver;
        color: white;
        padding: 12px;
    }

    .gamestable td {
        border: 1px solid silver;
        padding: 12px;
    }

    .gamestable tr:nth-child(odd) {
        background-color: #eeeeff;
    }

/* tables holding switches listing players */
.switchtable {
    font-family: arial, sans-serif;
    border-collapse: collapse;
}

    .switchtable th {
        border: 1px solid #eee;
        background-color: #333;
        color: white;
        padding: 12px;
    }

    .switchtable td {
        border: 1px solid #eeeeff;
        padding: 12px;
    }

    .switchtable tr:nth-child(odd) {
        background-color: #eeeeee;
    }

/* -------- the parent class for sliderblack en sliderredgreen ------------ */

.switch {
    position: relative;
    display: inline-block;
    width: 44px; /* 60px; */
    height: 17px; /* 34px */
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* ------------ sliderblack is black and blue, gray when disabled ------------ */

.sliderblack {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333; /* black */
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 17px;
}

    .sliderblack:before {
        position: absolute;
        content: "";
        height: 13px;
        width: 13px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 50%;
    }

input[disabled][checked] + .sliderblack {
    background-color: darkgray;
}

input:disabled + .sliderblack {
    background-color: gray;
}

input:checked + .sliderblack {
    background-color: #0077FF; /* blue */
}

input:focus + .sliderblack {
    box-shadow: 0 0 1px #0077FF; /* blue */
}

input:checked + .sliderblack:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* -------- sliderredgreen is red and green, gray when disabled ------------ */

.sliderredgreen {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #C00; /* red */
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 17px;
}

    .sliderredgreen:before {
        position: absolute;
        content: "";
        height: 13px;
        width: 13px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 50%;
    }

input[disabled][checked] + .sliderredgreen {
    background-color: darkgray;
}

input:disabled + .sliderredgreen {
    background-color: gray;
}

input:checked + .sliderredgreen {
    background-color: #0C0; /* green */
}

input:focus + .sliderredgreen {
    box-shadow: 0 0 1px #0C0; /* green */
}

input:checked + .sliderredgreen:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* --------------------- trianglegreen --------------------------------- */

/* hide checkbox itself */
.trianglegreen input[type=checkbox] {
    display: none;
}
    /* configure appearance  */
    .trianglegreen input[type=checkbox] + label {
        display: inline-block;
        cursor: pointer;
        box-sizing: border-box;
        width: 32px;
        height: 16px;
        margin: 0px;
        background: transparent;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }
/* color when unchecked */
.trianglegreen input[type="checkbox"]:not(:checked) + label {
    border-left: 20px solid #999999; /* gray */
}
/* color when checked */
.trianglegreen input[type="checkbox"]:checked + label {
    border-left: 20px solid #00CC00; /*  green */
}

/* --------------------- trianglered --------------------------------- */

/* hide checkbox itself */
.trianglered input[type=checkbox] {
    display: none;
}
    /* configure appearance  */
    .trianglered input[type=checkbox] + label {
        display: inline-block;
        cursor: pointer;
        box-sizing: border-box;
        width: 32px;
        height: 16px;
        margin: 0px;
        background: transparent;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
    }
/* color when unchecked */
.trianglered input[type="checkbox"]:not(:checked) + label {
    border-right: 20px solid #999999; /* gray */
}
/* color when checked */
.trianglered input[type="checkbox"]:checked + label {
    border-right: 20px solid #ff0000; /*  red */
}

/* ---------------------------- submenus ----------------------------- */

.competitionmenu {
    background-color: #eeeeff;
    color: black;
    border: 1px;
    font-size: 16pt;
    font-weight: bold;
    font-family: Arial,Helvetica,Verdana;
    padding: 3px;
}

/* ----------------------- blink for click on demo ----------------------- */

.blink_text {
    animation: 1s blinker linear infinite;
    -webkit-animation: 1s blinker linear infinite;
    -moz-animation: 1s blinker linear infinite;
    animation-duration: 2s;
    text-align: center;
    /* color: red; */
}

@-moz-keyframes blinker {
    0% {
        opacity: 1.0;
    }

    50% {
        opacity: 0.0;
    }

    100% {
        opacity: 1.0;
    }
}

@-webkit-keyframes blinker {
    0% {
        opacity: 1.0;
    }

    50% {
        opacity: 0.0;
    }

    100% {
        opacity: 1.0;
    }
}

@keyframes blinker {
    0% {
        opacity: 1.0;
    }

    50% {
        opacity: 0.0;
    }

    100% {
        opacity: 1.0;
    }
}

/* ------------------------------  buttons  ------------------------------ */

/* base button throughout the application */

.ns_button {
    border: none;
    min-height: 50px;
    min-width: 100px; 
    padding: 15px 32px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
}

.ns_darkblue {
    background-color: #000066;
    color: silver;
}

.ns_blue {
    background-color: #004499;
    color: white;
}

    .ns_blue:hover {
        background-color: #44A3F1;
        color: white;
    }

.ns_darkred {
    background-color: #660000;
    color: silver;
}

.ns_red {
    background-color: darkred;
    color: white;
}

    .ns_red:hover {
        background-color: red;
        color: white;
    }

.ns_darkyellow {
    background-color: darkorange;
    color: silver;
}

.ns_yellow {
    background-color: gold;
    color: black;
}

    .ns_yellow:hover {
        background-color: yellow;
        color: black;
    }

.ns_darkgreen {
    background-color: #006600;
    color: silver;
}

.ns_green {
    background-color: darkgreen;
    color: white;
}

    .ns_green:hover {
        background-color: #00cc00;
        color: white;
    }

.scorebutton {
    background-color: #DDDDDD;
    border: 1px solid #666666;
    border-radius: 6px;
    color: #666666;
    padding: 15px 25px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
}


/* ------------------- steps menu for creating a new tournament -------------------*/

ol.progtrckr {
    display: table;
    list-style-type: none;
    margin: 0;
    padding: 0;
    table-layout: fixed;
    width: 100%;
}

    ol.progtrckr li {
        display: table-cell;
        font-size: 10pt;
        text-align: center;
        line-height: 3em;
    }

    ol.progtrckr[data-progtrckr-steps="2"] li {
        width: 49%;
    }

    ol.progtrckr[data-progtrckr-steps="3"] li {
        width: 33%;
    }

    ol.progtrckr[data-progtrckr-steps="4"] li {
        width: 24%;
    }

    ol.progtrckr[data-progtrckr-steps="5"] li {
        width: 19%;
    }

    ol.progtrckr[data-progtrckr-steps="6"] li {
        width: 16%;
    }

    ol.progtrckr[data-progtrckr-steps="7"] li {
        width: 14%;
    }

    ol.progtrckr[data-progtrckr-steps="8"] li {
        width: 12%;
    }

    ol.progtrckr[data-progtrckr-steps="9"] li {
        width: 11%;
    }

    ol.progtrckr li.progtrckr-done {
        color: black;
        border-bottom: 4px solid darkblue;
    }

    ol.progtrckr li.progtrckr-current {
        color: black;
        border-bottom: 4px solid blue;
    }

    ol.progtrckr li.progtrckr-todo {
        color: silver;
        border-bottom: 4px solid silver;
    }

    ol.progtrckr li:after {
        content: "\00a0\00a0";
    }

    ol.progtrckr li:before {
        position: relative;
        bottom: -2.5em;
        float: left;
        left: 50%;
        line-height: 1em;
    }

    ol.progtrckr li.progtrckr-done:before {
        content: "\2714";
        color: white;
        background-color: darkblue;
        height: 1.2em;
        width: 1.2em;
        line-height: 1.2em;
        border: none;
        border-radius: 1.2em;
    }

    ol.progtrckr li.progtrckr-current:before {
        content: "\2688"; /* \2688 \039F \2716"; */
        color: blue;
        /* background-color: white; */
        font-size: 1.5em;
        bottom: -1.6em;
    }

    ol.progtrckr li.progtrckr-todo:before {
        content: "\2688"; /* \2688 = X, \039F \2716"; */
        color: silver;
        /* background-color: white; */
        font-size: 1.5em;
        bottom: -1.6em;
    }

/* -------------------------  footer  ---------------------------- */

.footer {
    background-color: white;
    padding: 4px 6px;
}

    .footer a {
        color: gray;
        font-size: 9pt;
        font-family: Arial,Helvetica,Verdana;
        padding: 0px;
    }