/* Template styles
-------------------------------------------------------------- */
body { 
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center top;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
} /* background-image optionally set by template */
div.banner {
    display: flex;
    align-items: center;
    padding: 5px 10px 0 10px;
    min-height: 125px;
}
div.banner div.logo {
    flex: 10%;
}
div.banner div.logo img {
    width: 100%;
    height: auto;
    max-height: 100px;
}
div.banner div.title {
    flex: 50%;
}
div.banner div.title > * {
    text-align: center;
    transition: all 0.5s;
}
div.banner div.title h1 {
    margin: 0 10px;
    font-size: 50px;
}
div.banner div.title div.sponsor {
    margin: 3px 10px;
    font-size: 12px;
}
@media screen and (max-width: 620px) {
    div.banner div.title h1 {
        font-size: 30px;
    }
}
@media screen and (max-width: 450px) {
    div.banner {
        flex-wrap: wrap;
    }
    div.banner div.logo {
        flex: 50%;
    }
    div.banner div.logo.left {
        order: 1;
        max-width: unset !important;
        padding-right: 5px;
    }
    div.banner div.logo.right {
        order: 2;
        max-width: unset !important;
        padding-left: 5px;
    }
    div.banner div.title {
        flex: 100%;
        order: 3;
    }
    div.banner div.title h1 {
        margin: 5px 0;
    }
}
.main {
    padding: 10px;
}

h1, h2, div.h2 {
    margin-bottom: 15px;
}
h3 {
    margin-bottom: 10px;
}
h4 {
    margin-bottom: 5px;
}
h3, h4 {
    font-weight: bold;
}
span.information, div.information {
    text-align: center;
}
a {
    text-decoration: underline dotted;
}
a.standard {
    color: inherit;
    text-decoration: none;
}
a.dotted {
    color: inherit;
    underline: dotted;
}
a:hover, a.standard:hover {
    cursor: pointer;
    text-decoration: underline solid;
}

div.tournament, div.news, div.fixture {
    margin-bottom: 10px;
}
div.event.tournament {
    margin-bottom: 2px;
}

div.tournament > div {
    display: inline-block;
}
@media screen and (max-width: 500px) {
    div.tournament > div {
        display: block;
    }
}
div.tournament div.name {
    font-size: 120%;
    width: 240px;
    margin-right: 10px;
}
div.event.tournament div.name {
    padding-left: 10px;
}
div.tournament div.links a:not(:last-child) {
    margin-right: 10px;
}
div.news > *, div.fixture > *, div.fixture > * > * {
    vertical-align: top;
}
div.news div.time {
    display: inline-block;
    width: 50px;
}
div.news div.title {
    display: inline-block;
    width: calc(100% - 50px);
}
div.news div.notification, div.news div.grouptable {
    margin-left: 50px;
}
div.news div.grouptable {
    margin-top: 5px;
}
div.fixture {
    font-size: 0;
}
div.fixture * {
    font-size: 12px;
}
div.fixture div.reference {
    display: inline-block;
    width: 100px;
}
div.fixture div.venue {
    display: inline-block;
    width: 130px;
}
div.fixture table.participants {
    table-layout: fixed;
    display: inline-table;
    width: calc(100% - 240px);
    min-width: 240px;
    text-align: center;
    margin: 0 5px;
}
div.fixture table.participants td {
    vertical-align: top;
    padding: 0;
}
div.fixture table.participants td.result {
    width: 60px;
}
div.fixture table.participants td.home {
    width: calc(50% - 30px);
    text-align: right;
}
div.fixture table.participants td.away {
    width: calc(50% - 30px);
    text-align: left;
}
div.fixture table.participants td.notes {
    font-size: 80%;
}
table.grouptable {
    margin-bottom: 10px;
}
table.knockout {
    border-collapse: separate;
    white-space: nowrap;
}
table.knockout tr td {
    min-width: 4px;
}
table.knockout tr td div {
    height: 18px;
}
table.knockout tr td div.b-all {
    height: 24px;
    padding: 2px 3px;
}
table.knockout tr td div.space {
    height: 2px;
}
table.knockout tr td div.notes {
    height: unset;
    margin: 0 4px;
    font-size: 80%;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reset original styles
-------------------------------------------------------------- */
td.dxgv span.hyperlink {
    color: #FF8800;
}
table.htmleditor {
    border: 1px solid #C0C0C0;
    overflow: auto;
}
.content .popup .dxeBase_Metropolis {
    color: #333333;
}
