:root {
	--how-many-buttons: 5;
}

@media (max-width:600px) {
	:root {
		--how-many-buttons: 3;
	}

	#local_volume, #username_perchance {
		float: none;
	}
}

#username_perchance {
	margin-right: 1in;
	max-width: 3in;
}

details.sb#love_zone > summary > h2 {
	position: relative;
	margin-bottom: 18px;
}

#love_zone[open] {
	min-height: 8.1lh;
}

#love_zone > summary {
	color: red;
}

:where(#booba,#love_zone) button, textarea.lovesec {
	margin: 2px;
	position: relative;
}

#topstuff {
	text-align: center;
}

	#topstuff > h1 {
		margin: 0;
		font-size: 2.5rem;
	}

input {
	accent-color: red;
}

div#please-dont-select-anything-here * {
	user-select: none;
}

#greatanswer {
	margin: 0;
	position: absolute;
}

#where_help {
	font-size: xx-small;
	padding: 1px 3.5px;
	cursor: help;
}

#how2love {
	position: absolute;
	font-size: initial;
	display: block;
}

button.loved::before {
	content: "<3";
	position: absolute;
	color: white;
	background-color: red;
	font-weight: bold;
	transform: rotate(270deg);
	left: 4px;
	top: 33%;
	font-size: 1lh;
}

.sounds {
	display: grid;
	/*grid: auto-flow 3lh / repeat(var(--how-many-buttons), 1fr);*/
	grid-template-columns: repeat(var(--how-many-buttons), 1fr);
	grid-template-rows: none;
	grid-template-areas: none;
	grid-auto-flow: row;
	grid-auto-columns: auto;
	grid-auto-rows: 3lh;
}

textarea.lovesec {
	grid-column-start: 1;
	border: 1px solid black;
	resize: none;
	align-content: center;
	text-align: center;
	background-color: #fffa;
}

:where(details).sb[open] {
	margin-bottom: 10px;
}

:where(details,div).sb > :where(summary,div) > h2 {
	display: inline-block;
	margin: 4px 0px;
	font-size: 2rem;
}

:where(details,div).sb > summary {
	--max-width: fit-content;
}

details.sb summary:hover {
	h2 {
		text-decoration: wavy underline 1px;
	}
}

.sb h3 {
	margin: 0;
	max-width: fit-content;
}

@media (max-width:400px) {
	#clockbot_zone > div.fr {
		float: none;
	}
}

#clockbot_zone {
	margin-bottom: 25px;
}

div#arm_nuke_display {
	z-index: 5;
	aspect-ratio: 1;
	background-color: white;
	border: 2px solid black;
	width: 190px;
	position: fixed;
	left: calc(50vw - 95px);
	top: 25%;
	text-align: center;
	padding: 6px;
	align-content: center;
	pointer-events: none;
	user-select: none;
}

	div#arm_nuke_display > div {
		font-size: larger;
		font-variant: small-caps;
	}

	div#arm_nuke_display > button {
		pointer-events: none;
		user-select: none;
	}

	div#arm_nuke_display > meter {
		width: 100%;
		transform: scaleY(2);
	}

div#topstuff > h1 {
	margin-bottom: 0;
}

div#topstuff > h2 {
	margin-top: 0;
}

div#navboat {
	position: fixed;
	left: 0;
	max-width: min-content;
	top: 60px;
	overflow-x: visible;
	white-space: nowrap;
	flex-direction: column;
	display: flex;
	z-index: 2;
}

	div#navboat #captains {
		max-width: fit-content;
		display: contents;
	}

	div#navboat button {
		flex: 1;
		font-family: cursive;
		font-style: italic;
		border: 2px outset #ddd;
	}

#navboat button:hover, #navboat button:focus {
	transform: matrix(1.1,0,0,1.1,0,0);
}

#navboat button:active {
	transform: matrix(0.85,0,0,1.4,15,0);
}

div#navboat #captains buttons {
	min-width: 100%;
}

#boat_hider {
	width: 108px;
	text-align: left;
}

:where(#booba, #love_children) button:hover {
	z-index: 1;
	transform: matrix(1.05,0,0,1.05,0,0);
}

:where(#booba, #love_children) button:active {
	z-index: 1;
	transform: matrix(1.1,0,0,1.1,0,0);
}

.navboat_classical {
	height: calc(100% - 60px);
}

div.sounds > button {
	width: 160px;
	height: 50px;
}

#how-many-columns {
	clear: right;
	font-variant: small-caps;
}

div#searchmania {
	position: sticky;
	top: 0px;
	z-index: 3;
}

div#searchmania-superslam {
	max-width: fit-content;
	background-color: #ffff;
	padding: 5px;
	border: inset 3px #ddd;
	display: grid;
	grid-template-areas: "a a"
		"b c";
}

input#soundsearch {
	grid-area: a;
	width: 200px;
}

#all-sounds {
	position: absolute;
	z-index: 4;
	border-style: solid;
	border-width: 1px;
	border-color: #000;
	background-color: #fff;
	min-width: 198px;
	max-width: clamp(200px, 85%, 500px);
	white-space: nowrap;
	overflow-x: hidden;
	overflow-y: scroll;
	top: -32px;
	left: 8px;
	user-select: none;
	max-height: 30lh;
	min-height: 1lh;
}

div#all-sounds>span {
	display: block;
}
	div#all-sounds > span:hover {
		background-color: #eee;
	}

