*, *:after, *:before {
    box-sizing: border-box;
}

:root {
    --dark: rgb(0,0,0,0.87);
    --yellow: #F7CA18;
    --dark-blue: #0A0F2D;
    --white: #F2F1EF;
    --neon-green: #49fb35;
    --neon-blue: #228DFF;
    --gray: #ABB7B7;
    --bright-red: #CF000F;
}

html, body, ul {
    margin: 0;
    padding: 0;
}

html, body {
    height: 100dvh;
    width: 100dvw;
}

body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: max-content 1fr;
}

html {
    background-color: #D2D7D3;
    color: var(--dark);

    font-family: 'Segoe UI', 'Helvetica', sans-serif;
}

button:active {
    background-color: var(--neon-blue);
    color: var(--white);
}


.hidden {
    display: none !important;
}

ul {
    list-style: none;
    cursor: pointer;
}

.neon {
    transition: all .5s ease;
    color: var(--neon-blue);
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px var(--neon-blue), 0 0 35px var(--neon-blue), 0 0 40px var(--neon-blue), 0 0 50px var(--neon-blue), 0 0 75px var(--neon-blue);
}
.neon:hover, .neon-hover {
    color: var(--white);
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px var(--neon-blue), 0 0 70px var(--neon-blue), 0 0 80px var(--neon-blue), 0 0 100px var(--neon-blue), 0 0 150px var(--neon-blue);
}
.neon-blink {
    color: var(--white);
    animation: neon2 1.5s ease-in-out infinite alternate;
}

@keyframes neon2 {
    from {
        text-shadow: 0 0 10px var(--dark), 0 0 20px var(--neon-blue), 0 0 30px var(--neon-green), 0 0 40px var(--bright-red), 0 0 70px var(--neon-blue), 0 0 80px var(--neon-green), 0 0 100px var(--neon-blue), 0 0 150px var(--yellow);
    }
    to {
        text-shadow: 0 0 5px var(--dark), 0 0 10px var(--bright-red), 0 0 15px var(--yellow), 0 0 20px var(--bright-red), 0 0 35px var(--neon-blue), 0 0 40px var(--neon-green), 0 0 50px var(--neon-blue), 0 0 75px var(--yellow);
    }
}

/* HEADER */
header {
    display: flex;

    align-content: space-around;

    font-size: 2em;

    background-color: var(--dark-blue);
}
header h1 {
    display: inline-block;
    flex-grow: 1;

    font-size: inherit;
    padding: 1em;
    margin: 0;

    overflow: hidden;
    min-width: 300px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
header button {
    flex: 0;
    margin: .5em;
    font-size: inherit;
}

nav {
    position: absolute;
    width: 100%;
    z-index: 800;
}

.navigation {
    display: flex;
    flex-direction: column;
}
.navigation li {
    flex: 1;
    padding: 1em;
    line-height: 10vh;
    font-size: 1.5em;
    font-weight: bold;
    background-color: var(--dark-blue);

    color: var(--neon-blue);
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px var(--yellow), 0 0 35px var(--yellow), 0 0 40px var(--yellow), 0 0 50px var(--yellow), 0 0 75px var(--yellow);

    transition: all .2s ease;
}
.navigation li:hover {
    color: var(--white);
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px var(--yellow), 0 0 70px var(--yellow), 0 0 80px var(--yellow), 0 0 100px var(--yellow), 0 0 150px var(--yellow);
}
.navigation li:not(:last-of-type) {
    border-bottom: 2px solid var(--yellow);
}


/* PAGES */
article {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    flex-grow: 2;

    margin: 0;
    padding: 1em;
}

article > section {
    background-color: var(--white);
    padding: 1em;

    box-shadow: 0 3px 4px 0 rgba(0, 0, 0, .14),
                0 1px 8px 0 rgba(0, 0, 0, .12),
                0 3px 3px -2px rgba(0, 0, 0, .4);
}
article > section:not(:last-of-type) {
    margin-bottom: 1em;
}

section h2, section h3 {
    padding: 0;
    margin: 0;
    margin-bottom: .5em;
}

.section-disabled {
    pointer-events: none;
    position: relative;
}
.section-disabled:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    background-color: rgba(255, 255, 255, .75);
}

.team-section {
    display: flex;
    flex-direction: column;

    padding: 1em;

    margin-left: -1em;
    margin-right: -1em;
    color: white;
    background-color: var(--dark-blue);
}
.team-section:first-of-type {
    margin-bottom: 1em;
}
.team-section:last-of-type {
    margin-bottom: -1em;
}
.team-section h3 {
    margin-bottom: .5em;
}
.team-section h3:after {
    content: ":";
}

/* Buttons inside the team-section */
.team-section > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5em;
    font-size: 150%;

    text-shadow: 1px 1px 1px var(--dark);

    border-radius: 5px;
}
.team-section > div:not(:last-of-type) {
    margin-bottom: .25em;
}

.team-section > div:nth-of-type(1) {
    background-image: linear-gradient(to top, #87D37C 0%, #FFF200 100%);
}
.team-section > div:nth-of-type(2) {
    background-image: linear-gradient(to top, #D2527F 0%, #FF0DBF 100%);
}
.team-section > div:nth-of-type(3) {
    background-image: linear-gradient(to top, #FF8000 0%, #F89406 100%);
}
.team-section > div button {
    padding: .25em .75em;
    font-weight: bold;
    font-size: inherit;
}


.admin-form label {
    display: block;
    margin-bottom: .25em;
}
.admin-form label span {
    display: block;
}
.admin-form label input:not([type="submit"]) {
    width: 100%;
}

.games-list li {
    padding: .5em 1em;

    border-radius: 3px;

    color: var(--white);
    background-color: var(--neon-blue);

    border: 2px solid var(--neon-green);

    transition: all .2s ease;
}
.games-list:not(.no-click) li:hover {
    background-color: var(--dark-blue);
}
.games-list li:not(:last-of-type) {
    margin-bottom: .25em;
}

.games-list li > button, .games-list li > span {
    float: right;
    margin-left: 1em;
}
.games-list li > b {
    pointer-events: none;
}

.small-status-wrap {
    margin: .5em;
    font-size: 70%;
}

#dashboard {
    background-color: var(--dark);

    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto max-content max-content;
}

/* Game statistics */
.game-stats {
    line-height: 2;
    font-size: clamp(1rem, 3vw, 3rem);
    color: var(--white);
    text-align: center;
}

/* Countdown timer */
.count-down-timer {
    margin: 0 -1em -1em;

    position: relative;

    text-align: center;

    background-color: var(--dark-blue);
}
#progress-bar {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;

    transition: width 1s ease-in-out;

    background-image: linear-gradient(to right, var(--neon-green) 0%, var(--yellow) 100%);
}
.count-down-timer span:first-of-type {
    padding: .75em;
    font-size: 3em;
    display: block;
    position: relative;
    z-index: 5;
}

/* CHARTS */
#game-pies {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}
.chart-container {
    position: relative;

    flex: 1 1 600px;

    padding: 0;
    margin: 0;
}
