body {
	margin: 0;
	padding: 0;
	height: 100vh;
	width: 100vw;
	user-select: none;
	overflow: hidden;
}

html {
	transition: filter 0.5s ease-in-out;
}

.section1 {
	height: 100vh;
	width: 100vw;
	position: relative;
}

.hero_loop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left;
	z-index: -1;
}

.buttons {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 10vh;
	right: 43vw;
	z-index: 100;
}

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wdth,wght@1,6..12,75,900&display=swap');

@font-face {
	font-family: 'RodinPro';
	src: url('public/rodinpro.otf') format('opentype');
}

.persona-menu {
	position: relative;
	width: 10vw;
	height: 200px;
	font-family: "Poppins", sans-serif;
	font-weight: 800;
	color: white;
	scale: 3.2;
	padding-top: 15vh;
}

.menu-text {
	width: 100%;
	height: 22px;
	position: relative;
	overflow: visible;
}

.menu-label {
	position: absolute;
	letter-spacing: -2px;
	line-height: 0.8;
	font-size: 30px;
	cursor: default;
	transition: transform 0.1s cubic-bezier(0.075, 0.82, 0.165, 1), color 0.12s ease-in-out;
	z-index: 5;
}

#m_skill {
	color: #a1eefd;
	transform: rotate(-10deg) translate(40px, 1px);
	z-index: 6;
}

#m_item {
	color: #71b2e4;
	transform: rotate(-14deg) translate(58px, 10px);
}

#m_equip {
	color: #90e1f2;
	transform: rotate(-10deg) translate(44px, 3px);
}

#m_persona {
	color: #a3f0ff;
	transform: rotate(-8deg) translate(30px, 2px);
}

#m_stats {
	color: #71b2e4;
	transform: translate(58px, -4px);
}

#m_quest {
	color: #90e1f2;
	transform: rotate(-12deg) translate(40px, 4px);
}

#m_socialLink {
	color: #9aebfc;
	transform: rotate(-6deg) translate(48px, 0);
	z-index: 6;
}

#m_calendar {
	color: #90e1f2;
	transform: rotate(-1deg) translate(65px, 0);
}

#m_system {
	color: #6bbbfc;
	transform: rotate(8deg) translate(52px, -8px);
	z-index: 6;
}

.menu-label.active {
	z-index: 10;
}

#m_skill.active {
	transform: scale(1.3) rotate(-15deg) translate(28px, 0);
}

#m_item.active {
	transform: scale(1.3) rotate(-14deg) translate(36px, 6px);
}

#m_equip.active {
	transform: scale(1.3) rotate(-20deg) translate(32px, 8px);
}

#m_persona.active {
	transform: scale(1.3) rotate(-18deg) translate(24px, 4px);
}

#m_stats.active {
	transform: scale(1.3) translate(40px, -4px);
}

#m_quest.active {
	transform: scale(1.3) rotate(-12deg) translate(36px, 4px);
}

#m_socialLink.active {
	transform: scale(1.3) rotate(-6deg) translate(28px, -2px);
}

#m_calendar.active {
	transform: scale(1.3) rotate(-4deg) translate(50px, 0);
}

#m_system.active {
	transform: scale(1.3) rotate(-2deg) translate(32px, 0);
}

[id^="t_"] {
	opacity: 0;
	transition: opacity 0.12s ease-in;
}

.menu-label.active~[id^="t_"] {
	opacity: 1;
}

.persona-menu .menu-text div {
	position: absolute;
	pointer-events: none;
}

[id$="ch"],
[id$="ch1"] {
	font-size: 30px;
	color: rgb(220, 20, 20);
	z-index: 3;
}

#t_skill,
#t_skillw {
	width: 110px;
	height: 110px;
}

#t_skill {
	background-color: rgba(38, 60, 255, 0.616);
	transform: translate(18px, -38px);
	clip-path: polygon(100% 7%, 0 63%, 93% 38%);
	z-index: 2;
}

#t_skillw {
	background-color: #fff;
	transform: translate(18px, -38px);
	clip-path: polygon(96% 6%, 16% 60%, 90% 38%);
	z-index: 1;
}

#t_skillch {
	transform: scale(1.3) rotate(-28deg) translate(4px, 30px);
}

#t_skillch1 {
	transform: scale(1.3) rotate(-28deg) translate(3px, 29px);
}

#t_item,
#t_itemw {
	width: 130px;
	height: 130px;
}

#t_item {
	background-color: rgba(38, 60, 255, 0.616);
	transform: translate(12px, -28px);
	clip-path: polygon(100% 0, 0 36%, 84% 33%);
	z-index: 2;
}

