body {
	font-family: "Roboto", sans-serif;
	font-weight: 600;
	margin: 20px;
	background-color: #f4f4f4;
}

h1 {
	text-align: center;
	color: #333;
}

input[type="file"] {
	display: block;
	margin: 20px auto;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

button {
	display: block;
	margin: 20px auto;
	padding: 10px 20px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

button:hover {
	background-color: #0056b3;
}

.main {
	display: flex;
	flex-direction: column;
	align-items: center;
}

#flashcardsContainer {
	display: flex;
	flex-direction: column;
}

.page {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: repeat(4, 1fr);
	gap: 10px;
	margin-bottom: 20px;
	justify-content: space-around;
}

.flashcard {
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.3s;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	width: 100%;
	height: 100%;
}

.card-face {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	border-radius: 8px;
}

.card-front {
	background-color: #fff;
	color: #000;
}

.card-back {
	background-color: #e9ecef;
	color: #000;
	transform: rotateY(180deg);
}

.card-text {
	font-size: 16px;
	text-align: center;
	line-height: 1.4;
}

body {
	margin: 0;
}
.page {
	page-break-after: always;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: repeat(4, 1fr);
	height: 297mm;
	width: 210mm;
	gap: 5mm;
	padding: 5mm;
	box-sizing: border-box;
	margin: 0 auto;
}
.flashcard {
	width: 100%;
	height: 100%;
	margin: 0;
	box-shadow: none;
	border: 1px solid #000;
}
.card-text {
	font-size: 28px;
}
.card-back {
	display: none;
}

@media print {
	h1,
	input,
	button {
		display: none;
	}
	.hide-on-print {
		display: none !important;
	}
}
