/* กำหนดค่าเริ่มต้นสำหรับทุกองค์ประกอบ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* สไตล์พื้นฐานของ Body และ HTML */
html, body {
    height: 100%; /* ทำให้ html และ body สูงเต็มหน้าจอ */
    width: 100%; /* ทำให้ html และ body กว้างเต็มหน้าจอ */
    font-family: 'Noto Sans Thai', sans-serif; /* ฟอนต์หลักสำหรับเนื้อหา */
    line-height: 1.8; /* ระยะห่างระหว่างบรรทัดที่สบายตาและโปร่งขึ้น */
    color: #e8e8e8; /* สีข้อความหลักที่สว่างขึ้นเล็กน้อย */
    /* พื้นหลังที่มีมิติและลึกซึ้ง */
    background: radial-gradient(circle at top left, #3a005a 0%, transparent 40%),
                radial-gradient(circle at bottom right, #002a3a 0%, transparent 40%),
                linear-gradient(to bottom right, #050505, #151515, #050505);
    background-attachment: fixed; /* ทำให้พื้นหลังอยู่กับที่เมื่อเลื่อนหน้าจอ */
    scroll-behavior: smooth; /* การเลื่อนหน้าจอแบบนุ่มนวล */
    overflow-x: hidden; /* ป้องกันการเกิด Horizontal Scroll */
    position: relative; /* สำหรับ pseudo-elements ของ body */
}

/* เพิ่มเลเยอร์แสงเรืองรองทั่วทั้ง Body เพื่อบรรยากาศศักดิ์สิทธิ์ */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/dark-fish-skin.png'); /* เพิ่ม Texture ลายโบราณ */
    opacity: 0.07; /* ความโปร่งใสของ Texture */
    z-index: -1;
}

/* สไตล์สำหรับ Header */
header {
    background: linear-gradient(to right, #0c0c0c, #2a2a2a, #0c0c0c); /* ไล่สีเทาเข้มแบบมีมิติและดูเป็นหิน */
    color: #fff; /* สีข้อความใน Header */
    padding: 40px 0; /* ระยะห่างด้านใน Header ที่มากขึ้น */
    text-align: center; /* จัดข้อความกลาง */
    /* เงาใต้ Header ที่ชัดเจนและมีหลายชั้น */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7), 0 15px 40px rgba(0, 0, 0, 0.4);
    border-bottom-left-radius: 40px; /* มุมโค้งมนที่มากขึ้น */
    border-bottom-right-radius: 40px; /* มุมโค้งมนที่มากขึ้น */
    position: relative; /* เพื่อใช้ pseudo-elements */
    overflow: hidden; /* ซ่อนส่วนเกินของ pseudo-elements */
    border-bottom: 3px solid #a07a00; /* เพิ่มขอบด้านล่างสีทองเข้มที่หนาขึ้น */
}

/* เอฟเฟกต์แสงวิบวับใน Header (Pseudo-element) */
header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(45deg);
    opacity: 0.5;
    animation: shine 20s infinite linear; /* ปรับความเร็วแอนิเมชัน */
}

@keyframes shine {
    0% { transform: rotate(0deg); opacity: 0.5; }
    50% { transform: rotate(180deg); opacity: 0.7; }
    100% { transform: rotate(360deg); opacity: 0.5; }
}

/* สไตล์สำหรับโลโก้และชื่อกลุ่มใน Header */
.logo {
    display: flex; /* จัดเรียงองค์ประกอบในแนวนอน */
    flex-direction: column; /* จัดเรียงในแนวตั้งสำหรับมือถือ */
    align-items: center; /* จัดกึ่งกลางแนวขวาง */
    gap: 25px; /* ระยะห่างระหว่างองค์ประกอบที่มากขึ้น */
}

.logo img {
    max-width: 200px; /* ขนาดสูงสุดของโลโก้ที่ใหญ่และโดดเด่นขึ้น */
    height: auto; /* รักษาอัตราส่วน */
    border-radius: 50%; /* โลโก้เป็นวงกลม */
    border: 6px solid #ffd700; /* ขอบสีทองที่หนาและชัดเจน */
    /* เงาที่สว่างและมีมิติมากขึ้น พร้อมแสงเรืองรอง */
    box-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 15px rgba(255, 215, 0, 0.7) inset,
                0 0 50px rgba(255, 215, 0, 0.5); /* เพิ่มแสงเรืองรอง */
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out; /* แอนิเมชันที่นุ่มนวลและช้าลง */
}

.logo img:hover {
    transform: scale(1.15) rotate(5deg); /* ขยายและหมุนเล็กน้อยเมื่อโฮเวอร์ */
    box-shadow: 0 0 45px rgba(255, 215, 0, 1.2), 0 0 20px rgba(255, 215, 0, 0.9) inset,
                0 0 70px rgba(255, 215, 0, 0.7); /* เงาที่ชัดเจนและสว่างขึ้น */
}

.logo h1 {
    font-family: 'Cinzel', serif; /* ฟอนต์สไตล์เทพเจ้า */
    font-size: 5em; /* ขนาดฟอนต์ที่ใหญ่และโดดเด่นมาก */
    color: #ffd700; /* สีทอง */
    /* เงาข้อความและแสงสะท้อนที่โดดเด่น */
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 255, 255, 0.4);
    letter-spacing: 4px; /* ระยะห่างตัวอักษรที่มากขึ้น */
    transition: color 0.5s ease, text-shadow 0.5s ease;
}

