@import url('https://fonts.googleapis.com/css2?family=Atma:wght@400;700&display=swap');
@font-face {
	font-family: "Dice";
	src: url('/os/chumbles/Dice.ttf');
}

* {
	box-sizing:border-box;
}
body {
	margin: 0;
	padding: 0;
	background:
		repeating-radial-gradient(circle at 50% 20%, #fff1, #fff0 20%) center/cover fixed,
		radial-gradient(at top,orange,red) center/cover fixed;
	text-align: center;
	color: white;
	font: 24px Atma, sans-serif;
	text-shadow: 1px 1px 1px #0004;
}
h1 {
	margin: 0 0 0.5em 0;
}
h2 {
	font-weight: bold;
	clear: both;
}
p {
	margin: 0.5em 0;
}
a {
	color: inherit;
}
#chumbles-logo {
	width: 100%;
	max-width: 400px;
	animation: logo-pulse 1s ease-in-out 0s infinite alternate;
}
@keyframes logo-pulse {
	from { transform: scale(1) rotate(0); }
	to   { transform: scale(0.9) rotate(-5deg); }
}
#dicebox {
	position: fixed;
	/* bottom: 0; */
	/* Actually, this is unfortunately the best way to deal with iOS address bar: */
	top: 100dvh;
	transform: translatey(-100%);
	left: 0;
	background: #111;
	border-radius: 0 1em 0 0;
	padding: 1em;
}
.die {
	display: inline-block;
	font-family: Dice, sans-serif;
	color: white;
	font-size: 44px;
	transform: rotate(-5deg);
	transition: all 0.5s;
	user-select: none;
}
.bumped .die {
	transform: scale(2) rotate(359deg);
}
#scorebox {
	position: fixed;
	/* bottom: 0; */
	/* Actually, this is unfortunately the best way to deal with iOS address bar: */
	top: 100dvh;
	transform: translatey(-100%);
	right: 0;
	border-radius: 1em 0 0 0;
	background: white;
	color: orangered;
	text-shadow: none;
	text-align: right;
	font-weight: bold;
	padding: 0.5em;
	transition: all 0.2s;
	transform-origin: bottom right;
}
#moneynumber   { font-size: 0.8em; color: red; }
#leafnumber    { font-size: 0.8em; color: green; }
#respectnumber { font-size: 0.8em; color: blueviolet; }
#medalnumber   { font-size: 0.8em; color: goldenrod; }
#lawsuitnumber { font-size: 0.8em; color: red; }
#itunesnumber  { font-size: 0.8em; color: dodgerblue; display:none; }

section {
	display: none;
}
ol, ul {
	text-align: left;
	max-width: 800px;
	margin: 0 auto;
}
table {
  display: inline-block;
  max-width: 500px;
  background: #fff2;
  margin: 0.5em;
}
table td {
	padding: 0.5em;
}
button {
	-webkit-appearance: none;
	appearance: none;
	border: none;
	font: inherit;
	font-weight: 700;
	background: white;
	color: orangered;
	padding: 0.5em;
	margin: 2px;
	border-radius: 1em;
	cursor: pointer;
	box-shadow: 0 3px 4px #0004;
	transition: 0.1s ease;
}
button:hover {
	transform:scale(1.05);
}
button:active {
	transform: scale(0.95);
}
button[disabled],
button[disabled]:hover,
button[disabled]:active {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}
button img {
	height: 1.5em;
	vertical-align: middle;
}
button.chumbles-back-button {
	float: left;
	margin: 10px;
}
.pawn {
	height: 120px;
	animation: pawn 0.5s ease-in 0s 1 forwards;
}
@keyframes pawn {
	from { transform:translatey(0); }
	to   { transform:translatey(60px); }
}
.board {
	width: 100%;
	height: 100px;
}
#spin h1,
#spinharder h1 {
	margin-top: 200px;
}
#spinnercontainer {
	position: absolute;
	bottom: calc(100vh - 200px);
	left: 50%;
	transform: translatex(-50%);
	width: 100%;
	max-width: 500px;
}
#spinnercontainer img {
	width: 100%;
}
#spinner {
	animation: spinner 4s 0s 1 forwards;
}
#spinner-harder {
	transform-origin: 45% 45%;
	animation: spinner 0.6s linear 0s infinite;
}
@keyframes spinner {
	from { transform:rotate(720deg); }
	to   { transform:rotate(0); }
}