/* import fonts from google fonts */
@import url('https://fonts.googleapis.com/css2?family=Kanit: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');


/* Css reset */
*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/**
 * General components
 */
body {
    font-family: 'Kanit';
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

h3 {
    font-size: 24px;
    font-weight: 500;
}

h4 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
}

.max-width {
    max-width: 450px;
}

.row-item-space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
}

.col-item-gap {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px;
    text-align: center;
    background-color: #e7e7e7;
    border-radius: 11px;
    flex: 1;
}

.col-item-gap>img {
    padding: 5px;
    width: 35px;
}

.red {
    color: #e7302a;
}

.center {
    text-align: center;
}

.ui-primary-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: black;
    color: white;
    border-radius: 10px;
    margin: 20px 0 0 0;
}

.ui-primary-button .img {
    height: 25px;
}

.ui-secondary-button {
    padding: 10px 20px;
    width: min-content;
    white-space: nowrap;
    background: #dfdfdf;
    border-radius: 90px;
    color: black;
}

.ui-secondary-button.active {
    background-color: #e7302a;
    color: white;
}


.hor-sep {
    height: 1px;
    width: 100%;
    background-color: #eaeaea;
}

.little-h3 {
    font-size: 22px;
}

.hide {
    display: none !important;
}

/**
 * Css of page
 */


.main-section-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    position: relative;
    width: 100%;
}

.main-section-content-middle {
    width: 100%;
    padding: 20px 0px 100px 0px;
}


.main-section-content-top>img,
.main-section-content-bottom>img {
    max-width: 100%;
}

.main-section-content-top {
    border-bottom: 1px solid #eaeaea;
}

.main-section-content-bottom {
    position: fixed;
    bottom: 0;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-self: flex-end;
    align-items: center;
}


.main-section-content-middle-top {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    margin: 0 20px;
}

.main-section-content-middle-middle {
    padding: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-section-content-middle-middle img {
    max-width: 100%;
    width: 270px;
}

.main-section-content-middle-bottom {
    border-top: 1px solid #eaeaea;
    padding: 0 0px 20px 0px;
    margin: 0 20px;
}


.main-section-content-middle-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    max-width: 100%;
    overflow: auto;

    /* WEBKIT */
    -webkit-tap-highlight-color: transparent;
}

.ui-row-scroll-element::-webkit-scrollbar {
    display: none;
}

.ui-row-scroll-element {
    position: relative;
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    transition: all 0.2s;
    will-change: transform;
    user-select: none;
    cursor: pointer;
    scrollbar-width: none;
    -ms-overflow-style: none;

    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding: 20px 0 20px 20px;
}

.ui-row-scroll-element.active {
    background: rgba(255, 255, 255, 0.3);
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.item-scroll {
    width: 100%;
}

.item-scroll.center {
    display: flex;
    justify-content: center;
    align-items: center;
}


.explanation-sp {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
}

.graph {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    padding: 0 30px;
}

.graph>.graph-item {
    height: 65%;
    width: 50px;
    border: 1px solid #aaaaaa;
    position: relative;
    border-radius: 100px;
}

.graph>.graph-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 30%;
    width: 100%;
    background-color: #e7302a;
    border-radius: 100px;
    animation: height 1s ease;
}


.graph-text {
    color: #e7302a;
}

.explanation-sp>.content {
    padding-right: 20px;
}






.ui-primary-container-to-up {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    background: white;
    position: fixed;
    z-index: 106;
    bottom: 0;
    left: 0;
    height: 80vh;
    border-radius: 25px 25px 0 0;
    width: 100%;
    animation: translateYAnim ease 400ms;
}


.ui-primary-content-to-up {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
    flex-direction: column;
    width: 100%;
}

.ui-primary-content-to-up-top {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.ui-primary-content-to-up-bottom {
    width: 100%;
    height: 70vh;
}

.ui-video-container-background {
    width: 100%;
    height: 100%;
    background-color: #000000a6;
    z-index: 105;
    position: fixed;
    top: 0;
    left: 0;
    animation: opacityAnim 400ms ease;
}


@keyframes translateYAnim {
    0% {
        transform: translateY(20%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes opacityAnim {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes height {
    0% {
        height: 0;
    }

    100% {
        height: 30%;
    }
}