.logo h1:hover {
    color: #fff8dc; /* เปลี่ยนสีเป็นสีครีมทองเมื่อโฮเวอร์ */
    text-shadow: 5px 5px 12px rgba(0, 0, 0, 1), 0 0 10px rgba(255, 255, 255, 0.6); /* เงาและแสงที่คมชัดขึ้น */
}

.logo .tagline {
    font-size: 1.6em; /* ขนาดฟอนต์ของ Tagline ที่ใหญ่ขึ้น */
    font-style: italic; /* ตัวเอียง */
    color: #b0b0b0; /* สีเทาที่อ่อนลง */
    margin-top: -15px; /* ขยับขึ้นเล็กน้อย */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* สไตล์สำหรับส่วนเนื้อหาหลัก */
main {
    padding: 50px 30px; /* ระยะห่างด้านใน Main ที่มากขึ้น */
    max-width: 1200px; /* ความกว้างสูงสุดของเนื้อหาที่กว้างขึ้น */
    margin: 50px auto; /* จัดกึ่งกลางและมีระยะห่างที่มากขึ้น */
}

/* สไตล์สำหรับแต่ละ Section */
.section {
    background-color: rgba(20, 20, 20, 0.95); /* สีพื้นหลังโปร่งแสงที่เข้มขึ้น */
    padding: 60px; /* ระยะห่างด้านในที่มากขึ้น */
    margin-bottom: 50px; /* ระยะห่างระหว่าง Section ที่มากขึ้น */
    border-radius: 25px; /* มุมโค้งมนที่มากขึ้น */
    /* เงาที่ชัดเจนและมีมิติมากขึ้น */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 215, 0, 0.5); /* ขอบสีทองอ่อนที่ชัดเจนและหนาขึ้น */
    position: relative; /* เพื่อใช้ pseudo-elements */
    overflow: hidden; /* ซ่อนส่วนเกินของ pseudo-elements */
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease; /* แอนิเมชันที่นุ่มนวลขึ้น */
}

/* เพิ่ม Texture และแสงเรืองรองภายใน Section */
.section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('https://www.transparenttextures.com/patterns/clean-gray-paper.png'); /* Texture ลายหินอ่อน/กระดาษเก่า */
    opacity: 0.08; /* ความโปร่งใสของ Texture ที่ชัดเจนขึ้น */
    z-index: -1; /* อยู่ด้านหลังเนื้อหา */
}

.section::after { /* เพิ่มแสงเรืองรองอ่อนๆ */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -2; /* อยู่ด้านหลัง texture */
    transition: opacity 0.5s ease;
}

