* {
    font-family: "Roboto", sans-serif;
    color: whitesmoke;
}

h1 {
    margin: 0;
    padding: 0;
    font-size: 2rem;
}

h2 {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
}

header {
    margin: 0;
    padding: 1rem;
    background-color: #2d2b33;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.logo {
    width: 4rem;
    height: 4rem;
    margin-right: 0.5rem;
}

.header-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-title h1 {
    color: #f3c467;
    font-size: 1.5rem;
}

.header-title h2 {
    color: #69b072;
    font-size: 1.25rem;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #2d2b33;
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 6px;
    border: 3px solid #2d2b33;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;

    background-color: #201c26;

    scrollbar-width: thin;
    scrollbar-color: #555 #2d2b33;
}

.main {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 4rem);
}

.sidebar {
    background-color: #25212a;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    height: 100%;
    overflow-y: auto;
    flex: 0 0 15%;
    max-width: 15%;
}

.season-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 1rem;
}

@media (max-width: 600px) {
    .season-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.stage-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 1rem;
}

@media (max-width: 600px) {
    .stage-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.stage-text {
    color: #f3c467;
    font-size: 1rem;
    margin: 0;
    padding-bottom: 0.5rem;
    text-align: center;
}

.stage-button {
    color: lightgray;
    border: 1px solid darkgray;
    margin: 0;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
}

.stage-button:hover * {
    color: #f3c467 !important;
}

.stage-button.disabled {
    color: #4d514e;
    border: 1px solid #434644;
}

.stage-button.disabled p {
    color: #656865;
}

.stage-button.active {
    color: #69b072;
    border: 1px solid #69b072;
}

.stage-button.active p {
    color: #69b072;
}

.stage-button:hover {
    color: #f3c467;
    border: 1px solid #f3c467;
}

.stage-button p {
    margin: 0;
}

.elo-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 1rem;
    border-bottom: 2px solid #383246; /* width, style, color */
}

