/* Base styles for all screen sizes */
:root {
    --dpr: 1;
}

body {
    font-size: calc(0.7rem * var(--dpr));
    display: flex;
    justify-content: center;
    min-height: 100vh;
    font-family: "Noto Sans";
    color: #252525;
    overflow-y: scroll;
}

/* Base element sizes */
svg {
    width: calc(1.1rem * var(--dpr));
    height: calc(1.1rem * var(--dpr));
}

h1, h2, h3 {
    margin: 0.25em 0;
    font-weight: bold;
}

h1 {
    font-size: 1.75em;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 1.25em;
}

#app {
    width: 100%;
    justify-items: center;
}

footer {
    width: 100%;
    display: flex;
    text-align: left;
    padding: 1em 0;
    margin: 1em 0 0 0;
    background-color: #464646;
    color: #fff;
}

footer > * {
    padding-left: 1em;
}

footer a {
    color: #fff;
    text-decoration: none;
}

/* Mobile styles with dynamic scaling */
@media only screen and (max-width: 767px) {
    body {
        font-size: clamp(0.85rem, 3vw, 2.5rem);
    }

    svg {
        width: clamp(1.2rem, 3vw, 2rem);
        height: clamp(1.2rem, 3vw, 2rem);
    }
}

@media screen and (max-width: 1279px) {
    header, nav, main { width: 100%; }
}

/* Desktop - keep font size smaller */
@media only screen and (min-width: 1280px) {
    body {
        font-size: 0.9rem;
    }

    svg {
        width: 1.6rem;
        height: 1.6rem;
    }

    nav, section, footer {
        width: 1280px;
    }

    section.banner span {
        display: block;
    }
}

a {
    color: #2356a7;
    text-decoration: none;
    cursor: pointer;
}

.market-header {
    margin-top: 1em;
    display: flex;
    align-items: center;
    gap: 0.75em;
    white-space: nowrap;
}

.line {
    width: 100%;
    background-color: #ddd;
    height: 1px;
}

#preview {
    padding: 15px 30px;
    z-index: 9999;
    background-color: green;
    color: white;
    font-weight: bold;
    border: 10px solid white;
}

#preview a {
    background-color: blue;
    color: white;
    font-weight: bold;
    padding: 3px 10px;
    border: 1px outset gray;
    margin: 3px;
}

.rounded-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2356a7;
    color: #ffffff;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
}