/* Reset dan Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	background-image: url(../assets/img/background.webp);
	background-size: cover;
	background-repeat: no-repeat;
	animation: gradientBG 120s ease infinite;
	color: #fff;
	min-height: 100vh;
}

@keyframes gradientBG {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.running-text {
	display: none;
}

@media (max-width: 768px) {
	.running-text {
		background-color: rgba(0, 0, 0, 0.541);
		display: none;
	}
}

#loading-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
	opacity: 0;
	visibility: hidden;
}

.loader {
	text-align: center;
}

.spinner {
	width: 60px;
	height: 60px;
	border: 6px solid rgba(255, 255, 255, 0.2);
	border-top-color: #ffcc00;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 1rem;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.loader p {
	color: #fff;
	font-weight: bold;
	letter-spacing: 1px;
	font-size: 1.1rem;
	opacity: 0.8;
}

/* Header dan Banner */
header {
	text-align: center;
	padding: 2rem 0;
}

@media (max-width: 768px) {
	header {
		padding: 0;
	}
}

.login-daftar {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-content: center;
	justify-content: center;
	align-items: center;
}

.button-daftar {
	border-radius: 0;
	padding: 0;
	margin: 0;
    width: 100%;
    background-color: yellow;
}

.button-daftar p {
    color: black;
}

.button-daftar:hover {
    background-color: rgb(119, 119, 0);
}

.button-daftar:hover p {
    color: rgb(255, 255, 255);
}

.button-login {
    border-radius: 0;
	padding: 0;
	margin: 0;
    width: 100%;
    background-color: #21ad71;
}

.button-login:hover {
    background-color: #105a3a;
}

.logo {
	max-width: 6rem;
	padding-bottom: 1em;
}

.banner {
	max-width: 43rem;
	margin: 0 auto;
	animation: fadeIn 1.5s ease-out;
}

.banner-image {
	width: 100%;
    border-radius: 1em 1em 0 0;
}

@media (max-width: 768px) {
	.banner {
		max-width: 50rem;
		border-radius: 0;
	}
	.banner-image {
		border-radius: 0;
	}
}

.banner p {
	padding: .5em;
	font-size: 1.2rem;
	font-weight: bolder;
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.6;
}

.button {
	background-color: #31d982;
	padding: .5em;
	border-radius: 1em;
	margin: 1em 0 1em 0;
}

.button:hover {
	background-color: #269257;
}

/* Container Events */
.events-container {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 13rem;
}

@media (max-width: 768px) {
	.events-container {
		padding: 0 1rem;
	}
}

/* Event Cards */
.event-card {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border-radius: 15px;
	margin-bottom: 1.5rem;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	transform: translateY(0);
	opacity: 0;
	animation: slideUp 0.8s forwards;
}

.event-card:nth-child(1) {
	animation-delay: 0.2s;
}
.event-card:nth-child(2) {
	animation-delay: 0.4s;
}
.event-card:nth-child(3) {
	animation-delay: 0.6s;
}
.event-card:nth-child(4) {
	animation-delay: 0.8s;
}

.event-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.event-header {
	padding: 1rem;
	cursor: pointer;
	display: flex;
	text-align: center;
	justify-content: center;
	transition: background 0.3s ease;
	flex-direction: column;
	flex-wrap: nowrap;
	align-content: center;
	align-items: center;
}

.event-header:hover {
	background: rgba(255, 255, 255, 0.15);
}

.events-logo {
	display: flex;
	max-width: 100%;
	width: 30rem;
	margin-bottom: -2em;
	justify-content: center;
	align-items: center;
}

@media (max-width: 768px) {
	.event-info {
		width: auto;
		max-width: 100%;
	}
}

.event-title {
	font-size: 1.8rem;
	font-weight: 600;
	text-align: center;
}

.event-date {
	font-size: 1.1rem;
	opacity: 0.8;
}

.event-icon {
	font-size: 1.5rem;
	transition: transform 0.4s ease;
}

.event-card.active .event-icon {
	transform: rotate(180deg);
}

/* Dropdown Content */
.event-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card.active .event-content {
	max-height: 1000px;
}

.event-info {
	padding: 3rem 1.5rem 1.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	max-height: 500px;
	overflow-y: auto;
}

@media (max-width: 768px) {
	.event-info {
		grid-template-columns: 1fr;
	}
}

td {
	background-color: #17693c4f;
}

.rules-section,
.countdown-section {
	background: rgba(0, 0, 0, 0.2);
	padding: 1.5rem;
	border-radius: 10px;
}

.rules-section h3,
.countdown-section h3 {
	margin-bottom: 1rem;
	font-size: 1.3rem;
	color: rgb(255, 255, 255);
}

.rules-list {
	list-style-type: none;
}

.rules-list li {
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	padding-left: 1.5rem;
}

.rules-list li:before {
	content: "•";
	color: #ffcc00;
	position: absolute;
	left: 0;
}

/* Countdown Timer */
.countdown {
	display: flex;
	justify-content: space-between;
	text-align: center;
	margin-top: 1rem;
}

.countdown-item {
	flex: 1;
	padding: 0.5rem;
}

.countdown-value {
	font-size: 2rem;
	font-weight: 700;
	display: block;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 0.5rem;
	margin-bottom: 0.5rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.countdown-label {
	font-size: 0.8rem;
	opacity: 0.8;
	text-transform: uppercase;
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Footer */
footer {
	text-align: center;
	padding: 2rem;
	margin-top: 2rem;
	font-size: 0.9rem;
}

/* Navbar */

.navbar {
	display: flex;
	justify-content: center;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0);
}

@media (max-width: 768px) {
	.navbar {
		padding: 1rem 1rem;
		font-size: 12px;
	}
}

.navbar ul {
	list-style: none;
	display: flex;
	gap: 2rem;
}

.navbar a {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s ease, border-bottom 0.3s ease;
	border-bottom: 2px solid transparent;
	padding-bottom: 0.3rem;
}

.navbar a:hover {
	color: yellow;
}

.navbar a.active {
	color: yellow;
	border-bottom: 2px solid yellow;
}