* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Fredoka", sans-serif;
	background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
	background-size: 100% 100%;
	min-height: 100vh;
	color: #2c3e50;
	margin: 0;
	padding: 0;
}

@keyframes gradientShift {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Hero Section */
.hero {
	padding: 80px 0;
	text-align: center;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
}

.logo-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.chungus-logo {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	border: 5px solid #ff6b6b;
	object-fit: cover;
	transition: transform 0.3s ease;
	box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.chungus-logo:hover {
	transform: scale(1.1) rotate(5deg);
}

.title {
	font-size: 3.5rem;
	font-weight: 700;
	background: linear-gradient(45deg, #ff6b6b, #34495e, #8e44ad, #27ae60);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: textShimmer 8s ease-in-out infinite;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
	margin-bottom: 10px;
	/* Fallback for browsers that don't support background-clip */
	color: #2c3e50;
}

@keyframes textShimmer {

	0%,
	100% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}
}

.ticker {
	font-size: 2.5rem;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(45deg, #ff6b6b, #34495e);
	padding: 15px 30px;
	border-radius: 30px;
	border: 3px solid #fff;
	display: inline-block;
	animation: bounce 2s infinite;
	box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

@keyframes bounce {

	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-10px);
	}

	60% {
		transform: translateY(-5px);
	}
}

.description {
	font-size: 1.3rem;
	color: #2c3e50;
	line-height: 1.6;
	font-weight: 500;
}

.description p {
	margin-bottom: 10px;
}

.ca-section {
	width: 100%;
	max-width: 500px;
}

.ca-section label {
	display: block;
	font-size: 1.2rem;
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 15px;
}

.input-group {
	display: flex;
	gap: 10px;
	align-items: center;
}

#contract-address {
	flex: 1;
	padding: 18px;
	border: 3px solid #4ecdc4;
	border-radius: 15px;
	font-size: 1.1rem;
	font-family: "Courier New", monospace;
	background: #f8f9fa;
	color: #2c3e50;
	outline: none;
	transition: border-color 0.3s ease;
	box-shadow: 0 4px 15px rgba(78, 205, 196, 0.2);
}

#contract-address:focus {
	border-color: #ff6b6b;
}

.copy-btn {
	padding: 18px 25px;
	background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
	color: white;
	border: none;
	border-radius: 15px;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.copy-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.copy-btn:active {
	transform: translateY(0);
}

.copy-icon {
	width: 18px;
	height: 18px;
	margin-right: 8px;
}

.social-buttons {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	justify-content: center;
}

.social-btn {
	padding: 15px 25px;
	border-radius: 20px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 3px solid transparent;
}

.social-icon {
	width: 20px;
	height: 20px;
}

/* Coin Info Section */
.coin-info-section {
	padding: 80px 0;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
}

.coin-info-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 50px;
	max-width: 800px;
	margin: 0 auto;
}

.ca-section {
	text-align: center;
	width: 100%;
}

/* Coin Stats */
.coin-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
}

.stat-item {
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 15px;
	padding: 20px;
	text-align: center;
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

.stat-item:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.3);
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-label {
	font-size: 0.9rem;
	color: #2c3e50;
	font-weight: 500;
	margin-bottom: 8px;
	opacity: 0.8;
}

.stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: #2c3e50;
	background: linear-gradient(45deg, #ff6b6b, #34495e);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
	/* Fallback for browsers that don't support background-clip */
}

/* Meme Generator Section */
.meme-generator-section {
	padding: 80px 0;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(5px);
}

.meme-generator-content {
	max-width: 1000px;
	margin: 0 auto;
	text-align: center;
}

.section-title {
	font-size: 2.5rem;
	font-weight: 700;
	background: linear-gradient(45deg, #ff6b6b, #34495e, #8e44ad, #27ae60);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
	margin-bottom: 15px;
	/* Fallback for browsers that don't support background-clip */
	color: #2c3e50;
}

.section-subtitle {
	font-size: 1.2rem;
	color: #2c3e50;
	margin-bottom: 40px;
	opacity: 0.8;
}

.meme-generator {
	display: flex;
	gap: 30px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	padding: 30px;
	backdrop-filter: blur(10px);
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.canvas-section {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.canvas-container {
	position: relative;
	display: flex;
	justify-content: center;
}

#meme-canvas {
	border: 3px solid #4ecdc4;
	border-radius: 15px;
	background: #f8f9fa;
	cursor: default;
	position: relative;
}

#meme-canvas.dragging {
	cursor: grabbing;
}

#meme-canvas:hover {
	cursor: grab;
}

