* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    font-family: "JBM", monospace;
    font-weight: 400;

    color: var(--color_text);
    font-size: 100%;

    transition: none;
    -moz-transition: none;
    -webkit-transition: none;
}

a:not(.button), a:active:not(.button), a:visited:not(.button) {
    color: inherit;
}

a { border-radius: 3px; }

:root {
    --color_bg: #0E0E0E;
    --color_bg_subtle: #151515;
    --color_text: #FFF;
    --color_text_subtle: #9E9E9E;
    --color_text_disabled: #505050;
    --color_accent: #BBED0D;
    --color_white_50: rgba(255, 255, 255, 0.5);
    --color_border_subtle: #282828;
    --gradient_accent: linear-gradient(180deg, #BBED0D 0%, #5BB32D 100%);
    /*--gradient_accent_op50: linear-gradient(180deg, #BBED0D 0%, #5BB32D 100%);*/

    --height_button: 2.25rem;
    --height_button_small: 1.75rem;

    --gap: 3rem;
    --gap_medium: 2rem;
    --gap_header: 1.5rem;
    --gap_small: 1rem;

    --font-size_h1: 4rem;
    --font-size_h2: 1.5rem;
    --font-size_h3: 1.25rem;
    --font-size_regular: 1rem;

    --padding_body: 13vh 1rem;
}

html {
    width: 100%;
    height: 100%;

    overflow-x: hidden;
    overflow-y: scroll;

    background: var(--color_bg);
}

body {
    position: relative;

    max-width: 40rem;
    margin: 0 auto;

    padding: var(--padding_body);

    display: flex;
    flex-direction: column;
    align-content: flex-start;
    justify-self: stretch;
    gap: var(--gap);

    line-height: 1.25;
}

svg, svg * {
    color: inherit;
}

header {
    display: flex;
    align-content: flex-start;
    flex-direction: column;

    gap: var(--gap_header);

    width: 100%;
}

button {
    outline: unset;
    border: unset;
    box-shadow: none;
    background: unset;
    border: unset;
}

ul { list-style: none; }

a {
    text-decoration: unset;
}

h1 { font-size: var(--font-size_h1); }
h2 { font-size: var(--font-size_h2); }
h3 { font-size: var(--font-size_h3); }

.button {
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-size: var(--font-size_regular);
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: var(--height_button);
    max-height: var(--height_button);

    background: var(--color_bg_subtle);
    border: 1px solid transparent;

    width: max-content;

    transition: border-color 150ms ease, color 150ms ease, opacity 150ms ease, scale 150ms ease;
}

.button_small {
    padding: 0.25rem 0.75rem;
    max-height: var(--height_button_small);
    min-height: var(--height_button_small);
}

.button_accent {
    position: relative;
    background: var(--gradient_accent), rgba(0, 0, 0, 0);
    border: unset;
}

.button_accent::after {
    display: block;
    content: '';
    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    border-radius: inherit;

    background: black;
    opacity: 0;

    transition: opacity 150ms ease;
}

.button_subtle {
    color: var(--color_text_subtle);
}

.button * { color: inherit; }
.button > * { display: block; }

.button[href], button[type="submit"] {
    cursor: pointer;
}

.button:hover {
    border-color: var(--color_white_50);
}

.button_accent:active {
    color: var(--color_text);
}
.button_accent:active::after {
    opacity: 0.25;
}

button[disabled],
.button_disabled {
    color: var(--color_text_disabled);
    pointer-events: none;
    background: var(--color_border_subtle);
}

.button:active {
    border-color: var(--color_accent);
    scale: 0.95;
}

.huge-checkmark {
    position: fixed;
    right: 5vw;
    bottom: 0;

    transform: translateY(40%);
    opacity: 0.15;
    width: 50vw;
    height: auto;

    z-index: -100;
}

.title-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;

    font-size: var(--font-size_h1);
    font-weight: 600;
}

.title-wrap > svg {
    height: 1em;
    width: auto;
}

