/* CSS reset */

html {
    font-size: 15px;
    color: rgb(255, 255, 255);
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: rgb(25, 25, 25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header */

.header-background {
    background-image: url('conquest_screenshot.jpg');
    background-size: cover;
    background-position: center;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(20, 20, 20, 0.7);
    padding-top: 20px;
    margin-bottom: 20px;
    min-height: 400px;
    justify-content: space-between;
}

/* Set selection bar */

#set-selection-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95%;
    padding: 10px;
    background-color: rgb(35, 35, 35);
    border: 1px solid rgb(70, 70, 70);
    border-radius: 5px;
}

#sets-dropdown-desc {
    display: flex;
    flex-direction: column;
}

#show-stats-for {
    font-weight: bold;
    margin-right: 10px;
}

#not-all-available {
    font-size: 0.8rem;
}

.dash-dropdown {
    padding: 0px 3px;
}

#seasons-dropdown {
    width: 115px;
}

#events-dropdown {
    width: 170px;
}

#stages-dropdown {
    width: 190px;
}

#sets-dropdown {
    width: 430px;
    padding-right: 5px;
}

.Select-control {
    background-color: rgb(45, 45, 45) !important;
    border: 1px solid rgb(70, 70, 70);
}

.is-open>.Select-control {
    border: 1px solid rgb(95, 95, 95);
}

.is-focused:not(.is-open) > .Select-control {
    border: 1px solid rgb(95, 95, 95);
    box-shadow: none;
  }

.Select-value-label {
    color: rgb(255, 255, 255) !important;
}

/* dropdown menu options */
.VirtualizedSelectOption {
    background-color: rgb(40, 40, 40);
    /* border: 1px solid red; */
    color: rgb(255, 255, 255);
}

.Select-menu-outer {
    border: 1px solid rgb(95, 95, 95);
}

.sets-bar-button {
    background-color: rgb(75, 75, 75);
    border: 1px solid rgb(95, 95, 95);
    padding: 8px;
    color: rgb(255, 255, 255);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    margin-left: 7px;
}

.sets-bar-button:hover {
    background-color: rgb(80, 80, 80);
}

.sets-bar-button:active {
    background-color: rgb(85, 85, 85);
}


/* Set summary */

#set-summary-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Set description */

#set-description {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

#set-date {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 25px;
}

/* Teams and scores */

#score-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 20px;
}

.score-team {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    text-align: center;
    font-weight: bold;
}

.team-logo {
    height: 85px;
    width: auto;
}

#team1-logo {
    margin-left: 30px;
}

#team2-logo {
    margin-right: 30px;
}

#score-team-1 {
    justify-content: flex-end;
}

#score-team-2 {
    justify-content: flex-start;
}

#score-score {
    margin: 0px 20px;
    font-size: 2.5rem;
    white-space: nowrap;
    font-weight: bold;
}

#winner-score {
    color: rgb(60, 179, 113);
    text-decoration: underline;
}

#game-winners-container {
    font-style: italic;
    text-align: center;
    font-size: 0.95rem;
}

/* Game tabs */

#game-tabs {
    display: flex;
    font-weight: bold;;
}

#game-tabs label {
    display: inline-block;
    padding: 15px 20px;
    margin: 0px 5px;
    border-radius: 5px 5px 0px 0px;
    border: none;
    font-size: 1rem;
    background-color: rgb(40, 40, 40);
}

#game-tabs input {
    width: 0px;
    height: 0px;
    opacity: 0;
}

#game-tabs input:checked + label{
    background-color: rgb(25, 25, 25);
}

#game-tabs label:hover {
    background-color: rgb(30, 30, 30);
}

/* Stats tabs */

#stats-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

#stats-tabs {
    display: flex;
    font-weight: bold;
}

#stats-tabs label {
    display: inline-block;
    padding: 18px 0;
    width: 170px;
    text-align: center;
    margin: 0px 10px;
    border-radius: 7px;
    border: none;
    font-size: 1rem;
    background-color: rgb(45, 45, 45);
    position: relative;
}

#stats-tabs input {
    width: 0px;
    height: 0px;
    opacity: 0;
}

#stats-tabs input:checked + label{
    background-color: rgb(60, 60, 60);
}

#stats-tabs label:hover {
    background-color: rgb(60, 60, 60);
}

#stats-tabs input:checked + label::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid rgb(60, 60, 60);
    transform: translateX(-55%);
}

/* Game stats grid */

.loading-parent > div:nth-child(2) {
    height: 40px !important;
}

#stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    justify-content: center;
    margin: 0px 15px 25px 15px;
    grid-gap: 15px;
    min-height: 100vh;
}

.stats-full-row {
    grid-column: span 2;
    display: flex;
    padding: 12px;
    border: 1px solid rgb(75, 75, 75);
    border-radius: 4px;
    flex-direction: column;
    visibility: hidden;
}

