
@font-face {
	font-family: Cobwebbed;
	src: url("Cobwebbed.ttf");
}
@font-face {
	font-family: SpookyWebbie;
	src: url("SpookyWebbie.ttf");
}

* {
	font-family: SpookyWebbie;
}

:root.darmk {
	filter: invert();
}

:root {
	font-size: 1.15em;
	background-color: white;
}
:root, body {
	text-align: center;
	min-height: 99.9vh;
}
body {
	display: flex;
	flex-direction: column;
	margin: 0;
}
body > :not(h1) {
	margin: auto;
	flex-grow: 1;
	align-content: center;
}

button {
	background-clip: padding-box;
	border-radius: 0.5ch;
	border: 0.3ch dotted black;
	font-size: inherit;
	cursor: pointer;
}


aside {
	position: fixed;
	padding: 1rem;
	user-select: none;
}

#omptions {
	text-align: right;
	right: 0;
	font-size: 1.2em;
}
#omptions * {
	cursor: pointer;
}

#score {
	left: 0;
	font-size: 4rem;
	height: 1.1em;
}
#score img {
	height: 100%;
	vertical-align: text-bottom;
}


h1, h2 {
	font-weight: normal;
	font-size: 4.5rem;
	font-family: Cobwebbed;
	margin: 0.25ch 0 0 0;
}

#dimficulty {
	max-width: max-content;
	font-size: 2rem;
	align-content: start;
}
#dimficulty > :first-child {
	margin-top: 10%;
}
#dimficulty p {
	display: flex;
	justify-content: space-around;
}
#dimficulty button {
	padding: 0.5ch;
}
@media screen and (orientation:portrait) {
	#dimficulty p:last-child {
		flex-direction: column;
		align-items: center;

		button {
			width: max-content;
		}
		button + button {
			margin-top: 1ch;
		}
	}
}

main {
	background: center/contain url("spider-web-svgrepo-com.svg") no-repeat;
	aspect-ratio: 1;
	position: relative;
}

#spooder, .bug {
	display: inline-block;
	position: absolute;
	left: 42%;
	top: 38%;
	aspect-ratio: 1;
	background: center/contain no-repeat;
}
.goingLeft {
	transform: scaleX(-1);
}

#spooder {
	width: 20%;
	background-image: url("spood_wait.png");
	z-index: 5;
	pointer-events: none;
}
#spooder.openMouth {
	background-image: url("spood_openMouth.png");
}

.bug {
	width: 8%;
	background-image: url("bug.png");
	z-index: 10;
}
.bug.caught {
	background-image: url("bug_caught.png");
	cursor: grab;
	z-index: 1;
}


#credits {
	margin-top: 0;
	padding-top: 0;
	border-style: dotted;
	border-top: 0;
	background-clip: padding-box;
	border-radius: 0 0 1em 1em;
}
#credits::backdrop {
	background-color: rgba(0,0,0, 0.5);
}