@font-face {
	font-family: "Vividly";
	src: url("./fonts/Chalkboard-Regular.woff") format("woff");
}

@font-face {
	font-family: "Love";
	src: url("./fonts/Love.ttf");
}

:root {
	--navbar-height: 6rem;
}

* {
	font-family: "Vividly", sans-serif;
	margin: 0;
	box-sizing: border-box;
	text-align: center;
}



html {
	font-size: 16px;
}

body {
	overflow-x: hidden;
	opacity: 0;
	transition: opacity 0.8s ease-in-out;
	background-color: #E7D0B0;
	background-image: url('./images/bg.svg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

body.loaded {
	opacity: 1;
}

.col-generator {
	gap: inherit;
	display: flex;
	width: 100%;
	align-content: center;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.row-generator {
	gap: 1rem;
	display: flex;
}

#wake-up-fren {
	position: fixed;
	top: 0;
	left: 0;
	padding: 4rem 0;
	height: 100dvh;
	width: 100dvw;
	z-index: 999999;
	background-color: #E7D0B0;
	background-image: url('./images/bg.svg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: opacity 1s ease-out;
}

#wake-up-btn {
	background: none;
	outline: none;
	border: none;
	cursor: pointer;
	width: 40rem;
	filter: grayscale(100%) brightness(200%);
}

#wake-up-btn:hover {
	filter: grayscale(0%) brightness(100%);
}

#wake-up-btn:active {
	filter: grayscale(0%) brightness(80%);
}

.wake-up-btn-img {
	width: 100%;
	height: auto;
}

.wake-up-img {
	height: 50rem;
	width: auto;
	margin-top: -10rem;
	pointer-events: none;
	border: none;
	outline: none;
	background: transparent;
}

.wake-up-img.awake {
	display: none;
}

#pause,
#play {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	height: 3rem;
	width: auto;
	cursor: pointer;
	z-index: 999;
}

#play {
	display: none;
}

#navbar-btn {
	display: none;
	position: fixed;
	left: 3rem;
	top: 3rem;
	height: 5rem;
	width: 5rem;
	z-index: 9999;
	background: none;
	border: none;
	outline: none;
}

.navbar-btn-line {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 0.5rem;
	border-radius: 10rem;
	background-color: black;
	opacity: 1;
	transition: 0.2s ease-out;
}

.navbar-btn-line.b {
	top: 50%;
	transform: translateY(-50%);
}

.navbar-btn-line.c {
	top: 100%;
	transform: translateY(-100%);
}

.active .a {
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
}

.active .b {
	left: -50%;
	opacity: 0;
}

.active .c {
	top: 50%;
	transform: translateY(-50%) rotate(-45deg);
}

#navbar {
	display: flex;
	justify-content: space-around;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	height: var(--navbar-height);
	width: 100%;
	background-color: #E7D0B0;
	z-index: 999;
	transition: 0.2s ease-out;
}

#navbar.active {
	left: 0;
}

.navbar-quak {
	display: none;
}

.navbar-header {
	display: none;
}

.navbar-footer {
	font-size: 2rem;
	display: none;
}

.navbar-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.navbar-links {
	gap: 6rem;
	flex-shrink: 0;
}

.ca-icon-wrapper,
.social-icon-wrapper {
	height: 2.5rem;
	width: auto;
}

.ca-icon,
.social-icon {
	height: 100%;
	max-width: 100%;
}

.ca-text {
	font-size: 1.5rem;
	margin-left: 1rem;
	width: fit-content;
}

.ca-tooltip {
	visibility: hidden;
	position: absolute;
	left: 50%;
	bottom: -100%;
	transform: translateX(-50%);
	width: fit-content;
	white-space: nowrap;
	padding: 1rem 2rem;
	background-color: #000;
	opacity: 0.9;
	color: #fff;
	border-radius: 0.7rem;
	font-size: 1.3rem;
	z-index: 9999;
	transition: 0.1s ease-out;
	opacity: 0;
}



.social-icon-wrapper {
	cursor: pointer;
}

/* Section Divider */
.section-divider {
	position: fixed;
	top: calc(var(--navbar-height));
	left: 0;
	width: auto;
	height: 3rem;
	z-index: 998;
	transform: translateY(-50%);
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
	transition: all 0.3s ease;
}

main {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: var(--navbar-height);
	/* margin-top: var(--navbar-height); */
}

.title {
	font-size: 12rem;
	font-weight: 500;
	margin: 1.5rem 0;
	z-index: 9;
}

.dollar {
	font-family: "Love", sans-serif;
	font-size: 8rem;
}

.sub-title {
	font-size: 3rem;
	z-index: 9;
}

.landing-animation {
	margin: -8rem;
	height: 35rem;
	width: auto;
}

