/* =Reset
-------------------------------------------------------------- */
 
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-top: 0;
}
 
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);
}

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

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

/* .hoverBox {
    background-color: rgba(84,158,0,0.3);
} */

/* .hoverBox:hover {
    background-color: rgba(84,158,0,0.6);
} */

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

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

div.linkBox {
    background-color: rgba(84,158,0,0.3);
}

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-heading {
    empty-cells: show;
    border-collapse: separate;
    border-spacing: 0px 0px; 
    width: 100%;
    word-wrap: break-word;
    color: white;
}

th {
    font-weight: bold;
    padding: 0px 9px;
}

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

th.pool, td.pool {
    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:hover {
    background: rgb(84,158,0);
}

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

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

td {
    padding: 0px 9px;
}

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

table.pool th {

}

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

.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;
}

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: 30px;
    max-width: 51px;
    vertical-align: middle;
    margin: auto;
    display: block;
}

img.flagmatch{
    max-height: 35px;
    max-width: 40px;
    vertical-align: middle;
    margin: auto;
    display: block;
}

img.smallflag0 {
    max-height: 24px;
    max-width: 40px;
    vertical-align: middle;
    margin: 1px;
    margin-right: 5px;
    display: block;
    float:right;
    display: inline-block;
    background: black;
    padding: 0;
    opacity: 0.5;
    text-align: middle;
    
}

img.smallflag0:hover {
    opacity: 1;
}

img.smallflag1 {
    max-height: 24px;
    max-width: 40px;
    vertical-align: middle;
    margin: 1px;
    margin-right: 5px;
    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;
}

div.title-comp {
    font-size: 150%;
    padding-bottom: 30px;
}

div.title-phase {
    font-size: 150%;
    padding-bottom: 30px;
}

div.title-list {
    font-size: 130%;
    padding-bottom: 5px;

}

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: 5px;
    padding-right: 5px;
    margin-top: 10px;
}

div.logoEntry {
    padding-top: 5px;
    padding-bottom: 5px;
}

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

#wrap {
    min-height: 100%;
}

#main {
    overflow:auto;

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

#header {
    max-height: 110px;
    min-height: 110px;
    width: 100%;
} 
 
#footer {
    height: 55px;
    width: 100%;
    margin-top: -55px;
} 

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

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

.center-head {
    max-height: 110px;
    min-height: 110px;
}

.center-main{
    min-height: 500px;
}

.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: 1em;
    margin-bottom: 20px;
}

div.sidebarSubElem {

}

.compBox {
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.site-title-tourn {
    margin-bottom: 20px;
}

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


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

.linkBox {
    padding: 8px;
}

.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);
}






/* Direct elimination */

div.title-tableauA {
    font-size: 130%;
    margin-bottom: 25px;
    height: 35px;
    text-align: center;
    line-height: 20px;
}

div.title-matchGroup {
    font-size: 130%;
    margin-top: 25px;
    height: 35px;
    text-align: center;
    line-height: 20px;
}

div.title-tableauB {
    font-size: 130%;
    margin-bottom: 25px;
    height: 35px;
    text-align: center;

    line-height: 20px;
}

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

    line-height: 20px;
}

div.title-tableauC {
    font-size: 130%;
    margin-bottom: 25px;
    height: 35px;
    text-align: center;

    line-height: 20px;
}

div.title-tableauCwD {
    font-size: 130%;
    margin-bottom: 25px;
    height: 35px;
    text-align: right;

    line-height: 20px;
}

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

    line-height: 20px;
}

div.linkTabSpacer, div.linkTabUp {
    height: 35px;
    margin-bottom: 5px;
    text-align: center;
}

div.tableau {
    margin-top: 30px;
}

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

div.title-tableau-up {
    position: absolute;
    left: 50%;
    top: 0px;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    text-align: center;
    vertical-align: middle;
    line-height: 40px;
    padding: 0;
}

div.title-tableau-prev {
    position: absolute;
    left: 0px;
    top: 45px;
    width: 40px;
    height: 40px;
    text-align: center;
    vertical-align: middle;
    line-height: 40px;
    padding: 0;
}

div.title-tableau-next {
    position: absolute;
    right: 0px;
    top: 45px;
    width: 40px;
    height: 40px;
    text-align: center;
    vertical-align: middle;
    line-height: 40px;
    padding: 0;
}

div.tableau-link-up {
    background-image: url('../res/up.png');
}

div.tableau-link-up:hover {
    background-image: url('../res/up-hover.png');
}

div.tableau-link-next {
    background-image: url('../res/next.png');
}

