:root {
	--red: #FF3B30;
	--accent: #007AFF;
	--secondary: #8A8A8E;
    --darker: rgba(0, 0, 0, 0.05);
    --lighter: rgba(255, 255, 255, 0.1);

	--index-size: 25px;
	--row-size: 40px
}

* {
	font-family: system-ui;
	box-sizing: border-box;
	margin: 0px;
	padding: 0px;
}

body {
	min-height: 100dvh;
	padding: 20px;
	padding-bottom: 50px;
	color: var(--primary);
    background-color: var(--background);
}

p {
	white-space: pre-wrap;
}
h1 {
	margin: 15px 0px;
}
h2 {
	margin: 10px 0px;
}
.secondary {
	color: var(--secondary);
	font-weight: normal;
}
.text_align_center {
	text-align: center;
}

.align_center, .center {
	display: flex;
	justify-content: center;
}
.center {
	display: flex;
	align-items: center;
}

.narrow {
	max-width: 400px;
}
.wide {
	max-width: 800px;
}
.expand {
	flex: 1;
}

input[type=file] {
	position: absolute;
	opacity: 0;
}

img {
	vertical-align: bottom; /* Stops weird padding at bottom of image */
	object-fit: cover; /* Stops non-square uploaded images from stretching */
}
.big_symbol {
	width: 40px;
	height: 40px;
}
.small_symbol {
	width: 20px;
	height: 20px;
}
.big_logo {
	width: 130px;
	height: 130px;
	border-radius: 50%;
}
.small_logo {
	width: 90px;
	height: 90px;
	border-radius: 50%;
}

a, button {
	color: var(--accent);
	text-align: center;
	border: none;
	display: inline-block;
	text-decoration: none;
	background: none;
	font-weight: 500;
	font-size: 1rem;
}
button:active:enabled, a:active, label:active {
	opacity: 0.75;
}

.small_button, .big_button {
	border-radius: 10px;
	color: white;
	background-color: var(--accent);
}

.big_button {
	width: 100%;
	padding: 10px;
	margin-top: 20px;
}
.big_button:disabled {
	background-color: var(--secondary);
}

.small_button {
	padding: 8px 10px;
}
.small_button img {
	width: 20px;
	height: 20px;
	filter: invert(1);
}
.small_button p {
	display: inline-block;
	vertical-align: top;
	line-height: 20px;
	margin-left: 5px;
}

.small_button.destructive {
	color: var(--red);
}
.small_button.destructive img {
	filter: none;
}

textarea {
	border: none;
	background: none;
	font-size: 1rem;
	display: block;
	resize: none;
	width: 100%;
}
textarea[readonly] {
	outline: none;
}

.title_textarea {
	text-align: center;
	font-size: 2rem;
	font-weight: bolder;
	padding: 10px;
	outline: none;
	color: var(--primary);
}
.title_textarea:focus::placeholder {
	color: transparent;
}
.description_textarea {
	padding: 10px;
	outline: none;
}
.title_textarea::placeholder, .description_textarea::placeholder {
	color: var(--accent);
	opacity: 1;
}

.padding {
	padding: 10px;
}
.extra_padding {
	padding: 20px;
}

.small_corners {
	border-radius: 10px;
}
.big_corners {
	border-radius: 30px;
}

.row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}
.column {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.clear::placeholder {
	color: transparent;
}
.clear {
	color: transparent;
}

@media(prefers-color-scheme: light) {
    :root {
        --primary: black;
        --background: white;
    }
	.shadow {
		box-shadow: 0px 5px 10px lightgray;
	}
	.fill {
		background-color: var(--darker);
	}
}
@media(prefers-color-scheme: dark) {
    :root {
        --primary: white;
        --background: black;
    }
	.shadow {
		background-color: var(--lighter);
	}
	.fill {
		background-color: var(--lighter);
	}
	.big_symbol {
		filter: invert(1);
	}
}