@charset "utf-8";

/* 버스지선 안내 테이블CSS */
.cont {
    background: #fff;
    padding: 20px;
    max-width: 1000px;
    margin: auto;
    display:flex;
    flex-direction:column;
}

h1 {
    font-size:20px;
    font-weight:700;
    text-align: center;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
}

@media (max-width: 320px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        display: none;
    }

    tr {
        margin-bottom: 10px;
        border-bottom: 2px solid #ddd;
        display: block;
    }

    td {
        text-align: center;
        padding-left: 50%;
        position: relative;
    }

    td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 20px);
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
}