@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Inscriptional+Parthian&display=swap");

* {
	margin: 0;
	padding: 0;
}

body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.header {
	font-family: "Noto Sans Inscriptional Parthian", sans-serif;
	font-size: 2rem;
	color: white;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background: rgb(32, 32, 54);
	width: 100%;
}

#header-logo {
	user-select: none;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
}

#logo {
	width: 3rem;
}

#grid-settings {
	width: 3rem;
	margin: 0 0 0 1rem;
	padding: 0.3rem;
	transition: transform 0.4s ease-in-out;
}

#grid-settings:hover {
	cursor: pointer;
	transform: rotate(60deg);
	border-radius: 100%;
	background-color: rgb(56, 56, 91);
	transition: all 0.4s ease-in-out;
}

#grid {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: start;
	width: 900px;
	height: 900px;
	border: 1px solid rgb(56, 56, 91);
	border-top: 0;
}

.cell {
	min-width: 1px;
	min-height: 1px;
	/* border: 1px solid red; */
}

.cell:hover {
	backdrop-filter: brightness(92%);
}

.marked {
	background-color: black;
	user-select: none;
}

.modal {
	/* make text inside unselectable */
	user-select: none;
	display: none;
	position: fixed;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 998;
	padding: 2rem;
	border-radius: 1rem;
	gap: 1rem;
	background: rgb(33, 33, 33);
	color: white;
}

.modal output {
	display: flex;
	font-size: small;
	opacity: 0.8;
	text-decoration: underline;
}

#confirm {
	border: none;
	border-radius: 0.5rem;
	padding: 0.5rem;
	width: 100%;
	background: rgb(249, 249, 249);
	color: rgb(33, 33, 33);
	font-size: 1rem;
	font-weight: bold;
	transition: all 0.1s ease-in-out;
}

#confirm:hover {
	cursor: pointer;
	background: rgb(33, 33, 33);
	color: rgb(249, 249, 249);
	border: 1px solid rgb(249, 249, 249);
	transition: all 0.1s ease-in-out;
}

.close-icon {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 100%;
	margin: 1rem;
	padding: 0.3rem;
	width: 1rem;
	height: 1rem;
	font-size: 1.1rem;
	background-color: rgb(90, 90, 90);
	color: rgb(170, 170, 170);
}

.close-icon:hover {
	cursor: pointer;
	background-color: rgb(170, 170, 170);
	color: rgb(90, 90, 90);
	transition: all 0.1s ease-in-out;
}

@media (max-width: 900px) {
	#grid {
		width: 100%;
		height: 100%;
	}
}
