:root {
    --primary: #384378;
    --secondary: #CB4B2B;
    --btn_primary: #CB4B2B;
    --btn_cancel: #38437890;
    --text_primary: #404040;
    --text_hover: #e6c264;
    --btn_search: #F2BD94; /*首頁搜尋按鈕*/
    --bg_search: #FBE6D9; /*首頁搜尋底色*/
}

body {
    font-size: 16px;
}

a {
    text-decoration: none;
}

html {
    overflow-x: hidden;
}

.mobile {
    display: none !important;
}

.maskClose {
    left: calc((100vw - 40px) / 2);
    width: 40px;
    height: 40px;
    margin: 35px auto 10px auto;
    position: fixed;
    z-index: 11;
}

.maskClose a {
    outline: none;
}

.maskClose a:focus-within div {
    outline: 2px rgba(255, 255, 255, 1) dashed ;
}

.maskCloseBtn {
    width: 40px;
    height: 40px;
    background-image: url('../img/closeMask.png');
    background-color: rgba(0, 0, 0, .3);
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
    border: 10px transparent solid;
    border-radius: 999em;
    cursor: pointer;
}

.active {
    display: block !important;
}

.absolute {
    position: absolute;
}

/*活動介紹 ------ Start*/

.mainActivityContainer {
    height: 70vh;
    margin-top: 10vh;
    display: none;
}

.mainActivityPrev,
.mainActivityNext {
    width: calc((100vw - 600px) / 2);
    height: 70vh;
    padding: 0;
    margin: 0;
    line-height: 70vh;
    display: block;
    float: left;
}

.mainActivityPrev a,
.mainActivityNext a {
    outline: none;
}

.mainActivityPrev a:focus div,
.mainActivityNext a:focus div {
    outline: 2px rgba(255, 255, 255, 1) dashed;
}

.prevActBtn,
.prevAppBtn,
.nextActBtn,
.nextAppBtn {
    width: 52px;
    height: 52px;
    margin-left: auto;
    margin-right: auto;
    margin-top: calc((73vh - 52px) / 2);
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 999em;
    display: block;

}

.prevActBtn,
.prevAppBtn {
    background-image: url("../img/mainActPrev.png");
}

.nextActBtn,
.nextAppBtn {
    background-image: url("../img/mainActNext.png");
}

.mainActivityBody {
    width: 600px;
    height: 70vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: block;
    float: left;
}

.mainActivityBody div {
    transition: all .5s ease;
}

.actImg, .appImg {
    padding: 10px;
    margin: 2px;
}

.navDots {
    width: 100vw;
    height: 15px;
    text-align: center;
}

.navDots a {
    outline: none;
}

.navDots a:focus>div {
    outline: 2px rgba(255, 255, 255, 1) dashed;
}

.dotActive {
    background-color: rgba(34, 166, 139, 1) !important;
}

.navDotContainer {
    width: 15px;
    height: 15px;
    padding: 5px;
    outline: 0;
    border-radius: 999em;
    display: inline-block;
}

.navDot {
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.21);
    border-radius: 999em;
}
/*活動介紹 ------ End*/


