body {
    width: 100%;
    height: 100%;
    font-family: 'Sarabun', sans-serif;
    margin: 0;
    padding: 0;
}

/* ตรวจจากหน้าจอ */
@media screen {
    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }



    /* 🔸 คำสั่งนี้ใช้ซ่อน element หลายประเภทพร้อมกัน */
    div.background,
    body.single_slide div.background.hidden,
    body.single_slide .hidden,
    body.single_slide div.handout {
        display: none;
        /* ซ่อนไม่ให้แสดงเลย */
        visibility: hidden;
        /* และไม่เหลือพื้นที่บนหน้า */
    }

    div.slide {
        z-index: 20;
        clear: both;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        /* line-height: 120%; */
        visibility: visible;
        position: inherit;
        border-width: 0;
    }



    div.slide h1 {
        display: block;
        width: 80%;
        /* ให้กว้าง 80% */
        margin: 0px auto;
        /* auto = จัดกึ่งกลางแนวนอน */
        font-size: 60%;
        line-height: 1.2em;
        text-align: center;
        /* padding: 4px; */
        padding-top: 32px;
        /* padding-bottom: 12vh; */


        /* ตัวหนังสือสีขาว มีเงาดำ */
        font-weight: 400;
        color: #fff;
        position: relative;
        z-index: 10;
        text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
        /* 15px คือความเบลอของเงา (ปรับได้ตามต้องการ) */
        /**/

        /* for test*/
        /* border: 2px solid #5ce314; */
    }




    .content_slide {
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* บน–ล่างเท่ากัน */
        align-items: center;
        /* ซ้าย–ขวากลาง */
        height: 80vh;
        /* สูงเต็มจอ */


        /* for test*/
        /* border: 2px solid #d3edc5; */
    }


    /* ย่อหน้าในสไลด์ */
    /* p ใน div.slide */
    div.slide p {
        margin: 0 auto;
        /* เว้นบน/ล่าง 0.6em และจัดกึ่งกลางแนวนอน */
        font-size: 100%;

        /* font-weight: 500; */
        line-height: 180%;
        /* ห่างขึ้น 50% */
        text-align: center;
        /* max-width: 85%; */
        /* กำหนดไม่ให้กว้างเกิน 90% */
        /* ปรับความสูงบรรทัด */
        /* border: 2px solid #fff; */


        /* ตัวหนังสือสีขาว มีเงาดำ */
        position: relative;
        z-index: 10;
        color: white;
        text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
        /* 15px คือความเบลอของเงา (ปรับได้ตามต้องการ) */
        /**/

    }
    /* ย่อหน้าในสไลด์ */
    /* p ใน div.slide */
    .w_leader {
        margin: 0 auto;
        /* เว้นบน/ล่าง 0.6em และจัดกึ่งกลางแนวนอน */
        font-size: 100%;

        font-weight: 400;
        line-height: 180%;
        /* ห่างขึ้น 50% */
        text-align: center;
        /* max-width: 85%; */
        /* กำหนดไม่ให้กว้างเกิน 90% */
        /* ปรับความสูงบรรทัด */
        /* border: 2px solid #fff; */


        /* ตัวหนังสือสีขาว มีเงาดำ */
        position: relative;
        z-index: 10;
        color: white;
        text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
        /* 15px คือความเบลอของเงา (ปรับได้ตามต้องการ)  */
        /**/

    }





    div.slide p i {
        font-size: 60%;
        color: #ccc;
        line-height: 130%;
        /* ปรับความสูงบรรทัด */

        /* border: 2px solid #831313; */

    }

    /* ย่อยหน้า */
    div dd {
        margin-left: 0;
        margin-bottom: .5em;
        font-weight: 600;

        /* for test*/
        /* border: 2px solid #5ce314; */

    }



    a {
        text-decoration: none;
        /* ลบ underline */
    }




    div.slide h2 {
        font-size: 90%;
    }

    div.slide h3 {
        font-size: 80%;
    }


    /* span.key และ a.top-link */
    .slide span.key,
    .slide a.top-link {
        position: absolute;
        /* ติดบนของ slide */
        display: inline-block;
        /* padding: 4px 8px; */
        /* ไม่เยอะเกินแนวตั้ง */
        /* border: 2px solid #831313; */
        /* background: #fff; */
        font-size: 40%;
        line-height: 1;
        /* ป้องกันขยายแนวตั้งเวลา zoom */
    }

    .slide span.key {
        right: 0px;
        top: 0%;
        margin: 10px;
        /* เว้นระยะจาก a.top-link */
        color: #aaa;
    }

    /* กำหนดตำแหน่งขวา */
    .slide a.top-link {
        right: 0;
        top: 3%;
        margin: 10px;
        /* ชิดขวาสุด */
        color: #aaa;

    }


    a:visited,
    a:link,
    .toolbar a:link,
    .toolbar a:visited {
        color: #ccc;
    }

    a:hover,
    a:active {
        color: #ccc;
        text-decoration: underline;
    }

    div.barleft.a:visited,
    a:link,
    .toolbar a:link,
    .toolbar a:visited {
        color: #ccc;
    }

    div.barleft.a:hover,
    a:active {
        color: #ccc;
        text-decoration: underline;
    }


    /* bar ล่าง */
    div.toolbar {
        position: fixed;
        z-index: 200;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1.5em;
        text-align: right;
        padding-left: 1em;
        padding-right: 1em;
        padding-top: 5px;
        font-size: 18px;
        color: #681414;
        border-top: solid 5px #fccaca;
        background: #ad3131;
    }

    /* ตัวหนังสือใน bar ล่าง ข้างซ้าย และ ขวา */
    div.barleft {
        color: #ccc;
        text-align: left;
    }

    div.barright {
        color: #ccc;
        float: right;
        text-align: right;
    }

    /* ปุ่มใน bar ล่าง ช่องกรอกตัวเลข */
    span.go {
        z-index: 350;
        width: 5em;
        color: #666;
        background: #fad7d7;
        border-color: #522;
        border-width: 1px;
    }

    /* รายการเพลง ตอน กด spexbar */
    div.toc {
        position: absolute;
        z-index: 400;
        width: 45em;
        max-width: 55;
        height: 80%;
        overflow: auto;
        top: auto;
        right: 0;
        left: auto;
        bottom: 1.6em;
        font-size: 22px;
        border-radius: 50px 2px 2px 30px;
        margin-top: 120px;
        padding: 32px;
        color: #fff;
        background: #222;
        line-height: 150%;
    }





    /* -----------------------------
	ตัวเล็ก, toolbar
	----------------------------- */
    p.copyright,
    .smaller {
        font-size: smaller;
    }






    /* วิดีโอพื้นหลัง */
    .video-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        z-index: -1;
    }

    .video-bg video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

    /* เลเยอร์ทึบ (มืดลง 40% - ปรับได้) */
    .video-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.35);
        /* ค่านี้ทำให้มืดลง 45% */
        z-index: 0;
    }

    .en, .nl, .th, div.background, span.nonum {
		display: none; /* ซ่อน element หลายชนิด */
	}

    .gloria-hallelujah-regular {
    font-family: "Gloria Hallelujah", cursive;
    font-weight: 400;
    font-style: normal;
    }

    .pt-serif-regular {
    font-family: "PT Serif", serif;
    font-weight: 400;
    font-style: normal;
    }

    .pt-serif-bold {
    font-family: "PT Serif", serif;
    font-weight: 700;
    font-style: normal;
    }

    .pt-serif-regular-italic {
    font-family: "PT Serif", serif;
    font-weight: 400;
    font-style: italic;
    }

    .pt-serif-bold-italic {
    font-family: "PT Serif", serif;
    font-weight: 700;
    font-style: italic;
    }
    
    .playpen-sans-thai-600 {
    font-family: "Playpen Sans Thai", cursive;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    }


}

/* ปกติ */