/* =Reset
-------------------------------------------------------------- */
 
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-top: 0;
}
 
@font-face {
    font-family: "Lato";
    src: 
      local("Lato"),
      url("https://dartagnan.live/static/fonts/Lato-Regular.ttf");
}
@font-face {
    font-family: "Lato";
    src: 
      local("Lato"),
      url("https://dartagnan.live/static/fonts/Lato-Bold.ttf");
    font-weight: bold;
}
@font-face {
    font-family: "Lato";
    src: 
      local("Lato"),
      url("https://dartagnan.live/static/fonts/Lato-Italic.ttf");
    font-style: italic;
}
 
html,
body,
div{
    margin: 0;
    padding: 0;
}

html,body {
    height: 100%;
}

html {
    background-color: #000000;
    font-family: "Lato", "Arial", Sans;
}


/* Background
-------------------------------------------------------------- */

#backImg {
    width: 100%;
    height: 100%;
    background-color: #000000;
    background-size:cover;
    background-repeat:no-repeat;
    background-position: top center;
    position: fixed;
    z-index: -10;
}

/* Colors and Formatting
-------------------------------------------------------------- */

a {
    color: #FFF;
    text-decoration: none;
/*    text-underline: none;	*/
} 

#header{
    background: rgb(84,158,0);
}
 
#main{
}

#primary {
}
 
#secondary {
    border: 1px solid rgb(84,158,0);
    background: rgb(84,158,0); 
}

#footer{
    background: rgb(84,158,0);
}

.center-head, .center-main, .center-foot {
    color: #ffffff;
/*    font-family:Arial, Helvetica, Sans;   */
}

.center-head, .center-foot {
    background-color: rgba(30,60,0,0.85);
}

.center-main {
    background-color: rgba(20,40,0,0.89);
}

.message {
    background-color: rgb(84,158,0);
    padding: 1em;
    margin-bottom: 2em;
    font-weight: bold;
    text-align: center;
}

.site-title-tourn {
    font-size: 200%;
}

.site-title-comp {
    font-size: 150%;
}


div.hoverBox:hover
{
    background-color: #a0a0a0;
}


div.sidebarElem .hoverBox:hover,
div.sidebarElem.hoverBox:hover,
div.compBox.hoverBox:hover {
    background-color: rgba(55,107,0,1);
}

div.sidebarElem .hoverGroup:hover,
div.sidebarElem.hoverGroup:hover {
    background-color: rgba(55,107,0,0.5);
}



table.simple {
    empty-cells: show;
    border-collapse: separate;
    border-spacing: 1px 1px;
    margin-top: 0.5em;
    word-wrap: break-word;
}

table.lists {
    empty-cells: show;
    border-collapse: separate;
    border-spacing: 0px 1px;
    margin-top: 0.5em;
    width: 100%;
    word-wrap: break-word;
}

table.pool {
    empty-cells: show;
    border-collapse: separate;
    border-spacing: 0px 1px;
    margin-top: 0;
    width: 100%;
    word-wrap: break-word;
}

table.pool-matchlist,
table.tableau-matchlist {
    empty-cells: show;
    border-collapse: collapse;
    border-spacing: 1px 1px;
    margin-top: 0;
    width: 100%;
    word-wrap: break-word;
    cursor: auto;
}

table.pool-heading {
    empty-cells: show;
    border-collapse: separate;
    border-spacing: 0px 0px; 
    width: 100%;
    word-wrap: break-word;
    color: white;
}

th {
    font-weight: bold;
    padding: 0.5em;
    vertical-align: top;
}

th.title {
    text-align: left;
    color: white;
    background: #646464;
    padding: 0.5em;
}

th.won, th.lost {
    background: #646464;
}

th.pool, td.pool, th.pool-heading {
    text-align: center;
    color: white;
    background: #646464;
    position: relative;
    font-weight: bold;
}


th.pres {
    text-align: center;
    color: white;
    background: #646464;
    position: relative;
    font-weight: bold;
}

