#calendar {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 80vw;
    margin: 1.25rem auto 3rem auto;
}

#btn {
    grid-column: span 3;
    margin: 0;
}

.calendar-body .cp-chip.blue {
    padding: 0 0.8125rem;
    line-height: 1.6875rem;
    color: white;
    background-color: var(--nh-blue);
    border-color: rgb(0,94,184);
}

.calendar-body .cp-chip.blue:hover {
    box-shadow: 0 0.125rem 0.25rem 0 rgba(0,0,0,0.5);
    text-decoration: none;
}

.calendar-body .cp-chip.yellow {
    padding: 0 0.8125rem;
    line-height: 1.6875rem;
    color: #a7b1ff;
    background-color: var(--chip-green-background);
    border-color: #a7b1ff;
}

#calendar_body {
    text-align: center;
}

#calendar_body table {
    width: 100%
}

#calendar {
    display: table;
    margin: auto;
    font-size: 0.8125rem;
    border-collapse: collapse;
    border-color: #3c4043;
    border-spacing: 0.125rem;
    table-layout: fixed;
}

#calendar tr {
    height: 3.125rem;
}

/* 연도/월 표시부분 */
.calendar .month {
    border: none;
    padding-top: 0.625rem;
    padding-bottom: 0;
    text-align: center;
    font-size: 1.5625rem;
}

/* 요일 표시 부분 */
.calendar .mon {
    font-size: 0.9375rem;
    visibility: hidden;
}

/* 각 일자별 cell 의 크기를 고정 */
.calendar .date_cell {
    /*width: 14.28%;*/
    width: 16vh;
    height : 9vh;
}

#calendar td {
    border: 0.0625rem solid grey;
    text-align : left;
    vertical-align: top;
}

#calendar .date, #calendar .out_date {
    display: block;
    font-size: 1rem;
    line-height: 1rem;
    margin: .5rem 0 0 .5rem;
    font-weight: bold;
}

#calendar ul {
  padding-left: 0;
  margin: 0.5rem 0.3125rem;
}

.calendar li {
    width: 100%;
    margin-bottom: 0.3125rem;
    border: 0.0625rem solid rgb(253,181,37);
    background-color : rgb(253,210,110);
    border-radius: 0.3125rem;
    text-align: center;
    padding: 0.0625rem 0.125rem;
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;

}

.calendar li:hover {
    border: 0.0625rem solid rgb(253,181,37);
    background-color : rgb(248,229,154);
}

.calendar .event:hover {
    text-decoration:none;
}

.calendar .ul {
  height: 100%;
  padding: 0 0.3125rem 0 1.25rem;
}

.calendar .a {
  color: #17a2b8;
}

/* main-calendar */

#main-calendar-body {
    text-align: center;
}

#mini_calendar {
    margin-top: 1.25rem;
    width: 100%;
}

.calendar th {
    font-weight: bold;
    position: relative;
    text-align: center;
    margin: .75rem 0;
}

.calendar_date {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.5rem;
    padding: 0.1875rem 0 0 0;
}

#mini_calendar .background {
    font-weight: bold;
    margin: .75rem 0;
}

#mini_calendar .today .background {
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: .9rem;
    background-color: var(--nh-blue);
    color: white;
    align-items: center;
    justify-content: center;
}

.sat {
    color: #5a82cf;
}

.sun {
    color: #d02121;
}

.out_date {
    color: #d7d7d7;
}

#mini_calendar .date, #mini_calendar .out_date {
    position: relative;
}

#mini_calendar .event .dot {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: .5rem;
    height: .5rem;
    border-radius: .25rem;
    background-color: #d7d7d7;
}

.arrow {
    border: solid black;
    border-width: 0 .1875rem .1875rem 0;
    display: inline-block;
    padding: .25rem;
}

.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

#calendar_header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: .25rem;
    margin-top: 1.25rem;
}

.calendar_button {
    display: flex;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.calendar_button:hover {
    background: #E0E0E0;
}

.calendar_button:active {
    background: #C0C3C3;
}

.button_right {
    padding-right: 0.125rem;
}

.button_left {
    padding-left: 0.125rem;
}
