@charset "UTF-8";

.gray-rectangle {
    max-width: 1533px;
    height: 660px;
    background-color: #bbbbbb;
    margin: 10px;
}

.directions {
    max-width: 1533px;
    margin: 0 auto;
    text-align: center;
}

.directions h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
}

.map-container {
    margin-top: 20px;
    margin-bottom: 30px;
}

.map-container img {
    width: 100%;
    height: auto;
}

.info-table {
    width: 99%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 30px;
    border-spacing: 0;
    text-align: center;
    margin-left: 10px;
}
.info-table td {
    text-align: center; /* 각 셀 내부의 텍스트 중앙 정렬 */
}
.info-table td:nth-of-type(2),
.info-table td:nth-of-type(4) {
    text-align: left;/* 중간 열들(대중교통과 자가용) 왼쪽 정렬 */
    padding-left: 20px;
}

.info-table img {
    width: 20px;
    margin: 0 10px;
}

.info-table>tbody>tr {
    padding: 20px;
    border-bottom: 1px solid #a0a0a0;
}

.info-table>tbody>tr:nth-of-type(1) {
    border-top: 3px solid #000;
}

.info-table td:nth-of-type(1),
.info-table td:nth-of-type(3) {
    font-size: 16px;
    font-weight: bold;
    background-color: #f9f9f9;
    padding: 20px;
    align-content: center;
}
.info-table td:not(:nth-of-type(1)):not(:nth-of-type(3)) {
    font-size: 16px;
    border-left: none;
    border-right: none;
    align-content: center;
}

.info-table .bus-box {
    display: inline-block;
    width: 82px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    border-radius: 4px;
    margin: 10px;
}

.info-table .red-bus {
    background-color: #F95555; /* 빨간색 */
    /*margin-left: -12px;*/
    /*margin-bottom: -4px;*/
}

.info-table .green-bus {
    background-color: #56A849; /* 초록색 */
}
.info-table td.bus-stop{
    display: flex;
    flex-direction: column;
}
.info-table td.bus-stop .bus-stop-wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
}

.info-table td.bus-stop .bus-info-green p{
    color: green;
    margin: 10px 0;
}

.info-table td.bus-stop .bus-info-red p{
    color: red;
}





@media screen and (max-width: 916px) {
    .gray-rectangle {
        margin: 10px;
        height: 400px;
    }
    .info-table {
        width: 96%;
        margin-top: 20px;
        margin-bottom: 30px;
        margin-left: 10px;
    }

    .info-table>tbody>tr {
        display: flex;
        flex-wrap: wrap;
        padding: 0; /* 행 패딩 제거 */
        border-bottom: none;
    }

    .info-table td {
        display: flex;
        align-items: center;
        width: 100%; /* 각 셀이 한 줄을 차지하도록 */
        padding: 15px 10px; /* 패딩 조정 */
        font-size: 14px;
        border-bottom: 1px solid #a0a0a0;
        text-align: left;
    }

    /* 테이블 아이콘과 텍스트 간 간격 조정 */
    .info-table td img {
        margin-right: 8px;
    }

    /* 각 셀이 한 줄씩 따로 떨어지도록 설정 */
    .info-table td:nth-of-type(1),
    .info-table td:nth-of-type(2),
    .info-table td:nth-of-type(3),
    .info-table td:nth-of-type(4) {
        width: 50%;
        place-content: center;
    }
    .info-table .red-bus {
      font-size: 10px;
      margin: 10px;
    }

    .info-table .green-bus {
      font-size: 10px;
    }

}

@media screen and (width: 916px) {
    .info-table td:not(:nth-of-type(1)):not(:nth-of-type(3)) {
        font-size: 14px;
    }

}

@media screen and (max-width: 500px) {
    .info-table td.bus-stop .bus-stop-wrapper{
        flex-direction: column;
    }
}