@font-face {
  font-family: naikaifont;
  src: url(https://cdn.jsdelivr.net/gh/max32002/naikaifont@1.0/webfont/NaikaiFont-Regular-Lite.woff2) format("woff2");
  font-display: swap;
}

:root {
    --primary-color: #e5958e;
	--secondary-color: #f8c7c3;
	--primary-color-dark: #666;
	--button-color: #f8c7c3;
	--button-hover-color: #e5958e;
    --content-bg: rgba(255, 255, 255, 0.95);
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(248, 199, 195, 0.2);
	--gold-color:rgb(223, 201, 0);
	--wood-color:rgb(60, 168, 45);
	--water-color:rgb(25, 170, 228);
	--fire-color:rgb(255, 0, 0);
	--soil-color:brown;
	--luck-color:var(rgb(235, 76, 76));
	--unlucky-color:var(rgb(43, 41, 53));
	--neutral-color:var(rgb(33, 212, 167));
	/*
	--gold-color:radial-gradient(ellipse farthest-corner at right bottom, #FEDB37 0%, #FDB931 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%),
        radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #FFFFAC 8%, #D1B464 25%, #5d4a1f 62.5%, #5d4a1f 100%);
	--wood-color:linear-gradient(45deg, #32de84 0%, #55c138 100%);
	--water-color:linear-gradient(bottom, #53aae0 0%, #1c78c4 100%);
	--fire-color:linear-gradient(to bottom, #ff8a00, #da1b60);
	--soil-color:linear-gradient(45deg, #373f3b 0%, #6d5116 100%);
	*/
}

* {
	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: var(--primary-color);
	text-decoration: none;
}

.nav-menu {
	display: flex;
	gap: 2rem;
	align-items: center;
}

.nav-link {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
	display: flex;
	justify-content: center;
	align-items: center;
}

.nav-link:hover {
	color: var(--secondary-color);
}

.nav-link.dropdown-item:hover {  
	border-left-color: var(--secondary-color);
	border-left-width: thick;
	border-left-style: solid;
}

.nav-link-label {
	margin-left: 0.3em;
	text-align:center;
}

.nav-item {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.fa-chevron-up {
	transition: transform 0.3s ease;
}

.dropdown-toggle.active>i.fa-chevron-up {
	transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(248, 199, 195, 0.2);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--primary-color);
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.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 var(--box-shadow);
	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;
}

img.simpleImg {
	object-fit: contain;
	max-height:500px;
	max-width:500px;
	margin: auto;
	width: 100%;
}
/*
@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;
}

.general-button {
	background: var(--button-color);
	color: var(--content-bg);
	padding: 0.5rem 1.5rem;
	border-radius: 5px;
	text-decoration: none;
	transition: background-color 0.3s;
	border: 0;
}

.general-button:hover {
	background: var(--button-hover-color);
}

.sponsor-button {
	background: var(--button-color);
	color: white;
	padding: 0.5rem 1.5rem;
	border-radius: 5px;
	text-decoration: none;
	transition: background-color 0.3s;
}

.sponsor-button:hover {
	background: var(--button-hover-color);
}

.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;
	}

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background: transparent;
    }
    
    .nav-item {
        display: block;
        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);
}
