:root {
    --box-tab-background: #b9caaf;
    --background: linear-gradient(0deg, #b9caaf, #eaffdd);
    --border: #94a58a;
    --file-dropdown-background: #eef3ec;
    --file-dropdown-background-hover: linear-gradient(0deg, #d6eecc, #eef3ec);
}

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

noscript {
    background: black;
    color: white;
    width: 100%;
    font-size: 20px;
    padding: 8px 0;
    justify-content: center;
    align-items: center;
    display: flex;
}

footer {
    color: var(--border);
    font-size: 12px;
    padding: 4px;
    text-align: center;

    border-top: 1px solid var(--border);
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;

    background: var(--background);
}

main,
.wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.wrapper {
    padding-top: 16px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.brand img {
    max-height: 128px;
}

.box {
    border: 2px solid black;
    padding: 8px;
}

.box:has(.tab) {
    padding: 0;
}

.box .tab {
    padding: 8px;
    font-weight: bold;
    background: var(--box-tab-background);
    display: flex;
    flex-direction: row;
    align-items: center;
}

.box:has(.tab):has(.content) .tab {
    border-bottom: 2px solid black;
}

.box .content {
    background: white;
    padding: 8px;
}

.uploaded-files {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 8px;
}

@media only screen and (max-width: 900px) {
    .uploaded-files {
        display: flex;
        flex-direction: column;
    }
}

.uploaded-file {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 160px;
    min-height: 160px;
}

.uploaded-file.highlight {
    animation: show 600ms 600ms cubic-bezier(0.38, 0.97, 0.56, 0.76) forwards;
    background: yellow;
}

@keyframes show {
    100% {
        background: white;
    }
}

.uploaded-file .preview {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.preview img,
.preview video {
    max-width: 64px;
    max-height: 64px;
}

.uploaded-file .info {
    font-size: 12px;
    color: gray;
}

.form-dropzone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: var(--file-dropdown-background);
    color: var(--border);

    border: 4px dashed var(--border);
    padding: 48px 16px;
}

.form-dropzone:hover {
    cursor: pointer;
    background: var(--file-dropdown-background-hover);
}

.row {
    display: flex;
    flex-direction: row;
}

.column {
    display: flex;
    flex-direction: column;
}

.gap-8 {
    gap: 8px;
}

.grow {
    flex-grow: 1;
}

.small-font {
    font-size: 12px;
}

.text-gray {
    color: gray;
}