@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Thasadith:ital,wght@0,400;0,700;1,400;1,700&family=Viaoda+Libre&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root{
    --navbar-h: 67.5px;
}
body{
    margin: 0;
    scroll-behavior: smooth;
    overflow-y: auto;
}
div{
    box-sizing: border-box;
}

.container-fluid{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.header-page-name{
    box-sizing: border-box;
    padding: 0 15px;
    height: var(--navbar-h);
    background-color: hsl(39.11deg 70.68% 62.55%);
    font-size: 1.5rem;
    color: white;
    font-family: "Comfortaa", sans-serif;
    font-optical-sizing: auto;
    font-weight: 1000;
    font-style: normal;
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: height .25s;
    z-index: 9999;
}
.header-page-name{
    background-color: hsl(0, 0%, 0%);
}
.header-page-name.shrink{
    --navbar-h: 50px;
    background-color: hsla(0, 0%, 0%, 0.87);
}
.navbar{
    font-size: .85rem;
    /* z-index: 100; */
}
.navbar, .navbar ul{
    display: flex;
    flex-direction: row;
    margin: 0;
    column-gap: 10px;
    align-items: center;
}
.navbar li{
    list-style: none;
}
.navbar li:hover{
    color: #7c7c7c;
}
a{
    text-decoration: none;
    color: inherit;
}
.menu-bar-btn{
    display: none;
}
main>section{
    background-color: #333;
}
main>section:nth-child(even){
    background-color: #ffeb99;
    background-color: #fff;
}
#home{
    height: calc(100vh);
}
#member, #gallery, #card{
    padding: 15px calc((100% - 1200px) / 2);
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - 50px);
}
#card{
    background-color: #232020;
}
#member{
    padding: 15px calc((100% - 1050px) / 2);
}