.section:hover {
    transform: translateY(-10px) scale(1.01); /* ขยับขึ้นและขยายเล็กน้อยเมื่อโฮเวอร์ */
    box-shadow: 0 18px 50px rgba(0, 0, 0, 1), 0 30px 70px rgba(0, 0, 0, 0.7); /* เงาเข้มและมีมิติมากขึ้น */
    border-color: #ffd700; /* เปลี่ยนสีขอบเป็นทองสว่าง */
}
.section:hover::after {
    opacity: 0.1; /* เพิ่มความสว่างของแสงเรืองรองเมื่อโฮเวอร์ */
}


/* สไตล์สำหรับ Section ที่มีพื้นหลังสว่างกว่าเล็กน้อย */
.section.bg-light {
    background-color: rgba(35, 35, 35, 0.95); /* สีพื้นหลังสว่างขึ้นเล็กน้อย */
    border: 3px solid rgba(192, 192, 192, 0.5); /* ขอบสีเงินอ่อนที่ชัดเจนและหนาขึ้น */
}
.section.bg-light:hover {
    border-color: #c0c0c0; /* เปลี่ยนสีขอบเป็นเงินสว่างเมื่อโฮเวอร์ */
}


/* สไตล์สำหรับหัวข้อใน Section */
.section h2 {
    font-family: 'Cinzel', serif;
    font-size: 3.5em; /* ขนาดฟอนต์ใหญ่และโดดเด่นมาก */
    color: #ffd700; /* สีทอง */
    text-align: center; /* จัดกึ่งกลาง */
    margin-bottom: 45px; /* ระยะห่างด้านล่างที่มากขึ้น */
    /* เงาข้อความและแสงสะท้อนที่โดดเด่น */
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 215, 0, 0.6);
    border-bottom: 4px solid rgba(255, 215, 0, 0.7); /* เส้นใต้หัวข้อที่หนาและชัดเจนขึ้น */
    padding-bottom: 20px; /* ระยะห่างระหว่างข้อความกับเส้นใต้ */
    position: relative;
    letter-spacing: 2px;
}

.section h2::after { /* เพิ่มความวิบวับใต้หัวข้อ */
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 7px;
    background: radial-gradient(circle, #ffd700 0%, transparent 80%);
    border-radius: 50%;
    opacity: 0.8;
}

/* สไตล์สำหรับส่วนข้อมูลผู้นำ - เฉพาะปุ่ม */
.leader-info {
    display: flex; /* ใช้ flexbox เพื่อจัดกึ่งกลางปุ่ม */
    flex-direction: column; /* จัดเรียงในแนวตั้ง */
    align-items: center; /* จัดกึ่งกลางตามแนวขวาง */
    justify-content: center; /* จัดกึ่งกลางตามแนวตั้ง */
    padding: 20px; /* เพิ่ม padding ให้มีพื้นที่ */
}

/* สไตล์สำหรับย่อหน้าทั่วไปใน Section */
.section p {
    font-size: 1.15em; /* ขนาดฟอนต์ที่อ่านง่ายขึ้น */
    margin-bottom: 1.5em; /* ระยะห่างด้านล่างย่อหน้า */
    text-align: justify; /* จัดข้อความให้เต็มบรรทัด */
    line-height: 1.9;
}

.section p:last-child {
    margin-bottom: 0; /* ไม่ต้องมี margin ด้านล่างสำหรับย่อหน้าสุดท้าย */
}

/* สไตล์สำหรับ Footer */
footer {
    background: #101010; /* สีพื้นหลังเข้ม */
    color: #606060; /* สีข้อความที่เข้มขึ้น */
    text-align: center;
    padding: 30px 0;
    margin-top: 70px; /* ระยะห่างด้านบนที่มากขึ้น */
    border-top-left-radius: 35px; /* มุมโค้งมนที่มากขึ้น */
    border-top-right-radius: 35px; /* มุมโค้งมนที่มากขึ้น */
    /* เงาด้านบนที่ชัดเจน */
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.7), 0 -15px 40px rgba(0, 0, 0, 0.4);
    font-size: 1em;
}

