:root {
    --color-selector: 110;
    --saturation-selector: 20%;
    --test: hsl(113, 57%, 91%);

    --bg-darker: hsl(var(--color-selector) 15% 85%);
    --bg-dark: hsl(var(--color-selector) 10% 88%);
    --bg: hsl(var(--color-selector) 5% 94%);
    --bg-light: hsl(var(--color-selector) 0% 100%);
    --text: hsl(var(--color-selector) var(--saturation-selector) 5%);
    --text-semi-muted: hsl(var(--color-selector) var(--saturation-selector) 20%);
    --text-muted: hsl(var(--color-selector) var(--saturation-selector) 30%);
    --text-hard-muted: hsl(var(--color-selector) var(--saturation-selector) 50%);
    --shadow: 0px 2px 2px hsla(0, 0%, 0%, 0.07), 0px 4px 4px hsla(0, 0%, 0%, 0.15);

    background-color: var(--bg-darker);

    --ad-side: 0px;
    padding: 0;
}

/* style boilerplates */
.level2 {
    background-color: var(--bg);
    padding: 20px;
    border-radius: 20px;
    border-top: solid 2px var(--bg-light);
    border-bottom: solid 2px var(--bg);
    box-shadow: var(--shadow);
}

/* grid layout for screens and eventually ads */

@media (min-width: 1750px) {
    :root { --ad-side: 300px; }
}

@media (min-width: 1470px) and (max-width: 1749px) {
    :root { --ad-side: 160px; }
}

html, body {
    margin: 0;
    padding: 0;
    padding-top: 10px;
    
}

* {
    font-family: "Noto Sans", sans-serif;
    color: var(--text-muted);
    font-size: 18px;
}

.page {
    display: grid;
    grid-template-columns: var(--ad-side) minmax(0, 1fr) var(--ad-side);
    align-items: start;
}

.ad {
    min-height: 600px;
}

.center {
    min-width: 0;
}


/* app / game layout */

.app, footer {
    background-color: var(--bg-dark);
    width: 100%;
    max-width: 1070px;
    min-height: 1500px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 25px;
    border-top: solid 2px var(--bg-light);
    box-shadow: var(--shadow);

    position: relative;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.game_title {
    background-color: var(--bg);
    width: 1030px;
    color: var(--text);
    font-size: 60px;
    font-weight: 700;
    padding: 10px;
    font-kerning: normal;
    margin: 0 10px 0 10px;
    text-align: center;
    margin-bottom: 10px;
    border-radius: 20px;
    border-top: solid 2px var(--bg-light);
    border-bottom: solid 2px var(--bg);
    box-shadow: var(--shadow);
}

.money_display {
    background-color: var(--bg-light);
    position: fixed;
    top: 120px;
    right: calc(50vw - 1070px/2);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    width: 200px;
    padding: 10px;
    border-radius: 20px;
    border-top: solid 2px var(--bg-light);
    border-bottom: solid 2px var(--bg-light);
    box-shadow: 
        0px 3px 3px hsla(0, 0%, 0%, 0.07), 
        0px 6px 6px hsla(0, 0%, 0%, 0.15);
    z-index: 999; 
}

.weed_div, .market_div {
    width: 1050px;
    min-height: 10px;
    display: flex;
    padding: 10px;
    justify-content: space-between;
}

.card {
    background-color: var(--bg);
    width: 300px;
    padding: 20px;
    border-radius: 20px;
    border-top: solid 2px var(--bg-light);
    box-shadow: var(--shadow);
}

.weed_card_content {
    margin-left: 7px;
}

.weed_name_row, .market_weed_counter {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-semi-muted);
    margin-bottom: 5px;
}

.pictureframe {
    background-color: var(--bg-dark);
    width: 300px;
    height: 300px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.button_div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 7px;
    font-weight: 600;
}

button {
    background-color: var(--bg-light);
    font-weight: 600;
    width: 100px;
    border: 0;
    padding: 10px;
    margin: 4px 4px 4px 0;
    border-radius: 10px;
    box-shadow: var(--shadow);

    cursor: pointer;
    transition: background-color 0.05s ease,
                transform 0.05s ease,
                box-shadow 0.05s ease;
}

button:hover {
    background-color: var(--bg);
    box-shadow:
        0px 4px 6px hsl(0 0% 0% / 0.10),
        0px 8px 14px hsl(0 0% 0% / 0.18);
}

button:active {
    background-color: var(--bg-dark);
    transform: translateY(2px);
    box-shadow:
        0px 1px 1px hsl(0 0% 0% / 0.10),
        0px 2px 3px hsl(0 0% 0% / 0.18);
}

/* market */
.market_div {
    width: 1050px;
    padding: 10px;
    display: block;
}

.market_weed_counter_div {
    width: 1050px;
    display: flex;
    justify-content: space-between;
    margin-top: 0;
}

.market_weed_counter, .market_bot_counter {
    font-size: 20px;
    font-weight: 600;
    width: 125px;
    text-align: center;
    align-content: center;
    margin: 0;
    border-radius: 10px;
}

/* market chart */
.market_chart_div {
    width: 1050px;
    min-height: 10px;
    margin-top: 20px;
}

.market_chart_package {
    width: 1050px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.market_graph_chart_div {
    width: 655px;
}

.market_graph_control_div {
    width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.market_graph_control_row {
    width: 340px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.market_button {
    font-weight: 500;
    width: 165px;
    white-space: pre-line;
    margin: 0;
    background-color: var(--bg);
    max-height: 68px;
}

.market_buy_button {
    background-color: hsl(var(--color-selector) 100% 94%);
}

.market_sell_button {
    background-color: hsl(0, 100%, 94%);
}

.market_sell_max_button {
    background-color: hsl(0, 100%, 85%);
}

.market_quantity_input {
    text-align: center;
    font-size: 26px;
    width: 165px;
    padding: 0;
    border: 0;
    background-color: var(--bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.market_graph_chart {
    width: 655px;
    height: 420px;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    line-height: 0;
}


.hidden {
    display: none !important;
}


/* Footer and legal stuff */

footer {
    display: flex;
    min-height: 0;
    margin: 15px auto;
    justify-content: center;
    text-align: center;
}

footer a, footer p {
    color: var(--text-hard-muted);
    margin: 0 10px;
    text-decoration: none;
}

footer a:hover {
    color: var(--text-muted);
}