@font-face {
  font-family: naikaifont;
  src: url(https://cdn.jsdelivr.net/gh/max32002/naikaifont@1.0/webfont/NaikaiFont-Regular-Lite.woff2) format("woff2");
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "naikaifont", sans-serif;
}

body {
	background-color: #fff5f4;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.header {
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(248, 199, 195, 0.2);
	padding: 1rem 5%;
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(10px);
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1400px;
	margin: 0 auto;
}

.logo-container {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.menu-icon {
	width: 96px;
	height: 96px;
	transition: transform 0.3s ease;
}

.logo-container:hover .menu-icon {
	transform: rotate(-10deg);
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: #e5958e;
	text-decoration: none;
}

.nav-menu {
	display: flex;
	gap: 2rem;
	align-items: center;
}

.nav-link {
	color: #e5958e;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
}

.nav-link:hover {
	color: #f8c7c3;
}

.youtube-button {
	padding: 0.8rem 1.5rem;
	border-radius: 10px;
	text-decoration: none;
	font-weight: bold;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.8rem;
	background: #ff0000;
	color: white !important;
	font-size: 1rem;
}

.youtube-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	background: #ff0000;
}

.container {
	max-width: 800px;
	margin: 150px auto 8rem;
	padding: 2rem;
	background: white;
	border-radius: 20px;
	box-shadow: 0 10px 20px rgba(248, 199, 195, 0.2);
}
.msg-container {
	background: white;
	padding: 2rem;
	border-radius: 15px;
	box-shadow: 0 10px 20px rgba(248, 199, 195, 0.3);
	max-width: 500px;
	width: 90%;
}
.tip-container {
	background: rgba(248, 199, 195, 0.1);
	padding: 2rem;
	border-radius: 15px;
	margin: 2rem 0;
}
.tip-container h2 {
	color: #e5958e;
	margin-bottom: 1rem;
	text-align: center;
}
.tip-container i {
	color: #f8c7c3;
	font-size: 1.2rem;
}
/*
@media (max-width: 768px) {
	.youtube-button {
		width: 100%;
		justify-content: center;
		margin: 0.5rem 0;
	}
}
*/
.auth-button {
	background: #f8c7c3;
	color: white;
	padding: 0.5rem 1.5rem;
	border-radius: 5px;
	text-decoration: none;
	transition: background-color 0.3s;
}

.auth-button:hover {
	background: #e5958e;
	box-shadow: 0 0 15px rgba(248, 199, 195, 0.5);
}

.footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(255, 255, 255, 0.95);
	padding: 1rem 5%;
	backdrop-filter: blur(10px);
	z-index: 1000;
}

.footer.visible {
	transform: translateY(0);
}

.footer-content {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-left {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.footer-left a {
	color: #e5958e;
	text-decoration: none;
}

.copyright {
	color: #666;
	font-size: 0.9rem;
}

.sponsor-button {
	background: #f8c7c3;
	color: white;
	padding: 0.5rem 1.5rem;
	border-radius: 5px;
	text-decoration: none;
	transition: background-color 0.3s;
}

.sponsor-button:hover {
	background: #e5958e;
}

.menu-button {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

@media (max-width: 768px) {
	
	.container {
		margin: 100px 1rem 8rem;
		padding: 1rem;
	}
	
	.menu-icon {
		width: 48px;
		height: 48px;
	}

	.logo {
		font-size: 1.2rem;
	}

	.menu-button {
		display: block;
	}

	.nav-menu {
		display: none;
		position: fixed;
		top: 60px;
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, 0.98);
		border-bottom: 1px solid rgba(248, 199, 195, 0.2);
		flex-direction: column;
		padding: 1rem;
		z-index: 999;
	}

	.nav-menu.active {
		display: flex;
	}

	.nav-link {
		padding: 0.5rem 0;
		width: 100%;
		text-align: center;
	}

	.desktop-auth {
		display: none;
	}

	.mobile-auth {
		display: block;
	}

	.footer-content {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}
}

@media (max-width: 640px) {
	.menu-button {
		display: block;
	}

	.nav-menu {
		display: none;
		position: fixed;
		top: 60px;
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, 0.98);
		border-bottom: 1px solid rgba(248, 199, 195, 0.2);
		flex-direction: column;
		padding: 1rem;
	}

	.nav-menu.active {
		display: flex;
	}

	.nav-link {
		padding: 0.5rem 0;
		width: 100%;
		text-align: center;
	}
}

/* animations */
@keyframes bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@keyframes floatleftright {
	0%, 100% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(-20px);
	}
}

/* Add shake animation keyframes */
@keyframes shake {
	0%, 100% { transform: rotate(0deg); }
	25% { transform: rotate(-10deg); }
	50% { transform: rotate(0deg); }
	75% { transform: rotate(10deg); }
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}


@keyframes shakeLeftRight {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

@keyframes fadeIn {
	from { opacity: 0; transform: translate(-50%, 10px); }
	to { opacity: 1; transform: translate(-50%, 0); }
}

/* end animations */

/* common classes for route, checkpoint and questions */
/* slideshow */
.slideshow-container {
	position: relative;
}

.slideshow {
	position: relative;
	width: 100%;
	height: 300px;
	overflow: hidden;
}

.slideshow-film {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transition: transform 1s ease;
}

.slideshow-film img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.slideshow-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 2;
}

.slideshow-dots .dot {
	width: 20px;
	height: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	background: none;
	border: none;
	padding: 0;
}

.slideshow-dots .dot::before {
	content: '\f004'; /* Heart icon from Font Awesome */
	font-family: 'Font Awesome 6 Free';
	font-size: 16px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: rgba(229, 149, 142, 0.5);
	transition: all 0.3s ease;
}

.slideshow-dots .dot:hover::before {
	color: rgba(229, 149, 142, 0.8);
}

.slideshow-dots .dot.active::before {
	font-weight: 900; /* Solid heart for active dot */
	color: #e5958e;
	transform: translate(-50%, -50%) scale(1.2);
}
