@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;700&display=swap');

body {
    font-family: 'Prompt', sans-serif;
    background-color: rgba(255, 255, 255, 0);

}


.container {
    width: 100%;
    margin: 0 auto;
    max-width: fit-content;

}

h2 {
    color: #ffffff; /* เปลี่ยนสีหัวตารางเป็นสี #21436f */
    font-size: 125%;
    
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 0; /* ลดระยะห่างด้านล่างของตารางเป็น 0 */
}

.table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px; /* ทำให้ทุกมุมของตารางโค้ง */
    overflow: hidden; /* เพื่อให้ border-radius มีผลกับทุกมุม */
    margin-bottom: 0; /* ลดระยะห่างด้านล่างของตารางเป็น 0 */
}

.table th, .table td {
    text-align: center;
    padding: 5px;
    word-wrap: break-word;
    border: 1px solid #ddd;
}

.table th {
    background-color: #839fc4;
    color: white;
    font-weight: 500;
}

.table thead th[colspan="6"], .table thead th[colspan="7"] {
    background-color: #21436f;
    color: #21436f;
    font-weight: bold;
    font-size: medium;
    text-align: left;
    padding-left: 15px;
    border-top-left-radius: 6px; /* ทำให้มุมซ้ายบนของ thead โค้ง */
    border-top-right-radius: 6px; /* ทำให้มุมขวาบนของ thead โค้ง */
}
/* สไตล์สำหรับ th ที่มี colspan="6" และ class="text-start" */
.table th[colspan="6"].text-start,
.table th[colspan="7"].text-start {
    background-color: #ccd5ee;
    color: #21436f; /* คุณสามารถเปลี่ยนสีข้อความได้ตามต้องการ */
    font-weight: bold;
    text-align: left;
    padding-left: 15px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #ffffff !important; /* สีสำหรับแถวคี่ */
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #f1f4f5 !important; /* สีสำหรับแถวคู่ */
}

.table tbody tr:hover {
    background-color: #ddd !important;
}

.table th.edit-link, .table td.edit-link {
    width: 20%;
}

input[name="live_link"] {
    width: 100%;
}

.live-stream-icon {
    width: 50px;
    height: auto;
}

.table .team-logo {
    width: 20px;
    height: auto;
    margin-right: 5px;
}

.table .team-name {
    display: flex;
    align-items: center;
    justify-content: center;
}

.table .team-name img {
    margin-right: 5px;
}

.table .odds {
    color: #28a745;
}

.table .odds.negative {
    color: #dc3545;
}

.table .score {
    font-weight: bold;
}


@media (max-width: 768px) {
    .table-responsive {
        margin-bottom: 0; /* ลดระยะห่างด้านล่างของตารางเป็น 0 */
        overflow-x: auto;
    }

    .table {
        width: 100%;
        table-layout: fixed;
        margin-bottom: 0; /* ลดระยะห่างด้านล่างของตารางเป็น 0 */
    }

    .table th, .table td {
        padding: 8px;
        font-size: 12px;
    }

    .table td.edit-link {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    input[name="live_link"] {
        font-size: calc(14px * 0.75);
        padding: calc(6px * 0.75);
        margin-bottom: calc(6px * 0.75);
        width: 80%;
    }

    .btn-sm {
        font-size: calc(14px * 0.75);
        padding: calc(6px * 0.75) calc(12px * 0.75);
        width: auto;
        
    }

    .d-flex-background {
        flex-direction: column; /* จัดเรียงในแนวตั้ง */
        align-items: center; /* จัดให้อยู่ทางด้านซ้าย */
        text-align: center; /* จัดข้อความให้อยู่ทางด้านซ้าย */
    }

    .d-flex-background h2 {
        margin-bottom: 10px; /* เพิ่มระยะห่างด้านล่าง */
        font-size: 1.8rem; /* ลดขนาดฟอนต์ */
    }

    .d-flex-background .d-flex {
        width: 100%;
        margin-top: 10px;
        justify-content: center; /* จัดให้อยู่ตรงกลาง */
    }

    .d-flex-background .me-2 {
        margin-right: 0; /* ลบระยะห่าง */
    }
}

@media (max-width: 576px) {
    input[name="live_link"] {
        font-size: calc(14px * 0.5);
        padding: calc(6px * 0.5);
        margin-bottom: calc(6px * 0.5);
        width: 100%;
    }

    .btn-sm {
        font-size: calc(14px * 0.5);
        padding: calc(6px * 0.5) calc(12px * 0.5);
        width: 100%;
    }
    .d-flex-background {
        flex-direction: column; /* จัดเรียงในแนวตั้ง */
        align-items: center; /* จัดให้อยู่ทางด้านซ้าย */
        text-align: center; /* จัดข้อความให้อยู่ทางด้านซ้าย */
       
    }

    .d-flex-background h2 {
        margin-bottom: 10px; /* เพิ่มระยะห่างด้านล่าง */
        font-size: 1.5rem; /* ลดขนาดฟอนต์ */
    }

    .d-flex-background .d-flex {
        width: 100%;
        margin-top: 10px;
        justify-content: center; /* จัดให้อยู่ตรงกลาง */
    }

    .d-flex-background .me-2 {
        margin-right: 0; /* ลบระยะห่าง */
    }
}

.d-flex {
    display: flex;

    align-items: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.d-flex .col-auto {
    margin-right: 0.5rem;
}

.d-flex .align-self-end {
    margin-top: 0;
}
.d-flex-background {
    background-color: #1d3b5f; /* พื้นหลังสี #1d3b5f */
    padding: 10px; /* เพิ่ม padding เพื่อให้มีระยะห่างภายใน */
    border-radius: 6px; /* เพิ่มความโค้งมน */
}

.login-body {
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    width: 100%;
    max-width: 500px;
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-container .form-control {
    margin-bottom: 20px;
}

.login-container h2 {
    margin-bottom: 30px;
}

/* ปรับแต่งสีของปุ่มค้นหา */
.btn-primary {
    background-color: #21436f;
    border-color: #21436f;
}

.btn-primary:hover {
    background-color: #1d3b5f;
    border-color: #1d3b5f;
}
