@font-face {
    font-family: "Kanit";
    src: url('../fonts/Kanit-Regular.ttf');
}

/* ปรับแต่งหน้าหลัก */
.rankplayer-container {
    width: 90%;
    color: white;
    text-align: center;
    margin: auto;
    position: relative;
}

/* โลโก้ */
.logo {
    margin-bottom: 20px;
}

/* กล่อง Sidebar */
.rankplayer-sidebar {
    width: 70%;
    padding: 30px;
    background: rgba(0, 0, 0, 0.82);
    border: 2px inset red;
    height: calc(90vh - 70px);
    border-radius: 10px;
    position: relative;
    overflow-y: auto;
    margin: 40px auto 0 auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    scrollbar-width: none;
}

/* ซ่อน Scrollbar */
.rankplayer-sidebar::-webkit-scrollbar {
    display: none;
}

/* ปรับปรุงการเลื่อน */
.rankplayer-sidebar {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-snap-align: start;
    -webkit-overflow-scrolling: touch;
}

.rankplayer-form-box{
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    width: 90%;
    max-width: 600px;
    margin: 5%  auto 0 auto; 
    position: relative;
}
/* ปรับแต่งแบบฟอร์ม */
.rankplayer-form-box h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #ccc;
}

/* รองรับหน้าจอขนาดเล็ก */
@media (max-width: 480px) {
    .rankplayer-form-box {
        padding: 20px;
        max-width: 90%;
    }
}

/* รองรับหน้าจอขนาดกลาง */
@media (max-width: 768px) {
    .rankplayer-form-box {
        max-width: 80%;
    }
}

/* ปรับแต่ง Input */
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    background-color: white;
    border: 1px solid #444;
    border-radius: 6px;
    text-align: center;
    color: black;
}

/* ปรับแต่ง Checkbox */
.checkbox {
    display: flex;
    align-items: center;
    margin-top: 12px;
    font-size: 0.9rem;
}

.checkbox input {
    margin-right: 8px;
}

/* ปุ่ม */
.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    margin-top: 16px;
    cursor: pointer;
}

.btn-register {
    background-color: #f50057;
    color: white;
}

.btn-back {
    background-color: #2a2a2a;
    color: white;
    margin-top: 10px;
    border: 1px solid #444;
}

.darkTable {
    width: 100%; /* ปรับให้เต็มพื้นที่ */
    max-width: 1200px; /* กำหนดขนาดสูงสุด */
    table-layout: fixed; /* ป้องกันการเปลี่ยนแปลงขนาดเซลล์ */
    border-collapse: collapse;
    margin: 20px auto; /* จัดกลาง */
    background: rgba(0, 0, 0, 0.82);
    border-radius: 12px;
    overflow: hidden; /* ซ่อนส่วนที่เกิน */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    font-family: 'Kanit', sans-serif; /* ใช้ฟอนต์ Kanit */
    color: white; /* เปลี่ยนสีตัวอักษร */
    font-size: 16px; /* ขนาดตัวอักษรเริ่มต้น */
}

.darkTable th, .darkTable td {
    width: 150px; /* กำหนดขนาดเซลล์เริ่มต้น */
    height: 50px;
    padding: 10px;
    text-align: center;
    border: 1px solid #444;
}

/* ปรับขนาดสำหรับหน้าจอแท็บเล็ต */
@media (max-width: 768px) {
    .darkTable th, .darkTable td {
        width: 120px;
        height: 45px;
        font-size: 14px;
    }
}

/* ปรับขนาดสำหรับหน้าจอมือถือ */
@media (max-width: 480px) {
    .darkTable th, .darkTable td {
        width: 100px;
        height: 40px;
        font-size: 12px;
        padding: 5px;
    }
}

/* ปรับแต่งหัวตาราง */
.darkTable thead {
    background: #900;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 18px; /* ขนาดตัวอักษรหัวตาราง */
}

/* ท้ายตาราง */
.darkTable tfoot {
    background: rgba(0, 0, 0, 0.82);
    font-weight: bold;
    color: white;
}