.stats-cell-body {
    display: flex;
    justify-content: center;
}

.column {
    flex-direction: column;
}

.row {
    flex-direction: row;
}

.stats-cell {
    border: 1px solid rgb(75, 75, 75);
    display: flex;
    padding: 12px;
    border-radius: 4px;
    flex-direction: column;
    visibility: hidden;
}

.stats-cell-header {
    border-bottom: 1px solid rgb(75, 75, 75);
    margin-bottom: 20px;
    padding: 5px 5px 10px 5px;
}

.stats-cell-header p:first-child {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.stats-cell-header p:nth-of-type(2) {
    font-size: 1rem;
}

/* Standard styles */

#stats-grid table {
    margin: 0 auto;
    font-size: 1.1rem;
    border-collapse: collapse;
    background-color: rgb(30, 30, 30);
    margin-bottom: 10px;
}

#stats-grid table th {
    background-color: rgb(35, 35, 35);
}

.dash-graph {
    flex-grow: 1;
    width: 100%;
}

.data-table td, .data-table th {
    padding: 8px 7px;
    border: 1px solid rgb(45, 45, 45);
    font-size: 0.97rem;
}

/* Game result */ 

#game-result-game {
    text-align: center;
    margin-bottom: 5px;
}

#game-result-container {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 7px;
    font-weight: bold;
}

.result-team {
    display: flex;
    align-items: center;
    font-size: 1.75rem;
    text-align: center;
}

#game-result-team-1 {
    justify-content: flex-end;
}

#game-result-team-2 {
    justify-content: flex-start;
}

#game-result-score {
    margin: 0px 20px;
    font-size: 1.75rem;
    white-space: nowrap;
}

#game-result-winner {
    color: rgb(60, 179, 113);
    text-decoration: underline;
}

#game-time {
    text-align: center;
    margin-bottom: 20px;
}

/* Team summary table */

.team-summary-table {
    border: 1px solid rgb(45, 45, 45);
}

.team-summary-table th {
    border-bottom: 1px solid rgb(45, 45, 45);
}

#Kills-header {
    border-left: 1px solid rgb(45, 45, 45);
}

.team-summary-team-cell {
    padding: 20px;
}

.team-summary-team-name {
    font-weight: bold;
}

.team-summary-team-side {
    font-size: 0.95rem;
}

.team-summary-cell {
    width: 165px;
    text-align: center;
    padding: 10px 0px;
}

#team1_advantage > td, #team-summary-team1 {
    border-bottom: 1px solid rgb(45, 45, 45);
}

.Kills-cell, .Towers-cell, .Phoenixes-cell, .FireGiants-cell, #Kills-header, #Towers-header, #Phoenixes-header, #FireGiants-header, #team-summary-team1, #team-summary-team2 {
    border-right: 1px solid rgb(45, 45, 45);
}

.team1_kills-cell, .team2_kills-cell {
    font-size: 1.4rem;
    padding-bottom: 0px;
    font-weight: bold;
    padding: 20px 20px 0px 20px;
}

.team1_first-cell, .team2_first-cell {
    padding: 0px;
    font-size: 0.8rem;
    color: rgb(240, 240, 240);
    font-style: italic;
}

.team1_advantage-cell {
    font-size: 0.8rem;
    color: rgb(240, 240, 240);
    padding: 10px 10px 10px 10px;
}

.team2_advantage-cell {
    font-size: 0.8rem;
    padding: 15px 10px 10px 10px;
}

.team2_first-cell {
    padding: 10px 10px 20px 10px
}

/* Player summary table */

.player-stats-summary-container {
    margin: 0px 5px;
}

.relics-cell {
    min-width: 50px;
}

.items-cell {
    min-width: 150px;
}

.summary-god-img {
    width: 30px;
    height: auto;
    border-radius: 3px;
}

.player-summary-player-name {
    font-weight: bold;
}

.player-summary-god-name {
    font-size: 0.8rem;
}

.item-img {
    width: 30px;
    height: auto;
    margin: 0px 2px;
    border-radius: 3px;
}

/* Max hits table */

.max-hits-table td, .max-hits-table th {
    padding: 12px 17px;
}

/* E-couple */

#e-couple-table td {
    text-align: center;
}

.e-couple-name {
    font-size: 1.3rem;
    font-weight: bold;
    padding-bottom: 15px;
}

.e-couple-description {
    padding: 0px 10px 20px 10px;
}

.e-couple-heart {
    font-size: 4rem;
    color: rgb(255, 116, 250);
}

.e-couple-img {
    width: 250px;
    border-radius: 50%;
    height: auto;
    margin: 20px 20px 15px 20px;
}

#e-couple-healing-number {
    font-weight: bold;
}