/* สไตล์สำหรับปุ่ม Demigod */
.demigod-button {
    background: linear-gradient(45deg, #ffd700, #daa520); /* ไล่สีทอง */
    color: #1a1a1a; /* สีข้อความเข้ม */
    padding: 15px 30px;
    border: none;
    border-radius: 10px; /* มุมโค้งมน */
    font-family: 'Cinzel', serif;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 215, 0, 0.6) inset;
    transition: all 0.3s ease-in-out;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 20px; /* เพิ่มระยะห่างจากด้านบน */
    display: flex; /* ใช้ flexbox เพื่อจัดวางไอคอนและข้อความ */
    align-items: center; /* จัดกึ่งกลางแนวตั้ง */
    gap: 10px; /* ระยะห่างระหว่างไอคอนและข้อความ */
}

.demigod-button:hover {
    background: linear-gradient(45deg, #ffeb3b, #fbc02d); /* เปลี่ยนสีเมื่อโฮเวอร์ */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 215, 0, 0.8) inset;
}

.demigod-button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* สไตล์สำหรับไอคอนในปุ่ม */
.demigod-button i {
    font-size: 1.4em; /* ขนาดไอคอน */
    color: #5a3e00; /* สีไอคอนเข้ม */
    transition: color 0.3s ease;
}

.demigod-button:hover i {
    color: #8b5e00; /* เปลี่ยนสีไอคอนเมื่อโฮเวอร์ */
}


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 100; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    backdrop-filter: blur(8px); /* Add blur effect to background */
    -webkit-backdrop-filter: blur(8px); /* For Safari */
}

/* Modal Content/Box */
.modal-content {
    background: linear-gradient(to bottom right, #2a2a2a, #3a3a3a, #2a2a2a); /* Dark gradient for modal */
    margin: auto;
    padding: 40px;
    border: 2px solid #ffd700; /* Gold border */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 20px rgba(255,215,0,0.4); /* Stronger shadow */
    width: 80%; /* Could be more responsive */
    max-width: 800px; /* Max width for larger screens */
    position: relative;
    animation: fadeInScale 0.4s ease-out; /* Pop-up animation */
    max-height: 90vh; /* Limit height to enable scrolling inside */
    overflow-y: auto; /* Enable vertical scrolling within modal */
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}


/* Close Button */
.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #ffd700; /* Gold on hover */
    text-decoration: none;
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,215,0,0.3);
}

.modal-header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
    margin-bottom: 15px;
}

.modal-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5em;
    color: #ffd700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    margin-bottom: 5px;
}

/* สไตล์สำหรับข้อมูลที่จัดเรียงคล้ายปุ่มใน Modal Header */
.info-badges {
    display: flex;
    flex-wrap: wrap; /* ให้ขึ้นบรรทัดใหม่ถ้าพื้นที่ไม่พอ */
    justify-content: center;
    gap: 10px; /* ระยะห่างระหว่างปุ่ม */
    margin-top: 15px;
}

.info-tag {
    display: inline-flex; /* ใช้ flexbox เพื่อจัดวางไอคอนและข้อความ */
    align-items: center;
    padding: 8px 15px;
    border-radius: 20px; /* มุมโค้งมนเหมือนปุ่ม */
    font-size: 0.95em;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default; /* ไม่ให้เป็น pointer เพราะไม่ใช่ลิงก์ */
}

.info-tag i {
    margin-right: 8px; /* ระยะห่างระหว่างไอคอนกับข้อความ */
    font-size: 1.1em;
}