#t_itemw {
	background-color: white;
	transform: translate(12px, -28px);
	clip-path: polygon(91% 1%, 9% 35%, 81% 33%);
	z-index: 1;
}

#t_itemch {
	transform: scale(1.3) rotate(-14deg) translate(22px, 24px);
}

#t_itemch1 {
	transform: scale(1.3) rotate(-14deg) translate(22px, 24px);
}

#t_equip,
#t_equipw {
	width: 140px;
	height: 140px;
}

#t_equip {
	background-color: rgba(38, 60, 255, 0.616);
	transform: translate(12px, -36px);
	clip-path: polygon(96% 3%, 0 44%, 80% 34%);
	z-index: 2;
}

#t_equipw {
	background-color: white;
	transform: translate(12px, -36px);
	clip-path: polygon(92% 2%, 3% 46%, 80% 34%);
	z-index: 1;
}

#t_equipch,
#t_equipch1 {
	transform: scale(1.3) rotate(-20deg) translate(14px, 30px);
}

#t_persona,
#t_personaw {
	width: 180px;
	height: 180px;
}

#t_persona {
	background-color: rgba(38, 60, 255, 0.616);
	transform: translate(-4px, -49px);
	clip-path: polygon(99% 8%, 0 40%, 88% 39%);
	z-index: 2;
}

#t_personaw {
	background-color: white;
	transform: translate(-4px, -49px);
	clip-path: polygon(93% 6%, 5% 38%, 86% 34%);
	z-index: 1;
}

#t_personach {
	transform: scale(1.3) rotate(-18deg) translate(15px, 39px);
}

#t_personach1 {
	transform: scale(1.3) rotate(-18deg) translate(15px, 38px);
}

#t_stats,
#t_statsw {
	width: 140px;
	height: 140px;
}

#t_stats {
	background-color: rgba(38, 60, 255, 0.616);
	transform: translate(20px, -32px);
	clip-path: polygon(98% 11%, 0 38%, 84% 35%);
	z-index: 2;
}

#t_statsw {
	background-color: white;
	transform: translate(20px, -32px);
	clip-path: polygon(94% 10%, 4% 39%, 80% 35%);
	z-index: 1;
}

#t_statsch {
	transform: scale(1.3) translate(25px, 21px);
}

#t_statsch1 {
	transform: scale(1.3) translate(24px, 20px);
}

#t_quest,
#t_questw {
	width: 140px;
	height: 140px;
}

#t_quest {
	background-color: rgba(38, 60, 255, 0.616);
	transform: translate(20px, -40px);
	clip-path: polygon(98% 13%, 0 41%, 73% 42%);
	z-index: 2;
}

#t_questw {
	background-color: white;
	transform: translate(20px, -40px);
	clip-path: polygon(94% 11%, 3% 41%, 71% 40%);
	z-index: 1;
}

#t_questch,
#t_questch1 {
	transform: scale(1.3) rotate(-12deg) translate(15px, 31px);
}

#t_socialLink,
#t_socialLinkw {
	width: 210px;
	height: 210px;
}

#t_socialLink {
	background-color: rgba(38, 60, 255, 0.616);
	transform: translate(2px, -74px);
	clip-path: polygon(100% 18%, 0 43%, 78% 44%);
	z-index: 2;
}

#t_socialLinkw {
	background-color: white;
	transform: translate(2px, -74px);
	clip-path: polygon(100% 22%, 0 41%, 79% 46%);
	z-index: 1;
}

#t_socialLinkch,
#t_socialLinkch1 {
	transform: scale(130%) rotate(-6deg) translate(21px, 54px);
}

#t_calendar,
#t_calendarw {
	width: 200px;
	height: 200px;
}

#t_calendar {
	background-color: rgba(38, 60, 255, 0.616);
	transform: translate(2px, -74px);
	clip-path: polygon(100% 29%, 0 47%, 87% 52%);
	z-index: 2;
}

#t_calendarw {
	background-color: white;
	transform: translate(2px, -74px);
	clip-path: polygon(96% 28%, 0 47%, 84% 50%);
	z-index: 1;
}

#t_calendarch,
#t_calendarch1 {
	transform: scale(130%) rotate(-4deg) translate(21px, 57px);
}

#t_system,
#t_systemw {
	width: 180px;
	height: 180px;
}

#t_system {
	background-color: rgba(38, 60, 255, 0.616);
	transform: translate(2px, -10px);
	clip-path: polygon(100% 7%, 0 7%, 69% 32%);
	z-index: 2;
}

