a {
	position: relative;
	text-decoration: none;
}

a::before {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	border-bottom: 2px solid;
	border-color: inherit;
	transition: width 0.2s ease-in-out;
}

a:hover::before {
	width: 100%;
}


.submit-panel {
	display: inline-flex;
	justify-content: flex-end;
}

.submit-panel>input[type="submit"],
.submit-panel>button {
	width: fit-content;
}

.footer-panel {
	display: grid;
	gap: 0.5rem;
	grid-template-rows: 1fr;
	grid-template-columns: repeat(3, 1fr);
	align-items: baseline;
	justify-items: center;
}

footer {
	padding: 0.2rem 0.4rem;
}

@media screen and (min-width: 768px) {
	body {
		width: 50vw !important;
		position: absolute;
		left: calc(50% - 25vw);
	}

	img.background {
		height: 100vh;
		width: 100vw;
		object-fit: cover;
		z-index: -1;
		position: fixed;
		top: 0;
		left: 0;
	}

	main {
		margin-top: 1.2rem;
		background-color: rgba(19, 22.5, 30.5, 0.6);
		position: absolute;
		min-height: 85vh;
		padding: 0 1.2rem;
		border-radius: 10px;
		transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
	}

	footer {
		position: fixed;
		right: 0;
		bottom: 0;
		background-color: rgba(8, 10.5, 14.5, 0.6);
	}

	.form {
		width: 50%;
		height: 50%;
		position: absolute;
		left: calc(50% - 25%);
		top: calc(50% - 25%);
		transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
	}

	.use-manual-show {
		width: 80vw;
		left: calc(50% - 40vw);
	}

	.use-manual-show .form {
		width: 80%;
		left: calc(50% - 40%);
	}
}

.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.just-between {
	justify-content: space-between;
}

@keyframes shake {
	0% {transform: translateX(0);}
	10% {transform: translateX(-10px);}
	20% {transform: translateX(10px);}
	30% {transform: translateX(-10px);}
	40% {transform: translateX(10px);}
	50% {transform: translateX(-10px);}
	60% {transform: translateX(10px);}
	70% {transform: translateX(-10px);}
	80% {transform: translateX(10px);}
	90% {transform: translateX(-10px);}
	100% {transform: translateX(0);}
}

.shake {
	animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}


.line {
	width: 100%;
	overflow: auto;
	display: inline-flex !important;
	font-family: monospace !important;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 20, 147, 0.4) transparent;
}
.line::-webkit-scrollbar-thumb {
	background-color: rgba(255, 20, 147, 0.4);
}
.line::-webkit-scrollbar-track {
	background-color: transparent;
}
.line::-webkit-scrollbar {
	width: 8px;
}
.line * {
	font-family: monospace !important;
	padding: 0 !important;
}

@media screen and (max-width: 768px) {
	/* body {
		width: 100vw !important;
		height: 100vh !important;
	} */
	hgroup {
		position: absolute;
		top: 25%;
		padding: 0.8rem;
		background-color: rgba(8, 10.5, 14.5, 0.6);
	}
	main {
		width: 100%;
		overflow: hidden;
	}
	h1 {
		font-size: 1.4rem;
	}
	.footer-panel {
		grid-template-columns: 1fr;
		grid-template-rows: repeat(3, 1fr);
	}
	.line {
		font-size: 0.8rem;
	}
}
