/* ====================================================================
   A. การกำหนด Font Face (สำคัญมาก!)
   *** กูเพิ่ม .ttf ต่อท้ายชื่อไฟล์ Font ตามที่มึงโหลดมาแล้ว! ***
   ==================================================================== */
@font-face {
    font-family: 'MiSansLatin';
    font-weight: 700;
    /* *** ใส่ URL ที่มึงอัปโหลดไฟล์ .ttf นี้ขึ้นไป (ถ้าใช้ GitHub Pages ก็เป็น URL ไฟล์ดิบ) *** */
    src: url('MiSansLatin-Semibold.ttf') format('truetype'); 
}

/* --- Font 2: stereofidelic --- */
@font-face {
    font-family: 'stereofidelic';
    font-weight: normal;
    /* *** ใส่ URL ที่มึงอัปโหลดไฟล์ .ttf นี้ขึ้นไป *** */
    src: url('stereofidelic.ttf') format('truetype'); 
}


/* ====================================================================
   B. Global Reset และการจัดหน้า Discord-like (ใช้โค้ดเดิม)
   ==================================================================== */
body {
    font-family: 'MiSansLatin', Arial, sans-serif;
    background-color: #2c2f33; 
    color: #ffffff;
    padding: 20px;
    margin: 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #36393f; 
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
}

h1, h2 {
    color: #7289da; 
    border-bottom: 1px solid #4f545c;
    padding-bottom: 10px;
}

hr {
    border: 0;
    border-top: 1px solid #4f545c;
    margin: 20px 0;
}


/* ====================================================================
   C. สไตล์สำหรับ Form (Controls)
   ==================================================================== */
.controls div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: #b9bbbe; 
    font-size: 14px;
}

input[type="text"], input[type="file"] {
    width: 95%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: #202225; 
    color: #ffffff;
    font-size: 16px;
    transition: box-shadow 0.2s;
}

input[type="text"]:focus, input[type="file"]:focus {
    outline: none;
    box-shadow: 0 0 0 1px #7289da;
}

/* ====================================================================
   D. สไตล์สำหรับปุ่ม
   ==================================================================== */
#generate-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: #7289da;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 10px;
}

#generate-btn:hover:not(:disabled) {
    background-color: #677bc4;
}

#generate-btn:disabled {
    cursor: not-allowed;
    background-color: #4f545c;
}


/* ====================================================================
   E. สไตล์สำหรับผลลัพธ์
   ==================================================================== */
#result-gif {
    margin-top: 20px;
    border-radius: 4px;
    border: 1px solid #202225; 
}

/* ====================================================================
   F. สไตล์สำหรับ Footer และลิขสิทธิ์
   ==================================================================== */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.copyright {
    font-size: 12px;
    color: #99aab5; /* สีเทาอ่อนๆ */
    font-weight: 400;
}