/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Poppins", "Noto Sans Devanagari", "Noto Sans Bengali",
		"Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Kannada",
		"Noto Sans Gujarati", "Noto Sans Gurmukhi", "Noto Sans CJK SC",
		"Noto Sans Arabic", sans-serif;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	height: calc(var(--vh) * 100);
	overflow-y: auto;
	overflow-x: hidden;
	position: relative;
	margin: 0;
	padding: 0;
    -webkit-user-select: none;
    user-select: none;
}

html {
    overflow-x: hidden;
}

.about-section {
    width: 50% !important;
    margin-top: -10% !important;
}

.about-section p {
    font-size: small;
}

/* Ad Containers */
.ad-container {
	border-radius: 8px;
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
    z-index: 999;
}

.ad-top,
.ad-bottom {
	width: 100%;
	height: 150px !important;
	flex-shrink: 0;
	overflow: hidden;
	position: relative;
}

.ad-bottom ins.adsbygoogle {
	display: block !important;
	width: 100% !important;
	height: 150px !important;
	overflow: hidden !important;
}

.ad-bottom ins.adsbygoogle iframe {
	width: 100% !important;
	height: 150px !important;
}

.ad-sidebar {
	padding: 20px 10px;
}

.ad-left,
.ad-right {
	width: 100%;
	min-height: 300px;
}

/* Language Support */
[lang="ar"] {
	direction: rtl;
	text-align: right;
}

[lang="ar"] .input-group {
	flex-direction: row-reverse;
}

[lang="ar"] .language-selector {
	left: 15px;
	right: auto;
}

/* Input Field Enhancements */
.form-control {
	unicode-bidi: plaintext;
}

/* Language Selector */
.language-selector {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 20;
}

.language-selector select {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #ffffff;
	border-radius: 8px;
	padding: 5px 10px;
	font-size: 0.85rem;
	backdrop-filter: blur(10px);
	cursor: pointer;
	transition: all 0.3s ease;
}

.language-selector select:focus {
	background: rgba(255, 255, 255, 0.25);
	border-color: #ffd700;
	box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
	outline: none;
}

.language-selector select option {
	background: #1a1a2e;
	color: #ffffff;
	padding: 5px;
}

/* Main Container */
.main-container {
	min-height: calc(var(--vh) * 100);
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.main-content {
	position: relative;
	flex: 1;
	padding: 0;
	min-height: calc((var(--vh) * 100) - 160px);
}

.main-container .row {
	height: var(--vh) * 100 !important;
}

/* Central Content */
.central-content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	padding: 20px;
}

.content-card {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	padding: 30px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
	max-width: 600px;
	width: 100%;
	animation: float 6s ease-in-out infinite;
	max-height: 80vh;
	overflow-y: auto;
	transition: max-width 0.2s ease;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-10px);
	}
}

/* Typography */
.diwali-title {
	color: #ffd700;
	font-weight: 700;
	font-size: 2.2rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	animation: glow 2s ease-in-out infinite alternate;
	margin-bottom: 1rem !important;
}

@keyframes glow {
	from {
		text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px #ffd700;
	}
	to {
		text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 30px #ffd700,
			0 0 40px #ffd700;
	}
}

.subtitle {
	color: #ffffff;
	font-size: 1.1rem;
	opacity: 0.9;
}

.diwali-greeting {
	color: #ffd700;
	font-weight: 700;
	font-size: 2rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	animation: glow 2s ease-in-out infinite alternate;
	margin-bottom: 1rem !important;
}

.glitter-text {
	color: #ffd700;
	font-weight: 700;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	animation: glow 2s ease-in-out infinite alternate;
}

.diwali-message {
	color: #ffffff;
	font-size: 1.1rem;
}

/* Form Styles */
.form-control {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #ffffff;
	border-radius: 15px;
	padding: 15px 20px;
}

.form-control:focus {
	background: rgba(255, 255, 255, 0.25);
	border-color: #ffd700;
	box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
	color: #ffffff;
}