/*上方大 banner ------ start*/
.tb_web,
.tb_mobile {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tb_web {
    width: 100vw;
    height: calc(100vw / 1440 * 623);
    display: block;
}

.tb_mobile {
    display: none;
}
/*上方大 banner ------ end*/

.mainArea {
    padding-left: calc((100% - 1224px) / 2);
    margin: 0 0 50px;
}

/*search bar ------ start*/
.searchContainer {
    width: 100%;
    height: 190px;
    padding: 70px 0px 30px 12px;
}

.searchBody,
.searchGo {
    height: calc(var(--titleFontSize) * 3.5);
    display: block;
    float: left;
    border: 0;
    outline: 0;
}

.searchBody {
    width: 950px;
    line-height: 65px;
    font-size: 1.75em;
    padding-left: 108px;
    color: var(--primary);
    background-color: var(--bg_search);
    background-image: url('../img/icon_search.png');
    background-repeat: no-repeat;
    background-position: 60px;
    background-size: 36px;
    border-radius: 5px 0 0 5px;
}

.searchBody::placeholder {
    color: #38437852;
}

.searchBody:focus {
    outline: 2px var(--primary) solid;
}

.searchGo {
    width: 250px;
    color: var(--primary);
    font-size: 1.75em;
    text-align: center;
    font-weight: 500;
    background-color: var(--btn_search);
    border-radius: 0 5px 5px 0;
    transition-duration: 0.1s;
}

.searchGo:hover {
    opacity: 0.9;
}

.searchGo:focus {
    outline: 2px var(--primary) dashed;
    opacity: 0.9;
}
/*search bar ------ end*/


/*區域按鈕 ------ start*/
.invisible {
    visibility: hidden;
}

.areaBtnArea {
    width: 1224px;
    height: 104px;
}

.areaBtnArea a {
    outline: none;
}

.areaBtnBrick {
    font-size: 0.5rem !important;
    width: calc(100% / 5);
    text-align: center;
    display: block;
    float: left;
}

.areaBtnBrick:focus-within {
    outline: 2px var(--primary) dashed;
}

.areaBtnBrick:focus-within div {
    background-color: var(--secondary);
}

.areaBtn {
    width: calc(100% - 24px);
    height: calc(var(--titleFontSize) * 3);
    line-height: calc(var(--titleFontSize) * 3);
    margin: 10px;
    color: rgba(255, 255, 255, 1);
    font-size: var(--titleFontSize);
    background-color: var(--primary);
    border-radius: 5px;
    display: block;
    transition-duration: 0.2s;
}

.areaBtn:hover {
    background-color: var(--secondary);
}

.areaDropdown {
    display: none;
}
/*區域按鈕 ------ end*/


/*館所列表 ------ start*/
.listArea {
    width: 1234px;
    min-height: 200px;
}

.museumBrick {
    width: calc(100% / 3);
    padding: 10px;
    display: inline-block;
    vertical-align: top;
}

.museumBrick:focus-within {
    outline: 2px var(--primary) dashed;
}

.museumBrick:focus-within div {
    color: var(--primary);
    visibility: visible;
}

.museumBrick:hover div {
    color: var(--primary);
    opacity: 1;
}

.photoBrick,
.collectedMask {
    width: calc(100% - 11px);
    padding-top: 60%;
    border-radius: 5px;
    position: relative;
    z-index: 1;
}

.collectedMask {
    background-image: url('../img/collected.png');
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(255, 255, 255, .65);
    float: left;
    z-index: 2;
}

.shadowBrick {
    width: calc(100% - 11px);
    padding-top: 60%;
    margin-top: calc(-60% + 10px);
    margin-left: 12px;
    border-radius: 5px;
    background-color: var(--secondary);
    display: block;
    opacity: 0;
    transition-duration: 0.1s;
}

.textBrick {
    padding-bottom: 10px;
    font-size: 1.25em;
    font-weight: 600;
    color: rgba(0, 0, 0, 1);
    float: left;
    transition-duration: 0.1s;
}

.slideContainer {
    width: 200%;
    height: 100%;
    line-height: 100%;
    overflow: hidden;
}

.actImgLink, .appImgLink {
    padding: 0;
    margin: 0;
    outline: none;
}

.actImgLink:focus img, .appImgLink:focus img {
    outline: 2px rgba(255, 255, 255, 1) dashed;
}

.maskFadIn {
    display: block !important;
    animation: fadIn .5s ease;
}

.maskFadOut {
    animation: fadOut .5s ease;
    display: none !important;
}

.moveNext {
    background-position: -634px, 0;
}

.movePrev {
    margin-left: 0 !important;
}
/*館所列表 ------ end*/

.hideBtn {
    display: none !important;
}

.filterNoResult {
    font-size: 1.5em;
    color: rgba(153, 153, 153, 1);
    font-weight: 800;
    text-align: center;
}

.emergency-pop {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 300;
}
.emergency-pop a:first-child {
    outline: none;
}
.emergency-pop a:focus div {
    outline: 2px rgba(255, 255, 255, 1) dashed;
}
.emergency-board {
    width: 395px;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px 0 40px;
}
.emergency-board .emergency-title {
    color: white;
    background-color: var(--primary);
    font-size: 20px;
    font-weight: bold;
    padding: 10px 0;
    text-align: center;
}
.emergency-board .emergency-content {
    background-color: white;
    font-size: 16px;
    padding: 24px 36px;
    text-align: justify;
    white-space: pre-wrap;
}
.emergency-content .emergency-btn {
    display: block;
    width: 100%;
    color: white;
    background-color: var(--primary);
    padding: 9px 0;
    margin: 20px 0 0;
    text-align: center;
    border-radius: 5px;
}

@media only screen and (min-width: 0px) and (max-width: 900px) {
    body {
        padding: none;
    }
    .mobile {
        display: block !important;
    }
    .pc {
        display: none !important;
    }
    .maskClose {
        top: -10px;
        right: -120px;
        width: 25px;
        height: 25px;
        /*margin: 28px 0px 20px calc(100vw - 53px);*/
    }
    .maskClose a:focus div {
        outline: none;
    }
    .maskCloseBtn {
        width: 25px;
        height: 25px;
        background-image: url('../img/closeMask.png');
        background-size: 20px;
        background-repeat: no-repeat;
        background-position: center;
        display: block;
    }
    .mainActivityContainer {
        height: 60vh;
        display: none;
    }
    .mainActivityBody {
        width: 280px;
        height: 60vh;
        padding: 0px;
        margin: 0px;
        overflow: hidden;
        display: block;
        float: left;
    }
    .mainActivityPrev,
    .mainActivityNext {
        width: calc((100vw - 280px) / 2);
        height: 60vh;
        padding: 0px;
        margin: 0px;
        line-height: 60vh;
        display: block;
        float: left;
    }
    .mainActivityPrev a:focus div,
    .mainActivityNext a:focus div {
        outline: none;
    }
    .prevActBtn,
    .prevAppBtn,
    .nextActBtn,
    .nextAppBtn {
        width: 24px;
        height: 24px;
        margin-left: auto;
        margin-right: auto;
        margin-top: calc((60vh - 24px) / 2);
        background-size: 16px;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 999em;
        display: block'

    }
    .actImg, .appImg {
        padding: 0;
        margin: 0;
    }
    .navDots {
        margin-top: 20px;
    }
    .mainArea {
        padding: 20px 0 0 20px !important;
    }
    .baseBoard {
        width: 100%;
    }
    /*上方大 banner ------ start*/
    .tb_web {
        display: none;
    }
    .tb_mobile {
        width: 100vw;
        height: calc(100vw / 375 * 506);
        display: block;
    }
    /*上方大 banner ------ end*/
    /*search bar ------ start*/
    .searchContainer {
        width: 100%;
        height: 60px !important;
        padding: 0 0 20px 0 !important;
    }
    .searchBody {
        width: calc(100% - 80px) !important;
        height: 50px;
        padding-left: 46px !important;
        font-size: 1rem;
        background-color: var(--bg_search);
        background-size: 20px !important;
        background-position: 7px;
        border-radius: 5px 0 0 5px;
    }

    .searchGo {
        width: 60px !important;
        height: 50px;
        padding: 5px;
        font-size: 1rem;
        text-align: center;
        background-color: var(--btn_search);
        border-radius: 0 5px 5px 0;
    }
    /*search bar ------ end*/
    /*區域按鈕 ------ start*/
    .areaBtnArea {
        width: calc(100% - 20px) !important;
        padding: 10px 0 20px 0 !important;
        height: 70px !important;
        margin-bottom: 20px;
    }
    .areaBtnBrick {
        display: none;
    }
    .areaDropdown {
        height: 70px;
        display: block;
    }
    .areaDropdown select {
        width: 100%;
        height: 50px;
        margin-bottom: 20px;
        padding-left: 16px;
        appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;
        color: rgba(255, 255, 255, 1);
        font-weight: 600;
        border: 0;
        border-radius: 5px;
        background-color: var(--primary);
        background-image: url('../img/dropdownArrow.png');
        background-repeat: no-repeat;
        background-position: calc(100% - 20px);
        display: block;
    }
    /*區域按鈕 ------ end*/
    .listArea {
        width: 100% !important;
        padding-top: 10px;
        padding-right: 5px;
        line-height: 100%;
        vertical-align: top;
    }
    .museumBrick {
        width: calc(100% / 2);
        clear: both;
        padding: 0 5px 0 0;
        display: inline-block;
    }
    .photoBrick,
    .collectedMask {
        padding-top: 80%;
    }
    .collectedMask {
        background-size: 70%;
    }
    .textBrick {
        padding-bottom: 10px;
        height: auto;
        min-height: calc(100vw / 8);
        line-height: calc(100vw / 20);
        font-size: calc(100vw / 22);
        font-weight: 800;
        color: rgba(0, 0, 0, 1);
        float: left;
    }
    .emergency-board {
        width: 89.33vw;
        margin: 12px 0 25px;
    }
    .emergency-board .emergency-title {
        font-size: 18px;
        padding: 8px 0;
    }
    .emergency-board .emergency-content {
        font-size: 14px;
        padding: 20px 24px;
    }
}

@media only screen and (max-width: 1440px) {
    .mainArea {
        padding-left: calc(100% / 1440 * 108);
    }
    .searchContainer {
        height: 10vw;
        padding-top: 3vw;
        padding-bottom: 0;
    }
    .searchBody {
        width: calc((100% / 1320) * 950);
        padding-left: calc((100% / 1320) * 95);
        background-size: 2vw;
        background-position: 20px;
    }
    .searchGo {
        width: calc((100% / 1320) * 250);
    }
    .areaBtnArea {
        width: calc((100% / 1320) * 1224);
    }
    .listArea {
        width: calc((100% / 1320) * 1234);
    }
}

@keyframes fadIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes downSize {
    0% {}
    100% {
        width: 0;
    }
}

@keyframes nextMainAct {
    0% {
        margin-left: 0;
    }
    100% {
        margin-left: -100%;
    }
}

@keyframes prevMainAct {
    0% {
        margin-left: -100%;
    }
    100% {
        margin-left: 0;
    }
}

@keyframes moveLeft {
    0% {
        opacity: 1;
        margin-left: 0;
    }
    100% {
        opacity: 0;
        margin-left: -50%;
    }
}