.call-to-action-img {
	filter: brightness(200%) grayscale(100%);
	height: 9rem;
	width: auto;
}

.call-to-action-img:hover {
	filter: none;
}

.call-to-action {
	cursor: pointer;
	display: inline-block;
	text-decoration: none;
	transition: all 0.3s ease;
}

.call-to-action:hover {
	transform: scale(1.05);
}

.platforms-title {
	font-size: 6rem;
	font-weight: 500;
	margin-top: 10rem;
}

.platforms-logo-list {
	margin-top: 3rem;
	max-width: 60rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	column-gap: 6rem;
	row-gap: 3rem;
}

.platforms-logo-img {
	max-width: 15rem;
	height: auto;
}

.phantom-img {
	max-width: 35rem;
	height: auto;
}

/* CA Box styling */
.ca-box {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 2rem;
	position: relative;
	cursor: pointer;
	transition: all 0.3s ease;
}

.ca-box:hover {
	transform: translateY(-2px);
}

.ca-box .ca-icon-wrapper {
	height: 2rem;
	width: auto;
	margin-right: 1rem;
}

.ca-box .ca-icon {
	height: 100%;
	max-width: 100%;
}

.ca-box .ca-text {
	font-size: 1.8rem;
	margin: 0;
	font-weight: 500;
}

.ca-box .ca-tooltip {
	visibility: hidden;
	position: absolute;
	left: 50%;
	bottom: -120%;
	transform: translateX(-50%);
	width: fit-content;
	white-space: nowrap;
	padding: 1rem 2rem;
	background-color: #000;
	color: #fff;
	border-radius: 0.7rem;
	font-size: 1.3rem;
	z-index: 9999;
	transition: 0.2s ease-out;
	opacity: 0;
}

.ca-box:hover .ca-tooltip {
	visibility: visible;
	opacity: 0.9;
	bottom: -130%;
}

.generator {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin: 8rem 0;
}

.generator-header,
.generator-img-container,
.generator-name-input,
.generator-btns-container {
	flex-shrink: 0;
}

.generator-title {
	font-size: 7rem;
	font-weight: 500;
}

.generator-text {
	font-size: 3rem;
}

