@font-face {
    font-family: 'One Day';
    src: url(/fonts/ONEDAY.otf) format('opentype');
}

@font-face {
    font-family: 'Glacial Indifference';
    src: url(/fonts/GlacialIndifference-Regular.woff2) format('woff2');
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Glacial Indifference', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background: #101010;
    color: #f0f0f0;
    padding-left: 50px;
}

h1 {
    font-family: 'One Day', sans-serif;
    font-weight: bolder;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(to right, #ff7e5f, #feb47b);
}

.progress-bar {
    width: 80px;
    height: 20px;
    background-color: #333;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
    position: relative;
}

.progress-inline {
    height: 100%;
    width: 0;
    background-color: #4caf50;
    transition: width 0.3s ease;
}

.progress-bar .percent {
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translateX(50%) translateY(-50%);
    color: #fff;
    font-size: 12px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

button.button {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    font-family: 'Glacial Indifference', sans-serif;
    border-radius: 3.5px;
}

button.button:hover {
    background: linear-gradient(to right, #feb47b, #ff7e5f);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

button.button:active {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}

button.button:disabled {
    background: #555;
    cursor: not-allowed;
}

.error-alert-box {
    background-color: rgb(255, 77, 77, 0.4);
    border: 1px solid #ff0000;
    color: white;
    padding: 10px;
    margin-top: 10px;
    border-radius: 3.5px;
    width: fit-content;
}

.loader {
    /* from https://cssloaders.github.io/ */
    --color-1: #fff;
    --color-2: #ff3d00;
    --size: 1px;

    width: calc(48 * var(--size));
    height: calc(48 * var(--size));
    border-radius: 50%;
    display: inline-block;
    border-top: calc(4 * var(--size)) solid var(--color-1);
    border-right: calc(4 * var(--size)) solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader[hidden] {
    display: none;
}

.loader::after {
    /* from https://cssloaders.github.io/ */
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: calc(48 * var(--size));
    height: calc(48 * var(--size));
    border-radius: 50%;
    border-left: calc(4 * var(--size)) solid var(--color-2);
    border-bottom: calc(4 * var(--size)) solid transparent;
    animation: rotation 0.5s linear infinite reverse;
}

@keyframes rotation {
    /* from https://cssloaders.github.io/ */
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

button.button .loader {
    --size: 0.25px;
}

footer {
    margin-top: 40px;
    font-size: 0.9em;
    color: #aaa;
}

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