@import url("https://fonts.googleapis.com/css?family=Marko+One");

*
{
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

body
{
	font-family: Arial, sans-serif;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100dvh;
	margin: 0;
	background-image: url("../img/bg.jpg");
	background-size: cover;
	background-position: top center;
	background-repeat: no-repeat;
	background-color: #24b4e0;
	text-align: center;
	color: white;
	text-shadow: black 2px 2px 2px;
	overflow: hidden;
}

main
{
	/* margin: auto; */
	/* width: auto; */
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	/* max-width: 600px; */
}

section#content
{
	height: 100%;
	flex: 1;
	display: flex;
	flex-direction: column;
}

h1
{
	font-family: "Marko One", serif;
	text-align: center;
	font-size: 35px;
	color: #f55184;
	text-shadow: rgb(0, 0, 0) 2px 2px 2px;
}

h2
{
	margin: 10px 0;
}

p
{
	font-size: 12px;
}

.soup
{
	/* display: grid; */
	/* grid-template-columns: repeat(3, 100px); */
	/* grid-gap: 1px; */
	background: #ffffff;
	width: 320px;
	height: 320px;
	max-width: 320px;
	max-height: 320px;
	border: 10px solid #f6cadb;
	border-top-color: #f6cadb;
	border-left-color: #dfa3ba;
	border-right-color: #e65a90;
	border-bottom-color: #ca2464;
	box-shadow: black 0px 0px 15px;
}

.tile
{
	width: 100px;
	height: 100px;
	background-image: url("../img/sofi.jpg");
	background-size: 300px 300px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	color: white;
	text-shadow: black 2px 2px 2px;
}

.empty
{
	background-color: #ecf0f1;
	background-image: none;
	cursor: default;
}

.video
{
	height: 100%;
	aspect-ratio: 1;
	width: 100%;
	display: none;
	background-color: rgba(0, 0, 0, 0.5);
}

video
{
	width: 100% !important;
	height: 100% !important;
	margin: auto;
}

.game
{
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	flex: 1;
}

.game .text
{
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 20px;
	padding: 10px;
}

@media (max-width: 600px)
{
	body
	{
		background-image: url("../img/bg_mobile.jpg");
	}

	main
	{
		width: 100vw;
		height: 100vh;
	}

	.game .text
	{
		margin: 0 20px;
	}

	.video
	{
		background-color: #000000;
	}
}

















#grid
{
	display: grid;
	gap: 0;
	/* gap: 2px; */
	/* max-width: 90vw; */
	/* margin: 20px auto; */
	margin: auto;
	touch-action: none;
}

.cell
{
	aspect-ratio: 1 / 1;
	border: 1px solid #ccc;
	background: #ffffff;
	color: #ca2464;
	text-shadow: none;
	font-weight: bold;
	font-size: clamp(14px, 4vw, 24px);
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	font-size: 16px;
}

.selected
{
	background: #add8e6;
}

.found
{
	background: #90ee90;
}

#words
{
	font-size: 14px;
	background-color: rgba(0, 0, 0, 0.7);
	padding: 10px;
	border-radius: 5px;
}
