* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 40px 16px 140px;
	background-color: #222;
	background-image: url("../images/dicki.gif");
	background-repeat: repeat;
	font-family: "Comic Sans MS", "Comic Neue", cursive;
	/* Every pointer is Mathill now. */
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='32'%3E%3Ctext x='2' y='22' font-family='cursive' font-size='20' fill='black' stroke='white' stroke-width='3' paint-order='stroke'%3EMathill%3C/text%3E%3C/svg%3E") 2 16, auto;
}

.mathill {
	width: 100%;
	max-width: 1300px;
	aspect-ratio: 1537 / 770;
	max-height: 480px;
	margin: auto;
	background: #fff url("../images/mathill.png") center / contain no-repeat;
	opacity: .98;
	border-radius: 25px;
}

.subeme {
	width: 100%;
	max-width: 560px;
	aspect-ratio: 16 / 9;
	margin: 20px auto 0;
}

.subeme iframe {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 12px;
}

.poem {
	max-width: 1300px;
	margin: 20px auto 0;
	opacity: .98;
}

.contents {
	max-width: 900px;
	margin: 0 auto 40px;
	padding: 10px 24px 20px;
	text-align: center;
	background-color: lightgray;
	border-radius: 25px;
}

.ballad {
	font: inherit;
	padding: 8px 18px;
	border: 2px solid #333;
	border-radius: 999px;
	background: #ffd400;
	cursor: inherit;
}

.visits {
	font-size: .85em;
	color: #444;
}

.lower {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: space-between;
	align-items: flex-start;
}

.discord iframe {
	max-width: 100%;
	border-radius: 25px;
}

.button {
	flex: 0 1 700px;
	margin: 0;
	border-radius: 25px;
	opacity: .98;
	text-align: center;
}

.button img {
	display: block;
	width: 100%;
	min-height: 200px;
	border-radius: 25px;
	background: lightgray;
}

.button figcaption {
	margin-top: 6px;
	padding: 4px 12px;
	display: inline-block;
	border-radius: 999px;
	background: lightgray;
}

.splash {
	position: fixed;
	inset: 0;
	z-index: 10;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(0, 0, 0, .85);
}

.splash[hidden] {
	display: none;
}

.order-up {
	display: grid;
	gap: 8px;
	max-width: 420px;
	padding: 28px 32px;
	font: 700 1.6rem/1.2 "Courier New", monospace;
	background: #fffdf3;
	border: 2px dashed #333;
	border-radius: 4px;
	transform: rotate(-2deg);
	cursor: inherit;
	animation: wobble 1.2s ease-in-out infinite;
}

.order-up .ticket {
	font-size: .8rem;
	letter-spacing: .2em;
}

.order-up small {
	font-size: .8rem;
	font-weight: 400;
}

@keyframes wobble {
	50% { transform: rotate(2deg) scale(1.03); }
}

.escape {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 5;
	padding: 10px 16px;
	font: inherit;
	color: #fff;
	background: #c00;
	border: 0;
	border-radius: 8px;
	cursor: inherit;
	transition: left .15s, top .15s;
}

@media (prefers-reduced-motion: reduce) {
	.order-up {
		animation: none;
	}
}

@media (max-width: 760px) {
	.lower {
		justify-content: center;
	}
}

/* Extra annoyances (js/worse.js). Stacking: escape 5, cookie bar 4, loader and toasts 7, modals 8, menu and tacos 9, splash 10. */

.mathill,
.poem {
	transform: rotate(var(--tilt, 0deg));
	transition: transform 4s ease-in-out;
}

.toasts {
	position: fixed;
	left: 16px;
	top: 34px;
	z-index: 7;
	display: grid;
	gap: 8px;
	max-width: calc(100vw - 32px);
	pointer-events: none;
}

.toast {
	padding: 10px 14px;
	max-width: 320px;
	background: #fffdf3;
	border: 2px solid #333;
	border-radius: 10px;
	box-shadow: 4px 4px 0 #ffd400;
	transition: opacity .5s, transform .5s;
}

.toast.gone {
	opacity: 0;
	transform: translateX(-30px);
}

.cookies {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	padding: 14px 16px;
	text-align: center;
	color: #fff;
	background: #4b0082;
	border-top: 4px dashed #ffd400;
}

.cookies p {
	margin: 0 0 10px;
}

.row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	align-items: center;
}

.big {
	font: inherit;
	font-size: 1.1rem;
	padding: 10px 20px;
	border: 2px solid #333;
	border-radius: 999px;
	background: #ffd400;
	cursor: inherit;
}

.decline {
	font: inherit;
	font-size: 12px;
	padding: 2px;
	color: #999;
	background: none;
	border: 0;
	text-decoration: underline;
	cursor: inherit;
}

.shade {
	position: fixed;
	inset: 0;
	z-index: 8;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(0, 0, 0, .6);
}