td.pres {
    text-align: center;
}

tr {
    vertical-align:middle;
    height: 2.2em;
    color: black;
}

table.pool-heading tr {
    color: white;
    background: #646464;
    height: 1.5em;
}


table.lists tr:nth-child(even):hover,
table.pool tr:nth-child(even) > td.linkBox:hover,
table.pool-matchlist tr:nth-child(even) > td.linkBox:hover,
table.tableau-matchlist tr:nth-child(even) > td.linkBox:hover {
    background-color: #a8a8a8;
}

table.lists tr:nth-child(odd):hover,
table.pool tr:nth-child(odd) > td.linkBox:hover,
table.pool-matchlist tr:nth-child(odd) > td.linkBox:hover,
table.tableau-matchlist tr:nth-child(odd) > td.linkBox:hover {
    background-color: #a0a0a0;
}





/*
tr:nth-child(even) {
    background: #b4b4b4
}

tr:nth-child(odd) {
    background: #a0a0a0
}
*/

tr:nth-child(even) {
    background: #d0d0d0
}

tr:nth-child(odd) {
    background: #b8b8b8
}


td, td.linkBox {
    padding: 0.0em 0.5em;
}

th.pool, td.pool, td.full, td.live, td.won, td.lost, td.lead, td.behind, td.draw {
    border-left: 1px solid #112300;
}

td.result-live, td.result-won, td.result-lost, td.result-normal {

}


table.pool th {

}

td.full {
    background-color:#646464;
}

.res {
    position: absolute;
    top: 0px;
    right: 0;
    width: 2.5em;
    height: 2.2em;
    vertical-align: middle;
    line-height: 2.2em;
    text-align: center;
}

.normal {
    color: #000;
    vertical-align: middle;
    text-align: center;
}


.live {
    color: #fff;
    font-style: italic;
    vertical-align: middle;
    text-align: center;
}

.won {
    color: #008000;
    font-weight: bold;
    vertical-align: middle;
    text-align: center;    
}

.lost {
    color: #cc0000;
    font-weight: bold;
    vertical-align: middle;
    text-align: center;
}

.lead {
    color: #008000;
    vertical-align: middle;
    text-align: center;
}

.trail {
    color: #cc0000;
    vertical-align: middle;
    text-align: center;
}

.draw {
    color: #000;
    vertical-align: middle;
    text-align: center;
}

.rLight {
    background-color: #f00;
    color: #fff;
}

.gLight {
    background-color: #0f0;
    color: #000;
}

.wLight {
    background-color: #fff;
    color: #000;
}

