/* 與因材網相同 */
/* ModalBox */

.ModalBox,
.ModalBoxBig {
    display: none;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.modalBoxRecommend {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.ModalBox {
    z-index: 11;
}

.ModalBoxBig {
    z-index: 10;
}

.ModalBoxContent {
    background: rgb(255, 255, 255);
    border-radius: 5px;
    transition: all .8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: absolute;
    max-height: 80vh;
    max-width: 80vw;
    padding: 40px 20px 20px 20px;
    opacity: 1;
    overflow: auto;
    display: flex;
}

.ModalBoxButton {
    margin: 10px;
}

.trigger {
    background: transparent;
    border: none;
    color: #808080;
    font-size: 1.5789em; /* 對應於 30px */
    right: 10px;
    top: 10px;
    position: absolute;
    cursor: pointer;
    transition: all .3s;
}

.trigger:hover {
    color: #c60d1f;
}

.ModalBoxDetailTitle {
    font-size: 1.1579em; /* 對應於 22px */
    font-weight: 600;
    text-align: center;
}

.ModalBoxDetailButton,
.ModalBoxDetailBigButton {
    display: flex;
    justify-content: center;
}

/*multiselect for signup*/
.multiselectArea {
}
.multiselectArea > .selectedlist {
    display: flex;
    flex-wrap: wrap;
    min-height: 4em;
    line-height: 2em;
    padding-top: 5px;
    padding-left: 5px;
    border: 1px solid #CCC;
    color: #636363;
}
.multiselectArea > .selectedlist > .selected,
.multiselectArea > .selectedlist > .btn_list > .btn_openoptionlist,
.multiselectArea > .selectedlist > .btn_list > .btn_delselectedlist {
    border: 1px solid #666;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
}
.multiselectArea > .selectedlist > .selected:hover,
.multiselectArea > .selectedlist > .btn_list > .btn_openoptionlist:hover,
.multiselectArea > .selectedlist > .btn_list > .btn_delselectedlist:hover {
    outline: -webkit-focus-ring-color auto 1px;
    cursor: pointer;
}
.multiselectArea > .selectedlist > .selected {
    flex: 0 0 calc((100%/3) - 5px);
    max-width: calc((100%/3) - 5px);
}
.multiselectArea > .selectedlist > .btn_list {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
}
.multiselectArea > .selectedlist > .btn_list > .btn_openoptionlist,
.multiselectArea > .selectedlist > .btn_list > .btn_delselectedlist {
    flex: 0 0 calc((100%/4) - 5px);
    max-width: calc((100%/4) - 5px);
    height: 2em;
    text-align: center;
}
.multiselectArea > .optionlist {
    margin-top: 5px;
    border: 1px solid #CCC;
    display: flex;
    flex-wrap: wrap;
    max-height: 50vh;
    overflow: auto;
}
.multiselectArea > .optionlist > li {
    margin: 5px;
    padding: 5px;
}
.multiselectArea > .optionlist > li.emptydata {
    flex: 0 0 calc(100% - 10px);
    text-align: center;
}
.multiselectArea > .optionlist > li.emptydata::after {
    content: '無資料';
}
.multiselectArea > .optionlist > li.search,
.multiselectArea > .optionlist > li.optgroup {
    margin: 0px 5px;
    position: sticky;
    background-color: white;
    z-index: 2;
}
.multiselectArea > .optionlist > li.search {
    flex: 0 0 calc(100% - 10px);
    height: 3em;
    top: 0px;
}
.multiselectArea > .optionlist > li.search > input {
    width: 100%;
}
.multiselectArea > .optionlist > li.optgroup {
    flex: 0 0 calc(100% - 10px);
    border-bottom: 1px solid #AAA;
    top: 3em;
}
.multiselectArea > .optionlist > li.optgroup > label.usercard {
    height: 100%;
}
.multiselectArea > .optionlist > li.option {
    flex: 0 0 calc((100%/3) - 10px);
    max-width: calc((100%/3) - 10px);
}
.multiselectArea > .optionlist > li.option:hover {
    outline: -webkit-focus-ring-color auto 1px;
    cursor: pointer;
}
.multiselectArea > .optionlist > li.option.optionselected {
    background-color:#BDDCB8;
}
.multiselectArea > .optionlist > li.option.optionselected.disabled {
    background-color:#EEE;
}
.multiselectArea > .optionlist > li.option:not(.optionselected).hidden {
    display: none;
}
@media screen and (max-width: 1280px) {
    .multiselectArea > .selectedlist > .selected {
        flex: 0 0 calc((100%/2) - 5px);
        max-width: calc((100%/2) - 5px);
    }
    .multiselectArea > .selectedlist > .btn_list > .btn_openoptionlist,
    .multiselectArea > .selectedlist > .btn_list > .btn_delselectedlist {
        flex: 0 0 calc((100%/3) - 5px);
        max-width: calc((100%/3) - 5px);
    }
    .multiselectArea > .optionlist > li.option {
        flex: 0 0 calc((100%/2) - 10px);
        max-width: calc((100%/2) - 10px);
    }
}
@media screen and (max-width: 844px) {
    .multiselectArea > .selectedlist > .selected {
        flex: 0 0 calc(100% - 5px);
        max-width: calc(100% - 5px);
    }
    .multiselectArea > .selectedlist > .btn_list > .btn_openoptionlist,
    .multiselectArea > .selectedlist > .btn_list > .btn_delselectedlist {
        flex: 0 0 calc((100%/2) - 5px);
        max-width: calc((100%/2) - 5px);
    }
    .multiselectArea > .optionlist > li.option {
        flex: 0 0 calc(100% - 10px);
        max-width: calc(100% - 10px);
    }
}
@media screen and (max-width: 414px) {
    .multiselectArea > .selectedlist {
        min-height: unset;
    }
    .multiselectArea > .selectedlist > .btn_list {
        flex-wrap: wrap;
    }
    .multiselectArea > .selectedlist > .btn_list > .btn_openoptionlist,
    .multiselectArea > .selectedlist > .btn_list > .btn_delselectedlist {
        flex: 0 0 calc(100% - 5px);
        max-width: calc(100% - 5px);
    }
}

/*usercard*/
label.usercard {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 5em;
    margin: 0px 10px;
    line-height: 1.5em;
    overflow: hidden;
    cursor: inherit;
}
label.usercard > .leftblock, label.usercard > .rightblock {
    flex: 0 0 100%;
    width: 2em;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
label.usercard > .leftblock {
}
label.usercard > .rightblock {
}
label.usercard > .rightblock > i {
}
label.usercard > .rightblock > i:hover {
    -webkit-text-stroke-width: 2px;
}
label.usercard > .rightblock > i:before {
    padding: 10px;
}
label.usercard > div:not(.leftblock):not(.rightblock) {
    display: inline-flex;
    align-items: center;
    flex: 0 0 50%;
    width: calc(100% - 2em);
    min-height: 1.5em;
}
label.usercard > .optionstatus {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 5px;
    font-size: smaller;
    background-color: #FFF;
}

/*提示是否登入、報名相關狀態*/
.msgblock {
    margin-top: 1em;
}