#t_systemw {
	background-color: white;
	transform: translate(2px, -10px);
	clip-path: polygon(97% 10%, 4% 5%, 67% 32%);
	z-index: 1;
}

#t_systemch,
#t_systemch1 {
	transform: scale(130%) rotate(8deg) translate(32px, 8px);
}

.menu-controls {
	position: absolute;
	right: 5vw;
	bottom: 5vh;
	display: flex;
	gap: 0rem;
	z-index: 200;
	pointer-events: none;
}

.menu-button {
	pointer-events: auto;
	width: clamp(45px, 5.8vw, 75px);
	height: clamp(45px, 5.8vw, 75px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: system-ui, sans-serif;
	font-size: clamp(1rem, 1.5vw, 2rem);
	user-select: none;
	padding: 0;
	overflow: hidden;
	scale: 0.9;
	transition: scale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.button-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	filter: contrast(1) saturate(1.3) brightness(13);
	transition: filter 0.2s ease;
}

.menu-button:active {
	scale: 0.7;
}

@media (max-aspect-ratio: 16/9) {
	.hero_loop {
		width: 100vw;
		height: auto;
	}
}

#video2 {
	z-index: -1000;
	position: relative;
	position: fixed;
	inset: 0;
	background: white;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: opacity 0.3s ease-out;
	cursor: pointer;
}

.overlay {
	position: fixed;
	inset: 0;
	background: white;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: opacity 0.3s ease-out;
	z-index: 1000;
	cursor: pointer;
}

.hidden {
	opacity: 0;
	pointer-events: none;
}

.content {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	transition: opacity 0.3s ease-out;
}

.overlay.clicking .content {
	opacity: 0;
}

.text {
	font-family: 'Poppins', sans-serif;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 5vw, 3rem);
	font-size: 10vw;
	font-weight: 800;
	font-style: oblique;
	color: #a1eefd;
	text-align: center;
	letter-spacing: -2px;
	z-index: 10000;
	transition: opacity 0.2s ease-out;
}

.text.clicking {
	opacity: 0;
}

.video-container {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	transform: translateX(50%);
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.overlay.clicking .video-container {
	transform: translateX(0);
}

video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 768px) {
	.video-container {
		inset: 0;
		right: auto;
		transform: none;
	}

	.overlay.clicking .video-container {
		transform: none;
	}
}

@media (orientation: portrait) {

	.hero_loop {

		position: absolute;
		top: 50%;
		left: 50%;
		width: auto;
		height: 100vh;
		object-fit: cover;
		transform: translate(-50%, -50%) rotate(90deg);
		transform-origin: center center;
		z-index: -100;
	}

	.video-container {
		position: absolute;
		top: 0;
		left: 0;
		width: auto;
		height: 100vh;
		transform: translateY(100%) rotate(90deg);
		;
		transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	}

	.overlay.clicking .video-container {
		transform: translateY(0) rotate(90deg);
	}

	.video-container video,
	.hero_loop video,
	.hero_loop {
		transform-origin: center center;

	}

	.overlay .content {
		align-items: center;
		justify-content: center;
	}

	.overlay .text {
		margin-top: 18vh;
	}

	.buttons {
		position: absolute;
		top: 30vh;
		left: 0;
		right: 0;
		display: flex;
		justify-content: center;
		z-index: 100;
	}

	.persona-menu {

		position: relative;
		width: 85vw;
		height: auto;
		padding-top: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.25rem;
		color: white;
	}

	.persona-menu .menu-text {
		width: 100%;
		height: auto;
		position: static;
		display: flex;
		justify-content: center;
		overflow: visible;
	}

	.persona-menu .menu-label {
		position: relative;
		letter-spacing: -1px;
		font-size: clamp(30px, 10vw, 500px);
		transform: none;
	}

	.menu-controls {
		position: absolute;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		bottom: 6vh;
		display: flex;
		gap: 0.5rem;
		z-index: 200;
		pointer-events: auto;
	}

	.menu-button {
		width: 20vw;
		height: 20vw;
	}
}

#nowplaying {
	color:#FFF;
	font-family: 'Nunito Sans', sans-serif;
	font-size: clamp(12px, 2vw, 30px);
	font-style:italic;
	display: none;
	position: fixed;
	top: 90%;
	left: 50%;
	transform: translate(-50%, -80%);
	width: auto;
	height: auto;
	z-index: 1000;
	pointer-events: none;
	user-select: none;
	opacity: 1;
	transition: opacity 2s ease-out, top 2s ease-out;
	white-space: nowrap
}