.cover-header{
    background-color: #333;
    width: 100%;
    display: flex;
    flex: 1;
    background-image: url(../image/cover2.png);
    background-repeat: no-repeat;
    background-position-y: 10px;
    background-position-x: right;
    background-size: cover;
}
.member-type-wrapper{
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 10px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.member-type-wrapper button{
    cursor: pointer;
    width: calc(100% / 4 - 8px);
    background-color: #c68009;
    border-radius: 12px;
    padding: 20px 5px;
    border: none;
    color: white;
    font-size: 1rem;
    word-break: keep-all;
    overflow-wrap: normal;
    font-family: "Prompt", sans-serif;
}
.member-type-wrapper button:hover{
    background-color: #9a670e;
}
.member-info-wrapper{
    display: flex;
}
.chibi-wrapper{
    display: none;
    position: relative;
    width: 120px;
    height: 120px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.member-list[data-class-select='y3'] .chibi-wrapper[data-class='y3'],
.member-list[data-class-select='y2'] .chibi-wrapper[data-class='y2'],
.member-list[data-class-select='y1'] .chibi-wrapper[data-class='y1'],
.member-list[data-class-select='sensei'] .chibi-wrapper[data-class='sensei']{
    display: flex;
}
.chibi-wrapper:hover{
    transform: scale(1.1);
}
.chibi-wrapper img{
    position: absolute;
}
.head-image.bg{
    width: 120px;
    user-select: none;       /* ปิดการเลือกข้อความ */
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;  
}
.head-image.head{
    width: 113px;
    user-select: none;       /* ปิดการเลือกข้อความ */
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;  
}
.member-detail-wrapper{
    display: flex;
    padding-left: 25px;
    flex: 1;
    column-gap: 8px;
}
.member-detail-main-img img{
    width: 550px;
}
.member-detail-info{
    flex: 1;
}
.member-detail-info .surname, .member-detail-info .firstname{
    font-family: "Noto Serif JP", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 6.275rem;
    color: #c68009;
}
.member-detail-info .year, .member-detail-info .duty, .member-detail-info .name{
  font-family: "Prompt", sans-serif;
  font-weight: 500;
  font-style: normal;
}
.member-detail-info .year, .member-detail-info .duty{
    font-weight: 600;
}
.member-detail-info .name{
    font-size: 2.1rem;
}
.member-detail-info .year, .member-detail-info .duty{
    font-size: 1.25rem;
}
.logo-wrapper{
    display: flex;
    column-gap: 16px;
    margin-top: 16px;
}
.contact-logo{
    width: 35px;
    height: 35px;
    background-color: #c68009;
    padding: 10px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
}
.contact-logo img{
    width: 100%;
    filter: contrast(1) invert(1);
}
.contact-logo:hover{
    transform: scale(1.1);
}

.section-title{
    display: flex;
    flex-direction: column;
    font-size: 2.275rem;
    /* margin-top: 30px; */
    text-align: center;
    font-family: "Noto Sans__subset", "Noto Sans", sans-serif;
    margin-bottom: 15px;

    color: rgb(218,165,32); /*if no support for background-clip*/
    background: -webkit-linear-gradient(transparent, transparent), -webkit-linear-gradient(top, rgba(218,165,32,1) 0%, rgba(213,173,109,1) 26%, rgba(226,186,120,1) 35%, rgba(163,126,67,1) 45%, rgba(212,175,55,1) 61%, rgba(213,173,109,1) 100%);
    background: -o-linear-gradient(transparent, transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 0px 20px rgba(212,175,55,.5);
}
.section-title .thai{
    font-family: "Thasadith", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 4rem;
    letter-spacing: 4px;
}
.section-title .eng{
    font-family: "Viaoda Libre", serif;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 4px;
}
#gallery-section{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
#gallery-section img{
    width: 100%;
    height: 200px;     
    object-fit: cover;
    object-position: top center;
    border-radius: 8px;
    border: 1px solid black;
    cursor: pointer;
    transition: transform .25s;
}
#gallery-section img:hover{
    transform: scale(1.05);
}
footer{
    width: 100%;
    height: 120px;
    background-color: #000000;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal{
    background-color: rgba(0, 0, 0, 0.33);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000000;
    overscroll-behavior: contain;
    touch-action: none;
}
.modal.hide{
    display: none;
}
.modal-body{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}
.modal-body img{
    height: 80%;
    max-height: 435px;
    width: auto;
    cursor: default;
    user-select: none;       /* ปิดการเลือกข้อความ */
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;   
}
.arrow-btn-wrapper{
    padding: 0 10px;
}
.arrow-btn{
    border: none;
    background-color: black;
    border-radius: 100%;
    /* margin: 0 20px; */
    /* aspect-ratio: 1; */
    width: fit-content;
    height: fit-content;
    width: 40px;
    height: 40px;
    text-align: center;
    cursor: pointer;
}
.arrow-btn i{
    color: white;
    font-size: 30px;
}
.arrow-btn:hover{
    background-color: rgb(157, 157, 157);
}
.arrow-btn.hide{
    visibility: collapse;
}
.close-btn-wrapper{
    position: absolute;
    top: 20px;
    right: 30px;
}
.close-btn{
    background-color: transparent;
    border: none;
    cursor: pointer;
}
.close-btn:hover i{
    color: rgb(225, 225, 225);
}
.close-btn i{
    color: white;
    font-size: 25px;
}

#gachaModal{
    background-color: rgba(0, 0, 0, 0.852);
}
#gachaModal img{
    animation: rotate 1.25s 1 normal linear;
}
.gacha-bg-wrapper{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000000000000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gacha-bg{
    background-image: url(../image/rays2.png);
    /* width: 100%; */
    height: 100%;
    aspect-ratio: 1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    animation: rotate2 6s infinite normal linear;
    animation-delay: 1.3s;
    transform: scale(0);
    opacity: .75;
}
.member-btn-wrapper button{
    display: none;
}
#gachaModal{
    z-index: 1000000001;
}
#gachaModal .modal-body{
    z-index: 100000000000001;
}
.download-wrapper{
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: white;
} 
#card .section-body{
    padding-top: 25px;
    display: flex;
    flex-direction: column;
}
.card{
    width: 3in;
    height: 4.25in;
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    border-radius: 7.5px;
    box-shadow: 3px 5px 14px 0px #5a5a5a;
    background-image: url(../image/gacha/Spoil.GIF);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card:hover{
    animation: shake 2s infinite ease-in-out alternate;
}
.card span{
    font-size: 13rem;
    font-family: "Helvetica", sans-serif;
    font-weight: 700;
}
.draw-btn{
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    /* width: 200px; */
    font-weight: 500;
    background-color: transparent;
    letter-spacing: 5px;
    color: rgba(223,190,106,0.7);
    padding: 20px 80px;
    border: 1px solid rgba(223,190,106,0.7);
    font-family: "Helvetica", sans-serif;
    transition: all 0.7s ease-in-out;
    cursor: pointer;
}
.draw-btn:hover{
    background: linear-gradient(270deg, rgba(223,190,106,0.8), rgba(146,111,52,0.8), rgba(34, 34, 34, 0));
    background-position: 1% 50%;
    background-size: 300;
}
#amiation-scene[data-bg-krapib="true"]{
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 1000000000;
    animation: bg .5s 3 .5s;
}

