/* globals */

:root {
    --accent-ink: white;
    --accent: #083d77;
    --accent-light: #487db7;
    --ink: #323031;

    --small: 12pt;
    --medium: 16pt;
    --large: 24pt;
}

@font-face {
    font-family: "Go Regular";
    src: url("/static/Go-Regular.woff") format("woff");
}

@font-face {
    font-family: "Go Mono";
    src: url("/static/Go-Mono.woff") format("woff");
}

* {
    font-family: "Go Regular", "Helvetica", "Arial", sans-serif;
    padding: 0;
    margin: 0;
}

/* header; includes the title of the page */

header {
    background-color: var(--accent);
    color: var(--accent-ink);
    height: var(--large);
    padding-bottom: 0;
    width: 100%;
}

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

.logout_form {
    padding-right: 2em;
    margin: 0;
}

/* headings */

h1 {
    display: inline-block;
    font-size: var(--medium);
    margin: 0;
    padding: 0 0 0 var(--small);
}

h2 {
    font-size: var(--large);
    padding-bottom: var(--small);
}

/* main contains the actual content */

main {
    font-size: var(--medium);
    margin: auto;
    max-width: 42em;
    padding: 1em;
}

/* class "error" contains the error message; it's a bit
 * less wide than the normal content because otherwise the
 * text is too stretched */

.error {
    margin: auto;
    max-width: 32em;
}

.error h2 {
    text-align: center;
}

.error p {
    padding: var(--small);
}

/* individual files and some forms are embedded in a filled
 * out box */

.box {
    background-color: var(--accent);
    color: var(--accent-ink);
    margin: 1em;
    padding: 1em;
}

.box a {
    color: var(--accent-ink);
}

div.previewbox {
    float: left;
    height: 2em;
    margin-right: 0.5em;
    width: 2em;
}

img.preview {
    background-color: var(--accent-ink);
    border-style: solid;
    border-width: 1px;
    max-height: 2em;
    max-width: 2em;
}

/* the login form */

.login_form {
    font-size: var(--medium);
    margin: auto;
    padding: 1em;
}

.login_form input {
    box-sizing: border-box;
    font-size: var(--medium);
    width: 100%;
}

#password {
    letter-spacing: 0.3em;
    margin-bottom: 1em;
    padding: var(--small);
}

/* the upload form */

.upload_form {
    display: flex;
    justify-content: space-between;
}

#file {
    font-size: var(--medium);
    width: 100%;
}

#create_short_id_container {
    display: block;
}

#file_progress {
    font-size: var(--small);
    letter-spacing: 0.1em;
}

/* meta information of a single file which contains
 * upload date and file size */

.meta {
    font-size: var(--small);
}

.short_link {
    font-family: "Go Mono", monospace;
}

/* our fancy image buttons */

input[type="image"] {
    background-color: var(--accent);
    float: right;
    height: var(--large);
    padding: 4pt;
    width: var(--large);
}

input[type="image"]:hover {
    background-color: var(--accent-light);
    color: var(--accent);
}

/* footer for advertsing >:D */

footer {
    font-size: var(--small);
    padding-bottom: var(--medium);
    text-align: center;
}