.nag {
	position: relative;
	display: grid;
	gap: 12px;
	justify-items: center;
	width: min(420px, 100%);
	padding: 28px 24px 18px;
	text-align: center;
	background: #fffdf3;
	border: 3px solid #333;
	border-radius: 18px;
	box-shadow: 8px 8px 0 #ffd400;
}

.nag h2,
.nag p {
	margin: 0;
}

.nag form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.nag input {
	font: inherit;
	padding: 8px 12px;
	border: 2px solid #333;
	border-radius: 999px;
}

.nag .x {
	position: absolute;
	top: 6px;
	right: 10px;
	padding: 0 6px;
	font-size: 1.4rem;
	background: none;
	border: 0;
	cursor: inherit;
	transition: top .15s, left .15s;
}

.menu {
	position: fixed;
	z-index: 9;
	display: grid;
	min-width: 190px;
	padding: 4px;
	background: #fffdf3;
	border: 2px solid #333;
	border-radius: 8px;
	box-shadow: 4px 4px 0 #ffd400;
}

.menu[hidden] {
	display: none;
}

.menu button {
	font: inherit;
	padding: 6px 10px;
	text-align: left;
	background: none;
	border: 0;
	border-radius: 4px;
	cursor: inherit;
}

.menu button:hover {
	background: #ffd400;
}

.loading {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 7;
	height: 22px;
	background: #333;
}

.loading span {
	display: block;
	height: 100%;
	width: 0;
	background: repeating-linear-gradient(45deg, #ffd400 0 12px, #ffb000 12px 24px);
	transition: width .6s;
}

.loading em {
	position: absolute;
	inset: 0;
	font: 700 .8rem/22px "Courier New", monospace;
	font-style: normal;
	text-align: center;
	color: #fff;
	text-shadow: 0 0 3px #000;
}

.taco {
	position: fixed;
	z-index: 9;
	font-size: 22px;
	pointer-events: none;
	transform: translate(-50%, -50%);
	animation: drop .9s ease-in forwards;
}

@keyframes drop {
	to { opacity: 0; transform: translate(-50%, 40px) rotate(180deg); }
}

/* The 1998 layer (js/geocities.js). */

/* Twinkling stars over the background tile. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		radial-gradient(2px 2px at 20px 30px, #fff, transparent),
		radial-gradient(2px 2px at 140px 70px, #ff0, transparent),
		radial-gradient(1px 1px at 90px 160px, #fff, transparent),
		radial-gradient(2px 2px at 170px 190px, #0ff, transparent),
		radial-gradient(1px 1px at 60px 110px, #f0f, transparent);
	background-size: 200px 200px;
	animation: twinkle 1.2s steps(2) infinite;
}

@keyframes twinkle {
	50% { opacity: .2; }
}

.page {
	transition: transform 1.2s ease-in-out;
}

.marquee {
	display: block;
	max-width: 1300px;
	margin: 0 auto 12px;
	padding: 4px 0;
	font: 700 1.1rem "Comic Sans MS", "Comic Neue", cursive;
	color: #ff0;
	background: #000080;
	border: 3px ridge #c0c0c0;
}

.wordart {
	margin: 0 0 12px;
	text-align: center;
	font: 900 clamp(2rem, 7vw, 4.5rem)/1.1 Impact, "Arial Black", sans-serif;
	letter-spacing: .03em;
	background: linear-gradient(90deg, #f00, #f80, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-stroke: 1px #000;
	filter: drop-shadow(4px 4px 0 #000);
	transform: skewX(-8deg);
	animation: rainbow 3s linear infinite;
}

.wordart.small {
	font-size: clamp(1.5rem, 5vw, 2.5rem);
}

@keyframes rainbow {
	to { background-position: 200% 0; }
}

.construction {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	align-items: center;
	max-width: 700px;
	margin: 0 auto 16px;
	padding: 8px 12px;
	font: 900 1.1rem "Arial Black", Impact, sans-serif;
	text-align: center;
	background: repeating-linear-gradient(-45deg, #ffd400 0 16px, #000 16px 32px);
	border: 3px solid #000;
}

.construction > span:not(.worker) {
	padding: 2px 10px;
	background: #ffd400;
}

.worker {
	font-size: 1.8rem;
	animation: dig .5s ease-in-out infinite alternate;
}

@keyframes dig {
	to { transform: translateY(-6px) rotate(-10deg); }
}

.blink {
	animation: blink 1s steps(1) infinite;
}

@keyframes blink {
	50% { visibility: hidden; }
}

.new,
.hot {
	font: 900 .9rem "Arial Black", sans-serif;
	color: #f00;
	vertical-align: middle;
}

.hot {
	color: #f60;
}

hr.rainbow {
	max-width: 1300px;
	height: 8px;
	margin: 24px auto;
	border: 0;
	border-radius: 4px;
	background: linear-gradient(90deg, #f00, #f80, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
	background-size: 200% 100%;
	animation: rainbow 2s linear infinite;
}

.guestbook {
	max-width: 900px;
	margin: 0 auto;
	padding: 16px 20px;
	background: #ffffe0;
	border: 4px ridge #c0c0c0;
	border-radius: 4px;
}

.guestbook .note {
	text-align: center;
}

.guestbook form {
	display: grid;
	gap: 8px;
	justify-items: center;
	margin-bottom: 16px;
}

.guestbook input,
.guestbook textarea {
	width: 100%;
	max-width: 500px;
	font: inherit;
	padding: 8px 10px;
	border: 2px inset #c0c0c0;
	background: #fff;
}

.entries {
	display: grid;
	gap: 10px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.entries li {
	padding: 8px 12px;
	background: #fff;
	border: 2px dotted #000080;
}

.entries p {
	margin: 4px 0 0;
	overflow-wrap: anywhere;
}

.who {
	font-size: .85em;
	color: #000080;
}

.who .tag {
	margin-left: 8px;
	padding: 0 6px;
	color: #fff;
	background: #080;
	border-radius: 4px;
}

.footer {
	max-width: 1300px;
	margin: 0 auto;
	text-align: center;
}

.webring {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	justify-content: center;
	align-items: center;
	padding: 10px;
	margin-bottom: 12px;
	background: #c0c0c0;
	border: 3px outset #fff;
}

.webring a {
	color: #00e;
	font-weight: 700;
	cursor: inherit;
}

.webring a:visited {
	color: #551a8b;
}

.counter {
	display: inline-block;
	margin-bottom: 12px;
	padding: 6px 12px;
	color: #fff;
	background: #000;
	border: 2px solid #c0c0c0;
}

#counter {
	padding: 2px 6px;
	font: 700 1.2rem "Courier New", monospace;
	letter-spacing: .25em;
	color: #0f0;
	background: #111;
	border: 1px inset #555;
}

.badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

/* 88x31 buttons, sized like the real thing would have been. */
.badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 88px;
	height: 31px;
	overflow: hidden;
	font: 7px/1.05 Verdana, sans-serif;
	text-align: center;
	border: 1px solid #000;
	box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #555;
}

