﻿/* 整個內容方塊 */
.index校曆12 {
    --title-align: left;
    /* --For simpleBar Start-- */
    --content-height-without-heading: auto;
    --whole-block-height: auto;
    /* --For simpleBar End-- */
    --box-shadow-hover: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    height: var(--whole-block-height);
}

    /* 內容方塊標題文字 (h2) */
    .index校曆12 .blockTitle {
        text-align: var(--r-index-block-title-align, --title-align);
    }

        /* 內容方塊標題超連結 */
        .index校曆12 .blockTitle a {
        }

    /* 容器 */
    .index校曆12 .loopElementList {
        height: var(--content-height-without-heading);
    }

    .index校曆12 .elementContainer {
        padding: var(--r-container-padding, 1em);
    }

    .index校曆12 .calendarAndEvent
    {
        display : flex;
        flex-direction : row;
        flex-wrap : nowrap;
        justify-content : flex-start;
        align-items : stretch;
    }

.index校曆12 .calendarContainer
{
    flex-basis : 400px;
    flex-grow : 0;
    flex-shrink : 0;
    padding : 1rem;
}

.index校曆12 .eventContainer {
    flex-basis : auto;
    flex-grow : 1;
    flex-shrink : 1;
    padding : 1rem;
}

    .index校曆12 .eachEvent {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        border-bottom: var(--r-el-border-bottom, solid 1px #dddddd);
        padding: var(--r-el-padding, 1rem);

        /* 2024-11-02 */
        transition: all .5s;
    }

        .index校曆12 .eachEvent:hover {
            box-shadow: var(--box-shadow-hover);
        }

        .index校曆12 .eachEvent .date {
            width: 5em;
            font-size: var(--r-smaller-font, 0.8rem);
            flex-grow: 0;
            flex-shrink: 0;
        }

        .index校曆12 .eachEvent .text {
            flex-grow: 1;
            flex-shrink: 1;
        }

    /*日曆表格*/
    .index校曆12 .calendarBody {
        border-collapse: collapse;
        width: 100%;
    }

        .index校曆12 .calendarBody td {
            padding: 0;
            border-style: solid solid solid solid;
            border-width: 1px 1px 1px 1px;
            border-color: #d1d1d1 #d1d1d1 #d1d1d1 #d1d1d1;
            width: calc(100%/7);
            max-width: calc(100%/7);
        }

            .index校曆12 .calendarBody td.yearMonth {
                text-align: center;
                font-weight: bold;
                border-style: none none dotted none;
                line-height: 3em;
            }

    .index校曆12 .preMonth, .index校曆12 .nextMonth {
        text-align: center;
    }

        .index校曆12 .preMonth input, .index校曆12 .nextMonth input {
        }

    .index校曆12 .weekName td {
        border-left: none 0;
        border-right: none 0;
        text-align: center;
        font-weight: bold;
        line-height: 3em;
    }

    /*上個月的日子*/
    .index校曆12 .lastMonth {
    }

    .index校曆12 .eachDay {
        padding: 0;
    }

    .index校曆12 .today {
        border: solid 1px;
    }

    .index校曆12 .oneDay {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: stretch;
    }

        .index校曆12 .oneDay .upper {
            flex-basis: 40%;
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            justify-content: space-around;
            align-items: stretch;
        }

        .index校曆12 .oneDay .dayOfMonth {
            flex-basis: 60%;
            text-align: center;
        }

    .index校曆12 .smallChar {
        font-size: smaller;
    }

    .index校曆12 .Sunday, .index校曆12 .Saturday {
    }

    .index校曆12 .cycle {
        font-size: smaller;
    }

    .index校曆12 .dayOfMonth {
    }

    .index校曆12 .calendarBody .nextMonth {
    }

    .index校曆12 .showMoreLoopElements {
    }

@media (max-width: 480px) {
    .index校曆12 {
        width: 100%;
    }
    .index校曆12 .calendarAndEvent {
        display: block;
        max-width: 100%;
    }

    .index校曆12 .calendarContainer {
        padding: 1rem;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .index校曆12 {
        width: 100%;
    }
    .index校曆12 .calendarContainer {
        flex-basis: 300px;
    }
    .index校曆12 .eachEvent {
        display: block;
    }
}
