
#ew-stats {
    display: grid;
    grid-template-rows: auto 1fr 1fr;
    grid-row-gap: 1em;
    width: 100%;
    margin-bottom: 5em;

    .green-box {
        padding: 2em;
    }

    h1 {
        text-align: center;
        margin: 1em;
    }

    h2 {
        text-transform: uppercase;
        color: var(--color-green);
        font-weight: 800;
        margin-bottom: 30px;
        text-align: center;
    }

    #game-stats, #training-stats {
        display: grid;
        grid-template-rows: auto 1fr;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: unset !important;

        .graph-container {
            width: 100%;
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-column-gap: 1em;

            canvas {
                max-width: 500px !important;
                max-height: 400px !important;
                min-height: 300px;
            }
        }

        form:has(select) {
            min-width: min(100%, 400px);
            justify-self: center;
        }

        select {
            margin-bottom: 2em;
        }
    }
}

@media screen and (max-width: 768px) {
    #ew-stats {
        display: grid;
        grid-template-rows: auto auto auto;
        grid-row-gap: 2em;
        width: 100%;

        #game-stats, #training-stats {
            .graph-container {
                grid-template-columns: 1fr;
                grid-row-gap: 5em !important;

                canvas {
                    max-width: 100% !important;
                    max-height: 300px !important;
                }
            }
        }

        #game-stats {
            margin-bottom: 2em;
        }
    }
}

@media screen and (max-width: 317px) {
    .ast-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}