/*====================== AoE2ita CSS */
@font-face {
    font-family: Spiegel;
    src: url(/assets/fonts/Spiegel Regular.ttf);
}
@font-face {
    font-family: Constantia;
    src: url(/assets/fonts/Constantia.ttf);
}
html, body, .pure-g, .pure-g [class*=pure-u] {
    font-family: Spiegel,Georgia,serif !important;
}
/*========== Global */
html, body {
    background-color: #232323;
    color: #FFFFFF;
}

@-moz-document url-prefix() {
    body{
        font-size: 90%;               
    }
}

footer, section.main {
    background-color: #000000;
}

a {
    text-decoration: none;
    color: #95989A;
}

a:hover, button:hover, .tournamentTable tbody > tr, .noUi-handle:hover, select:hover, input[type='checkbox']:hover, input[type='radio']:hover {
    cursor: url('aoe2hand_1_37x37.png'), pointer;
}

h1 {
    color: #FFFFFF;
    text-transform: uppercase;
    font-family: Constantia,Georgia,serif;
}

h3, h2, strong {
    color: #E8BA03;
    font-family: Constantia,Georgia,serif;
}

h4 {
    text-transform: uppercase;
    font-family: Constantia,Georgia,serif;
}

thead {
    border: 1px solid #8a7522;
    font-family: Constantia,Georgia,serif;
}

div.spacer {
    height: 20px;
}

.pure-button {
    background-color: #232323;
    color: #95989A;
    border: 1px solid #95989A;
    border-radius: 8px;
    text-transform: uppercase;
    padding: 0.5em 1.5em;
    font-family: Constantia,Georgia,serif;
}

table {
    background-color: #232323;
    color: #95989A;
    border: 1px solid rgba(84, 84, 84, 0.44);
    /*border-collapse: separate;
    border-spacing: 0 5px !important;*/
}

th {
    border-bottom: none !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    text-transform: uppercase;
}

tbody > tr {
    background-color: #545454;
    /*opacity: 0.44;*/
    /*border-bottom: 2px solid #232323;*/
}

th:not(:last-child), td:not(:last-child) {
    border-right: 1px solid #95989A;
}

select, input, textarea {
    background-color: #232323;
    color: #95989A;
    border-color: #95989A;
    border-width: 1px;
    border-style: solid;
}

input[type="checkbox"], input[type="radio"] {
    display: none;
}

input[type="checkbox"] + label span {
    display:inline-block;
    width:14px;
    height:14px;
    margin:-1px 0 0 15px;
    vertical-align:middle;
    background-color: #232323;
    border: 1px solid #95989A;
    cursor: url('aoe2hand_1_37x37.png'), pointer;
}

input[type="checkbox"]:checked + label span:before {
    content: "\2713";
    position: relative;
    top: -2px;
    left: 1px;
}

input[type="radio"] + label {
    color: #95989A;
}

input[type="radio"] + label span {
    display:inline-block;
    width:15px;
    height:15px;
    border-radius: 10px;
    margin:-1px 0 0 0;
    vertical-align:middle;
    background-color: #232323;
    border: 1px solid #95989A;
    cursor: url('aoe2hand_1_37x37.png'), pointer;
}

input[type="radio"]:checked + label span:before {
    content: "\25CF";
    position: relative;
    top: -9px;
    left: 0px;
    font-size: 25px
}

label {
    color: #E8BA03;
    margin-right: 15px;
}

.dataTable-info {
    color: #95989A;
}

#uglipop_overlay_wrapper, #uglipop_content_fixed {
    z-index: 20;
}

.modalTheme, .descriptionModalTheme {
    border-radius: 10px;
    background-color:#232323;
    width:500px;
    height:auto;
    padding:25px;
    border: 1px solid #95989A;
    color: #95989A;
}

.modalTheme > div {
    text-align: center;
}

.modalTheme > span {
    display: block;
    margin-bottom: 25px;
    text-align: justify;
}

.modalTheme > p {
    text-align: right;
}

textarea {
    width: 100%;
    resize: vertical;
    max-height: 300px;
    min-height: 100px; 
}

.feedbackModalFooter {
    text-align: right;
    margin-top: 10px;
}

.textArea {
    color: #95989A;,
}

/*label + .mce-container, .mce-container-body {
    display: inline-block !important;
}*/

.mce-edit-area {
    display: block !important;
}

.mce-panel, .mce-btn {
    background-color: #95989A !important;
}

