body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 30px auto;
    background-color: #ffffff;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.5em;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 30px;
    table-layout: fixed; /* 추가: 고정 테이블 레이아웃 사용 */
}

th, td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    width: 18%; /* 수정: 2~6열의 너비를 18%로 설정 */
}

th.info {
    font-size: 20px;
    font-width: bold;
}

th {
    background-color: #3498db;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
}

td {
    background-color: #f9f9f9;
}

th:first-child, td:first-child {
    width: 10%; /* 수정: 첫 번째 열의 너비를 10%로 설정 */
    font-weight: bold;
    background-color: #2980b9;
    color: #ffffff;
    font-size: 20px !important;
}

.notice {
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
    margin: 20px 0;
}

.price_info {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
}

.price_info_left, .price_info_right {
    width: 48%;
}

.price_info p {
    font-size: 0.95em;
    line-height: 1.8;
    margin: 10px 0;
}


.button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.print-btn, .capture-btn {
    background-color: #2ecc71;
    color: white;
}

.share-btn {
    background-color: #3498db;
    color: white;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.copy-link {
    background-color: #95a5a6;
}

.allergy_info_p {
 text-align: center;
}

button:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    body{
        padding: 0px;
        overflow-x: hidden;
    }

    .container {
        width: 90%;
        padding: 15px 30px 15px 30px;
        margin: 0px;
    }

    h1 {
        font-size: 1.2em;
    }

    table {
        font-size: 14px;
        table-layout: fixed; /* 추가: 모바일에서도 고정 테이블 레이아웃 유지 */
    }

    th, td {
        padding: 10px 5px;
        width: 18%; /* 추가: 모바일에서도 2~6열의 너비를 18%로 유지 */
    }

    th.info {
        font-size: 14px;
        font-width: bold;
    }

    th:first-child, td:first-child {
        width: 10%; /* 추가: 모바일에서도 첫 번째 열의 너비를 10%로 유지 */
    }

    .button-container {
        flex-direction: column;
    }

    .menu-day {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .menu-date {
        font-weight: bold;
        background-color: #2980b9;
        color: #ffffff;
        padding: 10px;
        text-align: center;
    }

    .menu-content {
        display: flex;
        flex-direction: row;
    }

    .menu-lunch, .menu-dinner {
        width: 50%;
        padding: 10px;
        text-align: center;
    }

    .menu-lunch {
        background-color: #fff8e1;  /* 연한 노란색 */
    }

    .menu-dinner {
        background-color: #e3f2fd;  /* 연한 노란색 */
    }

    .menu-title {
        font-weight: bold;
        margin-bottom: 5px;
    }

    .menu-item {
        margin-bottom: 3px;
    }
}


@media print {
    body * {
        visibility: hidden;
    }
    #captureArea, #captureArea * {
        visibility: visible;
    }
    #captureArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .container {
        width: 100%;
        margin: 0;
        padding: 15px 0px 15px 0px;
    }
    table {
        font-size: 16px;
        height: 35vh;
        table-layout: fixed; /* 추가: 출력 시에도 고정 테이블 레이아웃 유지 */
    }

    th, td {
        padding: 8px;
        width: 20%; /* 추가: 출력 시에도 2~6열의 너비를 18%로 유지 */
    }

    th:first-child, td:first-child {
        width: 10%; /* 수정: 출력 시에도 첫 번째 열의 너비를 10%로 유지 */
    }


    th:first-child, td:first-child {
        font-size: 20px !important; /* 수정: 첫 번째 열의 너비를 10%로 설정 */
        font-weight: bold;
        width: 10%;
        /*background-color: #2980b9;*/
        /*color: #ffffff;*/
    }


    th.info {
        font-size: 20px;
        font-width: bold;
    }

    .notice {
        font-size: 13px;
        padding: 0px;
        margin: 0px;
    }
    .price_info {
        display: none;
    }

    @page {
        size: landscape;
        margin: 0mm 5mm 0mm 5mm;
    }
}