/* RESET START */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* RESET END */

:root {
    --dark: hsl( 225 calc( 1 *6.3%) 8.5%);
    --light: hsl( 227 calc( 1 *6.5%) 90.3% /1);
    --text-normal: hsl( 210 calc( 1 *9.1%) 87.1% /1);
}

body {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    font-family: 'DM Sans', sans-serif;
    background-color: var(--dark);
    color: var(--text-normal);
}

.u {
    text-decoration: underline;
}

header {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

h1 {
    padding: 1rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}

h2 {
    font-size: 1.1rem;
}

.stats-buttons {
    display: flex;
    flex-flow: row nowrap;
    gap: 1rem;
    padding: 1rem;
    justify-content: space-around;
    width: 500px;
    max-width: 90%;
}


button,select,option {
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--light);
    border: 1px solid #0c0c0c;
    color: #000;
    border-radius: 1px;
}

@media (hover: hover) and (pointer: fine) {
    button:hover, select:hover {
        background-color: rgb(207, 207, 207);
    }
}

:focus-visible, *:focus-visible {
    outline: rgb(106, 129, 148) auto 1px;
}

select,option {
    padding: .15rem .2rem;
}

button {
    padding: .15rem .5rem;
}

@media only screen and (max-width: 500px) {
    .stats-buttons {
        flex-flow: column nowrap;
        justify-content: center;
        width: fit-content;
    }

    button,select,option {
        padding: .3rem;
    }
}

.stats-container {
    display: grid;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    width: 600px;
    max-width: 95%;
}

.stats {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    position: relative;
    border: 1px solid #dadada;
    padding: 1rem;
    /* background-color: rgb(253, 253, 253); */
    background-color: rgb(32, 32, 36);
}

.stats:nth-child(even) {
    background-color: rgb(33, 33, 43);
}


.stats .header {
    grid-column: 1 / span 3;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.stats .header p {
    margin: .2rem 0;
}

.stats .player, .stats .stat-names {
    display: flex;
    justify-content: center;
    flex-flow: column nowrap;
}

.stats .stat-names {
    align-self: end;
    text-align: right;
}

.stats .player {
    text-align: center;
}

.player .name {
    padding-bottom: .5rem
}

p.wstats {
    padding: 0.3rem 0!important;
}

.stats .stat-names p, .player p:not(.name) {
    border-bottom: 2px solid #8f8f8f;
    padding: 0.2rem 0;
    line-height: 1.5;
    font-size: 1.1rem;
}

.stats .stat-names p:last-child, .player p:last-child {
    border-bottom: 2px solid transparent;
}


.stats .stat-names, .player .name {
    font-weight: 600;
    /* color: rgb(20, 20, 20); */
}

.player .name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow:ellipsis;
}

.stats p {
    margin: 0;
    padding: 0;
}

.wstats button {
    font-size: 1rem;
    padding: 0.1rem 0.35rem;
    line-height: 1.15;
}

.wstats-box {
    background-color: rgba(8, 8, 8, .96);
    padding: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 2rem;
    row-gap: .75rem;
}


.wstats-header {
    grid-column: 1 / span 2;
    margin-bottom: .5rem;
}

.weapon-name {
    font-weight: 600;
    margin-bottom: .15rem;
}

.overlay {
    display: none;
    align-items: center;
    background-color: rgba(12,13,13,.8);
    height: 100%;
    justify-content: center;
    left: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.overlay > * {
    z-index: 11;
}

.overlay.visible {
    display: flex;
}

.overlay-icon {
    position: fixed;
    cursor: pointer;
    right: 8px;
    z-index: 101;
    border-radius: 5px;
    height: 3rem;
    width: 3rem;
}

.close-btn {
    fill: #fff;
    top: 5px;
}
