#primary-menu {
    display:flex;
    align-items: center;
}
.inline-header .branding, .inline-header .header-bar > .mini-widgets {

    display: flex;
    align-items: center;
  }

  .masthead:not(.side-header) .header-bar {
    position: relative;
    display: -ms-flexbox;
    display: -ms-flex;
    display: flex;
    -ms-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    -ms-align-content: stretch;
    align-content: stretch;
    -ms-flex-line-pack: stretch;
    -ms-flex-pack: space-between;
    -ms-justify-content: space-between;
    justify-content: space-between;
    -ms-flex-pack: justify;
  }


.single-tournaments #main {
    padding: 0;
}

.single-tournaments .page-title-breadcrumbs {
    display: none;
}

.tournament-content {
    display: flex;
    gap: 40px;
    width: 100%;
    padding: 30px 0;
}

.tournament-main {
    width: 70%;
    flex: 0 0 auto;

}

.tournament-options {
    flex: 1;
}


.tournament-button {
    background-color: rgb(255, 139, 23);
    display: flex; 
    align-items: center;
    justify-content: center;
    height: 60px;
    cursor: pointer;
    color: rgb(255, 255, 255);
    text-decoration: none;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    margin: 20px 0;
    border: 0;
    outline: none;

}

.tournament-button-alt {
    background-color: #323234;
    display: flex; 
    align-items: center;
    justify-content: center;
    height: 60px;
    cursor: pointer;
    color: rgb(255, 255, 255);
    text-decoration: none;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    margin: 20px 0;
    border: 0;
    outline: none;

}

.tournament-flex {
    display: flex;
    gap: 20px;
}
.tournament-flex > * {
    width: calc(50% - 10px);
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}
.form-label {
    font-weight: 600;
    color: #323234;
}
.form-input {
    width: 100%;
    height: 50px;
}

.form-input[readonly] {background: #ededed;}

.tournament-header {
    font-size: 1rem;
    margin-bottom: 5px;
    
}
.tournament-details {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #323234;
}

.empty-loader:empty {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-loader:empty:after {
    content: '';
    width: 30px;
    height: 30px;
    border: 5px solid rgb(255, 139, 23);
    border-color: rgb(255, 139, 23) transparent transparent;
    border-radius: 50%;
    animation: spin .5s infinite ease-in-out;
}

@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}

.helper {font-size: .75rem; margin-top: -10px;}


.tournament-section-tabs, .tournament-section-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tournament-section-tabs .tournament-button, .tournament-section-info .tournament-button {
    width: auto;
    background: #fff;
    color: rgb(255, 139, 23);
    border: 1px solid rgb(255, 139, 23);
    padding: 0 30px;
    opacity: .6;
    transition: all 0.2s ease-in-out;
}

.tournament-section-tabs .tournament-button-alt, .tournament-section-info .tournament-button-alt {
    width: auto;
    background: #fff;
    color: #323234;
    border: 1px solid #323234;
    padding: 0 30px;
    opacity: .6;
    transition: all 0.2s ease-in-out;
}
.tournament-section-tabs .tournament-button:hover, .tournament-section-info .tournament-button:hover {
    opacity: 1;
}

.tournament-section-tabs .tournament-button.active, .tournament-section-info .tournament-button.active {

    color: #fff;
    background: rgb(255, 139, 23);
    opacity: 1;
}
.tournament-section-tabs .tournament-button-alt.active, .tournament-section-info .tournament-button-alt.active {

    color: #fff;
    background: #323234;
    opacity: 1;
}

.tournament-section-info:not(.active) {
    display: none;
}

.tournament-rounds-list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tournament-rounds-list .tournament-button{
    width: auto;
    background: #fff;
    color: rgb(255, 139, 23);
    border: 1px solid rgb(255, 139, 23);
    padding: 0 20px;
    opacity: .6;
    transition: all 0.2s ease-in-out;
    height: 40px;
    margin: 0 0 20px;
}
.tournament-rounds-list .tournament-button:hover {
    opacity: 1;
}
.tournament-rounds-list .tournament-button.active {

    color: #fff;
    background: rgb(255, 139, 23);
    opacity: 1;
}

.tournament-info {
    margin-bottom: 20px;
}

.tournament-rounds-results table a, .upcoming-tournaments a {
    color: #33b1cf;
}

.upcoming-tournaments {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tournament-ended table:not(.show-all) tr:nth-child(n+5){
    display: none;
}

.tournament-section-tabs select, .tournament-section-info select, .tournament-rounds-list select {display: none;}


.tournament-overlay {
    display:none;
    position: fixed;
    top: 0;
    bottom:0;
    left: 0;
    right: 0;
    padding: 20px 10px;
    background: rgba(0,0,0,0.6);
    z-index: 100000000;
}
.tournament-overlay.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    overflow: scroll;
}
.tournament-overlay > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    padding: 20px 20px 20px; 
    max-width: 100%;
    width: 1000px;
    position: relative;
}