.mce-btn-group:not(:first-child) {
    border-left: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/**
 * SLIDER
 * .noUi-target     This class is added to the element you call .noUiSlider() on. Has border, background and other styling properties to establish the slider design and background.
 * .noUi-base  The slider bar. Serves as the calculating point for the slider handles, and has no visible styling.
 * .noUi-origin    The elements connected to the base, defining the handle locations.
 * .noUi-handle    The actual, visible handles. Style these any way you like!
 * .noUi-connect   Styling class for setting properties related to the slider connect segment.
 * .noUi-state-tap This class is added when the slider bar is tapped or clicked. A slider with this call will reject any user input. noUiSlider will remove this class after 300ms, leaving that timespan to perform visual animations.
 */

.noUi-target {
    background: #95989A;
    height: 2px;
    border: none;
    box-shadow: none;
    display: inline-block;
    width: 290px;
    float: right;
    top: 9px;
}

.noUi-horizontal .noUi-handle {
    border: 2px solid #95989A;
    border-radius: 10px;
    background: #232323;
    box-shadow: none;
    width: 18px;
    height: 18px;
    left: -9px;
    top: -9px;
}

.noUi-handle:before, .noUi-handle:after {
    display: none;
}

/* Drooltip */
.drooltip {
    padding: 5px;
    border: 1px solid #7A5040;
}

.drooltip > .bg {
    background-color: #191919 !important;
    border-radius: 0px;
}

#cookiePolicyBar {
    width: 100%;
    z-index: 10;
    background-color: #232323;
    border-top: 1px solid #E8BA03;
    color: #FFFFFF;
    position: fixed;
    bottom: 0px;
    padding: 20px 30px;
    text-align: center;
}

#cookiePolicyBar a {
    color: #E8BA03;
}

#cookiePolicyBar button {
    margin-left: 20px;
}

/**
 * giallo #E8BA03
 * chiaro #95989A
 * scuro #232323
 * rossastro #7A5040
 * marroncino #8E764C
 */

/*========== Navbar */
nav.mainNav {
    text-align: center;
    position: relative;
}

nav.mainNav .icon {
    position: relative;
    width: 100px;
    display: flex;
    height: 90px;
}

nav.mainNav .icon > img {
    position: absolute;
    height: 128px;
}

nav #steamLogin {
    display: inline-block;
    position: absolute;
    right: 20px;
    bottom: 10px;
}

.pure-menu-item {
     margin: 0 10px;
}

.pure-menu-link {
    color: #FFFFFF;
    text-transform: uppercase;
    font-size: 14pt;
    font-weight: bold;
    font-family: Constantia,Georgia,serif;
}

.pure-menu-active>.pure-menu-link, .pure-menu-link:focus, .pure-menu-link:hover {
    background-color: transparent;
}

nav.mobileNav {
    display: none;
}

/*========== Footer */
footer {
    padding: 20px;
    text-align: center;
}

.socialFooter {
    text-align: center;
    margin-bottom: 10px;
}

/*========== Success */
.successText {
    text-align: center;
    border: 1px solid #7A5040;
    background-color: rgba(0, 0, 0, 0.66);
    margin-top: 20px;
    width: 100%;
}

section.fullHeight {
    height: 60vh;
}

/*========== Home */
section.container {
    border-top: 1px solid #8a7522;
    border-bottom: 1px solid #8a7522;
}

.headerTiles {
    height: 300px;
}

.firstTile, .secondTile, .thirdTile, .fourthTile {
    border: 1px solid #8a7522;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: -25px 0;
}

.firstTile {
    background-image: url("images/aoe1.jpg");
}

.secondTile {
    background-image: url("images/aoe2.jpg");
}

.thirdTile {
    background-image: url("images/aoe3.jpg");
}

.fourthTile {
    background-image: url("images/aoe4.jpg");
}