/* Buff kills */

.buff-kills-table td, .buff-kills-table th {
    padding: 12px 17px;
}

/* Map */

#map {
    width: 100%;
    height: 80vh;
}

.leaflet-container {
    background-color: rgb(45, 45, 45) !important;
}

#map img {
    width: 40px;
    height: auto;
    border-radius: 50%;
}

.maps-footer {
    grid-column: span 2;
    justify-content: center;
    font-size: 0.75rem;    
    display: flex;
    visibility: hidden;
}

.maps-footer a {
    color: rgb(255, 255, 255);
}

/* Footer */

#footer {
    background-color: rgb(45, 45, 45);
    text-align: center;
    padding: 20px;
}

#footer p {
    margin: 10px;
}

#footer a {
    color: rgb(255, 255, 255);
}

/* Loading */

*[class="dash-dropdown"][data-dash-is-loading="true"] {
    opacity: 0.5;
}

*[data-dash-is-loading="true"] .Select-placeholder {
    visibility: hidden;
}

*[data-dash-is-loading="true"] .Select-placeholder::before {
    content: "Loading...";
    visibility: visible;
}

*[data-dash-is-loading="true"] .Select-value {
    visibility: hidden;
}

*[data-dash-is-loading="true"] .Select-value::before {
    content: "Loading...";
    visibility: visible;
}

*[id="sets-button"][data-dash-is-loading="true"] {
    display: none
}

#loading-button {
    display: none;
}

*[id="loading-button"][data-dash-is-loading="true"] {
    opacity: 0.5;
    display: inline-block !important;
    pointer-events: none;
}

*[id="seasons-dropdown"][data-dash-is-loading="true"] {
    pointer-events: none;
}

*[id="events-dropdown"][data-dash-is-loading="true"] {
    pointer-events: none;
}

*[id="stages-dropdown"][data-dash-is-loading="true"] {
    pointer-events: none;
}

*[id="sets-dropdown"][data-dash-is-loading="true"] {
    pointer-events: none;
}

*[id="game-tabs"][data-dash-is-loading="true"] {
    pointer-events: none;
    color: rgb(105, 105, 105);
}

*[id="stats-tabs"][data-dash-is-loading="true"] {
    pointer-events: none;
    color: rgb(105, 105, 105);
}

*[id="stats-grid"][data-dash-is-loading="true"] {
    opacity: 0;
    pointer-events: none;
}

@media only screen and (max-width: 1830px) {
    .player-stat-summary {
        flex-direction: column;
    }
}

@media only screen and (max-width: 1200px) {
    html {
        font-size: 12px;
    }

    /* Header */

    .header-container {
        min-height: 520px;
    }
    #set-selection-bar {
        flex-direction: column;
    }

    /* Set selection bar */ 

    #sets-dropdown-desc {
        margin-bottom: 5px;
    }

    #seasons-dropdown {
        width: 100%;
        padding: 3px 0px;
    }
    
    #events-dropdown {
        width: 100%;
        padding: 3px 0px;
    }
    
    #stages-dropdown {
        width: 100%;
        padding: 3px 0px;
    }
    
    #sets-dropdown {
        width: 100%;
        padding: 3px 0px 8px 0px;
    }

    /* Set description */

    #set-description {
        margin-bottom: 7px;
    }

    /* Teams and scores */

    .score-team {
        font-size: 1.5rem;
    }

    #score-score {
        margin: 0px 10px;
        font-size: 1.5rem;
    }

    .team-logo {
        height: 40px;
        width: auto;
    }

    #team1-logo {
        margin-left: 10px;
    }

    #team2-logo {
        margin-right: 10px;
    }

    /* Stats tabs */

    #stats-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    #stats-tabs label {
        padding: 12px 0;
        width: 130px;
        margin: 5px;
    }

    #stats-tabs input:checked + label::after {
        display: none;
    }

    /* Game stats grid */

    #stats-grid {
        grid-template-columns: minmax(0, 1fr);
        margin: 0px 10px 15px 10px;
        grid-gap: 10px;
    }

    .stats-full-row {
        grid-column: span 1;
    }

    .row {
        flex-direction: column;
    }
    
    /* Standard styles */

    .table-container {
        overflow-x: auto;
    }

    /* Team summary table */

    .team-summary-table th {
        min-width: 90px;
    }
    
    /* Player stats summary */ 

    .player-stats-summary-container {
        margin-bottom: 17px;
    }

    /* E-couple */

    .e-couple-img {
        width: 150px;
        border-radius: 50%;
        height: auto;
        margin: 10px 10px 5px 10px;
    }

    /* Buff kills table */

    .buff-kills-table td, .buff-kills-table th {
        padding: 6px 9px;
    }

    /* Maps */
    .maps-footer {
        grid-column: span 1;
    }
  }