.generator-img-container {
	position: relative;
	height: 25rem;
	width: 25rem;
	border: 0.5rem solid #000;
	border-radius: 1.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.generator-img-bg {
	height: 100%;
	width: 100%;
}

.generator-img-shape,
.generator-img-mouth,
.generator-img-color,
.generator-img-eyes,
.generator-img-accessory {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	height: 30rem;
	width: auto;
}

.generator-img-shape,
.generator-img-color {
	z-index: 1;
}

.generator-img-eyes {
	z-index: 2;
}

.generator-img-mouth {
	z-index: 3;
}

.generator-img-accessory {
	z-index: 4;
}

.generator-name-input {
	width: 25rem;
	border: 0.5rem solid #000;
	border-radius: 1.2rem;
	padding: 0.7rem 2rem;
	font-size: 2rem;
	text-align: start;
}

.generator-name-input::placeholder {
	color: #bbb;
}

.generator-btns-container {
	width: 25rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.generator-randomize-btn,
.generator-download-btn {
	font-size: 1.5rem;
	width: 100%;
	border: 0.5rem solid #000;
	border-radius: 1.2rem;
	padding: 0.7rem 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	background: none;
	outline: none;
	cursor: pointer;
}

.generator-randomize-btn:hover,
.generator-download-btn:hover {
	background-color: #ffa915;
}

.randomize-img,
.download-img {
	height: 1.8rem;
	width: 1.8rem;
}

.generator-choices-container {
	width: 25rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.generator-choice-wrapper {
	display: flex;
	align-items: center;
	border: 0.5rem solid #000;
	border-radius: 1.2rem;
	padding: 0.7rem;
	justify-content: space-between;
}

.generator-choice-text {
	font-size: 2rem;
	color: #000;
}

.generator-choice-arrow {
	cursor: pointer;
	font-size: 2rem;
	font-weight: 700;
	color: #000;
}

.note-text {
	font-size: 3rem;
	margin: 3rem 0;
}

.note-thank-you {
	font-size: 6rem;
	font-weight: 500;
}

.side-quak {
	min-width: 40rem;
	width: 40%;
	margin: 5rem 0;
}

.left-quak {
	align-self: flex-start;
}

.right-quak {
	align-self: flex-end;
}

.text-parallax-container {
	width: 100%;
}

.text-parallax-wrapper {
	width: 100%;
	overflow: hidden;
	white-space: nowrap;
}

.text-parallax-row {
	display: inline-flex;
}

.scroll-right {
	animation: scroll-right 20s linear infinite;
}

.scroll-left {
	animation: scroll-left 20s linear infinite;
}

.text-parallax-row span {
	font-size: 13rem;
	margin-right: 1.2rem;
}

/* Sticky Gallery Container */
.sticky-container {
	height: 400vh;
	/* 4x viewport height untuk memberikan ruang scroll */
	position: relative;
}

.gallery-sticky-section {
	position: sticky;
	top: 0;
	height: 100vh;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.gallery-scroll-content {
	display: flex;
	gap: 3rem;
	align-items: center;
	padding: 0 2rem;
	width: max-content;
	transition: transform 0.1s ease-out;
}

#back-to-top {
	position: fixed;
	height: 4rem;
	width: 4rem;
	opacity: 0;
	bottom: 2rem;
	left: 3rem;
	z-index: 99;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	background: none;
	outline: none;
	border: none;
	transition: 0.3s ease-out;
	pointer-events: none;
}

#back-to-top.active {
	opacity: 1;
	bottom: 3rem;
	pointer-events: all;
}

.back-to-top-img {
	height: 100%;
	width: auto;
}

.gallery-img-wrapper {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
	width: 40rem;
	height: 40rem;
}

.gallery-img-border,
.gallery-img {
	/* width: 100%; */
	height: 100%;
	object-fit: cover;
}

.gallery-img-border {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 2;
	pointer-events: none;
}

footer {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 10rem 0 2rem 0;
	gap: 2rem;
}

/* CA Reveal Section */
.ca-reveal-section {
	padding: 8rem 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.progress-container {
	width: 420px;
	text-align: center;
	margin-bottom: 2rem;
}

.progress-slider {
	width: 100%;
	height: 20px;
	-webkit-appearance: none;
	appearance: none;
	background: #f0f0f0;
	outline: none;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	margin-bottom: 1rem;
}

.progress-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	background: #EA71CE;
	cursor: pointer;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: -407px 0 0 400px #EA71CE;
}

.progress-text {
	font-size: 1.5rem;
	color: #000;
	font-weight: bold;
}

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

.ca-reveal-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

/* removed gif canvas/fallback */

.frame-image {
	width: 420px;
	height: 280px;
	object-fit: contain;
}

.gif-progress {
	width: 420px;
}

.hidden {
	display: none;
}

@keyframes ca-shake {

	0%,
	100% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(-5px);
	}

	50% {
		transform: translateX(5px);
	}

	75% {
		transform: translateX(-5px);
	}
}

.shake {
	animation: ca-shake 0.7s ease-in-out;
}

.quak-love-img {
	height: 8rem;
	width: auto;
}

.footer-text {
	font-size: 4rem;
}

.copyright {
	font-size: 2rem;
}

@media screen and (max-width: 1600px) {
	html {
		font-size: 12px;
	}
}

@media screen and (max-width: 1100px) {

	.gallery-img-border,
	.gallery-img {
		width: 30rem;
		height: 30rem;
	}
}

@media screen and (max-width: 768px) {
	html {
		font-size: 8px;
	}

	.row-generator {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-between;
		align-content: flex-end;
	}

	#navbar-btn {
		display: block;
	}

	#navbar {
		flex-direction: column;
		height: 100dvh;
		left: -100%;
		padding: 4rem 0;
		overflow: hidden;
	}

	#navbar.active {
		left: 0;
	}

	.navbar-quak {
		display: block;
		margin: -10rem 0;
	}

	.navbar-header,
	.navbar-footer {
		display: block;
	}

	.navbar-links {
		flex-direction: column;
		gap: 10rem;
	}

	.social-icon {
		height: 5rem;
	}

	.landing-animation {
		margin: -4rem;
		height: 20rem;
	}

	.call-to-action-img {
		height: 6rem;
	}

	.side-quak {
		width: 50rem;
	}

	.sticky-container {
		height: 300vh;
		/* Reduce height for mobile */
	}

	.gallery-scroll-content {
		gap: 2rem;
		padding: 0 1rem;
	}

	.gallery-img-wrapper {
		width: 25rem;
		height: 25rem;
	}

	/* Mobile styling for CA box */
	.ca-box {
		margin-top: 1.5rem;
	}

	.ca-box .ca-text {
		font-size: 1.4rem;
	}

	.ca-box .ca-icon-wrapper {
		height: 1.5rem;
	}
}

@keyframes scroll-right {
	from {
		transform: translateX(-50%);
	}

	to {
		transform: translateX(0%);
	}
}

@keyframes scroll-left {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}



/* === Game Slideshow Section === */
.game-slideshow-section {
	position: relative;
	width: 100%;
	max-width: 800px;
	margin: 2rem auto;
	padding: 2rem;
	text-align: center;
}

.game-slideshow-container {
	position: relative;
	width: 100%;
	background: rgba(0, 0, 0, 0.1);
	border-radius: 20px;
	padding: 2rem;
}

