:root {
	/* --background: #F2F7F5;
	--background: #f3f3f3;
	--background: #e4e5e6; */
	--background: #dcdddd;
	--text-color: #212a37;
	--svg-fill-color: #212a37;

	--danger-text-color: #be5d5d !important;
	/*--background: #FFF6E9;*/
	/*--background: #EAF2FF;*/
	/*--background: #F4F0FF;*/
	/*--background: linear-gradient(135deg, #F2F7F5, #EAF2FF);;*/
}

@font-face {
	font-display: swap;
	font-family: "Roboto Slab";
	font-weight: 400;
	font-style: normal;
	src: url('assets/RobotoSlab-Regular.woff2') format('woff2');
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	border: none;
	user-select: none;
	-webkit-user-select: none;
	color: var(--text-color);
}

*:focus,
*:focus-within,
*:focus-visible {
	outline: none;
}

dialog {
	/* display: flex; */
	position: absolute;
	top: 50%;
	/* left: 0;
	right: 0;
	bottom: 0; */
	margin: 0 auto;
}

dialog::backdrop {
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
}

svg {
	fill: var(--svg-fill-color);
}

a {
	text-decoration: none;
}

input {
	user-select: text;
	-webkit-user-select: text;
}

html,
body {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	height: 100%;
	font-family: "Roboto-Slab", serif;
	/* font-family: 'Roboto-Slab', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; */
}

body {
	background-color: var(--background);
}

.hide {
	display: none !important;
}

html,
body,
.page {
	display: flex;
	height: 100%;
	margin: 0;
	padding: 0;
	width: 100%;
}


@media (display-mode: standalone) {
	.install-container {
		display: none !important;
	}

	.login-container {
		display: flex !important;
	}
}

@media (display-mode: browser) {
	body {
		/* background: url('/Public/img/line/ios-startup.png'); */
	}

	.install-container {
		display: flex !important;
	}

	.login-container {
		display: none !important;
	}
}

.danger {
	color: var(-danger-text-color);
}

.page {
	align-items: center;
	flex-direction: column;
	justify-content: center;
}

.button {
	position: absolute;
	box-shadow: 4px 4px #4b4b4b;
	-webkit-box-shadow: 4px 4px #666666;
	-moz-box-shadow: 4px 4px #666666;
	border: 1px solid;
	padding: 6px;
	font-weight: bold;
	width: 48px;
	height: 48px;
}

.button:active {
	box-shadow: 0 0 var(--background);
	transform: translate(6px, 6px)
}

/* home */
.home .game-title {
	font-size: 2rem;
	text-align: center;
	text-transform: uppercase;
}

.home .footer {
	position: absolute;
	bottom: 10%;
	margin: 0 auto;
	width: 100%;
	text-align: center;
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
}

.home .button {
	position: initial;
	height: inherit;
	width: 50%;
}

.home .play-button {
	font-size: 3rem;
}

.home .settings-button {
	width: 64px;
	height: 64px;
}

/* game page*/

.game .word {
	font-size: 16vw;
	text-transform: uppercase;
}

.game .play-countdown {
	font-size: 80vw;
}

.game .countdown {
	font-size: 4rem;
	position: absolute;
	bottom: 30%;
	color: gray;
}

.game .countdown .danger {
	font-size: 5rem;
}

.game .settings-button {
	top: 10px;
	right: 10px;
}

.game .back-button {
	top: 10px;
	left: 10px;
}

.game .next-button {
	margin: 0 auto;
	bottom: 10%;
	height: initial;
	width: initial;
	font-size: 3rem;
	white-space: nowrap;
	text-align: center;
	padding: 6px 20px;
}

.game .next-button::after {
	content: "";
	display: inline-block;
	width: 22px;
	height: 22px;
	border-right: 6px solid #211f1f;
	border-bottom: 6px solid #494343;
	transform: rotate(-45deg);
	margin-left: 6px;
	margin-bottom: 4px;
}

.game .volume-button {
	top: 10px;
	right: 72px;
}

.game .volume-off {
	display: none;
}