* {
    box-sizing: border-box;
    font-family: 'Sofia Pro', sans-serif;
}

html, body {
    background-color: rgb(180, 184, 255);
    margin: 0;
}

p {
    line-height: 120%;
}

.container {
    width: 600px;
    background-color: white;
    padding: 32px;
    border-radius: 16px;
    margin: 32px auto;
    box-shadow: 0 0 8px rgb(121, 128, 253);
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 64px;
}

.header h1 {
    margin: 0;
    margin-right: auto;
}

.header h1 a {
    color: black;
}

.footer {
    margin-top: 64px;
}

.footer ul {
    padding: 0;
    list-style: none;
    display: flex;
    font-size: 14px;
    justify-content: center;
    margin-top: 36px;
}

.footer li {
    display: inline-block;
}

.footer li:after {
    content: '|';
    padding: 0 8px;
    color: #aaa;
}

.footer li:last-child:after {
    content: '';
}

.footer a {
    color: #666;
}

.logo {
    display: block;
    text-align: center;
}

.logo img {
    width: 100px;
}

a {
    text-decoration: none;
}

form.login {
    text-align: center;
}

form.login button {
    border: none;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 18px;
    cursor: pointer;
    background-color: #4E56FF;
    color: #fff;
    font-weight: bold;
}

.download {
    border: 1px solid #ddd;
    border-radius: 16px;
    margin-bottom: 32px;
    padding: 16px;
}

.download h2 {
    margin: 0;
    font-size: 16px;
    margin-bottom: 8px;
}

.download fieldset {
    padding: 0;
    margin: 0;
    margin-bottom: 16px;
    border: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.download fieldset:last-child {
    margin-bottom: 0;
}

.download input[type=date],
.download input[type=text],
.download select {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: none;
}

.download .hint {
    color: #aaa;
    font-size: 14px;
}

.download option {
    font-family: monospace; /* doesn't seem to work */
}

.download button {
    margin-left: auto;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 8px;
    text-align: left;
    background-color: #77b2553b;
    position: relative;
}

.download button::before {
    content: '📥 ';
    padding-right: 8px;
}

.download .button--loading::before {
    visibility: hidden;
}

.download .button--loading::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    top: 0;
    left: 12px;
    right: auto;
    bottom: 0;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: #4E56FF;
    border-radius: 100%;
    animation: button-loading-spinner 1s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

label {
    font-weight: bold;
}

textarea {
    padding: 16px;
    font-family: monospace;
    font-size: 14px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 16px;
    margin: 12px 0;
}

fieldset.project select {
    display: block;
}

fieldset.project select option {
    font-family: inherit;
}

.oops {
    text-align: center;
}

.oops h1 {
    font-size: 48px;
}

.oops .oops--message {
    font-size: 16px;
    line-height: 24px;
    padding: 12px;
    border-radius: 16px;
    font-family: monospace;
    color: #eee;
    background: #333;
}

.oops .oops--tip {
    width: 240px;
    margin: 48px auto;
    line-height: 24px;
    color: #888;
}

.project-selector {
    display: flex;
    flex-wrap: wrap;
}

.project-selector label {
    font-weight: normal;
    cursor: pointer;
    padding: 8px;
    border: 1px solid #ddd;
    margin: 4px;
    border-radius: 16px;
}
