/********************************************/
/*************  STATS PAGE  *****************/
/********************************************/



/* TEMP BORDERS */


/* END TEMP BORDERS */




/* LAYOUT */
/* display, margins, padding */

.pageBlurb.cc-stats h4,
.pageBlurb.cc-stats p:not(:first-of-type) {
    margin-bottom: .5rem;
}

ul.stats-page-tabs {
    margin-top: 2rem;
    margin-bottom: -.625rem;
}

ul.stats-page-tabs li {
    display: inline;
    margin-right: 0;
    padding: .375rem;
    padding-bottom: .625rem;
}

ul.stats-page-tabs li:hover {
    cursor: pointer;
}

.statsWrapper {
    display: none;
}

.statsWrapper.active-item {
    display: block;
}

.statsWrapper > div {
    margin-bottom: 1rem;
}

#general_stats_overall {
    display: flex;
    flex-flow: column;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

#general_stats_overall > div,
#basegame_stats_overall .basegame_stats_overall--row > div {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    max-width: 450px;
}

#basegame_stats {
    display: flex;
    flex-flow: column;
}

.basegame-stats-item h1 {
    margin-bottom: .5rem;
}

ul#basegame_tabsList {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
}

ul#basegame_tabsList li:hover {
    cursor: pointer;
}

ul#basegame_tabsList li:nth-of-type(2) {
    margin: 0 8px;
}

ul#basegame_tabsList img {
    width: 90px;
    height: 119px;
    object-fit: cover;
    object-position: 0% 0%;
}

.basegame-stats-item #basegame_stats_overall {
    margin: 1rem 0 2.5rem; 
}

#basegame_stats_tables div.tables--wrapper > div {
    margin-bottom: 2rem;
}

.js-axis-vs-allies,
.js-allies-vs-axis {
    display: none;
}

.js-axis-vs-allies.active,
.js-allies-vs-axis.active {
    display: block;
}

.basegame-stats-item {
    display: none;
}

.basegame-stats-item.basegame-stats-item--initial {
    display: block;
}

.flip-view-btn {
    margin-bottom: .75rem;
}

.flip-view-btn span {
    display: inline-flex;
    align-items: center;
}

.flip-view-btn span i {
    margin-right: .5rem;
}

#scenario_stats_form .myFormsRow .formLabel {
    min-width: 105px;
    max-width: 105px;
}

#scenario_stats_form .myFormsRow.scenario-ddl .formInput.scenario-ddl {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-content: center;
}

#scenario_stats_form .myFormsRow.scenario-ddl button {
    margin-left: .5rem;
}

#scenario_stats_form_results {
    display: flex;
    justify-content: center;
    flex-flow: column;
    align-items: flex-start;
    margin-top: 2rem;
} 

#scenario_stats_form_results img.scenario-stats-map {
    margin-right: 1rem;
    margin-bottom: 1.5rem;
} 

#scenario_stats_form_results > div:first-of-type {
    width: 100%;
}

#scenario_stats_form_results .scenario-stats-inner-row {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .675rem;
} 


@media (min-width: 360px) {

    ul.stats-page-tabs li {
        margin-right: 2px;
        padding: .5rem;
    }

}




@media (min-width: 400px) {

    ul.stats-page-tabs li {
        margin-right: .375rem;
        padding: .75rem;
    }
    
    ul#basegame_tabsList li:nth-of-type(2) {
        margin: 0 10px;
    }

    ul#basegame_tabsList img {
        width: 100px;
        height: 132px;
    }

}

@media (min-width: 500px) {

    ul#basegame_tabsList li:nth-of-type(2) {
        margin: 0 15px;
    }

    ul#basegame_tabsList img {
        width: 120px;
        height: 158px;
    }

}

@media (min-width: 560px) {

    #scenario_stats_form_results {
        flex-flow: row nowrap;
    }

}


@media (min-width: 600px) {

    ul#basegame_tabsList li:nth-of-type(2) {
        margin: 0 20px;
    }

    ul#basegame_tabsList img {
        width: 130px;
        height: 172px;
    }


}


@media (min-width: 700px) {

    ul#basegame_tabsList li:nth-of-type(2) {
        margin: 0 30px;
    }

    ul#basegame_tabsList img {
        width: 140px;
        height: 185px;
    }

    #scenario_stats_form_results > div:first-of-type {
        max-width: 400px;
    }
    
    

}

@media (min-width: 1000px) {

    #scenario_stats_form .myForms {
        max-width: 800px;
    }
}

