﻿
/* สร้างคลาส CSS สำหรับ Modal */
.my-modal {
    text-align: center;
}

    .my-modal .modal-content {
        text-align: center;
    }

    .my-modal .modal-header {
        justify-content: center;
        border-bottom: none;
    }

    .my-modal .modal-footer {
        padding-left: 3.75rem;
        padding-right: 3.75rem;
        flex-wrap: inherit;
       
    }

    .my-modal .btn-confirm {
        width: 100%;
        background-color: #4E4560;
        border-radius: 8px;
        margin-right: 20px;
    }

    .my-modal .btn-cancel {
        width: 100%;
        border-color: #4E4560;
        border-radius: 8px;
        margin-left: 20px;
    }


/* CSS */

.tfimg {
    float: right;
    margin-top: -15px;
}
.containerbox {
    width: 70%;
    margin: 10% auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5% 20px 5%;
    border: 2px solid #ccc;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
}

    .containerbox img {
        width: 50px;
    }
* {
    margin: 0;
    padding: 0;
    font-family: 'kanit-regular';
}
@font-face {
    font-family: 'kanit-regular';
    src: url('../font/kanit-regular.ttf') format('truetype');
}
.Text-Head-2 {
    font-size: 2vw;
}
.Text-Head-3 {
    font-size: 3vw;
}
.Text-Head-3-5 {
    font-size: 3.5vw;
}

.Text-Head-4 {
    font-size: 4vw;
}
.Text-Head-5 {
    font-size: 5vw;
}
.Text-Head-6 {
    font-size: 6vw;
}
@media (min-width: 490px) {
    .Text-Head-2 {
        font-size: 1vw;
    }
    .Text-Head-3 {
        font-size: 2vw;
    }
    .Text-Head-3-5 {
        font-size: 2.5vw;
    }
    .Text-Head-4 {
        font-size: 3vw;
    }
    .Text-Head-5 {
        font-size: 4vw;
    }
    .Text-Head-6 {
        font-size: 5vw;
    }
}
@media (min-width: 1024px) {
    .Text-Head-2,
    .Text-Head-3,
    .Text-Head-3-5,
    .Text-Head-4 {
        font-size: 1vw;
    }
    .Text-Head-6,
    .Text-Head-5 {
        font-size: 2vw;
    }
    .containerbox {
        width: 50%;
        justify-content: center;
        margin-bottom: 10%;
        margin: 86px auto;
    }
}
.imgcar {
    width:100%;
  
    object-fit:contain;

}
.icon2 {
    margin-left: -40px;
    cursor: pointer;
    width: 24px; /* กำหนดความกว้างของ icon */
    height: 24px; /* กำหนดความสูงของ icon */
    display: inline-block; /* ทำให้ icon แสดงเป็น inline element */
    background-size: cover; /* ปรับขนาดรูปภาพให้พอดีกับพื้นที่ */
    background-repeat: no-repeat; /* ไม่เอาซ้ำในกรณีรูปไม่เต็มขนาด */
}
input[type="password"] {
    border-radius: 8px;
    padding: 4px;
    margin: 4px;
    width: 100%;
    border-width: 1px;
    border-color: silver;
}
.bg-hero {
    position: absolute;
   
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg3.png');
    background-size: cover; /* ปรับขนาดภาพให้เต็มพื้นที่ */
    background-repeat: no-repeat; /* ไม่ต้องการให้ภาพทำซ้ำ */
    /* filter: brightness(0.5s); */ /*ปรับความโปร่งใสของภาพ */
    opacity: 20%;
    background-color: #DCE5F6;
    z-index: -1;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(220 ,229, 246, 0.5), rgba(220 ,229 ,246, 0.5));
    z-index: 0;
}

.container2 {
   
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

    .container2 .cbox {
       
        width:100%;
        
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .container2 .box {
       
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .container2 .box .title {
          
            margin-top: 20px;
            width: 100%;
            position: relative;
            display: flex;
            align-items: flex-start;
            height: 50px;
            color: #000000;
            flex-direction: column;
            align-items: center;
        }

            .container2 .box .title .block {
                width: 0%;
                height: inherit;

               
            }

            .container2 .box .title h1 {
                color: #000000;
                font-size: 35px;
                display: flex;
                align-items: baseline;
                position: relative;
            }

                .container2 .box .title h1 span {
                    width: 0px;
                    height: 0px;
                    -webkit-border-radius: 50%;
                    -moz-border-radius: 50%;
                    border-radius: 50%;
                    background: #233f74;
                 
                    margin-left: 5px;
                    margin-top: -10px;
                    position: absolute;
                    bottom: 13px;
                    right: -12px;
                }

        .container2 .box .role {
            width: 100%;
            position: relative;
            display: flex;
            align-items: center;
            height: 30px;
            margin-top: -10px;
        }

            .container2 .box .role .block {
                width: 0%;
                height: inherit;
                position: absolute;
               /* animation: secBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
                animation-delay: 2s;*/
                display: flex;
            }

            .container2 .box .role p {
              /*  animation: secFadeIn 2s forwards;
                animation-delay: 3.2s;*/
                opacity: 0;
                font-weight: 400;
                color: #000000;
                font-size: 12px;
                text-transform: uppercase;
                letter-spacing: 5px;
            }

@keyframes mainBlock {
    0% {
        width: 0%;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 0;
        left: 100%;
    }
}

@keyframes secBlock {
    0% {
        width: 0%;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 0;
        left: 100%;
    }
}

@keyframes mainFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


@keyframes popIn {
    0% {
        width: 0px;
        height: 0px;
        background: #000000;
        border: 0px solid #ddd;
        opacity: 0;
    }

    50% {
        width: 10px;
        height: 10px;
        background: #000000;
        opacity: 1;
        bottom: 45px;
    }

    65% {
        width: 7px;
        height: 7px;
        bottom: 0px;
        width: 15px
    }

    80% {
        width: 10px;
        height: 10px;
        bottom: 20px
    }

    100% {
        width: 7px;
        height: 7px;
        background: #000000;
        border: 0px solid #222;
        bottom: 13px;
    }
}

@keyframes secFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.5;
    }
}




@keyframes top {
    0% {
        opacity: 0;
        bottom: -80px
    }

    100% {
        opacity: 1;
        bottom: 0px
    }
}

@keyframes icon {
    0% {
        opacity: 0;
        transform: scale(0.0);
    }

    50% {
        opacity: 1;
        transform: scale(1.3) rotate(-02deg);
    }

    100% {
        opacity: 1;
        bottom: 0px;
    }
}