body {
	background-color: #1a1a1a;
	color: #ffffff;
	text-align: center;
	display: flex;
	flex-direction: column;
	height: 100vh;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1.6;
}

@media (prefers-color-scheme: light) {
	body {
		background-color: #f5f5f5;
		color: #333333;
	}
}

h1 {
	font-size: 2.5rem;
	margin: 2rem 0;
	font-weight: 700;
	background: linear-gradient(45deg, #4CAF50, #45a049);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

fieldset {
	width: 800px;
	max-width: 90%;
	margin: 0 auto;
	padding: 1rem;
}

fieldset > div {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 0 1rem;
}

fieldset label {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: flex-start;
	flex: 1;
	font-weight: 500;
}

fieldset input[type="number"] {
	width: 4rem;
	padding: 0.5rem;
	margin-top: 1.5rem;
	border: 1px solid #444;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
	color: inherit;
	font-size: 1rem;
}

select {
	width: 12rem;
	padding: 0.5rem;
	border: 1px solid #444;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
	color: inherit;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

select:hover {
	border-color: #666;
}

select:focus, input:focus {
	outline: none;
	border-color: #4CAF50;
	box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

legend {
	margin: auto;
}

button {
	justify-self: end;
}

img {
	width: 100%;
	height: 40vh;
	margin: auto;
	object-fit: contain;
	padding: 1rem 0;
	border-radius: 4px;
	transition: transform 0.3s ease;
}

img:hover {
	transform: scale(1.02);
}

#image-container {
	display: grid;
	grid-template-columns: repeat(var(--columns), 1fr);
	object-fit: contain;
	height: 100%;
	gap: 1rem;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	margin: 1rem auto;
	max-width: 1200px;
	width: 90%;
}

@media (max-width: 600px) {
	#image-container {
		grid-template-columns: 1fr;
	}
	
	h1 {
		font-size: 2rem;
	}
	
	fieldset > div {
		flex-direction: column;
		align-items: stretch;
	}
	
	select {
		width: 100%;
	}
}

.hidden {
	display: none;
}

.collapsible {
	border: 1px solid #333;
	margin-bottom: 1rem;
	transition: all 0.3s ease;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border-radius: 8px;
}

.collapsible.collapsed {
	border: none;
	background: none;
	padding: 0;
}

.collapsible .toggle {
	cursor: pointer;
	padding: 0.8rem 1.5rem;
	user-select: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.collapsible.collapsed .toggle {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	margin: 0;
}

.collapsible .toggle:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: translateY(-1px);
}

.collapsible .arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.collapsible.collapsed .arrow {
	transform: rotate(-90deg);
}

.collapsible .content {
	display: block;
	padding: 1.5rem;
}

.collapsible.collapsed .content {
	display: none;
}

@media (prefers-color-scheme: light) {
	.collapsible .toggle {
		background: #e0e0e0;
	}
	
	.collapsible .toggle:hover {
		background: #d0d0d0;
	}
}

.generator-button {
	display: block;
	margin: 1.5rem auto;
	padding: 0.8rem 2.5rem;
	font-size: 1.2rem;
	cursor: pointer;
	background: linear-gradient(45deg, #4CAF50, #45a049);
	color: white;
	border: none;
	border-radius: 6px;
	transition: all 0.3s ease;
	font-weight: 500;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.generator-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.generator-button:active {
	transform: translateY(0);
}

.faq-section {
	max-width: 800px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.faq-section h2 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	color: inherit;
	text-align: center;
}

.faq-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.faq-item {
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
}

.faq-question {
	width: 100%;
	padding: 1rem;
	text-align: left;
	background: none;
	border: none;
	color: inherit;
	font-size: 1.1rem;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background-color 0.3s ease;
}

.faq-question:hover {
	background: rgba(255, 255, 255, 0.1);
}

.faq-question::after {
	content: '▼';
	font-size: 0.8rem;
	transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
	transform: rotate(180deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	background: rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-answer {
	max-height: 500px;
}

.faq-answer p, .faq-answer ul {
	padding: 1rem;
	margin: 0;
	line-height: 1.6;
}

.faq-answer ul {
	list-style-type: none;
	padding-left: 2rem;
}

.faq-answer li {
	margin: 0.5rem 0;
	position: relative;
}

.faq-answer li::before {
	content: '•';
	position: absolute;
	left: -1rem;
	color: #4CAF50;
}

@media (prefers-color-scheme: light) {
	.faq-item {
		border-color: rgba(0, 0, 0, 0.1);
	}
	
	.faq-question:hover {
		background: rgba(0, 0, 0, 0.05);
	}
	
	.faq-answer {
		background: rgba(0, 0, 0, 0.02);
	}
}

.site-footer {
	margin-top: auto;
	padding: 2rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.footer-links {
	display: flex;
	gap: 2rem;
}

.footer-link {
	color: inherit;
	text-decoration: none;
	font-size: 0.9rem;
	transition: color 0.3s ease;
}

.footer-link:hover {
	color: #4CAF50;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
}

.footer-year {
	color: rgba(255, 255, 255, 0.5);
}

@media (prefers-color-scheme: light) {
	.site-footer {
		background: rgba(0, 0, 0, 0.02);
		border-top-color: rgba(0, 0, 0, 0.1);
	}

	.footer-brand {
		color: rgba(0, 0, 0, 0.7);
	}

	.footer-year {
		color: rgba(0, 0, 0, 0.5);
	}
}

@media (max-width: 600px) {
	.footer-links {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
}

.legal-section {
	max-width: 800px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.legal-content {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border-radius: 8px;
	padding: 2rem;
	text-align: left;
}

.legal-content h2 {
	font-size: 1.5rem;
	margin: 2rem 0 1rem;
	color: inherit;
}

.legal-content h2:first-child {
	margin-top: 0;
}

.legal-content p {
	margin: 1rem 0;
	line-height: 1.6;
}

.legal-content ul {
	list-style-type: none;
	padding-left: 1.5rem;
	margin: 1rem 0;
}

.legal-content li {
	margin: 0.5rem 0;
	position: relative;
}

.legal-content li::before {
	content: '•';
	position: absolute;
	left: -1rem;
	color: #4CAF50;
}

@media (prefers-color-scheme: light) {
	.legal-content {
		background: rgba(0, 0, 0, 0.02);
	}
}

.back-button {
	display: inline-block;
	padding: 0.5rem 1rem;
	margin-bottom: 1.5rem;
	background: rgba(76, 175, 80, 0.1);
	color: #4CAF50;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.back-button:hover {
	background: rgba(76, 175, 80, 0.2);
	transform: translateX(-2px);
}

@media (prefers-color-scheme: light) {
	.back-button {
		background: rgba(76, 175, 80, 0.05);
	}
	
	.back-button:hover {
		background: rgba(76, 175, 80, 0.1);
	}
}

.other-tools {
	text-align: center;
	margin: 2rem 0;
	padding: 1rem;
}

.tool-link {
	display: inline-block;
	padding: 0.8rem 1.5rem;
	background-color: #4CAF50;
	color: white;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.3s;
}

.tool-link:hover {
	background-color: #45a049;
}

.back-link {
	display: inline-block;
	margin-bottom: 1rem;
	color: #666;
	text-decoration: none;
	font-size: 1.1rem;
}

.back-link:hover {
	color: #333;
	text-decoration: underline;
}

.page-description {
	max-width: 800px;
	margin: 1rem auto 2rem;
	text-align: center;
	line-height: 1.6;
	color: #666;
	padding: 0 1rem;
}

.tools-description p {
	line-height: 1.6;
	color: #666;
	margin-bottom: 1rem;
}

@media (prefers-color-scheme: dark) {
	.page-description,
	.tools-description p {
		color: #ccc;
	}
}