.rwLight {
    background: #f00; /* For browsers that don't support gradients */
    color: #000;
    background: linear-gradient(135deg, white 0%, 50%, #f00 50% 100%);
}

.gwLight {
    background: #0f0; /* For browsers that don't support gradients */
    color: #000;
    background: linear-gradient(135deg, white 0%, 50%, #0f0 50% 100%);
}

table.pool-matchlist .name,
table.tableau-matchlist .name {
    color: #000;
    font-weight: normal;
    text-align: center;
}


table.pool-matchlist .name.won,
table.tableau-matchlist .name.won {
    font-weight: bold;
}

table.pool-matchlist .index.linkBox,
table.tableau-matchlist .index.linkBox {
    background: url(../res/link.png) no-repeat right;
    background-size: 0.8em;
    background-origin: content-box;
}

table.tableau-matchlist td.name {
    width: 40%;
}
table.tableau-matchlist td.result {
    width: 10%;
}
table.tableau-matchlist td {
    border-left: 1px solid #112300;
}

details table tr td.index {
    width: 10%;
}

details table tr td.name {
    width: 35%;
}

details table tr td.result {
    width: 10%;
}



td.live, td.won, td.lost {

}

th.pool + th.pres, td.pool + td.pres, td.live + td.pres, td.lost + td.pres, td.won + td.pres, td.full + td.pres {
    border-left: 1px solid #112300;
}


img.flag{
    max-height: 2em;
    max-width: 3em;
    margin: auto;
    display: block;
}

img.flaginline {
    max-height: 1em;
    max-width: 1.5em;
    margin: auto;
}

.match .flag img,
.tm-lineup .flag img,
img.flagmatch {
    max-height: 1.6em;
    max-width: 2.7em;
    margin: auto;
    display: block;
}

img.smallflag0 {
    max-height: 1.5em;
    max-width: 2.25em;
    vertical-align: middle;
    margin: 1px;
    margin-right: 0.3em;
    display: block;
    float:right;
    display: inline-block;
    background: black;
    padding: 0;
    opacity: 0.5;
    text-align: center;
    
}

img.smallflag0:hover {
    opacity: 1;
}

img.smallflag1 {
    max-height: 1.5em;
    max-width: 2.25em;
    margin: 1px;
    margin-right: 0.3em;
    display: block;
    float:right;
    display: inline-block;
    background: black;
    padding: 0;
    opacity: 1;  
}


div.languages {
    overflow: hidden;
    vertical-align: middle;
    position: relative;
}

img.presence {
    vertical-align: middle;
    max-height: 1.5em;
    max-width: 1.5em;
}

div.title-comp {
    font-size: 150%;
    padding-bottom: 1.6em;
    display: inline-block;
}

div.title-phase {
    font-size: 150%;
    padding-bottom: 1.6em;
    display: inline-block;
}

div.title-list {
    font-size: 130%;
    padding-bottom: 0.2em;
    display: inline-block;
}

div.active0 {

}

div.active1 {
    font-weight: bold;
    background-color: rgba(55,107,0,0.85);
}

div.active1 {
    font-weight: bold;
    background-color: rgba(55,107,0,0.7);
}

div.active2 {
    font-weight: bold;
}

div.scrollable {
    overflow: auto;
}

div.sidebarElem {
    overflow: hidden;
}

div.logoBox {
    background-color: rgba(255,255,255,1.0);
    padding-left: 0.3em;
    padding-right: 0.3em;
    margin-top: 0.6em;
}

div.logoEntry {
    padding-top: 0.3em;
    padding-bottom: 0.3em;
}

.match .info,
.matchInfo {
    color: white;
    background: #646464;
    font-weight: bold;
    display: flex;
    height: 1.2em;
    border: 1px solid #000;
    border-top: none;
    padding-left: 0.5em;
}

.match .info .piste,
.matchInfo .piste {
    white-space: nowrap; 
    margin: 0.0em 0.5em; 
    overflow:hidden; 
    width: 15%;
}

.match .info .start,
.matchInfo .start {
    white-space: nowrap; 
    margin: 0.0em 0.5em; 
    overflow:hidden; 
    width: 15%;
}

.match .info .referee
.matchInfo .referee {
    white-space: nowrap; 
    margin: 0.0em 0.5em; 
    overflow:hidden;
}




/* Structure
-------------------------------------------------------------- */

#wrap {
    min-height: 100%;
}

#main {
    overflow:auto;

    width: 100%;
    top: 0px;
    margin-bottom: 3em;
}  /* must be same height as the footer */

#header {
    max-height: 6.9em;
    min-height: 6.9em;
    width: 100%;
} 
 
#footer {
    height: 3em;
    width: 100%;
    margin-top: -3em;
} 

/*Opera Fix*/
body:before {
    content:"";
    height:100%;
    float:left;
    width:0;
    margin-top:-32767px;
}

.center-foot, .center-head, .center-main{
    max-width: min(81em,1240px);
    margin: 0 auto;
    padding: min(1em,16px);
}

.center-head {
    max-height: 6.9em;
    min-height: 6.9em;
}

.center-main{
    min-height: 31.4em;
}

.center-foot{
    min-height: 100%;
}
 
