body {
	font-family: 'Outfit', sans-serif;
	background: linear-gradient(135deg, #0f0f12, #1a1a1d);
	color: white;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

main {
	display: flex;
	gap: 3rem;
	padding: 2rem;
	width: 100%;
	max-width: 1400px;
	box-sizing: border-box;
}

.sidebar,
.control-panel {
	flex: 1;
	background: #1a1a1d;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.sidebar h2,
.control-panel h2 {
	margin-top: 0;
	font-size: 1.4rem;
}

.presets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	justify-content: flex-start;
}

.preset {
	background: rgba(43, 43, 47, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	text-align: center;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	width: 66px;
	min-height: 85px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: visible;
	backdrop-filter: blur(6px);
}

.preset:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
	border-color: #9146ff;
}

.preset-preview {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	border: 1px solid #555;
}

.preset-label {
	margin-top: 0.4rem;
	font-size: 0.7rem;
	text-align: center;
	word-wrap: break-word;
	word-break: break-word;
	white-space: normal;
	overflow-wrap: break-word;
	width: 100%;
	color: #ddd;
	font-weight: 500;
}

.preset-actions {
	display: none;
	position: absolute;
	top: 4px;
	right: 4px;
	gap: 4px;
	flex-wrap: wrap;
	max-width: calc(100% - 8px);
	z-index: 1;
}

.preset:hover .preset-actions {
	display: flex;
}

.preset-actions button {
	background: #333;
	border: none;
	color: white;
	font-size: 0.65rem;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	cursor: pointer;
	padding: 0;
}

.preset-actions button:hover {
	background: #555;
}

.slider-group {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.slider-row {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.slider-row label {
	width: 20px;
}

.slider-row input[type="range"] {
	flex: 1;
	height: 16px;
}


input[type="range"] {
	appearance: none;
	width: 100%;
	height: 14px;
	border-radius: 8px;
	background: var(--track-bg);
	overflow: hidden;
}

#rainbowSpeed {
	appearance: none;
	width: 100%;
	height: 14px;
	border-radius: 8px;
	background: #007aff;
	overflow: visible;
	position: relative;
	z-index: 0;
}

#rainbowSpeed::-webkit-slider-thumb {
	appearance: none;
	height: 20px;
	width: 20px;
	border-radius: 50%;
	background: #fff;
	border: none;
	box-shadow: none;
	margin-top: -3px;
	position: relative;
	z-index: 1;
}

#rainbowSpeed::-moz-range-thumb {
	height: 20px;
	width: 20px;
	border-radius: 50%;
	background: #fff;
	border: none;
	box-shadow: none;
	position: relative;
	z-index: 1;
}

input[type="range"]::-webkit-slider-runnable-track {
	background: var(--track-bg);
	height: 14px;
	border-radius: 8px;
}

input[type="range"]::-moz-range-track {
	background: var(--track-bg);
	height: 14px;
	border-radius: 8px;
}

input[type="range"]::-webkit-slider-thumb {
	appearance: none;
	height: 20px;
	width: 20px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #555;
	margin-top: -3px;
	position: relative;
	z-index: 1;
}

input[type="range"]::-moz-range-thumb {
	height: 20px;
	width: 20px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #555;
	position: relative;
	z-index: 1;
}

.slider-row span {
	text-align: right;
	font-size: 0.9rem;
	width: 20px;
}

#canvas-container {
	margin-top: 2rem;
	display: flex;
	justify-content: center;
}

canvas {
	width: 300px;
	height: 300px;
}

.controls {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
	flex-wrap: wrap;
}

.controls button {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	font-size: 1rem;
	background-color: #2b2b2f;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.controls button:hover {
	background-color: #3d3d42;
}

.controls i {
	pointer-events: none;
}

button {
	padding: 0.6rem 1.2rem;
	font-size: 1rem;
	background-color: #9146ff;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

button:hover {
	background-color: #7d3fe2;
}

.hex-input-container {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

.hex-input-container input {
	padding: 0.5rem;
	background: #2a2a2a;
	border: 1px solid #555;
	border-radius: 6px;
	color: white;
	font-family: monospace;
	width: 100px;
}

.section-subtitle {
	font-size: 0.8rem;
	color: #aaa;
	margin-top: -1rem;
	margin-bottom: 1rem;
}


.project-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	max-width: 900px;
	margin: 0 auto;
	padding: 1rem;
}

.project-card {
	width: 100%;
	max-width: 600px;
	background: #272727;
	border: 1px solid #444;
	border-radius: 16px;
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, background 0.3s ease;
	font-size: 0.85rem;
}

.project-card:hover {
	background: #2e2e33;
	transform: translateY(-2px);
}

.project-card img {
	width: 64px;
	height: 64px;
	border-radius: 6px;
	object-fit: cover;
}

.project-info {
	flex-grow: 1;
	min-width: 0;
}

.project-title {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.project-type,
.project-downloads {
	font-size: 0.75rem;
	color: #bbb;
}

.project-actions {
	display: flex;
	gap: 0.5rem;
}

.action-btn {
	background: #2a2a2e;
	border: 1px solid #444;
	color: white;
	padding: 0.4rem 0.6rem;
	border-radius: 6px;
	font-size: 1.5rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.action-btn:hover {
	background: #444;
}

.modrinth-logo {
	height: 20px;
	width: auto;
	vertical-align: middle;
}

.modrinth-heading {
	text-align: center;
	font-size: 1.25rem;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.version-select-container {
	margin-top: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.version-select-container select {
	padding: 0.5rem;
	background: #2a2a2a;
	border: 1px solid #555;
	border-radius: 6px;
	color: white;
	font-family: monospace;
	width: 150px;
}

@keyframes rainbow-cycle {
	0% {
		background-color: #ff3b30;
		border-color: #ff3b30;
	}

	25% {
		background-color: #ffcc00;
		border-color: #ffcc00;
	}

	50% {
		background-color: #34c759;
		border-color: #34c759;
	}

	75% {
		background-color: #007aff;
		border-color: #007aff;
	}

	100% {
		background-color: #ff3b30;
		border-color: #ff3b30;
	}
}

.rainbow-preview {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	border: 1px solid #555;
	animation: rainbow-cycle 5s infinite linear;
	transition: box-shadow 0.3s ease;
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.controls-discord-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1rem;
	font-size: 1rem;
	background-color: #5865F2;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s ease;
	text-decoration: none;
}

.controls-discord-btn:hover {
	background-color: #4752c4;
}

.layout-container {
    display: flex;
    gap: 3rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.modrinth-section {
  margin: 4rem auto 0;
  width: 100%;
  max-width: 1400px;
}

#rainbow-speed-row {
  display: none;
}

#rainbow-speed-row.show {
  display: flex !important;
}

#rainbow-options-label {
  display: none;
}

#rainbow-options-label.show {
  display: block !important;
}