/* Background */
/* ================================================================ */

body {
    font-family: Arial;
    background: #181818;
    text-align: center;
    align-items: center;
    padding: 8px;
    max-width: 960px;
    margin: auto;
    color: #FFFFFF;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 0;
}

hr {
    border: 2px solid #404040;
    margin: 16px 0;
}

/* Text */
/* ================================================================ */

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

code {
    background: #000000;
    padding: 2px 6px;
    border-radius: 4px;
}

label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 28px;
}

/* Upgrade dashboard */
/* ================================================================ */

.upgrades-dashboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 0;
}

.upgrade-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    width: 100%;
    box-sizing: border-box;
    padding: 8px 8px;

    border-radius: 8px;
    background: #202020;
    border: 2px solid #303030;
    gap: 6px;
}

.upgrade-cost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
}

.cost-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cost-currency {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;
    margin: 4px 0;
    border-radius: 9999px;
    border: 2px solid;
    font-weight: 700;
}

.description {
    margin: 0;
    max-width: 240px;
    align-self: center;

    font-size: 14px;
    color: #C0C0C0;
    text-wrap-style: balance;
}

.upgrade-level {
    margin: 0;
    max-width: 240px;
    align-self: center;

    font-size: 16px;
    color: #E0E0E0;
}

.next-reset-gain {
    font-size: 24px;
    margin: 0 2px;
    font-weight: 700px;
}

.erase-data-card {
    margin: 6px auto;
    max-width: 320px;
    gap: 0 32px;
}

/* Upgrade button */
/* ================================================================ */

.upgrade-buy {
    width: 100%;
    align-self: center;
    margin: 0;
}

.reset-reset {
    width: 100%;
    align-self: center;
    margin: 0;
}

/* Button */
/* ================================================================ */

button {
    background: #2080FF;
    color: #FFFFFF;
    box-sizing: border-box;
    border: none;
    padding: 6px 10px;
    margin: 6px;
    font-size: 20px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

button:hover {
    background: #1070F0;
}

button:active {
    background: #0060E0;
}

button:disabled {
    background: #606060;
    color: #E0E0E0;
    cursor: not-allowed;
}

/* Currency Dashboard */
/* ================================================================ */

.currency-dashboard {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
}

.currency-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 1 auto;

    gap: 6px;
    padding: 12px 20px;
    min-width: 200px;

    border-radius: 8px;
    background: #202020;
    border: 2px solid;
}

.currency-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.currency-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;
    border-radius: 9999px;
    border: 2px solid;
    font-weight: 700;
}

.currency-name {
    font-size: 14px;
    color: #C0C0C0;
    font-weight: 700;
}

.currency-value {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

/* Level display card */
/* ================================================================ */

.level-display-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.level-progress {
    font-size: 16px;
    color: #C0C0C0;
    margin: 0;
    white-space: nowrap;
    font-size: 24px;
}

/* Level bar */
/* ================================================================ */

.level-bar-wrap {
    width: 100%;
    min-height: 10px;
}

.level-bar-track {
    min-height: 10px;
    background: #606060;
    border-radius: 9999px;
    overflow: hidden;
}

.level-bar-fill {
    min-height: 10px;
    background: #FFE040;
}