.center-head:after, .center-main:after, .center-foot:after {
    content: "";
    display: table;
    clear: both;
}
 
#primary{
    margin: 0 auto;
    min-height: 100%;
}
 
#secondary{
    width: 100%;
    margin: 0 auto;
    padding: min(1em,16px);
    margin-bottom: 1.25em;
}

div.sidebarSubElem {

}

.compBox {
    margin-bottom: 0.6em;
    padding-bottom: 0.6em;
    background: rgb(38,74,0);
}

.site-title-tourn {
    margin-bottom: 0.5em;
}

.site-title-comp {
    float: left;
}

details {
    width: 100%;
    color: white;
    background: #646464;
    height: 2em;
    padding: 0.5em 0.5em;
    margin: 0.0em;
    cursor: pointer;
}

details[open] {
    width: 100%;
    color: white;
    background: #646464;
    height: 100%;
}



/* Links
-------------------------------------------------------------- */
.linkBox, .linkBoxSimple {
    position: relative;
}

.linkBox {
    padding: 0.5em;
}

.match .name .linkBox {
    padding: 0.0em;
}

tr div.linkBox {
    padding: 0.0em;
    width: 100%;
    height: 2.2em;
    line-height: 2.2em;
    overflow: hidden;
}

.linkBox a, .linkBoxSimple a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-decoration: none;
    z-index: 10; 

    /* Fix to make div clickable in IE */
    background-color: #FFF; 
    opacity: 0;
    filter: alpha(opacity=1);
}

img.linkPic {
    max-height: 0.8em;
    max-width: 0.8em;
    margin-left: 0.5em;
}






/* Direct elimination */

div.title-tableauA {
    font-size: 130%;
    margin-bottom: 0.5em;
    height: 2.2em;
    text-align: center;
    line-height: 1.0em;
}

div.title-matchGroup {
    font-size: 130%;
    height: 2em;
    text-align: center;
    vertical-align: bottom;
    display: table-cell;
    width: 25em;
}

div.title-tableauB {
    font-size: 130%;
    margin-bottom: 0.5em;
    height: 2.2em;
    text-align: center;

    line-height: 1.0em;
}

div.title-tableauBwD {
    font-size: 130%;
    margin-bottom: 0.5em;
    margin-left: 100px;
    height: 2.2em;
    text-align: center;

    line-height: 1.0em;
}

div.title-tableauC {
    font-size: 130%;
    margin-bottom: 0.5em;
    height: 2.2em;
    text-align: center;

    line-height: 1.0em;
}

div.title-tableauCwD {
    font-size: 130%;
    margin-bottom: 0.5em;
    height: 2.2em;
    text-align: right;

    line-height: 1.0em;
}

div.title-tableauD {
    font-size: 130%;
    margin-bottom: 0.5em;
    margin-right: 100px;
    height: 2.2em;
    text-align: center;

    line-height: 1.0em;
}

div.linkTabSpacer, div.linkTabUp {
    height: 2.2em;
    margin-bottom: 0.3em;
    text-align: center;
}

div.tableau {
    margin-top: 1.5em;
    position: relative;
    height: 100%;
}

div.tableau:after {
    clear: both;
    content: "";
    display: table;
}


div.tabA, div.tabA1, div.tabA2, div.tabAwD, div.tabB, div.tabBwD, div.tabC, div.tabD {
    top: 0em;
    width:25em;
    height: 100%;
}

div.tabA, div.tabA1, div.tabD {
    position: relative;
}

div.tabA2, div.tabAwD, div.tabB, div.tabBwD, div.tabC {
    position: absolute;
}

div.tabC {
    
}

div.tabA, div.tabA1, div.tabA2, div.tabAwD, div.tabB, div.tabBwD, div.tabC, div.tabD, div.matchSize {
    pointer-events: none;
}

