@import url("https://fonts.googleapis.com/css2?family=Kalam&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap");
body {
	background: #000;
	color: #fff;
	margin: 0;
	overflow: hidden;

	user-select: none;
}

body,
input,
button {
	font-family: "Noto Serif", serif;
}

#stars {
	width: 100vw;
	height: 100vh;
	transform: rotate3d(1, 0, 0, 90deg) translate3d(0, 0, 50vh)
		translate(0, -50%);
}

#stars.shown {
	transform: none;
	transition: transform 10s;
}

#info {
	position: absolute;
	width: 300px;
	height: 500px;
	right: 0;
	bottom: 0;
	background: rgba(50, 50, 50, 0.5);

	display: none;
}

#star-count {
	font-weight: bold;
}

#dialog {
	position: absolute;
	width: 500px;
	height: 150px;
	left: 50%;
	bottom: 0;
	translate: -50% 0;
	background: rgba(50, 50, 50, 0.5);

	transition: bottom 1s;
}

#dialog.no-encounter {
	bottom: -150px;
}

#dialog-wrapper {
	position: relative;
	width: calc(100% - 40px);
	height: calc(100% - 40px);
	padding: 20px;
}

#text {
	margin: 0;
	transition: opacity 1s;
}

.dialog-char {
	animation: text-fadein 1s;
}

.dialog-italic {
	font-style: italic;
	color: #bbb;
}

.dialog-monospace {
	font-family: monospace;
}

.dialog-hoofwriting {
	font-family: "Kalam", sans-serif;
}

@keyframes text-fadein {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

#proceed {
	opacity: 0;
	display: none;
	transition: opacity 1s;
	position: absolute;
	top: 8px;
	right: -24px;
	margin: 0;
}

#proceed.not-display-none {
	display: block;
}

#proceed.okay-fade-it-in-now {
	opacity: 1;
	display: block;
}

#user-prompt {
	position: absolute;
	top: 50%;
	left: 50%;
	translate: -50% -50%;

	padding: 20px;

	display: flex;
	flex-direction: column;
	gap: 10px;

	transition: opacity 1s;
}

#user-input {
	appearance: none;
	background: none;
	border: none;
	outline: none;
}

#user-input::placeholder {
	font-style: italic;
}

#user-buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
}

button {
	appearance: none;
	background: black;
	/* border: solid thin #444; */
	/* border-radius: 5px; */
	border: none;
	cursor: pointer;
	font-size: 14px;
}

button::before {
	content: "> ";
	color: #bbb;
}

.hidden {
	display: none !important;
}

.opacity-0 {
	opacity: 0 !important;
}

#endscreen {
	display: none;
	position: absolute;
	top: 80px;
	width: 300px;
	left: 50%;
	padding: 20px;
	translate: -50% 0;
	background: rgba(10, 10, 10, 0.5);
	flex-direction: column;
	gap: 20px;
	border: solid thin #888;
	opacity: 1;
	transition: opacity 5s;
	max-height: calc(100vh - 140px);
	overflow-y: auto;
}

.endscreen-shown {
	display: flex !important;
}

h1 {
	font-size: 60px;
	letter-spacing: -5px;
	margin: 0;
	margin-top: -15px;
}

#endscreen-header i {
	display: block;
	margin-top: -6px;
}

#endscreen p {
	margin: 0;
}

h2 {
	margin: 0;
	letter-spacing: -1px;
}

ul {
	margin: 0;
	padding-left: 20px;
}

a {
	color: #aae;
}

a:visited {
	color: #eae;
}

img,
canvas {
	image-rendering: pixelated;
}

#initial-audio-prompt {
	background: black;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;

	opacity: 1;
	transition: opacity 0.5s;
}

#initial-audio-prompt p {
	margin: 0;
}

@media screen and (max-width: 550px) {
	#dialog {
		width: 100vw;
		height: 33vh;
		left: 0;
		right: 0;
		translate: 0% 0;
	}

	#dialog.no-encounter {
		bottom: -33vh;
	}

	br:not(.dont-hide-on-mobile) {
		display: none;
	}

	#proceed {
		top: -24px;
		right: 8px;
	}

	#user-buttons {
		flex-direction: column;
		align-items: start;
	}

	#endscreen {
		max-height: calc(100vh - 200px);
	}
}

#music-toggle {
	position: absolute;
	top: 24px;
	right: 24px;
	scale: 3;
	cursor: pointer;
	opacity: 0.25;
	transition: opacity 0.5s;
}

#music-toggle:hover {
	opacity: 1;
}