.game-slides {
	position: relative;
	width: 100%;
	height: 400px;
	margin-bottom: 2rem;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 10px;
	overflow: hidden;
}

.game-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease-in-out;
	object-fit: contain;
	transform: scale(0.95);
}

.game-slide.active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
}

.slide-controls {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
}

.slide-progress-container {
	width: 100%;
}

.slide-progress-slider {
	width: 100%;
	height: 6px;
	-webkit-appearance: none;
	appearance: none;
	background: #EA71CE;
	border-radius: 3px;
	outline: none;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.slide-progress-slider:hover {
	opacity: 1;
}

.slide-progress-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	background: #8638B9;
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid white;
}

.slide-progress-slider::-moz-range-thumb {
	width: 20px;
	height: 20px;
	background: #8638B9;
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid white;
}

.slide-progress-text {
	margin-top: 1rem;
	font-size: 1.2rem;
	color: white;
	font-family: "Chalkboard", sans-serif;
}

/* === Interactive Gallery Section === */
.interactive-gallery-section {
	width: 100%;
	max-width: 1200px;
	margin: 2rem auto;
	padding: 2rem;
	text-align: center;
}

.gallery-container {
	background: transparent;
	border: none;
	border-radius: 25px;
	padding: 3rem;
	box-shadow: none;
	transition: all 0.3s ease;
}

.gallery-container:hover {
	background: transparent;
	transform: none;
	box-shadow: none;
}

.gallery-title {
	font-size: 3.5rem;
	color: inherit;
	margin-bottom: 0.25rem;
	font-family: inherit;
	text-shadow: none;
	font-weight: 500;
	letter-spacing: 0;
}

.gallery-subtitle {
	font-size: 1.5rem;
	color: inherit;
	opacity: 0.8;
	margin-bottom: 2rem;
	font-family: inherit;
	text-shadow: none;
	font-style: normal;
	font-weight: 400;
}

.gallery-image-container {
	position: relative;
	width: 100%;
	height: 500px;
	margin-bottom: 2rem;
	border-radius: 20px;
	overflow: hidden;
	background: transparent;
	box-shadow: none;
	border: none;
}

/* explode-out animation for gallery hide */
@keyframes explodeOut {
	0% {
		transform: scale(1);
		opacity: 1;
		filter: blur(0);
	}

	40% {
		transform: scale(1.06) rotate(1deg);
		opacity: 0.9;
	}

	100% {
		transform: scale(1.2);
		opacity: 0;
		filter: blur(6px);
	}
}

.explode-out {
	animation: explodeOut 0.45s ease forwards;
}

.gallery-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: all 0.4s ease-in-out;
	opacity: 0;
	visibility: hidden;
}

.gallery-controls {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
}

.gallery-slider {
	width: 100%;
	height: 15px;
	-webkit-appearance: none;
	appearance: none;
	background: linear-gradient(90deg, #FF6B35 0%, #FF8C42 25%, #FFA500 50%, #FFB347 75%, #FFD700 100%);
	border-radius: 10px;
	outline: none;
	cursor: pointer;
	margin-bottom: 1.5rem;
	box-shadow:
		0 0 0 3px #8B4513,
		0 4px 8px rgba(0, 0, 0, 0.4),
		inset 0 2px 4px rgba(255, 255, 255, 0.3);
	border: 2px solid #654321;
}

.gallery-slider:hover {
	transform: scaleY(1.05);
	box-shadow:
		0 0 0 3px #8B4513,
		0 6px 12px rgba(0, 0, 0, 0.5),
		inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.gallery-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 35px;
	height: 35px;
	background: radial-gradient(circle, #FFD700 0%, #FFA500 50%, #FF8C42 100%);
	border-radius: 50%;
	cursor: pointer;
	border: 4px solid #8B4513;
	box-shadow:
		0 4px 12px rgba(0, 0, 0, 0.5),
		inset 0 2px 4px rgba(255, 255, 255, 0.6);
	transition: all 0.3s ease;
	position: relative;
}

.gallery-slider::-webkit-slider-thumb::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	background: #654321;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.gallery-slider::-webkit-slider-thumb:hover {
	transform: scale(1.4);
	box-shadow:
		0 6px 16px rgba(0, 0, 0, 0.6),
		inset 0 2px 4px rgba(255, 255, 255, 0.7);
	background: radial-gradient(circle, #FFED4E 0%, #FFD700 50%, #FFA500 100%);
}

.gallery-slider::-moz-range-thumb {
	width: 35px;
	height: 35px;
	background: radial-gradient(circle, #FFD700 0%, #FFA500 50%, #FF8C42 100%);
	border-radius: 50%;
	cursor: pointer;
	border: 4px solid #8B4513;
	box-shadow:
		0 4px 12px rgba(0, 0, 0, 0.5),
		inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.gallery-counter {
	display: none;
}