div.linkABTop {
    margin-top: 2.2em;
    margin-left: 25em;
    width: 2.0em;
    height: 4.65em;
    border-right: 0.25em solid rgb(84,158,0);
    border-top: 0.25em solid rgb(84,158,0);
    position: absolute;
}

div.linkABBot {
    margin-top: -1.3em;
    margin-left: 25em;
    width: 2.0em;
    height: 3.55em;
    border-right: 0.25em solid rgb(84,158,0);
    border-bottom: 0.25em solid rgb(84,158,0);
    position: absolute;
}

div.linkADTop {
    margin-top: 2.2em;
    margin-left: -2.0em;
    width: 2.0em;
    height: 4.65em;
    border-left: 0.25em solid red;
    border-top: 0.25em solid red;
    position: absolute;
}

div.linkADBot {
    margin-top: -1.0em;
    margin-left: -2.0em;
    width: 2.0em;
    height: 3.55em;
    border-left: 0.25em solid red;
    border-bottom: 0.25em solid red;
    position: absolute;
}

div.linkBCTop {
    margin-top: 2.2em;
    margin-left: 25em;
    width: 2.0em;
    height: 11.55em;
    border-right: 0.25em solid rgb(84,158,0);
    border-top: 0.25em solid rgb(84,158,0);
    position: absolute;
}

div.linkBCBot {
    margin-top: -8.2em;
    margin-left: 25em;
    width: 2.0em;
    height: 10.45em;
    border-right: 0.25em solid rgb(84,158,0);
    border-bottom: 0.25em solid rgb(84,158,0);
    position: absolute;
}

div.matchSize, div.match {
    height: 5.9em;
    margin-bottom: 1.0em;
}

div.match {
    pointer-events: auto;
}

div.matchGroupOdd {
    margin: 0.0em -0.5em 0.0em -0.5em;
    padding: 0.5em 0.5em 0.2em 0.5em;
    background-color: #ffffff;
}

div.matchGroupEven {
    margin: 0.0em -0.5em 0.0em -0.5em;
    padding: 2.5em 0.5em 2.5em 0.5em;
}

div.match {
    height: 5.9em;
    background-color: #b8b8b8;
    color: #000;
    position: relative;
    border: 1px solid #000;
}

.match > .data > .opponents {
    position: absolute;
    top: 0.3em;
    right: 5em;
    left: 0.3em;
    height: 4.4em;
}

.match > .data > .opponents > .opponent {
    height: 2.2em;
    overflow: hidden;
    vertical-align: middle;
    width: 100%;
    position: relative;
}

.match > .data > .opponents > .opponent:first-of-type {
    border-bottom: 1px solid #000;
}

.match > .data > .opponents > .opponent > .tabIndex {
    position: absolute;
    left: 0px;
    top: 0.1em;
    height: 1em;
    width: 3em;
    vertical-align: middle;
    text-align: center;
    line-height: 1em;
    padding-right: 0.3em;
    padding-left: 0.3em;
    overflow: hidden;
}


.match > .data > .opponents > .opponent > .deIndex {
    position: absolute;
    left: 0em;
    top: 1.1em;
    height: 1em;
    width: 3em;
    vertical-align: middle;
    text-align: center;
    line-height: 1em;
    padding-right: 0.3em;
    padding-left: 0.3em;
    overflow: hidden;
}

.match > .data > .opponents > .opponent > .flag {
    position: absolute;
    top: 0.25em;
    left: 3em;
    height: 2.2em;
    width: 3em;
    display: block;
    line-height: 2.2em;
    overflow: hidden;
}

.match > .data > .opponents > .opponent > .name {
    position: absolute;
    left: 6em;
    right: 3em;
    top: 0.2em;
    height: 1.1em;
    line-height: 1em;
    padding-left: 0.3em;
    overflow: hidden;
    white-space: nowrap;
}

.match > .data > .opponents > .opponent > .club {
    position: absolute;
    left: 9em;
    right: 3.5em;
    top: 1.9em;
    height: 1.1em;
    line-height: 1em;
    padding-left: 0.45em;
    overflow: hidden;
    white-space: nowrap;
    font-size: 67%;
    text-align: left;
}

