@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("icomoon/style.css");

:root {
	--background: #ffffff;
	--foreground: #161616;
	--red: #c0392b;
	--green: #27ae60;
	--blue: #2979ff;
}

body {
	background: var(--background);
	color: var(--foreground);
	margin: 0;
	font-family: "Inter", sans-serif;
	line-height: 1.5;
	transition: background 0.5s;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}
a {
	color: var(--blue);
	text-decoration: none;
}
a:hover,
a:focus {
	text-decoration: underline;
}

input[type="text"],
textarea {
	color: var(--foreground);
	display: block;
	border: 0.1rem solid var(--foreground);
	background: none;
	font-family: inherit;
	font-size: 1.25rem;
	line-height: 1.25;
	width: 100%;
	outline: none;
	padding: 0.4rem;
	box-sizing: border-box;
	border-radius: 0.25rem;
	height: 2.5rem;
}
textarea {
	height: auto;
	resize: none;
}
button {
	background: var(--foreground);
	color: var(--background);
	display: block;
	border: none;
	text-align: left;
	font-family: inherit;
	font-size: 1.25rem;
	line-height: 1;
	outline: none;
	cursor: pointer;
	border-radius: 0.25rem;
	padding: 0.4rem 1rem;
	height: 2.5rem;
}
header {
	background: var(--background);
	padding: 1rem;
	position: sticky;
	top: 0px;
	z-index: 10;
	box-sizing: border-box;
}
header.shadow {
	box-shadow: 0 0.25rem 0.3rem -0.25rem rgba(128, 128, 128, 0.3);
}
header * {
	line-height: 1;
}
header button {
	background: var(--background);
	color: var(--foreground);
	border: 0.1rem solid var(--background);
	border-radius: 2rem;
	height: 2rem;
	width: 2rem;
	font-size: 1.7rem;
	padding: 0rem;
	text-align: center;
	box-sizing: border-box;
}
header button:hover,
header button.active {
	border: 0.1rem solid var(--foreground);
}
nav {
	margin: 1rem auto;
}
footer {
	margin: 2rem auto;
	text-align: center;
}
footer a {
	color: var(--foreground);
	margin: auto 0.5rem;
}

[v-cloak] {
	display: none;
}

.wrap {
	width: 100%;
	max-width: 640px;
	margin-inline: auto;
	box-sizing: border-box;
}
.pad {
	box-sizing: border-box;
	padding: 0px 1rem;
}
.bold {
	font-weight: bold;
}
.x-large {
	font-size: 1.6rem;
}
.large {
	font-size: 1.25rem;
}
.small {
	font-size: 0.75rem;
}
.light {
	opacity: 0.75;
	color: var(--foreground);
}
.italic {
	font-style: italic;
}
.page-title {
	display: inline-flex;
	align-items: center;
	font-size: 2rem;
	line-height: 1;
	font-weight: 600;
}
.flex {
	display: flex;
	align-items: center;
}
.flex-1 {
	flex: 1;
}
.flex button {
	margin-left: 1rem;
}
.empty {
	text-align: center;
	margin: 4rem auto;
}
.spacer {
	height: 1rem;
}

.popup {
	position: absolute;
	z-index: 20;
	background: var(--background);
	box-shadow: 0 4px 12px rgba(128, 128, 128, 0.5);
	border-radius: 0.4rem;
	width: 15rem;
	top: 4rem;
}
.popup .item {
	padding: 0.75rem;
	border-bottom: 0.1rem solid rgba(128, 128, 128, 0.25);
	text-decoration: none;
}
.popup .item:last-child {
	border-bottom: none;
}

#app {
	position: relative;
}
#intro {
	max-width: 800px;
}
#logo {
	display: block;
	margin-right: 0.5rem;
}
#intro #hero {
	width: 100%;
	max-width: 400px;
	margin: 10rem auto;
	text-align: center;
}
#intro #hero .title {
	font-size: 1.8rem;
	margin: 1rem auto;
}
#intro #input-wrap {
	position: relative;
	margin: 2rem auto 0.75rem;
}
#intro #input-wrap span {
	position: absolute;
	font-size: 1rem;
	line-height: 1.25;
	padding: 0.6rem;
	left: 0px;
}
#intro #input-wrap input {
	font-size: 1rem;
	padding-left: 8ch;
}
#features {
	margin: 5rem auto;
}
#quote {
	margin: 10rem auto;
	text-align: center;
	font-size: 2rem;
	font-style: italic;
	font-weight: 200;
}
#toast {
	background-color: var(--foreground);
	color: var(--background);
	text-align: center;
	box-sizing: border-box;
	position: fixed;
	z-index: 20;
	left: 0px;
	right: 0px;
	top: 0rem;
	max-height: 0;
	margin: auto;
	overflow: hidden;
	font-size: 1em;
	transition: max-height 0.25s ease-in;
	line-height: 2;
}
#toast.show {
	max-height: 5rem;
}
#toast.error {
	background: var(--red);
}
#toast.success {
	background: var(--green);
}
#toast.info {
	background: var(--blue);
}
#back {
	margin-left: 0px;
	margin-right: 0.5rem;
}
#nameWrap {
	width: 100%;
	border: 0.1rem solid var(--foreground);
	border-radius: 0.5rem;
	box-sizing: border-box;
	margin: 1rem auto 2rem;
	padding: 1rem 10vw 1rem 1rem;
}
#nameWrap > .flex {
	margin-bottom: 0.5rem;
}
#blanket {
	position: fixed;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
}
#users {
	left: 4rem;
	max-height: 16rem;
	overflow-y: auto;
}
#actions {
	right: 1rem;
}
#actions a {
	color: var(--foreground);
}
#messages {
	padding: 1rem;
	min-height: 10rem;
}
#message-wrap {
	background: var(--background);
	position: sticky;
	bottom: 0px;
	padding: 1rem;
	width: 100%;
	box-sizing: border-box;
}
#message-wrap.shadow {
	box-shadow: 0 -0.25rem 0.3rem -0.25rem rgba(128, 128, 128, 0.3);
}
#message-box {
	align-items: flex-end;
}
#loadmore {
	display: block;
	width: 10rem;
	text-align: center;
	font-size: 1rem;
	padding: 0px;
	height: 2rem;
	border-radius: 2rem;
	margin: auto;
	border: 0.1rem solid var(--foreground);
	background: var(--background);
	color: var(--foreground);
}
.loader {
	width: 2rem;
	height: 2rem;
	background: var(--foreground);
	margin: 3rem auto;
	position: relative;
}
.loader:before {
	content: "";
	display: block;
	background: var(--background);
	width: 1.4rem;
	height: 1.4rem;
	position: absolute;
	top: 0.3rem;
	left: 0.3rem;
	animation: loading 2s linear infinite;
}
@keyframes loading {
	0% {
		height: 0rem;
		top: 0.3rem;
		bottom: auto;
	}
	25% {
		height: 1.4rem;
		top: 0.3rem;
		bottom: auto;
	}
	26% {
		height: 1.4rem;
		top: auto;
		bottom: 0.3rem;
	}
	50% {
		height: 0rem;
		top: auto;
		bottom: 0.3rem;
	}
	75% {
		height: 1.4rem;
		top: auto;
		bottom: 0.3rem;
	}
	76% {
		height: 1.4rem;
		top: 0.3rem;
		bottom: auto;
	}
	100% {
		height: 0rem;
		top: 0.3rem;
		bottom: auto;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--background: #121212;
		--foreground: #f5f5f5;
	}
}