.tournament-overlay > div > div {

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tournament-overlay > div > div  h4 {
    width: 100%;
    flex: 0 0 auto;
}

.tournament-overlay > div > a {
    background: url(../assets/images/close.svg) no-repeat center;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 5px;
    right: 5px;
}

.tournament-overlay .tournament-flex > div:first-child {
    width: 30%;
    margin-bottom: 30px;
}
.tournament-overlay .tournament-flex > div:last-child {
    width: 70%;
}

.tournament-overlay table {
    width: 100%;
}
.tournament-overlay > div > div > div > div:first-child > table td {
    width: 50%;
} 

.tournament-overlay > div > div > div > div:first-child > table td:nth-child(2) {
    font-weight: 600;
}

.whatsapp-link {
    background: #fff;
    color: #4dd85c;
    gap: 10px;
    border: 1px solid #4dd85c;
}
.whatsapp-link:before {
    content: '';
    width: 40px;
    height: 40px;
    background: url(../assets/images/whatsapp.svg) no-repeat center;
    background-size: contain;
}

@media (max-width: 991px) {


    .tournament-content {
        flex-direction: column-reverse;
    }
    .page-id-1343 .tournament-content {
        flex-direction: column;

    }
    .tournament-main,
    .tournament-options {
        width: 100%;
    }

    .tournament-flex {
        flex-direction: column;
        gap: 0;
    }
    .tournament-flex > * {
        width: 100% !important;
    }

    .tournament-rounds {width: 100%;}

    .tournament-section-tabs a, .tournament-section-info a {display: none;}
    .tournament-section-tabs select, .tournament-section-info select, .tournament-rounds-list select {display: block; width: 100%; height: 80px;}
    .tournament-rounds-list a {display: none;}
    .tournament-rounds-list select {display: block; width: 100%;}

    .tournament-rounds-results.results table td:nth-child(9),
    .tournament-rounds-results.results table td:nth-child(10),
    .tournament-rounds-results.results table td:nth-child(11),
    .tournament-rounds-results.results table td:nth-child(12),
    .tournament-rounds-results.results table td:nth-child(13), 
    .tournament-rounds-results.results table th:nth-child(9),
    .tournament-rounds-results.results table th:nth-child(10),
    .tournament-rounds-results.results table th:nth-child(11),
    .tournament-rounds-results.results table th:nth-child(12),
    .tournament-rounds-results.results table th:nth-child(13) {
        display: none;
    }

    
    .tournament-rounds-results.pairings table td:nth-child(2),
    .tournament-rounds-results.pairings table td:nth-child(3),
    .tournament-rounds-results.pairings table td:nth-child(9),
    .tournament-rounds-results.pairings table td:nth-child(12),
    .tournament-rounds-results.pairings table td:nth-child(13),
    .tournament-rounds-results.pairings table th:nth-child(2),
    .tournament-rounds-results.pairings table th:nth-child(3),
    .tournament-rounds-results.pairings table th:nth-child(9),
    .tournament-rounds-results.pairings table th:nth-child(12),
    .tournament-rounds-results.pairings table th:nth-child(13) {
        display: none;
    }

    

}

@media (max-width: 767px) {

    .tournament-rounds-results.results table td:nth-child(3),
    .tournament-rounds-results.results table td:nth-child(5),
    .tournament-rounds-results.results table td:nth-child(6),
    .tournament-rounds-results.results table td:nth-child(7),
    .tournament-rounds-results.results table td:nth-child(9),
    .tournament-rounds-results.results table td:nth-child(10),
    .tournament-rounds-results.results table td:nth-child(11),
    .tournament-rounds-results.results table td:nth-child(12),
    .tournament-rounds-results.results table td:nth-child(13), 
    .tournament-rounds-results.results table th:nth-child(3),
    .tournament-rounds-results.results table th:nth-child(5),
    .tournament-rounds-results.results table th:nth-child(6),
    .tournament-rounds-results.results table th:nth-child(7),
    .tournament-rounds-results.results table th:nth-child(9),
    .tournament-rounds-results.results table th:nth-child(10),
    .tournament-rounds-results.results table th:nth-child(11),
    .tournament-rounds-results.results table th:nth-child(12),
    .tournament-rounds-results.results table th:nth-child(13) {
        display: none;
    }

    .tournament-rounds-results.players table td:nth-child(1),
    .tournament-rounds-results.players table td:nth-child(2),
    .tournament-rounds-results.players table td:nth-child(4),
    .tournament-rounds-results.players table td:nth-child(5),
    .tournament-rounds-results.players table th:nth-child(1),
    .tournament-rounds-results.players table th:nth-child(2),
    .tournament-rounds-results.players table th:nth-child(4),
    .tournament-rounds-results.players table th:nth-child(5) {
        display: none;
    }


    
    .tournament-rounds-results.pairings table td:nth-child(1),
    .tournament-rounds-results.pairings table td:nth-child(2),
    .tournament-rounds-results.pairings table td:nth-child(3),
    .tournament-rounds-results.pairings table td:nth-child(6),
    .tournament-rounds-results.pairings table td:nth-child(8),
    .tournament-rounds-results.pairings table td:nth-child(9),
    .tournament-rounds-results.pairings table td:nth-child(12),
    .tournament-rounds-results.pairings table td:nth-child(13),
    .tournament-rounds-results.pairings table th:nth-child(1),
    .tournament-rounds-results.pairings table th:nth-child(2),
    .tournament-rounds-results.pairings table th:nth-child(3),
    .tournament-rounds-results.pairings table th:nth-child(6),
    .tournament-rounds-results.pairings table th:nth-child(8),
    .tournament-rounds-results.pairings table th:nth-child(9),
    .tournament-rounds-results.pairings table th:nth-child(12),
    .tournament-rounds-results.pairings table th:nth-child(13) {
        display: none;
    }

}


@media (max-width: 480px) {
    .tournament-rounds-results.pairings table td:nth-child(5),
    .tournament-rounds-results.pairings table td:nth-child(11),
    .tournament-rounds-results.pairings table th:nth-child(5),
    .tournament-rounds-results.pairings table th:nth-child(11) {
        display: none;
    }

    .tournament-overlay .tournament-flex > div:last-child > table >tbody> tr > td:nth-child(2),
    .tournament-overlay .tournament-flex > div:last-child > table >tbody> tr > td:nth-child(4),
    .tournament-overlay .tournament-flex > div:last-child > table >tbody> tr > td:nth-child(6),
    .tournament-overlay .tournament-flex > div:last-child > table >tbody> tr > td:nth-child(7),
    .tournament-overlay .tournament-flex > div:last-child > table >tbody> tr > td:nth-child(8),
    .tournament-overlay .tournament-flex > div:last-child > table >tbody> tr > th:nth-child(2),
    .tournament-overlay .tournament-flex > div:last-child > table >tbody> tr > th:nth-child(4),
    .tournament-overlay .tournament-flex > div:last-child > table >tbody> tr > th:nth-child(6),
    .tournament-overlay .tournament-flex > div:last-child > table >tbody> tr > th:nth-child(7),
    .tournament-overlay .tournament-flex > div:last-child > table >tbody> tr > th:nth-child(8)  {
        display: none;
    }
}