/* Character Selection Styles */

/* Background */
.mu-cha-sec-bg-character {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 25%, #4a2c1a 50%, #3d2317 75%, #1a1a1a 100%);
    background-attachment: fixed;
}

/* Transitions */
.mu-cha-sec-fade-transition {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.mu-cha-sec-fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Animations */
@keyframes fadeInSlideUp {
    0% { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInSlideLeft {
    0% { 
        opacity: 0; 
        transform: translateX(30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes fadeInSlideRight {
    0% { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.mu-cha-sec-animate-fade-in-up {
    animation: fadeInSlideUp 0.6s ease-out;
}

.mu-cha-sec-animate-fade-in-left {
    animation: fadeInSlideLeft 0.6s ease-out;
}

.mu-cha-sec-animate-fade-in-right {
    animation: fadeInSlideRight 0.6s ease-out;
}

/* Layout */
.mu-cha-sec-body {
    min-height: 100vh;
    /* background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 25%, #4a2c1a 50%, #3d2317 75%, #1a1a1a 100%); */
    /* background-attachment: fixed; */
}

.mu-cha-sec-main-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-image: url(../image/bg-charec.jpg);
    background-size: cover;
    background-position: center top;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .mu-cha-sec-main-section {
        max-height: 840px;
        min-height: 840px;
    }
}

.mu-cha-sec-container {
    max-width: 80rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .mu-cha-sec-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Language Selector */
.mu-cha-sec-language-selector {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
}

.mu-cha-sec-language-select {
    background-color: rgb(0 0 0 / 0.7);
    color: white;
    border: 1px solid rgb(251 191 36);
    border-radius: 0.25rem;
    padding: 0.25rem 0.75rem;
}

/* Character Info */
.mu-cha-sec-character-info {
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.mu-cha-sec-frame-image {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.mu-cha-sec-character-type {
    /* color: rgb(251 191 36); */
    /* font-size: 1.25rem; */
    /* font-weight: bold; */
    /* text-align: center; */
    color: #FFF8DB;
    text-align: center;
    /* font-family: Change; */
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    /* line-height: normal; */
}

/* Mobile Character Image */
.mu-cha-sec-mobile-character {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

@media (min-width: 1024px) {
    .mu-cha-sec-mobile-character {
        display: none;
    }
}

.mu-cha-sec-mobile-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
}

/* Play Button */
.mu-cha-sec-play-button-container {
    display: flex;
    justify-content: center;
    /* margin-top: 1rem; */
}

.mu-cha-sec-play-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: rgb(220 38 38);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    text-decoration: none;
}

.mu-cha-sec-play-button:hover {
    background-color: rgb(185 28 28);
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.mu-cha-sec-play-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

/* Description */
.mu-cha-sec-description {
    /* color: rgb(229 231 235); */
    /* font-size: 1.125rem; */
    /* line-height: 1.75; */
    /* text-align: center; */
    color: #FFF8DB;
    text-align: center;
    /* font-family: Change; */
    font-size: 1.2rem;
    font-style: normal;
    font-weight: 400;
    /* line-height: normal; */
}

/* Character Selection Buttons */
.mu-cha-sec-character-buttons-container {
    /* overflow-x: auto; */
    /* overflow-y: hidden; */
}

.mu-cha-sec-character-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    min-width: max-content;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .mu-cha-sec-character-buttons {
        gap: 1rem;
    }
}

.mu-cha-sec-character-btn {
    transition: all 0.3s ease;
    transform: scale(1);
    /* border-radius: 0.25rem; */
    /* width: 3rem; */
    /* height: 3rem; */
    /* overflow: hidden; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* opacity: 0.7; */
    flex-shrink: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .mu-cha-sec-character-btn {
        /* width: 3.5rem; */
        /* height: 3.5rem; */
    }
}

@media (min-width: 768px) {
    .mu-cha-sec-character-btn {
        /* width: 6rem; */
        /* height: 8rem; */
    }
}

.mu-cha-sec-character-btn:hover {
    transform: scale(1.1);
}

.mu-cha-sec-character-btn-active {
    transform: scale(1.25);
    opacity: 1;
}

.mu-cha-sec-character-btn-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

/* Character Image Container */
.mu-cha-sec-character-image-container {
    display: none;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1024px) {
    .mu-cha-sec-character-image-container {
        display: flex;
    }
}

.mu-cha-sec-character-image {
    /* max-width: 100%; */
    /* height: auto; */
    /* max-height: 600px; */
    /* object-fit: contain; */
    filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
    position: absolute;
    top: -18%;
    left: -40%;
    width: 195%;
    max-width: none;
}

/* Utility Classes */
.mu-cha-sec-min-h-screen {
    min-height: 100vh;
}

.mu-cha-sec-flex {
    display: flex;
}

.mu-cha-sec-items-center {
    align-items: center;
}

.mu-cha-sec-justify-center {
    justify-content: center;
}

.mu-cha-sec-text-center {
    text-align: center;
}

.mu-cha-sec-text-white {
    color: white;
}

.mu-cha-sec-space-y-8 > * + * {
    margin-top: 2rem;
}

.mu-cha-sec-p-8 {
    padding: 2rem;
}

.mu-cha-sec-w-full {
    width: 100%;
}

.mu-cha-sec-h-auto {
    height: auto;
}

.mu-cha-sec-max-w-full {
    max-width: 100%;
}

.mu-cha-sec-mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mu-cha-sec-mt-4 {
    margin-top: 1rem;
}

.mu-cha-sec-mt-6 {
    margin-top: 1.5rem;
}

.mu-cha-sec-mr-2 {
    margin-right: 0.5rem;
}

.mu-cha-sec-px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.mu-cha-sec-py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.mu-cha-sec-px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.mu-cha-sec-py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.mu-cha-sec-rounded {
    border-radius: 0.25rem;
}

.mu-cha-sec-rounded-lg {
    border-radius: 0.5rem;
}

.mu-cha-sec-border {
    border-width: 1px;
}

.mu-cha-sec-border-yellow-400 {
    border-color: rgb(251 191 36);
}

.mu-cha-sec-bg-black {
    background-color: rgb(0 0 0);
}

.mu-cha-sec-bg-opacity-70 {
    background-color: rgb(0 0 0 / 0.7);
}

.mu-cha-sec-bg-red-600 {
    background-color: rgb(220 38 38);
}

.mu-cha-sec-text-yellow-400 {
    color: rgb(251 191 36);
}

.mu-cha-sec-text-gray-200 {
    color: rgb(229 231 235);
}

.mu-cha-sec-text-xl {
    font-size: 1.25rem;
}

.mu-cha-sec-text-lg {
    font-size: 1.125rem;
}

.mu-cha-sec-font-bold {
    font-weight: bold;
}

.mu-cha-sec-font-semibold {
    font-weight: 600;
}

.mu-cha-sec-leading-relaxed {
    line-height: 1.75;
}

.mu-cha-sec-fixed {
    position: fixed;
}

.mu-cha-sec-top-4 {
    top: 1rem;
}

.mu-cha-sec-right-4 {
    right: 1rem;
}

.mu-cha-sec-z-50 {
    z-index: 50;
}

.mu-cha-sec-inline-flex {
    display: inline-flex;
}

.mu-cha-sec-transform {
    transform: translate(0, 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

.mu-cha-sec-transition-all {
    transition-property: all;
}

.mu-cha-sec-duration-300 {
    transition-duration: 0.3s;
}

.mu-cha-sec-shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.mu-cha-sec-overflow-hidden {
    overflow: hidden;
}

.mu-cha-sec-object-contain {
    object-fit: contain;
}

.mu-cha-sec-drop-shadow-2xl {
    filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
}

.mu-cha-sec-grid {
    display: grid;
}

.mu-cha-sec-grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.mu-cha-sec-gap-12 {
    gap: 3rem;
}

.mu-cha-sec-max-w-7xl {
    max-width: 80rem;
}

.mu-cha-sec-overflow-x-auto {
    overflow-x: auto;
}

.mu-cha-sec-overflow-y-hidden {
    overflow-y: hidden;
}

.mu-cha-sec-space-x-2 > * + * {
    margin-left: 0.5rem;
}

.mu-cha-sec-min-w-max {
    min-width: max-content;
}

.mu-cha-sec-px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.mu-cha-sec-w-12 {
    width: 3rem;
}

.mu-cha-sec-h-12 {
    height: 3rem;
}

.mu-cha-sec-flex-shrink-0 {
    flex-shrink: 0;
}

.mu-cha-sec-opacity-70 {
    opacity: 0.7;
}

.mu-cha-sec-opacity-100 {
    opacity: 1;
}

.mu-cha-sec-scale-110 {
    transform: scale(1.1);
}

.mu-cha-sec-scale-125 {
    transform: scale(1.25);
}

.mu-cha-sec-scale-105 {
    transform: scale(1.05);
}

.mu-cha-sec-w-5 {
    width: 1.25rem;
}

.mu-cha-sec-h-5 {
    height: 1.25rem;
}

.mu-cha-sec-hidden {
    display: none;
}

.mu-cha-sec-max-h-[300px] {
    max-height: 300px;
}

.mu-cha-sec-max-h-[600px] {
    max-height: 600px;
}

.mu-cha-sec-max-h-[840px] {
    max-height: 840px;
}

.mu-cha-sec-min-h-[840px] {
    min-height: 840px;
}

/* Responsive Classes */
@media (min-width: 640px) {
    .sm\:mu-cha-sec-w-14 {
        width: 3.5rem;
    }
    
    .sm\:mu-cha-sec-h-14 {
        height: 3.5rem;
    }
}

@media (min-width: 768px) {
    .md\:mu-cha-sec-space-x-4 > * + * {
        margin-left: 1rem;
    }
    
    .md\:mu-cha-sec-w-16 {
        width: 4rem;
    }
    
    .md\:mu-cha-sec-h-16 {
        height: 4rem;
    }
}

@media (min-width: 1024px) {
    .lg\:mu-cha-sec-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .lg\:mu-cha-sec-hidden {
        display: none;
    }
    
    .lg\:mu-cha-sec-flex {
        display: flex;
    }
    
    .lg\:mu-cha-sec-max-h-[840px] {
        max-height: 840px;
    }
    
    .lg\:mu-cha-sec-min-h-[840px] {
        min-height: 840px;
    }
}

/* Hover Effects */
.mu-cha-sec-play-button:hover {
    background-color: rgb(185 28 28);
}

.mu-cha-sec-character-btn:hover {
    transform: scale(1.1);
}

.mu-cha-sec-play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Font Definitions */
@font-face {
    font-family: 'Sukhumvit Set';
    src: url('../font/SukhumvitSet/SukhumvitSet-Bold.woff2') format('woff2'),
url('../font/SukhumvitSet/SukhumvitSet-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sukhumvit Set';
    src: url('../font/SukhumvitSet/SukhumvitSet-Light.woff2') format('woff2'),
url('../font/SukhumvitSet/SukhumvitSet-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sukhumvit Set';
    src: url('../font/SukhumvitSet/SukhumvitSet-SemiBold.woff2') format('woff2'),
url('../font/SukhumvitSet/SukhumvitSet-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sukhumvit Set';
    src: url('../font/SukhumvitSet/SukhumvitSet-Medium.woff2') format('woff2'),
url('../font/SukhumvitSet/SukhumvitSet-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sukhumvit Set';
    src: url('../font/SukhumvitSet/SukhumvitSet-Thin.woff2') format('woff2'),
url('../font/SukhumvitSet/SukhumvitSet-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Change';
    src: url('../font/Change/Change-Regular.woff2') format('woff2'),
url('../font/Change/Change-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Change';
    src: url('../font/Change/Change-MediumItalic.woff2') format('woff2'),
url('../font/Change/Change-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Change';
    src: url('../font/Change/Change-RegularItalic.woff2') format('woff2'),
url('../font/Change/Change-RegularItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Change';
    src: url('../font/Change/Change-Medium.woff2') format('woff2'),
url('../font/Change/Change-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Change';
    src: url('../font/Change/Change-BoldItalic.woff2') format('woff2'),
url('../font/Change/Change-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Change';
    src: url('../font/Change/Change-SemiBold.woff2') format('woff2'),
url('../font/Change/Change-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Change';
    src: url('../font/Change/Change-SemiBoldItalic.woff2') format('woff2'),
url('../font/Change/Change-SemiBoldItalic.woff') format('woff');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Change';
    src: url('../font/Change/Change-Bold.woff2') format('woff2'),
url('../font/Change/Change-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TsangerYuYangT W05';
    src: url('../font/TsangerYuYangT/TsangerYuYangT-W05.woff2') format('woff2'),
url('../font/TsangerYuYangT/TsangerYuYangT-W05.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Language-specific Font Settings */
html[lang="th"] * {
    font-family: 'Sukhumvit Set', sans-serif;
}   

html[lang="en"] * {
    font-family: 'Change', sans-serif;
}   

html[lang="id"] * {
    font-family: 'Change', sans-serif;
}   

html[lang="zh"] * {
    font-family: 'TsangerYuYangT W05', sans-serif;
}

       [lang="th-th"] body * {
                font-family: "Sukhumvit Set"
            }

            [lang="en-sea"] body * {
                font-family: 'Change';
                text-transform: uppercase;
                font-variant-numeric: lining-nums;
                line-height: 1.8
            }

            [lang="id-id"] body * {
                font-family: 'Change';
                text-transform: uppercase;
                font-variant-numeric: lining-nums;
                line-height: 1.8
            }

            [lang="zh-cn"] body * {
                font-family: 'TsangerYuYangT W05'
            }
