:root {
	--background-color: 0, 0, 0;
	--foreground-color: 255, 255, 255;
	--link-color: 136, 191, 134;
	--alert-color: 255, 69, 58;
}
* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-display: swap;
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	transition: all 0.2s ease;
}
::selection {
	color: rgb(var(--background-color));
	background-color: rgba(var(--foreground-color), .99);
}



html {

}
body {
	margin-bottom: 4rem;
	width: 100vw;
	background-color: rgb(var(--background-color));
	color: rgb(var(--foreground-color));
	margin: 0 auto;
	position: relative;
}





.rounded {
	border-radius: 0.8rem;
	padding: .8rem; 
}


.full-width {
	grid-column: 1/-1;
}
.align-top {
	align-self: flex-start;
	/*justify-self: top;*/
}
.align-bottom {
	align-self: flex-end;
}


nav {
	left: 0;
	height: 2.8rem;
	width: calc(100vw - 1.2rem - 1.2rem);
	margin: 1.2rem;
	z-index: 10;
	pointer-events: none;
}
nav > * {
	backdrop-filter: blur(3.2rem) brightness(.64);
	-webkit-backdrop-filter: blur(3.2rem) brightness(.64);
	border: solid 1px rgba(var(--foreground-color), .02);
	border-radius: .8rem;
	padding: .4rem;
	pointer-events: auto;
}
nav > div {
	width: 100%;
	display: flex;
	justify-content: space-evenly;
}
nav a {
	display: grid;
	font-size: 1.4em;
}
nav.top {
	display: flex;
	align-items: center;
	position: fixed;
	top: 0;
	justify-content: space-between;
}
nav.bottom {
	position: fixed;
	bottom: 0;

}


main {
	padding: 1.2rem 1.6rem;
	padding-bottom: 4rem;
	width: 100vw;
	max-width: 48rem;
	margin: 0 auto;
	display: grid;
	grid-gap: 1.2rem;
}
/*.small-gap {
	grid-gap: 0.4rem;
}*/
main.large {
	grid-template-columns: repeat( auto-fit, minmax(16rem, 1fr) );
}
/*main.medium {
	grid-template-columns: repeat( auto-fit, minmax(8rem, 1fr) );
}*/



header {
	max-height: 64vh;
	margin: 0 auto;
    border-radius: 0 0 0.8rem 0.8rem;
}
header .content {
	max-width: 48rem;
	margin: 0 auto;
	padding-top: 4.4rem;
}

footer {
	min-height: 6.4rem;
}



h1, h2, h3, h4, h5, h6 {
	margin: 0;
}
h1 {
	font-size: 2.4rem;
	font-weight: 800;
}
h2 {
	font-size: 2rem;
}

/*small {
	font-size: 0.8rem;
}*/

.fraction {
	font-variant-numeric: diagonal-fractions;
}

a {
	text-decoration: none;
	color: inherit;
}
a:hover,
a:focus,
button:hover,
button:focus {
	transform: scale(1.02);
}
p a {
	text-decoration: underline;
}














img {
	max-width: 100%;
}











form {
	display: grid;
	grid-gap: 1.6rem;
}
input, select, textarea {
	background-color: rgba(var(--foreground-color), 0.16);
	color: inherit;
	border: 0;
	border-radius: .08rem;
	padding: .4rem .6rem;
	width: 100%;
}
input[type="checkbox"] {
	width: auto;
	 margin-right: .4rem;
	vertical-align: bottom;
}
button,
a.button,
input[type="submit"] {
	background-color: rgb(var(--foreground-color));
	color: rgb(var(--background-color));
	border: 0;
	border-radius: .4rem;
	padding: .6rem .8rem;
/*	width: 100%;*/
	height: fit-content;
	font-size: 1.2rem;
	display: block;
	text-align: center;
	cursor: pointer;
}
button[type="submit"] {
	display: none;
}
button.secondary,
a.button.secondary {
	background-color: transparent;
	color: rgb(var(--foreground-color));
	border: 1px solid rgb(var(--foreground-color));
}
button.delete,
button.remove {
	background-color: rgb(var(--alert-color));
	color: rgb(var(--foreground-color));
}
/*.button-group {
	background-color: rgba(var(--foreground-color), 0.24);
	color: rgb(var(--foreground-color));
	border-radius: .4rem;
	display: flex;
	margin-bottom: 4rem;
	overflow: hidden;
}
.button-group .button {
	background-color: transparent;
	color: inherit;
	border-radius: 0;
}
.button-group .button.active {
	background-color: rgba(var(--foreground-color), 0.24);
}*/
label {
	display: block;
	margin-bottom: .4rem;
	font-size: .8rem;
}