.match > .data > .info {
    position: absolute;
    top: 4.7em;
    right: 0em;
    left: 0em;
    bottom: 0em;
    border: none;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}






.match > .data > .link {
    position: absolute;
    top: 0.3em;
    right: 0.3em;
    height: 4.4em;
    width: 4.4em;
    line-height: 2.2em;
}

.match > .data > .link.linkBox {
    padding: 0;
    background: url(../res/link.png) no-repeat right;
    background-size: 0.8em;

}


.match > .data .piste {
    position: absolute;
    right: 0em;
    height: 1.2em;
    width: 4.4em;
    line-height: 1.2em;
    text-align:center;
    white-space: nowrap;
    overflow: hidden;
    top: 0.5em;
    pointer-events: none;
}

.match > .data .status {
    position: absolute;
    font-size: 67%;
    right: 0em;
    height: 1.5em;
    width: 6.6em;
    line-height: 1.5em;
    text-align:center;
    white-space: nowrap;
    overflow: hidden;
    top: 2.55em;
    pointer-events: none;
}

.match > .data .time {
    position: absolute;
    right: 0em;
    height: 1.2em;
    width: 4.4em;
    line-height: 1.2em;
    text-align:center;
    white-space: nowrap;
    overflow: hidden;
    top: 2.7em;
    pointer-events: none;
}

div.matchlink.linkBox:hover {
    background-color: #a0a0a0;
}