.badge b {
	font-size: 9px;
}

.netscape {
	color: #fff;
	background: radial-gradient(circle at 20% 50%, #3a6ea5, #000040 70%);
}

.netscape b {
	font: 900 20px/1 Georgia, serif;
	color: #fff;
	text-shadow: 0 0 4px #0ff;
}

.notepad {
	flex-direction: column;
	gap: 0;
	background: #fff;
}

.approved {
	flex-direction: column;
	gap: 0;
	color: #ff0;
	background: #800;
}

.sparkle {
	position: fixed;
	z-index: 9;
	font-size: 16px;
	pointer-events: none;
	text-shadow: 0 0 4px currentColor;
	transform: translate(-50%, -50%);
	animation: sparkle .8s ease-out forwards;
}

@keyframes sparkle {
	to { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(90deg); }
}

html.quake body {
	animation: quake .1s linear 10;
}

@keyframes quake {
	0%, 100% { transform: translate(0, 0); }
	25% { transform: translate(-14px, 6px) rotate(-1deg); }
	50% { transform: translate(12px, -8px) rotate(1deg); }
	75% { transform: translate(-8px, -4px); }
}

@media (prefers-reduced-motion: reduce) {
	body::before,
	.wordart,
	.worker,
	hr.rainbow,
	html.quake body {
		animation: none;
	}

	.page {
		transition: none;
	}
}

/* More Mathill (js/mathill.js). The DVD receipts sit with the escape button; the rain falls with the tacos. */

.mathilled {
	padding: 0 2px;
	color: inherit;
	background: #ff0;
	border-radius: 3px;
}

.dvd {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 5;
	width: 140px;
	aspect-ratio: 1537 / 770;
	padding: 0;
	background: #fff url("../images/mathill.png") center / contain no-repeat;
	border: 2px solid #333;
	border-radius: 10px;
	cursor: inherit;
	transition: filter .3s;
}

/* js/mathill.js places each drop's center off one side and sets --dx/--dy to carry it off the other. */
.rain {
	position: fixed;
	z-index: 9;
	width: 80px;
	aspect-ratio: 1537 / 770;
	margin: -20px 0 0 -40px;
	background: #fff url("../images/mathill.png") center / contain no-repeat;
	border-radius: 6px;
	pointer-events: none;
	animation: rain 3s linear forwards;
}

@keyframes rain {
	to { transform: translate(var(--dx), var(--dy)) rotate(540deg); }
}

@media (max-width: 760px) {
	.dvd {
		width: 90px;
	}
}