/*article {
	background-color: rgba(var(--foreground-color), 0.064);
	position: relative;
	text-align: center;
}*/





.tile {
	background-color: rgba(var(--foreground-color), 0.08);
	background-size: cover;
	/*background-size: contain;*/
	background-position: center;
	background-repeat: no-repeat;
	display: block;
	position: relative;
	max-width: -webkit-fill-available;
}
.tile.square {
	aspect-ratio: 1/1;
}
.tile.portrait {
	aspect-ratio: 4/5;
}
.tile.landscape {
	/*aspect-ratio: 16/9;*/
	aspect-ratio: 3/2;
}
@media only screen and (max-width: 24rem) {
	.tile {
		min-height: 25vh;
	}
	.tile.portrait {
		aspect-ratio: 9/16;
	}
	.tile.landscape {
		aspect-ratio: 1/1;
	}
}
@supports not (aspect-ratio: 1/1) {
 	.tile.square::before {
		content: "";
		display: inline-block;
		padding-bottom: 100%;
	}
	.tile.portrait::before {
		content: "";
		display: inline-block;
		padding-bottom: 150%;
	}
	.tile.landscape::before {
		content: "";
		display: inline-block;
		padding-bottom: 66.6%;
	}

}




.content {
	display: grid;
	
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	text-shadow: 0.2rem 0.1rem 0.8rem rgba(var(--background-color), 0.6);
	padding: .8rem;
}
.tile .content {
	position: absolute;
}





.dialog {
	max-height: 100vh;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 50;
	backdrop-filter: blur(2.4rem) brightness(.4);
    -webkit-backdrop-filter: blur(2.4rem) brightness(.4);
}
.dialog .content {
	position: absolute;
	margin: auto;
	/*padding: 2.5rem;*/
	width: 80vw;
	max-width: 24rem;
	/*top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);*/
	grid-auto-rows: min-content;
	align-content: center;
	grid-gap: .8rem;
}
.dialog:not([open]) {
	display: none;
}















table {
	border-radius: 0.8rem;
	overflow: hidden;
	border-collapse: separate;
  border-spacing: 2px;
	width: 100%;
}
th, 
td {
	text-align: left;
	padding: 0.64rem;
	background-color: rgba(var(--foreground-color), 0.04);
}







.filter-bar {
	list-style: none;
	display: flex;
	margin-bottom: 2rem;
}
.filter-bar li {
	color: rgba(var(--foreground-color), .6);
	cursor: pointer;
	height: 2.4rem;
	border-radius: 1.2rem;
	line-height: .8;
	border: 1px solid rgba(var(--foreground-color), 0);
}
.filter-bar li a {
	font-weight: inherit;
    color: inherit;
    padding: .32rem 1.2rem;
    display: block;
}
.filter-bar li:hover,
.filter-bar li:focus {
	color: rgba(var(--foreground-color), 1);
}
.filter-bar li.active {
	color: rgb(var(--foreground-color));
	border: 1px solid rgba(var(--foreground-color), 1);
}







.spinner {
	width: 8rem;
	text-align: center;
}

.spinner > div {
	width: 1.2rem;
	height: 1.2rem;
	background-color: rgb(var(--foreground-color));
	border-radius: 100%;
	display: inline-block;
	-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
	animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
	-webkit-animation-delay: -0.32s;
	animation-delay: -0.32s;
}

.spinner .bounce2 {
	-webkit-animation-delay: -0.16s;
	animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
	0%, 80%, 100% { -webkit-transform: scale(0) }
	40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
	0%, 80%, 100% { 
		-webkit-transform: scale(0);
		transform: scale(0);
	} 40% { 
		-webkit-transform: scale(1.0);
		transform: scale(1.0);
	}
}