.tm-matches {
    width: 100%;	

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tm-matches > .header {
    font-weight: bold;
}

.tm-matches > .header,
.tm-matches > .match {
    width: 100%;
    position: relative;
    height: 2.2em;
    margin: 0em;
}

.tm-matches > .header > .teamA {
    width: 50%;
    position: absolute;
    left: 0%;
    height: 2.2em;
    background: #646464;
    color: white;
}

.tm-matches > .header > .teamB {
    width: 50%;
    position: absolute;
    left: 50%;
    height: 2.2em;
    background: #646464;
    color: white;
}

.tm-matches > .match > .teamA, 
.tm-matches > .match > .teamB {
    width: 50%;
    position: absolute;
    height: 2.2em;
    color: black;
}

.tm-matches > .match > .teamA {
    left: 0%;
}

.tm-matches > .match > .teamB {
    left: 50%;
}

.tm-matches > .match:nth-child(even) > .teamA,
.tm-matches > .match:nth-child(even) > .teamB {
    background: #d0d0d0;
}

.tm-matches > .match:nth-child(odd) > .teamA,
.tm-matches > .match:nth-child(odd) > .teamB {
    background: #c0c0c0;
}

.tm-matches > .match > * > .index {
    position: absolute;
    text-align: center;
    width: 1.4em;
    top: 0.3em;
    height: 1.6em;
    line-height: 1.6em;    
}

.tm-matches > .match > .teamA > .index {
    left: 0.3em;
}

.tm-matches > .match > .teamB > .index {
    right: 0.3em;
}

.tm-matches > .header > * > .name {    
    position: absolute;
    top: 0.3em;
    height: 1.6em;
    line-height: 1.6em;
}

.tm-matches > .header > .teamA > .name {    
    text-align: left;
    left: 0.5em;
    right: 10em;
}

.tm-matches > .header > .teamB > .name {    
    text-align: right;
    right: 0.5em;
    left: 10em;    
}




.tm-matches > .match > * > .flag {    
    position: absolute;
    width: 3.0em;
    top: 0.3em;
    height: 1.6em;
    line-height: 1.6em;   
}

.tm-matches > .match > .teamA > .flag {    
    left: 2.0em;
    text-align: left;
}

.tm-matches > .match > .teamB > .flag {
    right: 2.0em;
    text-align: right;
}



.tm-matches > .match > * > .name {    
    position: absolute;
    top: 0.2em;
    height: 1.0em;
    line-height: 1.0em;
    white-space: nowrap;
    overflow: hidden;
}

.tm-matches > .match > .teamA > .name {    
    left: 5.3em;
    right: 10em;
    text-align: left;
}

.tm-matches > .match > .teamB > .name {
    left: 10em;
    right: 5.3em;
    text-align: right;
}



.tm-matches > .match > * > .club {    
    position: absolute;
    font-size: 67%;
    top: 1.9em;
    height: 1.0em;
    line-height: 1.0em;
    white-space: nowrap;
    overflow: hidden;
}

.tm-matches > .match > .teamA > .club {    
    left: 7.95em;
    right: 15em;
    text-align: left;
}

.tm-matches > .match > .teamB > .club {
    left: 15em;
    right: 7.95em;
    text-align: right;
}








.tm-matches > .header > * > .hits,
.tm-matches > .match > * > .hits {    
    position: absolute;
    text-align: center;
    width: 5em;
    top: 0.3em;
    height: 1.6em;
    line-height: 1.6em;   
}

.tm-matches > .header > .teamA > .hits,
.tm-matches > .match > .teamA > .hits {    
    right: 5em;
}

.tm-matches > .header > .teamB > .hits,
.tm-matches > .match > .teamB > .hits {    
    left: 5em;
}

.tm-matches > .header > * > .score,
.tm-matches > .match > * > .score {    
    position: absolute;
    text-align: center;
    width: 5em;
    top: 0.3em;
    height: 1.6em;
    line-height: 1.6em;
}

.tm-matches > .header > .teamA > .score,
.tm-matches > .match > .teamA > .score {    
    right: 0em;
}

.tm-matches > .header > .teamB > .score,
.tm-matches > .match > .teamB > .score {    
    left: 0em;
}




.tm-lineup {
    width: 100%;
    
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.tm-lineup > .teamA {
    width: 49%;
    position: relative;
    
    display: flex;
    flex-direction: column;
    min-height: 5em;
}

.tm-lineup > .teamB {
    width: 49%;
    position: relative;
    
    display: flex;
    flex-direction: column;
    min-height: 5em;
}

.tm-lineup > * > .team {
    background: #646464;
    position: relative;
    height: 2.2em;
    line-height: 1.6em;
    width: 100%;
    color: white;
    font-weight: bold;
    padding: 0.3em 0.5em;
    white-space: nowrap;
    overflow: hidden;
}

.tm-lineup > .teamA > .fencer {
    background: #d0d0d0;
    position: relative;
    height: 2.2em;
    left: 0em;
    margin-right: 3em;
    color: black;
}

.tm-lineup > .teamB > .fencer {
    background: #d0d0d0;
    position: relative;
    height: 2.2em;
    margin-left: 3em;
    right: 0em;
    color: black;
}

.tm-lineup > .teamA > .score {
    position: absolute;
    background: #a0a0a0;
    top: 2.2em;
    bottom: 0em;
    right: 0em;
    width: 3em;
    color: black;
    
    display: flex;
    justify-content: center;
    align-items: center; 
}

.tm-lineup > .teamB > .score {
    position: absolute;
    background: #a0a0a0;
    top: 2.2em;
    bottom: 0em;
    left: 0em;
    width: 3em;
    color: black;
    
    display: flex;
    justify-content: center;
    align-items: center; 
}

.fencer > .index {
    position: absolute;
    left: 0.3em;
    top: 0.3em;
    width: 1.4em;
    height: 1.6em;
    line-height: 1.6em;
}

.fencer > .flag {
    position: absolute;
    left: 2em;
    top: 0.3em;
    width: 3.0em;
    height: 1.6em;
    line-height: 1.6em;
}

.fencer > .name {
    position: absolute;
    left: 5.3em;
    top: 0.2em;
    right: 0.3em;
    height: 1em;
    line-height: 1em;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
}

.fencer > .name > .linkBox,
.team > .linkBox {
    padding: 0em;
    margin: 0em;
}

.fencer > .club {
    position: absolute;
    left: 7.95em;
    top: 1.9em;
    right: 0em;
    height: 1em;
    line-height: 1em;
    font-size: 67%;
    white-space: nowrap;
    overflow: hidden;
}

.tm-lineup > * > .fencer:nth-child(even) {
    background: #d0d0d0
}

.tm-lineup > * > .fencer:nth-child(odd) {
    background: #b8b8b8
}


/* =Media Queries
-------------------------------------------------------------- 
------- PC view ----------------------------------------------*/
 
@media screen and (min-width : max(1042px,40em)) {
    #primary{
        margin-left: min(240px,15em);
        max-width: 1270px;
        min-width: 500px;
    }
 
    #secondary{
        float: left;
        width: min(220px,14em);
        max-width: min(220px,14em);
        min-width: min(220px,14em);
    }

    div.mobileFlex {
        display: static;
    }

    div.sidebarElem {
        display: static;
    }

    div.sidebarSubElem {
        padding-left: 15%;
    }
    
    .compBox {
        max-width: 50%;
        min-width: 400px;
    }

    div.matchSize, div.match {
        width: 25em;
    }

    div.tabC {
        position: absolute;
        right: 0;
    }

    div.tabAwD {
        left: calc(3 * (100% - 25em) / 8);
        position: absolute;
    }
    
    div.tabBwD {
        left: calc(3 * (100% - 25em) / 4);
        position: absolute;
    }

    div.tabB {
        left: calc((100% - 25em)/2);
        position: absolute;
    }

    div.tabA2 {
        position: absolute;
        left: 26em;
    }

    div.clear:after {
        content: "";
        display: table;
        clear: both;
    }

    img.logoImage {
        max-width:100%;
        max-height:100%;
    }

    div.mobileOnly {
        display: none;
        visibility: hidden;
    }

    div.matchGroupOdd {
        background-color: rgb(0, 0, 0, 0);
        padding: 0px;
        margin: 0px;
    }

    div.matchGroupEven {
        background-color: rgb(0, 0, 0, 0);
        padding: 0px;
        margin: 0px;
    }


}


