@font-face {
	font-family: "CaesarDressing";
	src: url(../font/CaesarDressing-Regular.ttf);
}

@font-face {
	font-family: "Jacquard24";
	src: url(../font/Jacquard24-Regular.ttf);
}



html, body {
	width: 100vw;
	height: 100vh;
	margin: 0;
	padding: 0;
	font-size: 24px;
	box-sizing: border-box;
	font-family: "Jacquard24", system-ui;
	font-weight: 400;
	font-style: normal;
	color: #eba;
	font-size: 4vmin;
	min-height: 100vh;
	background: url(../api/randombg.jpg);
	background-size: cover;
	background-position-x: center;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "CaesarDressing", system-ui;
	font-weight: 400;
	font-style: normal;
	text-wrap: nowrap;
}

h1 {
	font-size: 1.25rem;
	display: block;
	align-self: center;
	width: 100%;
	background: #23170b88;
	margin: -1rem 0 1rem 0;
	text-align: center;
}

h2 {
	font-size: 1.5rem;
	width: fit-content;
	text-align: center;
	margin: 0;
}

main {
	width: 100%;
	display: grid;
	grid-template: 
		"l m r"
		"t t t"
		"c c c";
	grid-template-columns: 1fr 50% 1fr;
	grid-template-rows: fit-content fit-content 1fr;
	justify-items: center;
	align-items: center;
}

.menuButton {
	grid-area: r;
	align-self: flex-start;
	justify-self: flex-end;
	margin: 1rem;
	width: 2rem;
	height: 2rem;
	background-color: #3d2710dc;
	border: 1px solid #ca8944dc;
	border-radius: 2px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.menuButton > svg {
	width: 1.5rem;
	height: 1.5rem;
}

.logo {
	grid-area: m;
	display: flex;
	justify-content: center;
}

.logo > img {
	max-height: 25vh;
	max-width: 50vw;
}

#title {
	grid-area: t;
}

.content {
	grid-area: c;
	display: flex;
	width: 100%;
	flex-wrap: wrap;
	justify-content: center;
	column-gap: 2vw;
	row-gap: 1rem;
}

section ul {
	list-style-type: "– ";
	list-style-position: outside;
	padding: 0 1rem;
}

section ul > li {
	margin-bottom: 0.5rem;
	line-height: 0.75em;
}

.duration {
	font-size: 0.75em;
}

.onlinePlayers, .players, .history {
	background-color: #23170bd4;
	padding: 0.5rem;
	border-radius: 0.25rem;
}

.history {
	width: 51%;
}

dialog#menu {
	font-family: "CaesarDressing", system-ui;
	color: 	#eba;
	position: absolute;
	top: 1.4rem;
	left: auto;
	right: 1.4rem;
	width: fit-content;
	margin: 0;
	padding: 0;
	height: fit-content;
	border-width: 0;
	background-color: transparent;
	min-height: 3lh;
}

dialog > menu {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

dialog > menu > li {
	user-select: none;
	display: grid;
	grid-template-columns: auto auto;
	gap: 1rem;
	justify-content: space-between;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	border: 1px solid #dd8c35dc;
	background-color: #573817dc;
	margin-top: 3px;
}

dialog#info {
	font-family: "CaesarDressing", system-ui;
	font-weight: 200;
	font-style: normal;

	background-color: #573817dc;
	border-radius: 0.25rem;
	border: 1px solid #dd8c35dc;
	color: #eba;

	position: fixed;
	top: 2rem;
	margin: 0 auto;
	text-align: center;

	&::backdrop {
		background-color: #000b;
	}
}