@media (max-width: 600px) {
    .elo-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.elo-text {
    color: #f3c467;
    font-size: 1rem;
    margin: 0;
    padding-bottom: 0.5rem;
    text-align: center;
}

.elo-button {
    color: lightgray;
    border: 1px solid darkgray;
    margin: 0;
    padding: 0.2rem 0.6rem;
    cursor: pointer;
}

.elo-button:hover * {
    color: #f3c467 !important;
}

.elo-button.active {
    color: #69b072;
    border: 1px solid #69b072;
}

.elo-button.active p {
    color: #69b072;
}

.elo-button:hover {
    color: #f3c467;
    border: 1px solid #f3c467;
}

.elo-button p {
    margin: 0;
}

.sidebar-pokemon {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.sidebar a {
    text-decoration: none;
}

.sidebar-pokemon:hover * {
    color: #f3c467 !important;
}

.sidebar-pokemon p {
    color: lightgray;
}

.sidebar-pokemon.active p {
    color: #69b072
}

.content {
    padding: 2rem;
    padding-top: 1rem;
    width: 100%;
}

.top-items {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2rem;
}

.top-item-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.top-item-stat {
    text-align: center;
    margin-left: 2rem;
    margin-right: 2rem;
}

.top-item-stat p {
    margin-bottom: 0;
}

.bigger-yellow-text {
    color: #f3c467;
    font-size: 1.25rem;
    margin-top: 8px;
    margin-bottom: 12px;
}

.bigger-orange-text {
    color: #eea463;
    font-size: 1.25rem;
    margin-top: 8px;
    margin-bottom: 12px;
}

.bigger-green-text {
    color: #69b072;
    font-size: 1.25rem;
    margin-top: 8px;
    margin-bottom: 12px;
}

.pokemon-name {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.type-icon {
    padding-left: 1rem;
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.usage-data {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.usage-data > * {
    flex: 0 1 calc((100% - 2 * 3rem) / 3);
    max-width: calc((100% - 2 * 3rem) / 3);
    max-height: 300px;
}

.ev-spreads {
    display: flex;
    flex-direction: column; /* stack header + list */
    height: 100%;           /* fill the card’s max-height */
    min-height: 0;          /* allow children to shrink */
}

.ev-spread {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.ev-spread p {
    margin-bottom: 0.9rem;
    color: lightgray;
}

.base-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.data-header {
    font-weight: normal;
    color: whitesmoke;
    font-size: 1.25rem;
    margin-top: 12px;
    margin-bottom: 12px;
}

.base-stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 1.12rem 0;
}

.base-stat p {
    margin: 0;
}

.base-stat p.dark-gray {
    width: 5rem;
    text-align: right;
    margin-right: 1rem;
}

.base-stat p.light-gray {
    width: 2rem;
    text-align: right;
    margin-right: 1rem;
}

.light-gray {
    color: lightgray;
}

.dark-gray {
    color: darkgray;
}

progress {
    -webkit-appearance: none;
    appearance: none;
    border-radius: .5em;
    overflow: hidden;
    --fill: #4caf50; /* default */
    width: 100%;
    height: 0.5rem;
}

progress::-webkit-progress-bar {
    background: #eee;
}

/* fill in WebKit */
progress::-webkit-progress-value {
    background: var(--fill);
}

/* fill in Firefox */
progress::-moz-progress-bar {
    background: var(--fill);
}

/* fill in Edge/IE */
progress::-ms-fill {
    background: var(--fill);
}

/* Optional: size and rounding */
progress::-webkit-progress-bar,
progress::-webkit-progress-value,
progress::-moz-progress-bar,
progress::-ms-fill {
    border-radius: 0.5em;
}

.bar-brighter-green {
    --fill: #23cd5e;
}

.bar-lighter-green {
    --fill: #a0e515;
}

.bar-yellow {
    --fill: #ffdd57;
}

.bar-orange {
    --fill: #ff7f0f;
}

.bar-red {
    --fill: #f34444;
}

.moves {
    display: flex;
    flex-direction: column; /* stack header + list */
    height: 100%;           /* fill the card’s max-height */
    min-height: 0;          /* allow children to shrink */
}

.moves-container {
    flex: 1;                /* fill remaining space below its h2 */
    min-height: 0;          /* critical for flex overflow */
    overflow-y: auto;
}

.move {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.move-left {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.move p {
    margin-bottom: 0.9rem;
    color: lightgray;
}

.teammates {
    display: flex;
    flex-direction: column; /* stack header + list */
    height: 100%;           /* fill the card’s max-height */
    min-height: 0;          /* allow children to shrink */
}

.teammate-left {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.teammates-container {
    flex: 1;                /* fill remaining space below its h2 */
    min-height: 0;          /* critical for flex overflow */
    overflow-y: auto;
}

.teammate {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.teammate a {
    text-decoration: none;
}

.teammate:hover * {
    color: #f3c467 !important;
}

.teammate p {
    margin-bottom: 0.9rem;
    color: lightgray;
}

.items {
    display: flex;
    flex-direction: column; /* stack header + list */
    height: 100%;           /* fill the card’s max-height */
    min-height: 0;          /* allow children to shrink */
}

.items-container {
    flex: 1;                /* fill remaining space below its h2 */
    min-height: 0;          /* critical for flex overflow */
    overflow-y: auto;
}

.item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.item p {
    margin-bottom: 0.9rem;
    color: lightgray;
}

.abilities {
    display: flex;
    flex-direction: column; /* stack header + list */
    height: 100%;           /* fill the card’s max-height */
    min-height: 0;          /* allow children to shrink */
}

.abilities-container {
    flex: 1;                /* fill remaining space below its h2 */
    min-height: 0;          /* critical for flex overflow */
    overflow-y: auto;
}

.ability {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.ability p {
    margin-bottom: 0.9rem;
    color: lightgray;
}