@font-face {
	font-family: "Torus";
	src: url("https://osu-profile-stats.vercel.app/assets/fonts/Torus-Regular.otf");
}

* {
	font-family: "Torus";
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: #35272e;
	color: #ffffff;
	text-align: center;
	padding: 0 1rem;
}

main {
	padding: 2rem;
	display: flex;
	justify-content: center;
}

.generator {
	max-width: 500px;
	background-color: #2b2127;
	padding: 1.5rem;
	border-radius: 10px;
	border: 1px solid #ffffff22;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	width: 100%;
}

.generator h1 {
	color: #ff66aa;
	font-size: 1.8rem;
	margin-bottom: 1.5rem;
}

a {
	color: #ff66aa;
	text-decoration: none;
}

a:hover {
	color: #fff0f6;
}

.form-group {
	margin: 1rem 0;
	text-align: left;
}

label {
	display: inline-flex;
	align-items: center;
	margin-left: 0.5rem;
	margin-bottom: 0.5rem;
	color: #e0e0e0;
	font-size: 0.9rem;
}

label i {
	margin-right: 0.6rem;
	width: 1.1em;
	text-align: center;
	color: #ff66aa;
}

input,
select,
textarea {
	width: 100%;
	padding: 0.6rem 0.8rem;
	border: 1px solid #555;
	border-radius: 5px;
	background-color: #3e3138;
	color: #fff;
	font-size: 0.95rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
	border-color: #ff66aa;
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 102, 170, 0.3);
}

button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #ff66aa;
	color: #fff;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 5px;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
	margin-top: 1rem;
}

button:hover {
	background-color: #fff0f6;
	color: #35272e;
	transform: translateY(-2px);
}

.preview {
	margin-top: 2.5rem;
}

#preview-image {
	max-width: 100%;
	margin: 1rem 0;
	border: 1px solid #555;
	border-radius: 5px;
	background: #333;
}

.textarea-container {
	position: relative;
	display: flex;
	align-items: center;
}

textarea {
	height: 80px;
	resize: none;
}

.copy-btn {
	margin-top: 0;
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	height: auto;
	padding: 0.3rem 0.8rem;
	flex-shrink: 0;
	font-size: 0.7rem;
	background-color: #4f424a;
	color: #fff;
}

.copy-btn:hover {
	background-color: #ff66aa;
	color: #fff;
	transform: translateY(-50%) translateY(-1px);
}

.code-grid {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 1fr;
	margin-top: 1rem;
}

.code-block {
	position: relative;
	text-align: left;
}

.code-block textarea {
	height: 2.5rem;
	padding-right: 60px;
	min-width: 0;
	margin: 0;
	font-size: 0.75rem;
	overflow-x: auto;
	white-space: nowrap;
	word-wrap: normal;
}

.code-block label {
	text-align: left;
	margin-bottom: 0.3rem;
	font-size: 0.8rem;
	display: inline-flex;
	align-items: center;
}

.code-block label i {
	margin-right: 0.4em;
	width: 1.1em;
	text-align: center;
}

textarea::-webkit-scrollbar {
	height: 6px;
	width: 6px;
}

textarea::-webkit-scrollbar-track {
	background: #333;
}

textarea::-webkit-scrollbar-thumb {
	background: #ff66aa;
	border-radius: 3px;
}

.checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.3rem;
}

.checkbox-group label {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0;
	padding: 0.5rem;
	border-radius: 5px;
	background-color: rgba(255, 102, 170, 0.05);
	transition: background-color 0.2s ease;
	cursor: pointer;
}

.checkbox-group label:hover {
	background-color: rgba(255, 102, 170, 0.1);
}

.checkbox-group input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid #ff66aa;
	border-radius: 4px;
	background-color: #333;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked {
	background-color: #ff66aa;
	border-color: #ff66aa;
}

.checkbox-group input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 10px;
	height: 6px;
	border: 2px solid #fff;
	border-top: none;
	border-right: none;
	transform: translate(-50%, -60%) rotate(-45deg);
}

.checkbox-group input[type="checkbox"]:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 102, 170, 0.3);
}

.generator p {
	font-size: 0.85rem;
	line-height: 1.4;
	margin-bottom: 1rem;
}

.image-container {
	position: relative;
	min-height: 7.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
}

.spinner {
	margin: 0 auto;
	width: 4.3rem;
	text-align: center;
}

.spinner > div {
	width: 1.2rem;
	height: 1.2rem;
	background-color: #ff66aa;
	border-radius: 100%;
	display: inline-block;
	-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
	animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
	-webkit-animation-delay: -0.32s;
	animation-delay: -0.32s;
}

.spinner.bounce2 {
	-webkit-animation-delay: -0.16s;
	animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
	0%,
	80%,
	100% {
		-webkit-transform: scale(0);
	}
	40% {
		-webkit-transform: scale(1);
	}
}

@keyframes sk-bouncedelay {
	0%,
	80%,
	100% {
		-webkit-transform: scale(0);
		transform: scale(0);
	}
	40% {
		-webkit-transform: scale(1);
		transform: scale(1);
	}
}

.hidden {
	display: none;
}

.loading-container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}

.loading-text {
	color: #ff66aa;
	font-size: 0.9rem;
	margin-top: 1rem;
}

.generator h1 a i {
	margin-right: 0.5rem;
	font-size: 1.5rem;
	vertical-align: middle;
}

.copy-btn i,
.button-group button i {
	margin-right: 0.4em;
}

.preview h2 {
	display: inline-flex;
	align-items: center;
	margin-bottom: 1rem;
}

.preview h2 i {
	margin-right: 0.5em;
	color: white;
}

footer {
	text-align: center;
	padding: 1.5rem 1rem;
	background-color: #35272e;
	color: white;
	font-size: 0.9rem;
	border-top: 1px solid #444;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
	gap: 1rem;
}

.footer-content p {
	margin: 0;
	flex-grow: 1;
	text-align: left;
}

.social-links {
	display: flex;
	gap: 1rem;
}

.social-links a {
	color: white;
	text-decoration: none;
	font-size: 1.5rem;
	transition: color 0.3s;
}

.social-links a:hover {
	color: #ff66aa;
}

.warning-box {
	background-color: rgba(255, 165, 0, 0.15);
	border: 1px solid rgba(255, 165, 0, 0.4);
	border-radius: 5px;
	padding: 0.8rem 1rem;
	margin: 1rem 0 1.5rem 0;
	text-align: left;
}

.warning-box p {
	margin: 0;
	color: #f0e6d2;
	font-size: 0.85rem;
	line-height: 1.5;
	display: flex;
	align-items: flex-start;
}
.warning-box p span {
	flex: 1;
}

.warning-box p i {
	color: #ffa500;
	margin-right: 0.6em;
	margin-top: 0.15em;
	font-size: 1.1em;
}

.warning-box a {
	color: #ffcc80;
	text-decoration: underline;
}

.warning-box a:hover {
	color: #ffffff;
}

.button-group {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-top: 1rem;
}
