body {
	font-family: sans-serif;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	background-color: #f0f0f0;
}

.controls {
	margin-bottom: 20px;
	padding: 20px;
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-grid {
	display: grid;
	gap: 10px;
	margin-top: 20px;
	justify-content: center;
}

.card {
	width: 100px;
	height: 100px;
	perspective: 1000px;
	cursor: pointer;
}

.card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	text-align: center;
	transition: transform 0.6s;
	transform-style: preserve-3d;
}

.card.flipped .card-inner {
	transform: rotateY(180deg);
}

.card-front,
.card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-front {
	background-color: #2196f3;
	color: white;
}

.card-back {
	background-color: white;
	transform: rotateY(180deg);
}

.matched {
	background-color: #4caf50;
}

button {
	padding: 8px 16px;
	margin: 5px;
	border: none;
	border-radius: 4px;
	background-color: #2196f3;
	color: white;
	cursor: pointer;

	&:hover {
		background-color: #1976d2;
	}
}

input,
select {
	padding: 8px;
	margin: 5px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.score {
	font-size: 18px;
	margin-top: 20px;
}

img {
	max-width: 80px;
	max-height: 80px;
}

.save-controls {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #ddd;
}

.saved-sets {
	margin-top: 10px;
	max-height: 150px;
	overflow-y: auto;
}

.saved-set-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px;
	margin: 4px 0;
	background-color: #f5f5f5;
	border-radius: 4px;

	button {
		padding: 4px 8px;
		font-size: 12px;
	}
}

/* Modal styles */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
}

.modal-content {
	position: relative;
	background-color: white;
	margin: 15% auto;
	padding: 20px;
	width: 80%;
	max-width: 600px;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-modal {
	position: absolute;
	right: 20px;
	top: 15px;
	font-size: 24px;
	cursor: pointer;
	color: #666;

	&:hover {
		color: #333;
	}
}

.content-list {
	margin: 10px 0;
	padding: 10px;
	background-color: #f5f5f5;
	border-radius: 4px;
	min-height: 30px;
}

.content-item {
	display: inline-block;
	margin: 2px 5px;
	padding: 4px 8px;
	background-color: #e0e0e0;
	border-radius: 4px;

	button {
		margin-left: 5px;
		padding: 0 4px;
		font-size: 12px;
	}
}