.info-tag:hover {
    transform: translateY(-2px); /* เอฟเฟกต์ "ดรอป" เล็กน้อย */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* สีของปุ่มข้อมูล */
.info-tag-gold {
    background: linear-gradient(45deg, #ffd700, #b8860b);
    color: #333;
}
.info-tag-silver {
    background: linear-gradient(45deg, #c0c0c0, #a9a9a9);
    color: #333;
}
.info-tag-bronze {
    background: linear-gradient(45deg, #cd7f32, #8b4513);
    color: #eee;
}
/* เพิ่มสีอื่น ๆ ถ้าต้องการ */
.info-tag-blue {
    background: linear-gradient(45deg, #6495ed, #4169e1);
    color: #eee;
}
.info-tag-green {
    background: linear-gradient(45deg, #32cd32, #228b22);
    color: #eee;
}

/* Modal Body */
.modal-body h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8em;
    color: #c0c0c0;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px dashed rgba(255,215,0,0.2);
    padding-bottom: 8px;
    text-align: left; /* แก้ไขให้ชิดซ้าย */
}

.modal-body p {
    font-size: 1em;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 1.2em;
    text-align: justify;
}

/* สไตล์สำหรับรูปภาพเต็มตัวของเวสลีย์ใน Modal */
.full-body-image-container {
    text-align: center; /* จัดกึ่งกลางรูปภาพ */
    margin-top: 30px; /* ระยะห่างจากเนื้อหาด้านบน */
    padding-top: 20px;
    border-top: 1px solid rgba(255,215,0,0.2); /* เส้นแบ่ง */
}

.full-body-image-container img {
    max-width: 100%; /* ทำให้รูปภาพไม่ล้นกรอบ Modal */
    height: auto; /* รักษาอัตราส่วน */
    border-radius: 10px; /* มุมโค้งมนเล็กน้อย */
    box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 15px rgba(255,215,0,0.3); /* เงาและแสงเรืองรอง */
    transition: transform 0.3s ease;
}

.full-body-image-container img:hover {
    transform: scale(1.01); /* ขยายเล็กน้อยเมื่อโฮเวอร์ */
}

/* สไตล์สำหรับข้อมูลอาวุธ */
.weapon-info-container {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255,215,0,0.1);
    text-align: left; /* แก้ไขให้ชิดซ้าย */
}

.weapon-name {
    font-family: 'Cinzel', serif;
    font-size: 1.3em;
    color: #ffd700;
    font-weight: bold;
    cursor: pointer; /* แสดงว่าสามารถคลิกได้ */
    position: relative; /* สำหรับ tooltip */
    display: inline-block; /* ทำให้ tooltip แสดงผลได้ถูกต้อง */
    padding: 5px 10px; /* เพิ่มพื้นที่คลิก/โฮเวอร์ */
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.weapon-name i {
    margin-left: 8px;
    font-size: 0.9em;
    color: #c0c0c0;
}

.weapon-name:hover {
    background-color: rgba(255, 215, 0, 0.1); /* สีพื้นหลังเล็กน้อยเมื่อโฮเวอร์ */
}

/* Tooltip สำหรับ Desktop (ซ่อนบน Mobile) */
.weapon-name::after {
    content: attr(data-full-description);
    position: absolute;
    bottom: 120%; /* แสดงด้านบนของข้อความ */
    left: 50%; /* จัดกึ่งกลางสัมพันธ์กับ weapon-name */
    transform: translateX(-50%); /* จัดกึ่งกลางจริงๆ */
    background-color: rgba(0, 0, 0, 0.98); /* พื้นหลังเข้มขึ้นมาก */
    color: #fff;
    padding: 15px 20px; /* เพิ่ม padding */
    border-radius: 10px; /* มุมโค้งมนมากขึ้น */
    white-space: normal; /* อนุญาตให้ข้อความขึ้นบรรทัดใหม่ */
    text-align: justify; /* จัดข้อความให้เต็มบรรทัด */
    min-width: 300px; /* กำหนดความกว้างขั้นต่ำ */
    max-width: 400px; /* กำหนดความกว้างสูงสุดเพื่อให้ไม่กว้างเกินไป */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8); /* เงาที่ชัดเจนขึ้น */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 101; /* ให้อยู่เหนือ Modal Content เล็กน้อย */
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: 1em; /* เพิ่มขนาดฟอนต์ */
    line-height: 1.6; /* ปรับ line-height */
    border: 2px solid rgba(255, 215, 0, 0.6); /* ขอบที่ชัดเจนขึ้น */
}

/* Arrow for tooltip */
.weapon-name::before {
    content: '';
    position: absolute;
    top: 100%; /* อยู่ด้านล่างของ tooltip */
    left: 50%; /* จัดกึ่งกลางสัมพันธ์กับ tooltip */
    transform: translateX(-50%) rotate(45deg);
    width: 15px;
    height: 15px;
    background-color: rgba(0, 0, 0, 0.98);
    border-bottom: 2px solid rgba(255, 215, 0, 0.6);
    border-right: 2px solid rgba(255, 215, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 102; /* ให้อยู่เหนือ tooltip content */
}


.weapon-name:hover::after,
.weapon-name:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ซ่อน tooltip บนหน้าจอขนาดเล็ก (Mobile) */
@media screen and (max-width: 768px) {
    .weapon-name::after,
    .weapon-name::before {
        display: none; /* ซ่อน CSS tooltip และลูกศรบนมือถือ */
    }
}


/* Responsive adjustments for modal */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 25px;
    }
    .modal-header h2 {
        font-size: 2em;
    }
    .info-tag {
        font-size: 0.85em;
        padding: 6px 12px;
    }
    .info-tag i {
        font-size: 1em;
        margin-right: 5px;
    }
    .modal-body h3 {
        font-size: 1.5em;
    }
    .modal-body p {
        font-size: 0.95em;
    }
    .modal-header img {
        width: 120px;
        height: 120px;
    }
    .weapon-name {
        font-size: 1.1em;
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        padding: 20px;
    }
    .modal-header h2 {
        font-size: 1.8em;
    }
    .info-tag {
        font-size: 0.8em;
        padding: 5px 10px;
    }
    .modal-body h3 {
        font-size: 1.3em;
    }
    .modal-body p {
        font-size: 0.9em;
    }
}

/* Responsive Design สำหรับหน้าจอขนาดกลาง */
@media screen and (max-width: 992px) {
    .logo h1 {
        font-size: 4em;
    }
    .section {
        padding: 50px;
    }
    .section h2 {
        font-size: 3em;
    }
}

/* Responsive Design สำหรับหน้าจอขนาดเล็ก (แท็บเล็ต/มือถือ) */
@media screen and (max-width: 768px) {
    header {
        padding: 25px 0;
        border-bottom-left-radius: 25px;
        border-bottom-right-radius: 25px;
    }
    .logo img {
        max-width: 160px;
        border-width: 5px;
    }
    .logo h1 {
        font-size: 3.2em;
        letter-spacing: 2px;
    }
    .logo .tagline {
        font-size: 1.3em;
    }
    main {
        padding: 25px;
        margin: 25px auto;
    }
    .section {
        padding: 35px;
        margin-bottom: 30px;
        border-radius: 20px;
        border-width: 2px;
    }
    .section h2 {
        font-size: 2.5em;
        margin-bottom: 30px;
        padding-bottom: 15px;
        border-width: 3px;
    }
    .section p {
        font-size: 1.05em;
    }
    footer {
        padding: 25px 0;
        margin-top: 40px;
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
    }
}

/* Responsive Design สำหรับหน้าจอขนาดเล็กมากๆ (มือถือ) */
@media screen and (max-width: 480px) {
    header {
        padding: 20px 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }
    .logo img {
        max-width: 120px;
        border-width: 4px;
    }
    .logo h1 {
        font-size: 2.5em;
        letter-spacing: 1px;
    }
    .logo .tagline {
        font-size: 1em;
    }
    main {
        padding: 15px;
        margin: 20px auto;
    }
    .section {
        padding: 25px;
        margin-bottom: 20px;
        border-radius: 15px;
        border-width: 2px;
    }
    .section h2 {
        font-size: 2em;
        margin-bottom: 25px;
        padding-bottom: 10px;
        border-width: 2px;
    }
    .section p {
        font-size: 1em;
    }
    footer {
        padding: 20px 0;
        margin-top: 30px;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
}
