html {
    --accent-color: #fcac34;
    --accent-color-60: #fcac3460;
    --accent-secondary-color: #afd245;
    --accent-secondary-color-60: #afd24560;
    --tab-bg-color: #303236;
    --text-color: #d7dbe0;
}

* {
    position: relative;
}

h1, h2, h3 {
    font-family: 'Nunito', sans-serif;
    color: var(--accent-color);
}
h1:first-child, h2:first-child, h3:first-child {
    margin-top: 0em;
    margin-bottom: 0.5em;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0px;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #282a2f;
    overflow-x: hidden;
}

main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
    width: calc(100% - 1.5em);
    min-height: 90vh;
    margin-top: 1em;
}

a {
    text-underline-offset: 2px;
    color: var(--text-color);
}

.hidden {
    display: none !important;
}

.tab {
    background-color: var(--tab-bg-color);
    padding: 0.75em;
    border-radius: 0.25em;
}

#title {
    margin-bottom: 0.25em;
    margin-left: 0.25em;
}

#upload {
    display: flex;
    flex-direction: column;
}
#upload .button {
    margin-top: 0.625em;
}

#new-job {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
#new-job input[type="number"] {
    min-width: 10em;
    padding: 0.25em 0.5em;
    border: none;
    border-bottom: 2px solid var(--accent-secondary-color);
    outline: none;
    background-color: transparent;
    color: var(--text-color);
    font-size: 100%;
}
#new-job input[type="checkbox"] {
    width: 1.125em;
    height: 1.125em;
} 
#new-job label {
    margin: 0.375em 0em 0.125em 0em;
}
#new-job .checkbox-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25em;
    margin-top: 0.25em;
}
#new-job .checkbox-wrap label {
    margin: 0px;
}
#new-job .button {
    margin-top: 0.625em;
}

#cached-jobs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#cached-jobs-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1em;
}

.cached-job {
    display: flex;
    flex-direction: column;
}
.cached-job h3 {
    margin: 0.25em 0em;
    color: var(--accent-color);
}
.button {
    padding: 0.25em 0.75em;
    border: 2px solid var(--accent-secondary-color);
    border-radius: 0.375em;
    outline: none;
    margin-top: 0.375em;
    background-color: var(--accent-secondary-color-60);
    color: var(--text-color);
    cursor: pointer;
    font-weight: bold;
    font-size: 100%;
    text-decoration: none;
}
.button:disabled::after {
    content: "";
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    cursor: not-allowed;
    background-color: #ffffff50;
    border-radius: 0.375em;
}

.job {
    display: flex;
    flex-direction: column;
    background-color: var(--tab-bg-color);
    padding: 0.75em;
    margin: 0.5em 0em;
    border-radius: 0.25em;
}
.job h2 {
    margin: 0em 0em 0.25em 0em;
    color: var(--accent-color);
}
.buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1em;
}

.warn {
    color: #ffb000;
}
.error, .fatal {
    color: #ff8080;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    padding: 1.5em 0em;
    margin-top: 1em;
    background-color: var(--tab-bg-color);
}
footer p {
    margin: 0em;
    text-align: center;
    width: 28em;
    max-width: calc(100% - 2em);
}