div.tableau-link-next:hover {
    background-image: url('../res/next-hover.png');
}

div.tableau-link-prev {
    background-image: url('../res/prev.png');
}

div.tableau-link-prev:hover {
    background-image: url('../res/prev-hover.png');
}

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

div.tabC {
    float: right;
}

div.linkABTop {
    margin-top: 33px;
    margin-left: 350px;
    width: 30px;
    height: 54px;
    border-right: 4px solid rgb(84,158,0);
    border-top: 4px solid rgb(84,158,0);
    position: absolute;
}

div.linkABBot {
    margin-top: -19px;
    margin-left: 350px;
    width: 30px;
    height: 56px;
    border-right: 4px solid rgb(84,158,0);
    border-bottom: 4px solid rgb(84,158,0);
    position: absolute;
}

div.linkADTop {
    margin-top: 33px;
    margin-left: -35px;
    width: 30px;
    height: 54px;
    border-left: 4px solid red;
    border-top: 4px solid red;
    position: absolute;
}

div.linkADBot {
    margin-top: -19px;
    margin-left: -35px;
    width: 30px;
    height: 56px;
    border-left: 4px solid red;
    border-bottom: 4px solid red;
    position: absolute;
}

div.linkBCTop {
    margin-top: 33px;
    margin-left: 350px;
    width: 30px;
    height: 146px;
    border-right: 4px solid rgb(84,158,0);
    border-top: 4px solid rgb(84,158,0);
    position: absolute;
}

div.linkBCBot {
    margin-top: -111px;
    margin-left: 350px;
    width: 30px;
    height: 146px;
    border-right: 4px solid rgb(84,158,0);
    border-bottom: 4px solid rgb(84,158,0);
    position: absolute;
}

div.matchSize, div.match {
    height: 78px;
    margin-bottom: 14px;
}

div.match {
    height: 78px;
    background-color: rgb(38,74,0);
    padding: 5px;
    position: relative;
}

div.matchgen {
    position: absolute;
    right: 5px;
    height: 70px;
    width: 60px;
    line-height: 35px;
    text-align:center;
    white-space: nowrap;
    overflow: hidden;
}

/* .result {
    width: 35px;
    height: 70px;
    vertical-align: middle;
    overflow: hidden;
    position: absolute;
    right: 67px;
} */

div.opponents {
    height: 35px;
    position: absolute;
    top: 5px;
    right: 65px;
    left: 5px;
    bottom: 5px;
}

div.opponent {
    height: 35px;
    overflow: hidden;
    vertical-align: middle;
    width: 100%;
    position: relative;
    border-bottom: 1px solid rgb(84,158,0);
}

.matchdata1 {
    position: absolute;
    top: 4px;
    left: 0px;
    height: 35px;
    width: 40px;
    display: block;
    vertical-align: middle;
    line-height: 35px;
    overflow: hidden;
}

.matchdata2 {
    position: absolute;
    left: 40px;
    right: 45px;
    top: 0px;
    height: 35px;
    vertical-align: middle;
    line-height: 35px;
    padding-right: 5px;
    padding-left: 5px;
    overflow: hidden;
    white-space: nowrap;
}

.res {
    position: absolute;
    right: 5px;
    width: 35px;
    height: 35px;
    vertical-align: middle;
    line-height: 35px;
    text-align: center;
}








/* =Media Queries
-------------------------------------------------------------- */
 
@media screen and (min-width : 1042px) {
    #primary{
        margin-left: 240px;
        max-width: 1270px;
        min-width: 500px;
    }
 
    #secondary{
        float: left;
/*        position: fixed;	*/
        width: 220px;
        max-width: 220px;
        min-width: 220px;
    }

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

    div.matchSize, div.match {
        width: 355px;
    }

    div.tabC {
        float: right;
    }
    div.tabA, div.tabA1, div.tabAwD, div.tabB, div.tabBwD, div.tabD {
        float: left;
        margin-right: -355px;
    }

    div.tabAwD, div.tabBwD {
        margin-left: 24%;
    }

    div.tabB {
        margin-left: 32%;
    }

    div.tabA2 {
        float: left;
        margin-left: 365px;
    }

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

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

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

@media screen and (max-width : 1042px) {
    div.tabA, div.tabA1, div.tabAwD, div.match {
        left: 0px;
        width: 100%;
    }

    div.sidebarElem {
        clear: both;
    }

    div.sidebarSubElem {
        float: left;
    }

    div.match {
        display: inline-block;
    }

    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;
    }

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

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

}