@media (min-width: 800px) {

    #general_stats_overall {
        justify-content: center;
        flex-flow: row nowrap;
    }

    #general_stats_overall > div {
        flex-flow: column;
        align-items: center;
        margin: 0 2rem;
    }

    #general_stats_overall > div span:first-of-type {
        text-align: center;
    }

    #basegame_stats {
        flex-flow: row nowrap;
    }
    
    #basegame_stats_tabs {
        margin-top: .5rem;
        margin-right: 2rem;
    }
    
    ul#basegame_tabsList {
        flex-flow: column;
        margin-right: 1rem;
    }

    ul#basegame_tabsList li,
    ul#basegame_tabsList li:nth-of-type(2) {
        margin: 0 0 1rem;
    }

    ul#basegame_tabsList img {
        width: 150px;
        height: unset;
        object-fit: unset;
        object-position: unset;
    }

    .basegame-stats-item #basegame_stats_overall {
        margin-top: 0; 
    }
    
    #general_stats_overall > div,
    #basegame_stats_overall .basegame_stats_overall--row > div {
        max-width: unset;
    }
    
    .basegame_stats_overall--row span:first-child {
        margin-right: 1rem;
        min-width: 110px;
    }
    
    .basegame_stats_overall--row span:last-child {
        margin-right: 2rem;
    }

    #basegame_stats_tables div.tables--wrapper {
        display: flex;
        flex-flow: row wrap;
    }
    
    #basegame_stats_tables div.tables--wrapper > div {
        margin-right: 2rem;
        width: 500px;
    }

}


@media (min-width: 830px) {

    .basegame_stats_overall--row {
        display: flex;
        flex-flow: row nowrap;
    }

}


@media (min-width: 1000px) {

    ul#basegame_tabsList {
        margin-right: 2rem;
    }

}


@media (min-width: 1510px) {

    #basegame_stats_tables div.tables--wrapper > div {
        margin-right: 6rem;
    }
    
}



/* END LAYOUT */



/* TABLES */

.statsGridviews {
    width: 100%;
    max-width: 400px;
}

.statsGridviews td {
    font-size: 1rem;
}

.statsGridviews th:nth-last-of-type(2),
.statsGridviews td:nth-last-of-type(2),
.statsGridviews th:last-of-type,
.statsGridviews td:last-of-type {
    text-align: right;
}

.statsGridviews td:nth-last-of-type(2),
.statsGridviews td:last-of-type {
    padding-right: 5px;
}


@media (min-width: 500px) {

    .statsGridviews {
        margin: 0 auto;
    }

}
    
@media (min-width: 800px) {

    .statsGridviews {
        width: unset;
        min-width: 350px;
    }
        
}

@media (min-width: 1300px) {

    .statsGridviews {
        margin: 0;
    }
    
}


/* END TABLES */




/* FONTS, BORDERS, COLORS */

@font-face {
    font-family: "DueDate";
    src: url('/_fonts/DueDate.ttf');
}

.contentMainSection.cc-stats-page h1 {
    font-family: duedate;
    font-size: 1.5rem;
    font-weight: 700;
}

ul.stats-page-tabs li {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-width: 1px 1px 0;
    font-family: Roboto;
    font-size: 1rem;
    font-weight: 700;
}

ul.stats-page-tabs li.active-tab,
ul.stats-page-tabs li:hover {
    background-color: rgb(240,240,205);
    color: rgb(156,144,86);
}

.statsWrapper {
    font-size: 1.25rem;
}

#general_stats_overall {
    border-bottom-width: 2px;
}

#general_stats_overall > div span:last-child {
    font-size: 1.75rem;
    font-weight: 700;
}

#basegame_stats_overall .basegame_stats_overall--row > div span:last-child {
    font-size: 1.375rem;
    font-weight: 700;
}

ul#basegame_tabsList img {
    border: 1px solid rgb(202,190,143);
}

ul#basegame_tabsList li.basegame-stats-tab {
    box-shadow: 0;
}

ul#basegame_tabsList li.basegame-stats-tab.basegame-tab--active img {
    box-shadow: 0 0 10px 3px rgba(240,240,205,.9);
    transition: box-shadow 100ms;
    transition-timing-function: ease;
    transition-timing-function: linear;
}

.flip-view-btn {
    background-color: inherit;
    color: inherit;
    cursor: pointer;
    font-weight: 500;
}

.flip-view-btn:hover {
    outline: 1px dotted rgb(200,200,200);
}

#scenario_stats_form_results .scenario-stats-inner-row span:last-of-type {
    font-size: 1.25rem;
    font-weight: 700;    
}

#scenario_stats_form_results img.scenario-stats-map {
    padding: 6px; /* this can stay here as the padding is for the border */
    border: 1px solid rgb(202,190,143);
}



@media (min-width: 440px) {

    ul.stats-page-tabs li {
        font-size: 1.125rem;
    }
       
}

@media (min-width: 800px) {

    #general_stats_overall > div span:first-child {
        font-size: 1.5rem;
    }
        
    #general_stats_overall > div span:last-child {
        font-size: 2.5rem;
    }
        
    
}


/* END FONTS, BORDERS, COLORS */
