/* * {
    outline: red solid 1px;
} */
html {
    background-color: hsl(210, 100%, 90%);
    font-size: 16px;
    max-width: 1050px; /* not 1000px or less because it messes up MJS charts. need to fix that first */
    margin: 0px auto 100px auto;
    line-height: 1.6;
    font-family: "Segoe UI";
    display: block;
}
h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}
h2 {
    font-size: clamp(1.75rem, 4.5vw, 2.25rem);
}
h3 {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
}
h4 {
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
}
h5 {
    font-size: clamp(1rem, 3vw, 1.25rem);
}
h6 {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
}
header {
    background: hsl(210, 70%, 40%);
    color: hsl(0, 0%, 95%);
    padding: 15px;
    text-align: center;
    font-size: clamp(1em, 4vw, 1.5em);
}
/* This isn't really needed now that Nav is always horizontal */
.container {
    display: flex;
    flex-direction: column;
}
.two-col-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: top;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}
.two-col-container > :first-child {
    flex: 0 0 300px; /* fixed 300px */
}

.two-col-container > :last-child {
    flex: 1; /* takes the rest */
}
.nav {
    background: hsl(210, 70%, 40%);
    color: hsl(0, 0%, 95%);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}
/* narrow screens */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    ul {
        padding-left: 1em;
    }
    ul ul {
        padding-left: 0.7em;
    }
    ul ul ul {
        padding-left: 0.4em;
    }
    .two-col-container {
        flex-direction: column;
    }
}
/* wide screens */
@media (min-width: 768px) {
    main {
        flex: 1;
        padding: 1rem;
    }
}
.nav a {
    display: block;
    color: hsl(313, 0%, 100%);
    text-decoration: none;
    margin: 10px 0;
}
a {
    color: hsl(313, 74%, 21%);
}
a:hover {
    color: hsl(313, 50%, 60%);
}
main {
    padding: 20px;
    flex: 1 1 auto; /* Not sure I need this anymore without side nav? */
    /* min-width: 0; */
}
blockquote {
    font-style: italic;
    color: hsl(0, 0%, 0%);
    margin: 10px 20px;
    padding-left: 15px;
    border-left: 3px solid hsl(0, 0%, 0%);
}
/* aside {
    background: hsl(210, 100%, 80%);
    border-left: 4px solid hsl(210, 100%, 50%);
    padding: 1em;
    margin: 1em 4em;
    border-radius: 6px;
    float: right;
    width: 350px;
} */
.PageNavigation {
    font-size: 1em;
    display: flex;
    justify-content: center;
    gap: 2em;
    margin: 2em 0;
    font-size: 0.95rem;
    border-top: 1px solid #ddd;
    padding-top: 1em;
}
.PageNavigation a {
    /* color: #0066cc; */
    text-decoration: none;
    font-weight: 500;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    transition:
        background 0.2s,
        color 0.2s;
}
.PageNavigation a:hover {
    /* background: #f0f0f0; */
    background: hsl(210, 70%, 95%);
    /* color: #004999; */
}
.PageNavigation .prev {
    text-align: left;
}

.PageNavigation .next {
    text-align: right;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}
.card {
    border: 1px solid hsl(240, 50%, 50%);
    border-radius: 8px;
    padding: 15px;
    background: hsl(210, 85%, 75%);
}
.card h3 {
    margin-top: 0;
}
h2,
h3 {
    margin-top: 2em;
    margin-bottom: 0.5em;
}
/* MJS and tenhou charts */
.chart-container {
    margin-bottom: 4rem;
}
.chart-tenhou-es,
.chart-tenhou-rank,
.ESChart,
.RankPointChart {
    padding: 10px;
}
.custom-tooltip {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    white-space: nowrap;
    pointer-events: none;
}
.number-stepper {
    display: inline-flex;
    align-items: center;
    border: 2px solid hsla(204, 70%, 53%, 1);
    border-radius: 2px;
}
.number-stepper button {
    background-color: hsla(204, 70%, 53%, 1);
    color: white;
    width: 30px;
    height: auto;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
    text-align: center;
    background-color: white;
}
.number-stepper input[type="number"] {
    padding: 2px 6px;
    width: 40px;
    border: none;
    outline: none;
}
select {
    background-color: white;
}