.form-control::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.btn-primary {
	background: linear-gradient(45deg, #ff6b35, #f7931e);
	border: none;
	border-radius: 15px;
	padding: 15px 25px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.btn-primary:hover {
	background: linear-gradient(45deg, #f7931e, #ff6b35);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.btn-outline-light {
	border: 2px solid #ffd700;
	color: #ffd700;
	border-radius: 15px;
	padding: 12px 30px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.btn-outline-light:hover {
	background: #ffd700;
	color: #1a1a2e;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* Characters */
.characters-container {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	pointer-events: none;
}

.character {
	position: absolute;
	width: 80px;
	height: 120px;
	background: linear-gradient(45deg, #ff6b35, #f7931e);
	border-radius: 40px 40px 20px 20px;
	animation: characterFloat 4s ease-in-out infinite;
	overflow: visible;
	box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

.character-1 {
	top: 15%;
	left: 10%;
	animation-delay: 0s;
}

.character-2 {
	top: 80%;
	right: 15%;
	animation-delay: 2s;
}

@keyframes characterFloat {
	0%,
	100% {
		transform: translateY(0px) rotate(-2deg);
	}
	50% {
		transform: translateY(-15px) rotate(2deg);
	}
}

.hand-firework {
	position: absolute;
	bottom: -5px;
	left: calc(50% - 12.5px);
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: radial-gradient(circle, #ffd700, #ff6b35);
	animation: handFirework 1s ease-in-out infinite;
}

@keyframes handFirework {
	0%,
	100% {
		transform: scale(0.8);
		box-shadow: inset 0 0 8px #ffd700, 0 0 8px rgba(255, 215, 0, 0.6);
	}
	50% {
		transform: scale(1.1);
		box-shadow: inset 0 0 12px #ffd700, 0 0 12px rgba(255, 215, 0, 0.8);
	}
}

/* Rangoli */
.rangoli {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 4;
}

.rangoli-animation {
	width: 130px;
	height: 130px;
	animation: characterFloat 4s ease-in-out infinite;
}

.rangoli-1 {
	top: 15%;
	left: 80%;
	animation-delay: 0s;
}

.rangoli-2 {
	top: 60%;
	left: 10%;
	animation-delay: 2s;
}

.firework {
	z-index: 2;
	pointer-events: none;
	height: 300px;
	width: 300px;
	position: absolute;
	bottom: -20%;
}

.firework-1 {
	position: absolute;
	left: 0%;
}

.firework-2 {
	position: absolute;
	left: 40%;
}

.firework-3 {
	position: absolute;
	right: 0%;
}

.rockets {
	z-index: 2;
	pointer-events: none;
	height: 300px;
	width: 300px;
	position: absolute;
	top: -10%;
}

.rocket-1 {
	position: absolute;
	left: 0%;
}

.rocket-2 {
	position: absolute;
	left: 38%;
}

.rocket-3 {
	position: absolute;
	right: 0%;
}

.lamp-man {
	z-index: 4;
	pointer-events: none;
	height: 300px;
	width: 300px;
	position: absolute;
	top: 35%;
}

.lamp-man-2 {
	right: 0%;
	transform: scaleX(-1);
}

.diya {
	position: absolute;
	z-index: 3;
	pointer-events: none;
	height: 120px;
	width: 120px;
	top: 75%;
	margin-inline: 2%;
	display: none;
}

.diya-2 {
	right: 0%;
	transform: scaleX(-1);
}

/* Responsive Design */
@media (max-width: 768px) {
	.language-selector {
		top: 10px;
		right: 10px;
	}

	.language-selector select {
		font-size: 0.8rem;
		padding: 4px 8px;
	}

	.main-content {
		min-height: calc((var(--vh) * 100) - 160px);
	}

	.content-card {
		padding: 25px 15px;
		margin: 0 10px;
		max-height: 75vh;
	}

	.diwali-title {
		font-size: 1.8rem;
		margin-bottom: 0.8rem !important;
	}

	.diwali-greeting {
		font-size: 1.6rem;
		margin-bottom: 0.8rem !important;
	}

	.subtitle,
	.diwali-message {
		font-size: 1rem;
		margin-bottom: 0.8rem !important;
	}

	.character {
		width: 60px;
		height: 90px;
	}

	.character-1 {
		left: 5%;
	}

	.character-2 {
		right: 5%;
	}

	.hand-firework {
		width: 20px;
		height: 20px;
		bottom: -5px;
		left: calc(50% - 10px);
		overflow: visible;
	}

	.rangoli-animation {
		width: 100px;
		height: 100px;
	}

	.rangoli-1 {
		left: 83%;
	}

	.rangoli-2 {
		left: 5%;
		top: 63%;
	}

	.firework-1,
	.firework-3 {
		display: none;
	}

	.firework-2,
	.rocket-2 {
		left: calc(50% - 150px);
	}

	.rocket-1,
	.rocket-3 {
		display: none;
	}

    .about-section {
        width: 65% !important;
        padding: 0% !important;
        z-index: 99999;
        margin-top: -10% !important;
    }
}

@media (max-width: 576px) {
	.main-content {
		min-height: calc((var(--vh) * 100) - 160px);
	}

	.content-card {
		padding: 20px 12px;
		margin: 0 5px;
		max-height: 70vh;
	}

	.diwali-title {
		font-size: 1.25rem;
		margin-bottom: 0.6rem !important;
	}

	.diwali-greeting {
		font-size: 1.4rem;
		margin-bottom: 0.6rem !important;
	}

	.subtitle,
	.diwali-message {
		font-size: 0.9rem;
		margin-bottom: 0.6rem !important;
	}

	.btn-lg {
		padding: 10px 18px;
		font-size: 0.9rem;
	}

	.input-group .form-control {
		padding: 12px 15px;
		font-size: 0.9rem;
	}

	.rangoli-1 {
		left: 78%;
	}

	.lamp-man-container,
	.character-2,
	.rangoli-2 {
		display: none;
	}

	.diya {
		display: block;
	}

    .about-section {
        width: 100% !important;
        margin-top: -15% !important;
    }
}

/* Alert Styles */
.alert-success {
	background: rgba(40, 167, 69, 0.2);
	border: 1px solid rgba(40, 167, 69, 0.3);
	color: #ffffff;
	border-radius: 15px;
	backdrop-filter: blur(10px);
}

/* Copy Button Animation */
.btn-outline-success {
	transition: all 0.3s ease;
}

.btn-outline-success:hover {
	transform: scale(1.05);
}

/* Greeting Animation Container */
.greeting-animation {
	animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Firework Colors */
.firework-gold {
	background: #ffd700;
}
.firework-orange {
	background: #ff6b35;
}
.firework-red {
	background: #ff4757;
}
.firework-pink {
	background: #ff3838;
}
.firework-purple {
	background: #9c88ff;
}
.firework-blue {
	background: #3742fa;
}
.firework-green {
	background: #2ed573;
}

/* Loading Animation */
.loading {
	opacity: 0.7;
	pointer-events: none;
}

.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid #ffd700;
	border-top: 2px solid transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
