@font-face {
	font-family: "Grandstander";
	src: url("/Grandstander.ttf");
}

* {
	box-sizing: border-box;
}

.view {
	display: none;
}
.view.active {
	display: block;
}

body {
	margin: 0;
	background: #192a56;
	color: #fff;
	font-family: "Grandstander";
}
.view[data-view="home"] {
	padding-bottom: 70px;
	overflow-y: auto;
}
.header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 20px;
	h2 {
		font-weight: 300;
		font-size: 30px;
		margin: 0;
	}
}
.total-container {
	width: 100vmin;
	padding: 20px 50px;
}
.circle {
	position: relative;
	width: 100%;
	aspect-ratio: 1/1;
	.circ {
		--b: 30px;
		position: absolute;
		width: 100%;
		height: 100%;
		border-radius: 50%;
		border: solid var(--b) #273c75;
	}
	.circle-shadow {
		top: 10px;
		border-color: #0e1a33;
	}
	.circle-outer {
		display: flex;
		justify-content: center;
		align-items: center;
		.circle-center {
			text-align: center;
			padding-top: 18px;
			.total-am {
				margin: 0;
				font-weight: 900;
				font-size: 100px;
				line-height: 75px;
				text-shadow: 0 8px 0 #0e1a33;
			}
			.goal-txt {
				margin: 0;
				font-weight: 300;
				font-size: 20px;
			}
		}
	}
	.circle-progress {
		--a: 180deg;
		border: none;
		padding: var(--b);
		background: #00a8ff;
		--_g: /var(--b) var(--b) no-repeat radial-gradient(50% 50%, #000 97%, #0000);
		mask: top var(--_g), calc(50% + 50% * sin(var(--a))) calc(50% - 50% * cos(var(--a))) var(--_g),
			linear-gradient(#0000 0 0) content-box intersect, conic-gradient(#000 var(--a), #0000 0);
	}
}

div.leaderboard-container {
	padding: 30px;
}

table.leaderboard-table {
	border-collapse: collapse;
	background: #273c75;
	border-radius: 10px;
	width: 100%;
	td {
		padding: 10px;
		vertical-align: middle;
	}
	td:first-child {
		font-weight: 600;
		font-size: 28px;
	}
	td:nth-child(2) {
		font-size: 18px;
	}
	td:last-child {
		text-align: right;
		padding-right: 16px;
	}
	tr:not(:last-child) {
		border-bottom: solid 1px #40739e66;
	}
}

.log-button {
	position: fixed;
	right: 30px;
	bottom: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #00a8ff;
	box-shadow: 0px 8px 0px #0e1a3399;
	border-radius: 50%;
	width: 70px;
	aspect-ratio: 1/1;
	padding: 10px;
	color: #fff;
	&:active {
		transform: translateY(4px);
		box-shadow: 0px 4px 0px #0e1a3399;
		background: #1182ba;
	}
}

/* Log view vertical slider */
.view[data-view="log"] {
	min-height: 100vh;
}
.view[data-view="log"] form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	margin-top: 20px;
}
.view[data-view="log"] .log-amount {
	font-size: 48px;
	font-weight: 900;
	text-shadow: 0 6px 0 #0e1a33;
}
.view[data-view="log"] .buttons {
	margin-top: auto;
	width: 100%;
	display: flex;
	gap: 12px;
	padding-bottom: 10px;
}
.btn.button-bottom {
	flex: 1;
	background: #00a8ff;
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 14px 16px;
	font-family: inherit;
	font-size: 18px;
	box-shadow: 0 6px 0 #0e1a3399;
}
.btn.button-bottom.grey {
	background: #273c75;
}
.btn.button-bottom:active {
	transform: translateY(3px);
	box-shadow: 0 3px 0 #0e1a3399;
}