.headerImage {
    height: 240px;
    background-image: url("images/header.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 -150px;
    border-bottom: 1px solid #8a7522;
}

.headerTitle {
    text-align: center;
}

section.main {
    padding: 70px 7%;
    background-image: url("images/busto.png");
    background-repeat: no-repeat;
    background-position: left bottom;
}

section.main .graph {
    background-image: url("images/torneo.png");
    background-repeat: no-repeat;
    background-position: center;
}

section.main .cta {
    text-align: center;
    padding: 15px 50px;
}

section.main .text {
    margin-left: 10%;
    border-left: 1px solid #95989A;
    padding: 3px 0px 3px 40px;
    height: 100%;
    text-align: justify;
}

section.articles {
    padding: 0 5%;
    background-image: url("images/articles.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 -280px;
}

.articleTile {
    margin: 40px;
    padding: 0 25px;
    border: 1px solid #95989A;
    background-color: #232323;
    height: 300px;
}

/*========== Tournaments */
section.tournaments {
    border-top: 1px solid  #95989A;
    border-bottom: 1px solid #8a7522;
    padding: 10% 8%; 
    background-image: url("images/tournaments.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.sidebar, .tournamentTable {
    border: 1px solid #95989A;
    padding: 10px;
    background-color: rgba(35, 35, 35, 0.58);
}

.tournamentTable {
    margin-left: 30px;
}

.tournamentTable tr.separatorBorders {
    border-bottom: 2px solid #232323;
}

.tournamentTable tr.tableSpacer {
    height: 20px;
}

.dataTable-container {
    border-bottom: none !important;
}

.sidebar .text, .sidebar .profile, .sidebar .details {
    border: 1px solid #7A5040;
    background-color: rgba(0, 0, 0, 0.66);
    margin-top: 20px;
}

.dataTable-sorter::after {
    border-bottom-color: #95989A !important;
}

.dataTable-sorter::before {
    border-top-color: #95989A !important;
}

.sidebar .bigButton {
    border: 1px solid #95989A;
    background-color: #232323;
    padding: 8px;
}

.bigButton > a {
    display: block;
    text-transform: uppercase;
    background-color: #8E764C;
    border: 1px solid #7A5040;
    padding: 15px;
    text-align: center;
    color: #232323;
    text-decoration: none;
    font-family: Constantia,Georgia,serif;
}

.sidebar .text, .details .content {
    padding: 20px;
}

.details .content div {
    height: 26px;
    margin-bottom: 15px;
}

.details .content img {
    height: 26px;
    margin-left: 5px;
    position: relative;
    top: 8px;
}

.avatar {
    padding: 5px;
}

.avatar img, .avatarTip img {
    width: 100%;
    border: 1px solid #95989A;
}

.profile {
    min-height: 115px;
}

.profile .user {
    text-align: center;
    padding-top: 30px;
}

.user .logout {
    font-size: 8pt;
}

.profile .score {
    border-left: 1px solid #7A5040;
    min-height: 115px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile .rank {
    margin: 0 5px 5px;
    padding: 5px;
    border-top: 1px solid #7A5040;
    display: flex;
    justify-content: space-between;
}

.profile .rank > span > span {
    color: #E8BA03;
}

.score > img {
    width: 18px;
    margin-left: 2px;
}

.details .title {
    text-align: center;
    border-bottom: 1px solid #7A5040;
    padding: 5px 0;
    text-transform: uppercase;
}

/*========== New tournament */
.tournamentTitle {
    border: 1px solid #8a7522;
    background-color: #000000;
    color: #95989A;
    text-align: center;
}

.tournamentForm {
    margin-top: 10px;
    background-color: #232323;
    color: #95989A;
    border: 1px solid #95989A;
}

.formHead {
    padding: 10px 20px;
    background-color: #545454;
    border-top: 1px solid #95989A;
    border-bottom: 1px solid #95989A;
    margin-top: 30px;
    text-transform: uppercase;
}

.formContainer {
    margin: 50px;
    background-color: #545454;
    border: 1px solid #000000;
    padding: 20px 50px;
}

.formText {
    border-left: 1px solid #95989A;
    height: 100%;
    margin: 130px 0;
    padding: 70px;
    text-align: center;
}

button.create {
    background-color: #545454;
    color: #E8BA03;
}

#createTournamentForm > div {
    margin-bottom: 15px;
}

/*========== Detail tournament */
.tournamentDetailTitle {
    background-color: #191919;
    border: 1px solid #8a7522;
    text-align: center;
    text-transform: uppercase;
    padding: 10px 0;
}

.tournamentDetailContainer {
    margin-top: 10px;
    background-color: #232323;
    color: #95989A;
    position: relative;
    overflow: hidden;
}

.editBar {
    position: absolute;
    width: 98%;
    padding-right: 0px;
    padding-left: 2%;
    z-index: 5;
}

.editBar > a {
    text-transform: capitalize;
    float: right;
    margin-right: 20px;
}

.editBar > a > img {
    width: 12px;
    margin-right: 5px;
}

.description {
    background-color: #000000;
    border-right: 1px solid #95989A;
    border-bottom: none;
    padding: 20px 20px;
    margin-bottom: -3000px;
    padding-bottom: 3000px;
}

.description > h4 {
    border-bottom: 1px solid  #95989A;
    padding-bottom: 20px;
}

.descriptionText {
    margin-bottom: 500px;
}

.descriptionText a {
    text-decoration: underline;
}

.tournamentDetail {
    padding: 80px 70px 20px 70px;
}

.teamName {
    text-transform: uppercase;
    margin-right: 10px;
}

.teamNumber {
    display: inline-block;
    border: 1px solid  #95989A;
    width: 30px;
    height: 30px;
    top: 10px;
    position: relative;
}

.teamNumber > span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tournamentDetail table {
    border: none;
    border-collapse: collapse;
    width: 80%;
    margin-top: 10px;
}

.tournamentDetail table tr {
    background-color: transparent;
    opacity: 1;
}

.tournamentDetail table td {
    border: 1px solid #95989A;
    padding: 5px 10px;
}

.tournamentDetail table td.fixLength {
    width: 20px;
    padding: 5px 5px 0px 5px;
}

.tournamentTable tbody > tr.notClick, .tournamentTable tbody td.notClick {
    cursor: default;
}

.tournamentDetailContainer > img {
    width: 470px;
    position: absolute;
    left: 0;
    bottom: -1px;
}

button.tournamentButton {
    background-color: #000000;
    border: 1px solid #7A5040;
    color: #E8BA03;
    text-transform: uppercase;
    padding: 10px 30px;
    font-weight: 600;
}

.tournamentDetailAdminFooter, .randomTournamentHead {
    text-align: center;
}

table.adminList, .tournamentDetailAdminFooter {
    margin-top: 60px;
}

table.adminList td {
    border: 1px solid #7A5040;
    padding: 10px 30px;
}

table.adminList td:first-child {
    text-transform: uppercase;
    font-weight: 600;
}

table.adminList tr {
    cursor: default;
}

.joinable {
    background-color: rgba(35, 107, 27, 0.47);
}

.leaveable {
    background-color: rgba(107, 27, 27, 0.47);
}

.joinable > img, .leaveable > img {
    width: 100%;
}

.fullHeight {
    position: relative;
    min-height: 80vh;
}

.scrollTournament {
    overflow-x: auto;
}

.alignBottom {
    position: absolute;
    bottom: 20px;
}

table.topTournament {
    margin-top: 0px;
    width: auto;
}

.moveRight {
    float: right;
    /*margin-right: 70px;*/
}

.staffNotes {
    border: 1px solid #95989A;
    background-color: #545454;
    padding: 10px 20px;
    margin-top: 10px;
    text-align: justify;
    /*margin-right: 70px;*/
    margin-bottom: 30px;
}

.teamMembersContainer {
    width: 200px;
    min-height: 50px;
    text-align: center;
}

.teamMembersContainerLeft {
    float: right;
    margin-right: 30px;
}

.teamMembersContainerLeft > table {
    float: right;
}

.teamMembersContainerRight {
    margin-left: 30px;
}

.matchBrief {
    min-height: 50px;
    border-right: 1px solid #95989A;
    border-left: 1px solid #95989A;
    position: relative;
}

.matchBrief > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.matchButtonsContainer {
    text-align: center;
    padding: 10px 0;
}

.matchButtonsContainer:first-child {
    border-top: 1px solid #95989A;
    padding-top: 30px;
}

.matchButtonsContainer:last-child {
    border-bottom: 1px solid #95989A;
    padding-bottom: 30px;
}

.matchButton {
    border: 1px solid #95989A;
    text-transform: uppercase;
    color: #95989A;
    padding: 5px;
    width: 100px;
}

.greenButton {
    background-color: rgba(35, 107, 27, 0.47);
}

.redButton {
    background-color: rgba(107, 27, 27, 0.47);
}

.refreshButton {
    float: right;
    margin-top: 20px;
}

.refreshButton > div {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 1px solid #7A5040;
    line-height: 32px;
    font-size: 30px;
    transform: rotateZ(90deg);
    text-align: center;
}

table.adminList td.pointer, .points table td > span{
    cursor: url('aoe2hand_1_37x37.png'), pointer;
}

.podiumContainer {
    border-top: 1px solid #95989A;
    border-bottom: 1px solid #95989A;
    margin-top: 20px;
    padding: 80px 40px;
}

.points h4 {
    text-align: center;
}

.points table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0px 10px;
}

.points table tr, .podium table tr {
    cursor: default;
}

.points table td, .podium table td {
    border: none;
}

.points .score, .crown {
    display: flex;
    justify-content: center;
    align-items: center;
}

.crown > img {
    width: 50px;
}

.podium {
    min-height: 250px;
    border-left: 1px solid #95989A;
    position: relative;
}

.podium table {
    border-collapse: separate;
    border-spacing: 0px 0px;
    width: auto;
    text-align: center;
    margin-left: 70px;
    position: absolute;
    bottom: 0px;
}

.podium table td {
    width: 100px;
    vertical-align: bottom;
}

.podium table td h3 {
    text-transform: uppercase;
    margin-top: 0px;
}

.podium table td div {
    background-color: #95989A;
}

.randomPlayerList > table {
    margin-left: auto;
    margin-right: auto;
    width: 250px;
}

/*========== User card */
.userCard {
    color: #95989A;
}

.userCard label {
    margin-right: 0px;
}

.nameScoreTip {
    padding: 20px 5px;
    text-align: center;
}

.nameScoreTip .name {
    border-right: 1px solid #7A5040;
    padding-bottom: 10px;
}

.nameScoreTip .name a {
    /*word-break: break-all;*/
}

.userCard .score {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
}

.userCard .steamStatus {
    font-size: 10px;
}

.userCard .score, .userCard .name {
    margin-bottom: 20px;
}

.userCard .card {
    border-bottom: 1px solid #7A5040;
}

.userCard .data {
    padding: 5px;
}

.userCard .data div:last-child {
    padding-top: 5px;
    text-align: right;
}

.userCard .data span {
    display: block;
    margin-top: 3px;
}

.userCard .data a {
    text-transform: lowercase;
    font-size: 14px;
}

.userCard .data h4 {
    margin: 5px;
}

.steamStatus span[class^='light-'] {
    font-size: 14px;
    color: #4A4A4A;
}

.steamStatus span[class^='light-'].on {
    color: #00B84C;
}

/*======== Matches */
.matches{
    display:flex;
    flex-direction:row;
    min-width: min-content;
}
.round, .branch {
    display:flex;
    flex-direction:column;
    justify-content:center;
    width:150px;
    list-style:none;
    padding:0;
}

.branch {
    width: 35px;
}

.round .spacer {
    flex-grow:1;
}

.branch .spacer {
    flex-grow:0.5;
} /* anche 0.25, verificare */

.branch .spacer-2 {
    flex-grow:0.25;
}

.branch .spacer:first-child,
.branch .spacer:last-child {
    flex-grow:0.25;
}

.round .spacer:first-child,
.round .spacer:last-child{
    flex-grow:.5;
}

.branch .spacer-2:first-child,
.branch .spacer-2:last-child {
    flex-grow:0.35;
}

.round .game-spacer{
    flex-grow:1;
 }

.branch .left-spacer{
    flex-grow:0.5;
}

.branch .right-spacer{
    flex-grow:0.5;
}

.matches table {
    border-collapse: collapse;
    width: 100%;
}

.matches table td, .matches table th {
    border: 1px solid #95989A;
}

.matches table th {
    text-align: center;
}

.matches table tr, .teamMembersContainer table tr {
    cursor: default;
}

.matches table td > span, .teamMembersContainer table td > span {
    cursor: url('aoe2hand_1_37x37.png'), pointer;
}

.branch .upper {
    border-top: 1px solid #95989A;
    border-right: 1px solid #95989A;
}

.branch .lower {
    border-bottom: 1px solid #95989A;
    border-right: 1px solid #95989A;
}

.branch .middle {
    border-bottom: 1px solid #95989A;
}


/*========== MEDIA QUERY */
@media screen and (max-width: 48em) {
    h1 {
        font-size: 1.5em;
    }
    .headerTiles {
        display: none;
    }

    .headerImage {
        height: 100px;
        background-position: -40px 0;
    }

    section.main {
        padding-top: 15px;
    }

    section.main .text {
        display: none;
    }

    section.articles {
        background-position: -300px 0px;
    }

    .articleTile {
        height: auto;
    }

    .modalTheme, .descriptionModalTheme {
        width: 270px;
        padding: 10px;
    }
    
    nav.mainNav {
        display: none;
    }

    nav.mobileNav {
        display: block;
        text-align: center;
        position: relative;
        height: 60px;
    }

    nav.mobileNav .icon {
        width: 100%;
        height: 60px;
        position: relative;
        z-index: 5;
    }

    nav.mobileNav .icon > img {
        height: 80px;
    }

    nav.mobileNav > ul {
        top: -24px;
        padding-top: 24px;
        background-color: #232323;
        border-bottom: 1px solid #8a7522;
    }

    nav.mobileNav > ul > li {
        /*display: none;*/
    }

    nav.mobileNav > .burger {
        position: absolute;
        top: 10px;
        right: 10px;
        height: 40px;
        padding: 1px 8px 0 8px;
    }

    nav.mobileNav > .burger > div {
        background-image: url(/assets/images/menu.png);
        width: 30px;
        height: 26px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
}