.header-caption {
    color: var(--color_text_subtle);
    font-size: var(--font-size_h2);
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

.how-to {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-items: flex-start;

    background: var(--color_bg_subtle);

    position: relative;
}

.how-to::before {
    display: block;
    content: '';
    position: absolute;
    left: -1px;
    top: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border-radius: 9px;
    background: var(--gradient_accent);
    z-index: -1;
}

.how-to__title-wrap {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;

    font-size: var(--font-size_h3);
    font-weight: 600;
}

.how-to__title-wrap > h3 {
    font-family: "Inter", sans-serif;
}

.how-to__title-wrap > svg {
    display: block;
    width: 1.5rem;
    height: auto;
}

.how-to__text {
    font-weight: 400;
}

.vote-title {
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

.underline {
    text-decoration: underline;
    text-decoration-color: inherit;
}

.vote-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--gap_medium);
}

.blockchains-list {
    display: flex;
    flex-direction: column;
    align-content: stretch;
    gap: var(--gap_medium);
}

.blockchain-row {
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    background-color: transparent;

    transition: background-color 150ms ease;
}

.blockchain-row:hover {
    background-color: var(--color_bg_subtle);
}

.blockchain-row_voted {
    border-bottom: 1px solid var(--color_accent);
}

.blockchain-row h3 {
    font-size: 1.25rem;
    font-weight: 400;
    font-family: "Inter", sans-serif;
}

.blockchain-row__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 1rem;
}

.blockchain-row__blockchain {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.blockchain-row__logo {
    width: 1.25rem;
    height: auto;
}

.blockchain-row__pfps {
    display: flex;
    align-items: center;
}

.blockchain-row__pfp {
    display: block;
    border-radius: 9999px;
    border: 1px solid var(--color_bg);
}

.blockchain-row__pfp + .blockchain-row__pfp {
    margin-left: -0.5rem;
}

.blockchain-row > progress {
    margin-top: 0.625rem;
    width: 100%;
    height: 0.25rem;

    background: transparent;
    border: none;

    border-radius: 8px;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@supports (-moz-user-focus: ignore) {
    .blockchain-row > progress {
        background: #FFF;
    }

    .blockchain-row > progress::-moz-progress-bar {
        background-color: var(--color_accent);
    }
}

.blockchain-row > progress::-webkit-progress-bar {
    background-color: #FFF;
    border-radius: 8px;
}

.blockchain-row > progress::-webkit-progress-value {
    background-image: var(--gradient_accent);
    border-radius: 8px 0 0 8px;
}

.blockchain-row > footer {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blockchain-row p {
    color: var(--color_text_subtle);
    font-size: 0.75rem;
}

.action-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.notice {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0.25rem;
    min-height: var(--height_button);
    font-size: 0.75rem;

    padding: 0.5rem;
    border-radius: 3px;
    border: 1px solid var(--color_border_subtle);
    background: var(--color_bg_subtle);
}

.notice svg {
    width: 1.25rem;
    height: 1.25rem;
}

select {
    position: relative;
    max-width: 100%;
    border: 1px solid var(--color_border_subtle);
    padding: 0.25rem 1rem;
    min-height: var(--height_button);
    border-radius: 3px;
    margin-right: 0;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: var(--color_bg_subtle) url("data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\"><path d=\"M13.418 7.859a.695.695 0 0 1 .978 0 .68.68 0 0 1 0 .969l-3.908 3.83a.697.697 0 0 1-.979 0l-3.908-3.83a.68.68 0 0 1 0-.969.695.695 0 0 1 .978 0L10 11l3.418-3.141z\" fill=\"white\" /></svg>") right 1rem center no-repeat;
    background-position-x: 100%;
    background-position-y: 50%;

    cursor: pointer;
}

select:invalid {
    color: var(--color_text_subtle);
}

form:invalid [type="submit"] {
    pointer-events: none;
    color: var(--color_text_disabled);
    background: var(--color_border_subtle);
}

select:focus,
button:not(button[disabled]):not(button.button_disabled):focus,
a:focus {
    outline: 1px solid white;
    outline-offset: 2px;
}

@media (max-width: 40rem) {
    :root {
        --padding_body: 7vh 1rem;

        --font-size_h1: 3rem;
        --font-size_h2: 2rem;
        --font-size_h3: 1.15rem;
        --font-size_regular: 1rem;

        --gap: 3rem;
        --gap_medium: 1.75rem;
        --gap_header: 1.25rem;
        --gap_small: 0.75rem;
    }

    .huge-checkmark {
        width: auto;
        height: 50vh;
        transform: translate(15%, 33%);
    }
}

.logged-actions {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}

.bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--gap_small);
}