.canvas-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.canvas-instructions {
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 15px 25px;
	border-radius: 10px;
	text-align: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.canvas-instructions.show {
	opacity: 1;
}

.controls-sidebar {
	width: 300px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.control-section {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 15px;
	padding: 20px;
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.control-section h4 {
	color: #2c3e50;
	margin-bottom: 15px;
	font-size: 1.1rem;
	font-weight: 600;
}

.background-options {
	display: flex;
	gap: 10px;
}

.bg-option {
	cursor: pointer;
	padding: 8px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid transparent;
	transition: all 0.3s ease;
	flex: 1;
}

.bg-option:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: #4ecdc4;
}

.bg-option.selected {
	border-color: #ff6b6b;
	background: rgba(255, 107, 107, 0.2);
}

.bg-preview {
	width: 100%;
	height: 60px;
	object-fit: cover;
	border-radius: 8px;
}

.text-list {
	margin-top: 15px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.text-item {
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid transparent;
	border-radius: 8px;
	padding: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.text-item:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: #4ecdc4;
}

.text-item.selected {
	border-color: #ff6b6b;
	background: rgba(255, 107, 107, 0.2);
}

.text-item-content {
	color: #2c3e50;
	font-weight: 500;
	font-size: 0.9rem;
}

.text-item-delete {
	background: none;
	border: none;
	color: #e74c3c;
	cursor: pointer;
	font-size: 1.2rem;
	padding: 2px;
	border-radius: 4px;
	transition: background 0.3s ease;
}

.text-item-delete:hover {
	background: rgba(231, 76, 60, 0.2);
}

.text-editor {
	background: rgba(255, 255, 255, 0.15);
	border-color: #4ecdc4;
}

.editor-group {
	margin-bottom: 15px;
}

.editor-group label {
	display: block;
	color: #2c3e50;
	font-weight: 600;
	margin-bottom: 5px;
	font-size: 0.9rem;
}

.editor-group input,
.editor-group select {
	width: 100%;
	padding: 8px 12px;
	border: 2px solid #4ecdc4;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.9);
	color: #2c3e50;
	font-size: 0.9rem;
}

.editor-group input[type="range"] {
	width: 100%;
}

.control-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	margin-bottom: 10px;
}

.control-btn.primary {
	background: linear-gradient(45deg, #4ecdc4, #45b7d1);
	color: white;
}

.control-btn.primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.control-btn.download {
	background: linear-gradient(45deg, #ff6b6b, #ff5252);
	color: white;
}

.control-btn.download:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.control-btn.delete {
	background: linear-gradient(45deg, #e74c3c, #c0392b);
	color: white;
}

.control-btn.delete:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.download-icon {
	width: 16px;
	height: 16px;
	margin-right: 8px;
	filter: brightness(0) invert(1);
}

.social-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.twitter {
	background: linear-gradient(45deg, #1da1f2, #0d8bd9);
	color: white;
}

.twitter:hover {
	border-color: #0d8bd9;
}

.dexscreener {
	background: linear-gradient(45deg, #ff6b6b, #ff5252);
	color: white;
}

.dexscreener:hover {
	border-color: #ff5252;
}

.pumpfun {
	background: linear-gradient(45deg, #96ceb4, #7fb069);
	color: white;
}

.pumpfun:hover {
	border-color: #7fb069;
}

/* Toast Notification */
.toast {
	position: fixed;
	top: 20px;
	right: 20px;
	background: linear-gradient(45deg, #4ecdc4, #45b7d1);
	color: white;
	padding: 15px 25px;
	border-radius: 15px;
	font-weight: 600;
	box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
	transform: translateX(400px);
	transition: transform 0.3s ease;
	z-index: 1000;
}

.toast.show {
	transform: translateX(0);
}


/* Responsive Design */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
	.container {
		max-width: 1400px;
	}

	.meme-generator {
		gap: 40px;
	}

	.controls-sidebar {
		width: 350px;
	}
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
	.container {
		max-width: 1000px;
	}

	.meme-generator {
		gap: 25px;
	}

	.controls-sidebar {
		width: 280px;
	}
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) and (min-width: 768px) {
	.container {
		padding: 0 20px;
	}

	.hero {
		padding: 60px 0;
	}

	.hero-content {
		padding: 0 15px;
		gap: 25px;
	}

	.chungus-logo {
		width: 130px;
		height: 130px;
	}

	.title {
		font-size: 3rem;
	}

	.ticker {
		font-size: 2rem;
		padding: 15px 30px;
	}

	.description {
		font-size: 1.2rem;
	}

	.social-buttons {
		gap: 20px;
	}

	.coin-info-section {
		padding: 60px 0;
	}

	.coin-info-content {
		gap: 40px;
	}

	.meme-generator-section {
		padding: 60px 0;
	}

	.meme-generator {
		flex-direction: column;
		padding: 25px;
		gap: 25px;
	}

	.canvas-section {
		order: 1;
		position: static;
		margin-bottom: 25px;
	}

	.controls-sidebar {
		width: 100%;
		order: 2;
		max-height: none;
		overflow-y: visible;
		padding-right: 0;
	}

	.section-title {
		font-size: 2.2rem;
	}

	#meme-canvas {
		width: 100%;
		max-width: 600px;
		height: auto;
	}

	.background-options {
		flex-direction: row;
		gap: 15px;
	}

	.bg-preview {
		height: 60px;
	}

	.input-group {
		flex-direction: column;
	}

	.copy-btn {
		width: 100%;
	}

	.social-buttons {
		flex-direction: column;
		align-items: center;
	}

	.social-btn {
		width: 100%;
		max-width: 250px;
		justify-content: center;
	}

	.coin-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.stat-item {
		padding: 18px;
	}

	.stat-value {
		font-size: 1.3rem;
	}
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) and (min-width: 576px) {
	.container {
		padding: 0 15px;
	}

	.hero {
		padding: 50px 0;
	}

	.hero-content {
		padding: 0 15px;
		gap: 20px;
	}

	.chungus-logo {
		width: 120px;
		height: 120px;
	}

	.title {
		font-size: 2.5rem;
	}

	.ticker {
		font-size: 1.8rem;
		padding: 12px 25px;
	}

	.description {
		font-size: 1.1rem;
	}

	.social-buttons {
		flex-direction: column;
		gap: 15px;
		width: 100%;
	}

	.social-btn {
		width: 100%;
		justify-content: center;
	}

	.coin-info-section {
		padding: 50px 0;
	}

	.coin-info-content {
		gap: 30px;
	}

	.meme-generator-section {
		padding: 50px 0;
	}

	.meme-generator {
		flex-direction: column;
		padding: 20px;
		gap: 20px;
	}

	.canvas-section {
		order: 1;
		position: static;
		margin-bottom: 20px;
	}

	.controls-sidebar {
		width: 100%;
		order: 2;
		max-height: none;
		overflow-y: visible;
		padding-right: 0;
	}

	.section-title {
		font-size: 2rem;
	}

	#meme-canvas {
		width: 100%;
		max-width: 500px;
		height: auto;
	}

	.background-options {
		flex-direction: row;
		gap: 10px;
	}

	.bg-preview {
		height: 50px;
	}

	.input-group {
		flex-direction: column;
	}

	.copy-btn {
		width: 100%;
	}

	.coin-stats {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.stat-item {
		padding: 15px;
	}

	.stat-label {
		font-size: 0.9rem;
	}

	.stat-value {
		font-size: 1.1rem;
	}
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
	.container {
		padding: 0 10px;
	}

	.hero {
		padding: 40px 0;
	}

	.hero-content {
		padding: 0 10px;
		gap: 15px;
	}

	.chungus-logo {
		width: 100px;
		height: 100px;
	}

	.title {
		font-size: 2rem;
		line-height: 1.2;
	}

	.ticker {
		font-size: 1.5rem;
		padding: 10px 20px;
	}

	.description {
		font-size: 1rem;
		text-align: center;
	}

	.social-buttons {
		flex-direction: column;
		gap: 12px;
		width: 100%;
	}

	.social-btn {
		width: 100%;
		justify-content: center;
		padding: 12px 20px;
		font-size: 0.9rem;
	}

	.coin-info-section {
		padding: 40px 0;
	}

	.coin-info-content {
		gap: 25px;
	}

	.meme-generator-section {
		padding: 40px 0;
	}

	.meme-generator {
		flex-direction: column;
		padding: 15px;
		gap: 15px;
	}

	.canvas-section {
		order: 1;
		position: static;
		margin-bottom: 15px;
	}

	.controls-sidebar {
		width: 100%;
		order: 2;
		max-height: none;
		overflow-y: visible;
		padding-right: 0;
	}

	.section-title {
		font-size: 1.8rem;
	}

	.section-subtitle {
		font-size: 1rem;
	}

	#meme-canvas {
		width: 100%;
		max-width: 100%;
		height: auto;
	}

	.background-options {
		flex-direction: row;
		gap: 8px;
	}

	.bg-preview {
		height: 45px;
	}

	.control-section {
		padding: 15px;
	}

	.control-section h4 {
		font-size: 1rem;
		margin-bottom: 12px;
	}

	.control-btn {
		padding: 12px 16px;
		font-size: 0.9rem;
	}

	.editor-group {
		margin-bottom: 12px;
	}

	.editor-group label {
		font-size: 0.85rem;
		margin-bottom: 4px;
	}

	.editor-group input,
	.editor-group select {
		padding: 6px 10px;
		font-size: 0.85rem;
	}

	.text-item {
		padding: 8px;
	}

	.text-item-content {
		font-size: 0.85rem;
	}

	.ca-section {
		width: 100%;
	}

	.ca-section label {
		font-size: 1rem;
		margin-bottom: 10px;
	}

	#contract-address {
		font-size: 0.8rem;
		padding: 12px;
		word-break: break-all;
	}

	.copy-btn {
		padding: 12px 18px;
		font-size: 0.9rem;
		width: 100%;
	}

	.input-group {
		flex-direction: column;
	}

	.coin-stats {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.stat-item {
		padding: 12px;
	}

	.stat-label {
		font-size: 0.8rem;
	}

	.stat-value {
		font-size: 1rem;
	}

	.toast {
		font-size: 0.9rem;
		padding: 12px 20px;
		right: 10px;
		left: 10px;
		text-align: center;
	}
}