* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Doto", sans-serif;
	background: #0b17b4;
	color: #fff;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

nav {
	width: 100%;
	background: #CCCCCC;
	padding: 8px 16px;
	font-size: 1rem;
	font-weight: bold;
	color: #000;
	border-bottom: 2px solid #999;
	box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

#clock {
	font-family: "Courier New", monospace;
	font-weight: normal;
}

#drums-btn {
	font-family: "Doto", sans-serif;
	font-size: 1rem;
	font-weight: bold;
	padding: 2px 6px;
	background: #CCCCCC;
	color: #000;
	border: none;
	box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 1px 1px 0 #000;
	cursor: pointer;
}

#drums-btn:active {
	box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
}

#drums-btn {
	animation: drum-shake 0.08s 6 alternate;
}

@keyframes drum-shake {
	0% { transform: translate(0, 0); }
	25% { transform: translate(-2px, 1px); }
	50% { transform: translate(2px, -1px); }
	75% { transform: translate(-1px, -2px); }
	100% { transform: translate(1px, 2px); }
}

#copyright-btn {
	font-family: "Courier New", monospace;
	font-size: 0.85rem;
	padding: 2px 6px;
	background: #CCCCCC;
	color: #000;
	border: none;
	box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 1px 1px 0 #000;
	cursor: pointer;
}

#copyright-btn:active {
	box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
}

main {
	max-width: 500px;
	width: 100%;
	padding: 0 20px;
	margin-top: auto;
	margin-bottom: auto;
}

h1 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	text-align: center;
}

form {
	display: flex;
	gap: 8px;
}

input[type="text"] {
	width: 100%;
	padding: 10px 14px;
	font-size: 1rem;
	border: 2px solid #fff;
	border-radius: 6px;
	outline: none;
	background: #fff;
	color: #111;
}

input[type="text"]:focus {
	border-color: #1084d0;
}

.htmx-indicator {
	display: none;
	margin-top: 1rem;
	color: #ccc;
}

#hourglass {
	font-size: 1.2rem;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
	display: block;
}

#answer {
	margin-top: 1rem;
	line-height: 1.6;
}

#answer iframe {
	margin-top: 1.5rem;
}

.window-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
}

.window {
	width: 460px;
	background: #CCCCCC;
	border: 2px solid #000;
	box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 2px 2px 0 #000;
}

.window-titlebar {
	background: linear-gradient(90deg, #000080, #1084d0);
	color: #fff;
	font-size: 0.85rem;
	font-weight: bold;
	padding: 4px 6px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.window-close {
	font-family: "Courier New", monospace;
	font-size: 0.75rem;
	font-weight: bold;
	padding: 1px 5px;
	background: #CCCCCC;
	color: #000;
	border: none;
	box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
	cursor: pointer;
}

.window-close:active {
	box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
}

.window-body {
	padding: 16px;
	font-size: 0.8rem;
	color: #000;
	line-height: 1.6;
}
