:root {
	--box-shadow: 0 0.2rem 0.9rem 0 rgba(0, 0, 0, 0.08);
	--border-radius: 0.5rem;
}


input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
	transition: background 9999s;
	-webkit-transition-delay: 9999s;
	transition-delay: 9999s;
	-webkit-text-fill-color: #000;
}

body {
	padding: 1em;
}

img.icon {
	height: 1em;
	vertical-align: -0.16em;
}

main {
	padding: 0 0 10vw;
}


#logout {
	position: fixed;
	top: 0;
	right: 0;
	margin: 1em;
	font-size: 0.8rem;
	line-height: 1em;
}


.button {
	display: inline-block;
	padding: 0.5em 1.25em;
	background: #fff;
	border: 0;
	border-radius: 5em;
	box-shadow: 0 0.2rem 0.9rem 0 rgba(0, 0, 0, 0.08);
	font: inherit;
	cursor: pointer;
	opacity: 0.9;
	transition: all 200ms;
}
.button[disabled] {
	opacity: 0.4;
}
.button:not([disabled]):hover {
	opacity: 1;
	box-shadow: 0 0.2rem 0.9rem 0 rgba(0, 0, 0, 0.12);
}
.button .icon {
	height: 1.1em;
	vertical-align: -0.22em;
	margin-right: 0.2em;
}



.input {
	display: inline-block;
	padding: 0.5em 1em;
	background: #fff;
	border: 0;
	border-radius: calc(var(--border-radius) / 2);
	box-shadow: 0 0.2rem 0.9rem 0 rgba(0, 0, 0, 0.08);
	font: inherit;
	opacity: 0.9;
	transition: all 200ms;
}
.button:not([disabled]):focus {
	opacity: 1;
	box-shadow: 0 0.2rem 0.9rem 0 rgba(0, 0, 0, 0.12);
}



.add_wrapper {
	text-align: center;
	margin-top: 2rem;
}

.add_wrapper .button:not(:first-child) {
	margin-left: 1rem;
}


.popup {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(0.05rem);
}
.popup:not(.active) {
	display: none;
}

.popup::before, .popup::after {
	content: "";
	display: block;
	flex-grow: 1;
}

.popup form {
	margin: auto;
	max-width: 50vw;
	padding: 2rem;

	background: #fff;
	box-shadow: var(--box-shadow);
	border-radius: var(--border-radius);
}


.popup form h2 {
	margin: 0rem 0 1.2rem;
	padding: 0 1em;
	font-size: 1.5rem;
	line-height: 1em;
	text-align: center;
}


.popup form .previews {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.popup form .previews .preview {
	display: inline-block;
	height: 4rem;
}

.popup form .input_row {
	padding-bottom: 0.75rem;
}
.popup form .input_row .input {
	display: block;
	width: 100%;
}


.popup form .input_row.files {
	text-align: center;
}


.popup form .button_wrapper {
	display: flex;
	flex-direction: row;
	padding-top: 0.75rem;
	gap: 1rem;
}

.popup form .button_wrapper .button {
	flex-grow: 1;
}

.popup form .button_wrapper .button.submit {
	background: #4CAF50;
	color: #fff;
}

.popup form .button_wrapper .button:last-child {
	margin-left: auto;
}


.popup form input[type="file"] {
	display: none;
}


.popup form.loading {
	--progress: 0;
}

.popup form.loading .button_wrapper .button.submit {
	position: relative;
	z-index: 1;
	background: transparent;
	overflow: hidden;
	pointer-events: none;
}
.popup form.loading .button_wrapper .button.submit::after {
	content: "";
	display: block;
	position: absolute;
	z-index: -1;
	left: 0;
	top: 0;
	width: calc(1% * var(--progress));
	height: 100%;
	background: #4CAF50;
}
.popup form.loading .button_wrapper .button.submit::before {
	content: "";
	display: block;
	position: absolute;
	z-index: -2;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: #bebebe;
}


.file.image.isPreviewImage .name {
	text-decoration: underline;
}