/* Latin and Numbers */
@font-face {
  font-family: "YNC Hybrid";
  src: url("https://global.ecdn.ltd/ync/fonts/hybrid_en_fr/barlow/compressed/Barlow-Medium.woff2") format("woff2");
  font-weight: 400;
  unicode-range: U+0000-024F;
}

@font-face {
  font-family: "YNC Hybrid";
  src: url("https://global.ecdn.ltd/ync/fonts/hybrid_en_fr/barlow/compressed/Barlow-SemiBold.woff2") format("woff2");
  font-weight: 600;
  unicode-range: U+0000-024F;
}

@font-face {
  font-family: "YNC Hybrid";
  src: url("https://global.ecdn.ltd/ync/fonts/hybrid_en_fr/barlow/compressed/Barlow-Bold.woff2") format("woff2");
  font-weight: 700;
  unicode-range: U+0000-024F;
}

@font-face
{
	font-family: "FZXiaoPingFang";
	src: url("https://global.ecdn.ltd/ync/fonts/zh/hans/subsetted/FZXiaoBiaoSong-B05S-ss-landing_page.woff2") format("woff2");
}

@font-face
{
	font-family: "Noto Serif JP Bold";
	src: url("https://global.ecdn.ltd/ync/fonts/ja/noto_serif_jp/subsetted/NotoSerifJP-Bold-ss-landing_page.woff2") format("woff2");
	font-style: normal;
}

[lang="en"],
[lang="fr"]
{
	font-family: "YNC Hybrid", sans-serif;
	font-weight: 600;
}

[lang="zh-Hans"]
{
    font-family: "FZXiaoPingFang";
}

[lang="ja"]
{
	font-family: "Noto Serif JP Bold";
}

body
{
	background: #FFFFFF;
	font-family: "YNC Hybrid", sans-serif;
	font-weight: 400;
	overflow-x: hidden;
	height: 100%;
	color: #333;
}

html, body
{
	margin: 0;
	padding: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.lang_landing_container
{
	flex: 1; /* Footer will not float even with sufficient contents */
	display: flex;
	flex-direction: row;
	height: 100vh;
	overflow: hidden;
}

.ll_bg
{
	position: relative;
	height: 100vh;
	width: 60%;
	overflow: hidden;
}

.ll_bg img
{
	width: 100%;
	height: 100vh;
	object-fit: cover;
	display: block;
}

/* Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path */
.ll_bg::after
{
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background-color: white;
	clip-path: polygon(100% 0, 100% 100%, 70% 100%);
	pointer-events: none;
	z-index: 2;
}

.ll_main
{
	width: 40%;
	background-color: white;
	position: relative;
	z-index: 10;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 2rem;
}

.lang_selector_area
{
	width: 60%;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1.5rem;
	padding-right: 10rem;
}

.lang_selector_title
{
	font-size: 2.5rem;
	font-weight: bold;
	color: #000;
	text-align: right;
	margin-bottom: 0.5rem;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.8rem;
}

.lang_rotator
{
	position: relative;
	display: inline-block;
	min-width: 12rem;
	text-align: right;
}

.lang_rotator span
{
	position: absolute;
	right: 0;
	opacity: 0;
	white-space: nowrap;
}

/* Animation */
.lang_rotator span:nth-child(1)
{ animation: langFade 16s infinite; }

.lang_rotator span:nth-child(2)
{ animation: langFade 16s infinite 4s; }

.lang_rotator span:nth-child(3)
{ animation: langFade 16s infinite 8s; }

.lang_rotator span:nth-child(4)
{ animation: langFade 16s infinite 12s; }

@keyframes langFade
{
	0%
	{
		opacity: 0;
		transform: translateY(-50%) translateY(6px);
	}

	2%
	{
		opacity: 1;
		transform: translateY(-50%);
	}

	23%
	{
		opacity: 1;
		transform: translateY(-50%);
	}

	25%
	{
		opacity: 0;
		transform: translateY(-50%) translateY(-6px);
	}

	100%
	{
		opacity: 0;
	}
}

.ll_lang_list
{
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
}

.ll_lang_item
{
	position: relative;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 1rem;
	cursor: pointer;
	padding: 0.8rem 0; /* Assign Height for Hover Area */
	z-index: 1;

	/* Hover Effect */
	transition: transform 0.1s ease;
	transform-origin: right center;
}

.ll_lang_item::before
{
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	right: -22rem; /* Extend to Right */
	left: 1%; /* Left Side Start Point */
	background: #609CD4;
	transform: skewX(-20deg);
	transform-origin: right;
	opacity: 0;
	transition: opacity 0.1s ease;
	z-index: -1;
}

.ll_lang_item:hover
{
	transform: scale(1.2);
}

.ll_lang_item:hover::before
{
	opacity: 1;
}

.ll_lang_text
{
	font-size: 1.2rem;
	color: #333;
	text-align: right;
	min-width: 6rem;
	transition: color 0.1s ease;
}

.ll_lang_item:hover .ll_lang_text
{
	color: #FFF;
	transform: skewX(-5deg);
}

.ll_lang_item img
{
	width: 2rem;
	height: 1.35rem;
	display: block;
	border-radius: 2px;
    object-fit: cover;
	position: relative;
    border: 1px solid black;
	z-index: 2;
}

#text_theme_color
{
	display: inline;
	color: #609CD4;
}

.ll_cr
{
    position: fixed;
	right: 1.2rem;
	bottom: 1rem;
	font-size: 0.85rem;
	color: rgba(0,0,0,0.6);
	z-index: 99;
}

@media (max-width: 1380px)
{
	.lang_landing_container
	{
		flex-direction: column;
		height: calc(100vh - 5.8rem);
		position: relative;
	}

	.ll_bg
	{
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 0;
	}

	.ll_bg img
	{
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}

	.ll_bg::after
	{
		display: none;
	}

	.ll_main
	{
		width: 100%;
		height: 100vh;
		z-index: 1;
		background-color: rgba(255, 255, 255, 0.85);
		justify-content: center;
		margin-bottom: 0;
	}
	
	.lang_selector_area
	{
		width: 100%;
		height: auto;
		margin-right: 0;
		padding: 0 9rem;
	}

    .ll_lang_item::before
    {
        left: 30%; /* Left Side Start Point */
    }
}

@media (max-width: 768px)
{
    .lang_selector_area
    {
        margin-top: 3rem;
        padding: 0 2rem;
    }

    .ll_lang_item::before
    {
        left: 15%; /* Left Side Start Point */
    }
}