@import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

/* *{
    border: 1px solid black;
} */
:root {
    background-color: rgb(126, 22, 22);
    background: linear-gradient(0deg, rgba(126, 22, 22, 1) 0%,rgb(59, 0, 0) 100%);
}
html, body, main, :root {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

#logo0 {
    width: 100%;
    position: relative;
}
/* #logo1 {
    width: 45%;
    position: absolute;
    left: 28%;
    bottom: 66%;
    filter: drop-shadow(2px 2px 1px rgb(0 0 0 / 0));
} */
#flicker {
    width: 170%;
    height: 70%;
    position: absolute;
    left: -33%;
    bottom: 25%;
    background: radial-gradient(ellipse at center, rgba(255, 190, 59, 0.7), transparent 70%);
    animation: flickerAnim 1s ease-in-out infinite;
}
@keyframes flickerAnim {
    0%, 100% {
        background: radial-gradient(ellipse at center, rgba(255, 190, 59, 0.8), transparent 55%);
    }
    25%, 75% {
        background: radial-gradient(ellipse at center, rgba(255, 190, 59, 0.8), transparent 60%);
    }
    50%, 80%, 10% {
        background: radial-gradient(ellipse at center, rgba(255, 190, 59, 0.8), transparent 65%);
    }
}
#ThaiName {
    width: 40%;
}
#ChineseName {
    width: 5%;
    height: fit-content;
    margin: 0 -1.5% 3% 0;
    padding: 1px 1px 1px 5px;
    background: linear-gradient(90deg, rgba(162, 125, 65, 0) 0%,rgba(162, 125, 65, 1) 20%);
    filter: drop-shadow(2px 2px 1px rgb(0 0 0 / 0.4));
}
#logoDiv {
    position: relative;
    display: flex;
    width: 4.5%;
    margin: 0 0.5% 3% 0;
    filter: drop-shadow(2px 2px 1px rgb(0 0 0 / 0.4));
}
#logoPack {
    display: flex;
    align-items: end;
    justify-content: center;
}
#infoDiv {
    z-index: 5;
    margin: auto;
    max-width: 120vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
}
.textInfo {
    font-family: 'Bai Jamjuree', sans-serif;
    width: 100%;
    bottom: 10vh;
    left: 0;
    text-align: center;
    color: white;
    margin: 0;
    position: absolute;
}
#p1 {
    animation: switchText 15s ease-in-out infinite;
}
#p2 {
    animation: switchText2 15s ease-in-out infinite;
}

@keyframes switchText {
    0%, 23%, 77%, 100% {
        color: transparent;
        text-shadow: rgba(0, 0, 0, 0) 1px 1px 5px, rgba(0, 0, 0, 0) 1px 1px 5px, rgba(0, 0, 0, 0) 1px 1px 5px, rgba(0, 0, 0, 0) 1px 1px 5px;
    }
    27%, 73% {
        color: white;
        text-shadow: rgba(0, 0, 0, 1) 1px 1px 5px, rgba(0, 0, 0, 1) 1px 1px 5px, rgba(0, 0, 0, 1) 1px 1px 5px, rgba(0, 0, 0, 1) 1px 1px 5px;
    }
}
@keyframes switchText2 {
    0%, 20%, 80%, 100% {
        color: white;
        text-shadow: rgba(0, 0, 0, 1) 1px 1px 5px, rgba(0, 0, 0, 1) 1px 1px 5px, rgba(0, 0, 0, 1) 1px 1px 5px, rgba(0, 0, 0, 1) 1px 1px 5px;
    }
    30%, 70% {
        color: transparent;
        text-shadow: rgba(0, 0, 0, 0) 1px 1px 5px, rgba(0, 0, 0, 0) 1px 1px 5px, rgba(0, 0, 0, 0) 1px 1px 5px, rgba(0, 0, 0, 0) 1px 1px 5px;
    }
}

.banner {
    width: 100%;
    height: 100%;
    text-align: center;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
}

.banner .slider {
    position: absolute;
    bottom: 0%;
    left: 50%;
    --rotate: 0deg;
    transform: translate(-50%, 70%) rotate(var(--rotate));
    width: 240vh;
    height: 240vh;
    max-height: 240vh;
    max-width: 240vh;
    border-radius: 50%;
    /* transition: transform 0.5s ease-in-out; */
    outline-offset: -80px;
    animation: autoRun 30s linear infinite;
}

@keyframes autoRun {
    from{
        transform: translate(-50%, 70%) rotate(0deg);
    }
    to{
        transform: translate(-50%, 70%) rotate(360deg);
    }
}

.banner .slider .item {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    rotate: calc( (360deg/var(--quantity)) * var(--position));
}

.banner .slider .item img {
    width: 30%;
    height: 30%;
    border-radius: 5vh;
    object-fit: cover;
}

@media only screen and (max-height: 360px) {
    .textInfo {
        font-size: 13px;
    }
}

#fade {
    position: absolute;
    top:0;
    left: 0;
    height: 100%;
    width: 100%;
    background: radial-gradient(ellipse at top, transparent 40%, #120000);
}