/* =Media Queries
-------------------------------------------------------------- 
------- Smartphone view --------------------------------------*/

@media screen and (max-width : max(1042px,40em)) {

    #secondary {
        display: flex;
        justify-content: space-between;
        gap: 1em;
    }

    div.sidebar {
        flex-grow: 1;
    }

    div.logoBox {
        flex-grow: 0;
        margin-top: 0;
        max-width: 30%;
    }

    div.logoBox:not(:has(.logoEntry)) {
        display: none;
    }

    div.mobileFlex {
        display: flex;
    }

    div.tabA, div.tabA1, div.tabAwD, div.match {
        left: 0px;
        width: 100%;
    }

    div.sidebarElem {
        clear: both;
        display: flex;
    }

    div.active2 {
        padding: 0.5em;
    }

    div.sidebarSubElem {
        float: left;
    }

    div.openGroup {
        background-color: rgba(55,107,0,0.5);
    }

    div.match {
        display: inline-block;
        margin: 0;
        margin-bottom: 0.3em;
    }

    div.tabB, div.tabA2, div.tabBwD, div.tabD, div.linkABTop, div.linkABBot, div.linkADTop, div.linkADBot, div.matchSize, div.tabC, div.linkBCTop, div.linkBCBot {
        display: none;
        visibility: hidden;
    }
    
    div.tabAwD {
        position: relative;
    }

    div.title-matchGroup:empty {
        display: none;
        visibility: hidden;
    }

    img.logoImage {
        max-width:100%;
        max-height:50px;
    }

    div.pcOnly {
        display: none;
        visibility: hidden;
    }
    
    div.title-matchGroup {
        width: 100%;
        display: inline-block;
    }
}










