* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #ffffff;
    color: #575757;
    font-family: 'Coda', 'Arial', sans-serif;
    font-weight: 400;
    font-size: 20px;
    text-rendering: optimizeLegibility;
    overflow-y: scroll;
}

.row {
    max-width: 1140px;
    margin: 0 auto;
}

section h3,
section h4 {
    margin-top: 30px;
}

section p {
    margin-top: 10px;
}

section table {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 30px;
}

section#rulebook table th,
section#rulebook table td {
    text-align: center;
    width: 90px;
}

section#rulebook table th:nth-child(1),
section#rulebook table td:nth-child(1) {
    text-align: center;
    width: 96px;
}

section#rulebook table th:nth-child(2),
section#rulebook table td:nth-child(2) {
    text-align: center;
    width: 140px;
}

section:last-child {
    margin-bottom: 100px;
}

header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(img/backgammon.png);
    background-size: cover;
    background-position: center;
    height: 100vh;
}

.header-text-box {
    position: absolute;
    width: 100%;
    max-width: 1140px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.header-text-box a {
    color: #989898;
}

.main-nav {
    float: right;
    list-style: none;
    margin-top: 55px;
}

.no-bg-img-nav {
    background: linear-gradient(#000000,#767676);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1;
}

.title-as-logo {
    display: inline-block;
    color: #ffffff;
    margin-top: 25px;
    font-size: 144%;
    
}

.main-nav li {
    display: inline-block;
    margin-left: 40px;
}

.main-nav li a:link,
.main-nav li a:visited {
    padding: 0;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 90%;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.2s;
}

.main-nav li a:hover,
.main-nav li a:active {
    border-bottom: 2px solid #989898;
}

section a:link,
section a:visited,
section a:hover,
section a:active {
    color: #000000;
}

section#rulebook hr {
    margin-top: 30px;
}

section#results table,
section#insights table {
    margin: 0px auto;
    border-collapse: collapse;
    border: rgba(0,0,0,0);
}

#insights .finishedMatchPercentage {
    width: 1000px;
    margin: 0px auto;
}

#insights .expMW {
    width: 1100px;
    margin: 0px auto;
}

#insights .expMW .tooltip {	
    position: absolute;			
    text-align: center;			
    width: auto;					
    height: auto;					
    padding: 2px;				
    font-size: 18px;
    color: #fff;		
    background: #000;	
    border: 0px;		
    border-radius: 0px;			
    pointer-events: none;			
}
#insights .expMW .tick line {
    stroke: #333;
}

#insights .expMW .tick text {
    font-size: 12px;
    fill: #666;
}

.classificationTable tr,
.teamDuelTable tr {
    background-color: #ddd;
    border-bottom: 3px #fff;
}

.classificationTable td,
.teamDuelTable td {
    width: 125px;
    text-align: center;
}

.classificationTable td:first-child,
.teamDuelTable td:first-child {
    width: 60px;
}


#results .teama,
#insights .teama {
    background: linear-gradient(to right, #dc143c, #ddd);
    /*background-color: #dc143c;*/
    color: #fff;
}

#results .cell_result.teama {
    background: linear-gradient(to right, #dc143c, rgba(0,0,0,0), rgba(0,0,0,0), #dc143c);
}

#results .teamb,
#insights .teamb {
    background: linear-gradient(to right, #f58031, #ddd);
    /*background-color: #f58031;*/
    color: #fff;
}

#results .cell_result.teamb {
    background: linear-gradient(to right, #f58031, rgba(0,0,0,0), rgba(0,0,0,0), #f58031);
}

#results .teamc,
#insights .teamc {
    background: linear-gradient(to right, #ffd300, #ddd);
    /*background-color: #ffd300;*/
    color: #fff;
}

#results .cell_result.teamc {
    background: linear-gradient(to right, #ffd300, rgba(0,0,0,0), rgba(0,0,0,0), #ffd300);
}

#results .teamd,
#insights .teamd {
    background: linear-gradient(to right, #b2e52c, #ddd);
    /*background-color: #b2e52c;*/
    color: #fff;
}

#results .cell_result.teamd {
    background: linear-gradient(to right, #b2e52c, rgba(0,0,0,0), rgba(0,0,0,0), #b2e52c);
}

#results .teame,
#insights .teame {
    background: linear-gradient(to right, #16b078, #ddd);
    /*background-color: #16b078;*/
    color: #fff;
}

#results .cell_result.teame {
    background: linear-gradient(to right, #16b078, rgba(0,0,0,0), rgba(0,0,0,0), #16b078);
}

#results .teamf,
#insights .teamf {
    background: linear-gradient(to right, #1550ad, #ddd);
    /*background-color: #1550ad;*/
    color: #fff;
}

#results .cell_result.teamf {
    background: linear-gradient(to right, #1550ad, rgba(0,0,0,0), rgba(0,0,0,0), #1550ad);
}

#results .teamg,
#insights .teamg {
    background: linear-gradient(to right, #7c3092, #ddd);
    /*background-color: #7c3092;*/
    color: #fff;
}

#results .cell_result.teamg {
    background: linear-gradient(to right, #7c3092, rgba(0,0,0,0), rgba(0,0,0,0), #7c3092);
}

#results .teamh,
#insights .teamh {
    background: linear-gradient(to right, #dc20a6, #ddd);
    /*background-color: #dc20a6;*/
    color: #fff;
}

#results .cell_result.teamh {
    background: linear-gradient(to right, #dc20a6, rgba(0,0,0,0), rgba(0,0,0,0), #dc20a6);
}

#results .result_light {
    color: #aaa;
}

.grandResultTable tr {
    background-color: #ddd;
    border-bottom: 3px #fff;
    transition: background-color 0.3s;
}

.grandResultTable tr:hover td.cell_player_name, 
.grandResultTable tr:hover td.cell_result {
    background-color: #555 !important;
    color: #fff;
    transition: background-color 0.3s;
}

.grandResultTable tr:hover td[rowspan]:hover ~ td
{
    background-color: #ddd !important;
    color: #575757;
}

.grandResultTable tr:hover td[rowspan]:hover ~ td a
{
    color: #767676;
}

.grandResultTable tr:hover a
{
    color: #ffffff;
}

.grandResultTable td.cell_vert_team,
.teamDuelTable td.cell_vert_team {
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    width: 1.5em;
}

.grandResultTable td.cell_vert_team div.rotwrap div.textcon,
.teamDuelTable td.cell_vert_team div.rotwrap div.textcon {
    transform: rotate(270deg);
    margin-left: -10em;
    margin-right: -10em;
}

.grandResultTable td.cell_player_name {
    width: auto;
    text-align: left;
}

.grandResultTable td.cell_result {
    width: 100px;
    text-align: center;
}

.table-title {
    margin-top: 30px;
    font-size: 180%;
    text-align: center;
}

.centered {
    margin: 0px auto;
    text-align: center;
    color: #aaa;
}

.grandResultTable a:link,
.grandResultTable a:visited,
.grandResultTable a:hover,
.grandResultTable a:active {
    color: #767676;
}

.playerListDiv summary:focus {
    outline: none;
    background-color: #cccccc;
}

#insights .expMW svg g text {
    pointer-events: none;
}
