:root {
    --basic-color: peachpuff;
    --width: 280px;
    --height-top1: 50px;
    --height-top2: 20px;
    --height-middle: 50px;
    --height-bottom: 15px;
    --height-middle2: 30px;
    --height-bottom2: 10px;
}

* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.side_call {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.innerFrame1 {
    display: block;
    width: 100%;
    background-color: var(--basic-color);
}

/* ================= 상단 ================= */

.grid_1 {
    display: grid;
    grid-template-columns:
        minmax(8px, 14px)
        minmax(24px, 30px)
        1fr
        1fr
        minmax(24px, 30px)
        minmax(8px, 14px);
    grid-auto-rows: var(--height-top1); 
    align-items: center; 
    justify-items: center;
}

.month_title {
    display: flex;
    justify-content: right;
    align-items: center;
    font-size: 15px;
    margin-left: 5px;
    margin-right: 3px;
}

.year_title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    margin-right: 5px;
}

button.month {
    width: 30px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* ================= 요일 ================= */

.grid_2 {
    display: grid;
    grid-template-columns:
        minmax(6px, 14px)
        repeat(7, 1fr)
        minmax(6px, 14px);
    grid-auto-rows: var(--height-top2);
    background-color: var(--basic-color);
}

.weekday {
    display: flex;
    justify-content: center;
    align-items: center;
   font-size: 10px;
}

/* ================= 날짜 ================= */

.grid_3 {
    display: grid;
    grid-template-columns:
        minmax(6px, 14px)
        1fr
        minmax(6px, 14px);
    background-color: var(--basic-color);
}

.grid_4 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(40px, 1fr);
    background-color: white;
}

/* 날짜 셀 */
.day {
    border: 1px solid var(--basic-color);
    cursor: pointer;
    padding: 5px 0 0 5px;
    position: relative;
}

/* 휴일 / 토요일 */
.holiday {
    color: #ff0000;
}

.saturday {
    color: #0000ff;
}

/* 달력 외 날짜 숨김 */
.noday {
    display: none;
}

/* 폰트 크기 */
.largeFont {
    font-size: 12px;
    line-height: 1.2;
}

.smallFont {
    font-size: 10px;
    line-height: 1.4;
}

/* ===== 오늘 날짜 ===== */
.today {
    background-color: #ffe6e6;
}

/* ===== 선택된 날짜 (클릭 / 키보드) ===== */
.currentDay {
    border: 2px solid red;
}

/* today + currentDay 겹칠 때 보정 */
.today.currentDay {
    border: 2px solid red;
}

/* ================= 하단 ================= */

.grid_5 {
    display: grid;
    width: 100%;
    grid-template-columns:
        minmax(8px, 14px)
        minmax(32px, 40px)
        1fr
        minmax(32px, 40px)
        minmax(60px, 82px)
        minmax(8px, 14px);
    grid-auto-rows: var(--height-middle2);
    background-color: var(--basic-color);
    align-items: center; 
    justify-items: center;
    padding-bottom: var(--height-bottom2);
}

button.year {
    width: 40px;
    height: 28px;
    cursor: pointer;
}

button.open {
    width: 90%;
    margin-left: auto;
    height: 28px;
    cursor: pointer;
}

.cal_header {
    display: flex;
    padding: 8px 15px 5px 15px;
    justify-content: center;
    align-items: center;
    justify-items: center;
justify-content: space-between;
}
.cal_footer {
    width: 100%;
    padding-left: 15px;
    padding-top: 10px;
    padding-right: 15px;
    background-color: var(--basic-color);
    padding-bottom: var(--height-bottom2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cal_footer > span {
 font-size: 12px;
   padding: 0 3px;
}
#open {
	display: none;
}
