
/* region: fonts */

@font-face {
    font-family: 'SF-Pro-Display';
    src: url('fonts/SF-Pro-Display-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'SF-Pro-Display';
    src: url('fonts/SF-Pro-Display-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SF-Pro-Display';
    src: url('fonts/SF-Pro-Display-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'SF-Pro-Display';
    src: url('fonts/SF-Pro-Display-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

/* endregion */

/* region: css reset */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }

input, button, textarea, select { font: inherit; }

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

p { text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }

#root, #__next { isolation: isolate; }

a { color: var(--text-color); text-decoration: none; }

/* endregion */

:root {
    --text-color: #fff;
    --text-accent-color: #99A79D;
    --text-error-color: #ff8d8d;

    --input-background: #373D39;
    --input-background-disabled: #232625;
    --background-color: #000;
    --background-raised: #232625;
}

/***** GLOBAL *****/

body {
    font-family: 'SF-Pro-Display', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--background-color);
}

.button, button {
    display: block;
    text-decoration: none;
    text-align: center;

    width: 100%;
    margin: 4px 0;
    padding: 10px 16px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    border-radius: 8px;
    border: 1px solid transparent;
    background:
            linear-gradient(to right bottom, #5F6B63, #49514B) padding-box,
            linear-gradient(to right bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)) border-box;
    background-size: 150% 100%;
    background-position: 100% 0;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    cursor: pointer;
    transition: all 250ms;
}

.button:hover, button:hover {
    background-position: 0 0;  /* required for a smooth animation */
}

/***** ELEMENTS *****/

.section {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.section > h2 {
    position: sticky;
    top: 0;
    background-color: var(--background-color);
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 1);

    font-size: 22px;
    font-weight: 300;
    border-bottom: 1px solid var(--text-accent-color);
    padding-top: 16px;
    padding-bottom: 6px;
}

label {
    display: block;
    font-weight: 300;
    margin-top: 12px;
}

.text-input {
    width: 100%;
    margin: 4px 0;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 18px;
    color: var(--text-color);
    background: var(--input-background);
    border: none;
    outline: none;
    -webkit-appearance: none;
}

.text-input:disabled, .text-input:read-only {
    background: var(--input-background-disabled);
    cursor: not-allowed;
    -webkit-text-fill-color: var(--text-accent-color)
}