.rarity {
    font-weight: 700;
    font-size: 1rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: system-ui, sans-serif;
    min-width: 100px;
    text-align: center;
    position: absolute;
    top: 70px;
    top: calc(20% / 2 - 15px);
}
.r {
    background: linear-gradient(180deg, #7ed957, #3fa34d);
    color: #0f2d18;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,.6),
        0 2px 6px rgba(63,163,77,.5);
}
.sr {
    background: linear-gradient(180deg, #4facfe, #005bea);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
    box-shadow:
        0 0 8px rgba(0,91,234,.7),
        inset 0 1px 2px rgba(255,255,255,.6);
}
.ssr {
    background: linear-gradient(
        135deg,
        #ffdd55,
        #ff9f00,
        #ffdd55
    );
    color: #4a2c00;
    text-shadow:
        0 1px 0 #fff,
        0 0 6px rgba(255,180,0,.9);
    box-shadow:
        0 0 12px rgba(255,180,0,.9),
        0 0 25px rgba(255,180,0,.6);
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(5deg); }
    20% { transform: rotate(0deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(0deg); }
    50% { transform: rotate(7.5deg); }
    60% { transform: rotate(0deg); }
    70% { transform: rotate(-6deg); }
    80% { transform: rotate(0deg);}
    90% { transform: rotate(11.2deg); }
    100% { transform: rotate(0deg);}
}
@keyframes bg {
    100% {background-color: rgb(60, 60, 60);}
}
@keyframes rotate {
    0% {transform: rotate(0) scale(0);}
    100% {transform: rotate(1080deg) scale(1);}
}
@keyframes rotate2 {
    0% {transform: scale(1.2) rotate(0)}
    100% {transform: scale(1.2) rotate(360deg)}
}
@media (max-width: 1200px) {
    #member, #gallery, #card{
        padding: 15px 20px;
    }
    .member-detail-main-img img {
        width: 450px;
    }
    .member-detail-info, .member-detail-wrapper{
        flex: none;
    }
    .member-info-wrapper {
        justify-content: center;
    }
}
@media (max-width: 992px) {
    .modal-body img {
        height: 80%;
    }
    .member-detail-wrapper{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .fullname{
        display: flex;
        column-gap: 12px;
    }
    .member-detail-info{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
@media (min-width: 768px){
    .gacha-bg{
        background-image: url(../image/rays2.png);
        height: 135%;
    }
    .modal-body img{
        max-height: 80%;
    }
}
@media (max-width: 768px)  {
    .modal-body img {
        height: 55%;
    }
    .rarity{
        top: calc(45% / 2 - 15px);
    }
    .cover-header{
        background-image: url(../image/cover4.png);
        background-position: center;
        background-size: cover;
    }
    .member-detail-info .surname, .member-detail-info .firstname{
        font-size: 5rem ;
    }
    .member-info-wrapper{
        flex-direction: column;
        width: 100%;
    }
    .chibi-wrapper{
        width: 100px;
        height: 100px;

    }
    .head-image.bg{
        width: 100px;
    }
    .head-image.head {
        width: 93px;
    }
    .member-head-wrapper{
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;
    }
    .member-type-wrapper {
        flex-wrap: wrap;
        row-gap: 8px;
    }
    .member-type-wrapper button {
        width: calc(100% / 2 - 8px);
    }
    .member-head-wrapper{
        display: none;
    }
    
    .member-btn-wrapper{
        display: flex;
        justify-content: flex-end;
    }
    .member-btn-wrapper button{
        display: flex;
        /* position: absolute; */
        background-color: transparent;
        border: none;
        cursor: pointer;
    }
    .member-btn-wrapper button i{
        font-size: 60px;
        color : #9a670e;
    }
    .member-detail-main-img img {
        width: 350px;
    }
}
@media (max-width: 576px)  {
    .arrow-btn-wrapper{
        display: none;
    }
    .modal{
        background-color: rgb(0, 0, 0);
    }
    .modal-body img {
        height: auto;
        width: 100%;
    }
    .close-btn-wrapper{
        top: 10px;
        right: 15px;
    }
    #gachaModal img{
        height: auto;
        width: 75%;
        max-height: unset;
    }
    .rarity{
        left: calc((100% - 75%) / 2 - 7.5px);
        min-width: 75px;
    }
    .member-detail-info .surname, .member-detail-info .firstname {
        font-size: 3rem;
    }
    .section-title .thai{
        font-size: 3.25rem;
    }
    .header-page-name {
        font-size: 1.2rem;
    }
}
/* Mobile เล็ก */
@media (max-width: 375px) {

}

