@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&family=Radio+Canada:ital,wght@0,300..700;1,300..700&display=swap');


/*=============== GOOGLE FONTS ===============*/

/*=============== VARIABLES CSS ===============*/
:root {
    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: hsl(38, 92%, 58%);
    --first-color-light: hsl(280, 60%, 60%);
    --first-color-alt: hsl(275, 50%, 20%);
    --second-color: hsl(197, 86%, 46%);
    --dark-color: hsl(212, 40%, 12%);
    --white-color: hsl(212, 4%, 95%);
    --body-color: hsl(212, 42%, 15%);
    --container-color: hsl(212, 42%, 20%);

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: Kanit;
    --h2-font-size: 1.25rem;
    --normal-font-size: 1rem;
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background: linear-gradient(hsl(270, 50%, 15%), hsl(270, 50%, 10%));
    color: var(--white-color);
}



/*=============== CARD ===============*/
.containermember {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: center;
    margin-top: 130px;
}

h1 {
    color: #4a148c;
    margin-bottom: 30px;
    font-size: 30px;
    font-weight: 600;
}

.card-container {
    display: flex;
    flex-wrap: nowrap;
    /* Keep cards in one row */
    justify-content: center;
    /* Center the cards horizontally */
    gap: 20px;
    /* Space between cards */
}



.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 265px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;

    object-fit: cover;
    border: 4px solid #4a148c;
}

.card h2 {
    font-size: 23px;
    color: #4a148c;
    margin: 10px 0;
}

.card p {
    color: #666;
    margin: 10px 0;
    font-size: 18px;
}

.card .role {
    font-weight: 500;
    color: #6a1b9a;
    margin-bottom: 15px;
}





@media screen and (max-width:992px) {

    .containermember {
        padding: 20px 50px;
    }

    .card-container {

        flex-wrap: wrap;
        justify-content: space-around;
    }

    .card {
        width: 100%;
    }

    #voice-command-btn {

        font-size: 18px;
    }


}

/* mobel จ้ะ */
@media screen and (max-width:768px) {

    body {
        font-size: 14px;
    }

    .containermember {
        padding: 10px 30px;
    }

    .card-container {
        flex-direction: column;
    }

    .card {
        width: 100%;
    }


    h1 {
        font-size: 20px;
    }


    #voice-command-btn {
        font-size: 16px;
    }

    .ToggleLanuuage {
        margin-top: 50px;
    }

}