/**************************選項相關****************************/

/************************RWD-行動裝置優先**********************/
/*選項容器*/
.fun_option_container{
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FFF;
    overflow: auto;
    z-index: 99;
}

/*選項頭部容器*/
.fun_option_header_container{
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 16%;
    min-height: 100px;
    border-bottom: 1px solid #DADADA;
    overflow: hidden;
}

/*選項內容容器*/
.fun_option_content_container{
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: max(16%,100px);
    width: 100%;
    height: auto;
    overflow-y: auto;
    padding-top: 20px;
    padding-bottom: 5px;
    padding-left: 5%;
    padding-right: 5%;
}

/*選項內容子容器*/
.fun_option_content_sub_container{
    display: flex;
    flex-direction: column;
    gap: max(2vh, 10px);
}

/*選項標題*/
.fun_option_header_title{
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5.5%;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    text-align: center;
}

/*選項-返回按鈕*/
.fun_option_header_back_btn{
    box-sizing: border-box;
    position: absolute;
    top: 46.46%;
    left: 5.6%;
    width: fit-content;
    height: fit-content;
    border: none;
    background-color: unset;
    display: flex;
    align-items: center;
    gap: 1.5vw;
}
.fun_option_header_back_btn img{
    display: inline-block;
}
.fun_option_header_back_btn p{
    display: inline-block;
}
/*返回鍵(active)*/
.fun_option_header_back_btn:active{
    transform: scale(0.95);
    cursor: pointer;
    transition: transform 0.1s ease;
}

/*選項按鈕容器*/
.fun_option_content_single_container{
    width: 100%;
    height: auto;
    min-height: 30px;
    background-color: #FFF;
    border: 1px solid #BDBDBD;
    border-radius: 10px;
}

/*選項按鈕*/
.fun_option_content_btn{
    width: 100%;
    height: 100%;
    background-color: unset;
    border: unset;
    margin: 0;
    padding: 1.84vh 2.46vw;
}

/*確認按鈕容器*/
.fun_option_accept_container {
    width: 80%;
    height: 40px;
    margin: auto;
}

/*確認按鈕容器*/
.fun_option_accept_btn {
    width: 100%;
    height: 100%;
    background-color: #50B5B9;
    border: #399DA0 1px solid;
    border-radius: 30px;
    box-shadow: 0px 4px 0px 0px #399DA0;
    cursor: pointer;
    transition: all .15s ease;
    transform: translateY(0);
}

.fun_option_accept_btn:active {
    transform: translateY(4px);
    box-shadow: 0px 0px 0px 0px #399DA0;
}

/*選項-已選擇*/
.fun_option_content_single_container_selected{
    border: 1px solid #399DA0;
    background-color: #50B5B9;
}
.fun_option_content_single_container_selected p{
    color: #FFF;
}

/*選項按鈕(active)-未選擇*/
.fun_option_content_single_container_unselected:active{
    border: 1px solid #399DA0;
    background-color: #50B5B9;
    transition: transform 0.15s ease;
    transform: scale(0.95);
}
.fun_option_content_single_container_unselected:active p{
    color: #FFF;
    transform: scale(1.1);
}

/*選單顯示效果*/
.fun_option_hidden, .fun_profile_option_hidden{
    transform: translateX(-100vw);
    transition: transform 0.2s ease, visibility 0s linear 0.2s;
    pointer-events: none;
    visibility: hidden;
}
.fun_option_active, .fun_profile_option_active{
    transform: translateX(0);
    transition: transform 0.2s ease, visible 0s;
    pointer-events: auto;
    visibility: visible;
}
.fun_option_init{
    transform: translateX(0);
    pointer-events: auto;
}
.fun_mask_hidden{
    display: none;
}
.fun_mask_active{
    display: none; /*手機不需要顯示*/
}
.fun_mask_init{
    display: none;
}


/************************RWD-小平板(480px~767.99px)*********************/
@media (min-width: 480px){
    
}

/************************RWD-大平板、小電腦(768px~1199.99px)*************/
@media (min-width: 768px){
    /*****************選項相關*****************/
    /*選項容器(會變成彈出式)*/
    .fun_option_container{
        width: 40vw;
        height: 80vh;
        left: 30vw;
        top: 10vh;

        border: 2px solid #DADADA;
        box-shadow: 0 0 10px rgba(0,0,0,0.8);
    }

    /*選項-返回按鈕*/
    .fun_option_header_back_btn{
        gap: 1vw;
    }

    /*選單顯示效果*/
    .fun_option_hidden{
        transition: opacity 0.2s ease, transform 0s ease 0.2s, visibility 0s linear 0.2s;
        opacity: 0;
        pointer-events: none;
    }
    .fun_option_active{
        transition: opacity 0.2s ease, visible 0s;
        opacity: 1;
        pointer-events: auto;
    }
    .fun_profile_option_hidden{
        transition: opacity 0.3s ease, transform 0s ease 0.2s, visibility 0s linear 0.3s;
        opacity: 0;
        pointer-events: none;
    }
    .fun_profile_option_active{
        transition: opacity 0.3s ease, visible 0s;
        opacity: 1;
        pointer-events: auto;
    }
    .fun_option_init{
        opacity: 1;
        pointer-events: auto;
    }
    .fun_mask_hidden{
        transform: translateX(-100vw);
        opacity: 0;
        transition: opacity 0.2s ease, transform 0s ease 0.2s;
        display: unset;
    }
    .fun_mask_active{
        transform: translateX(0);
        opacity: 1;
        transition: opacity 0.2s ease;
        display: unset;
    }
    .fun_mask_init{
        transform: translateX(0);
        opacity: 1;
        display: unset;
    }
}

/************************RWD-大螢幕(1200px以上)**************************/
@media (min-width: 1200px){
    /*****************選項相關*****************/
    /*選項-返回按鈕*/
    .fun_option_header_back_btn{
        gap: 0.8vw;
    }
}

/************************RWD-手機、小平板橫置處理(寬768以內、高600.01以內)******************************/
@media (orientation: landscape) and (max-height: 600px){
    /*****************選項相關*****************/
    /*選項容器*/
    .fun_option_container{
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
    }

    /*選項頭部容器*/
    .fun_option_header_container{
        height: 20%;
    }

    /*選項內容容器*/
    .fun_option_content_container{
        top: max(20%,100px);
    }

    /*選項內容子容器*/
    .fun_option_content_sub_container{
        gap: max(10vh, 20px);
    }

    /*選單顯示效果*/
    .fun_option_hidden{
        transform: translateX(-100vw);
        transition: transform 0.2s ease, visibility 0s linear 0.2s;
        pointer-events: none;
        opacity: unset;
    }
    .fun_option_active{
        transform: translateX(0);
        transition: transform 0.2s ease, visibility 0s;
        pointer-events: auto;
        opacity: unset;
    }
    .fun_profile_option_hidden{
        transition: opacity 0.3s ease, transform 0s ease 0.2s, visibility 0s linear 0.3s;
        opacity: 0;
        pointer-events: none;
    }
    .fun_profile_option_active{
        transition: opacity 0.3s ease, visible 0s;
        opacity: 1;
        pointer-events: auto;
    }
    .fun_option_init{
        transform: translateX(0);
        pointer-events: auto;
        opacity: unset;
    }
    .fun_mask_hidden{
        display: none;
    }
    .fun_mask_active{
        display: none; /*手機不需要顯示*/
    }
    .fun_mask_init{
        display: none;
    }
    
}

/************************hover偽類處理***********************************/
@media (hover: hover) and (pointer: fine){
    /*選項按鈕(hover)-未選擇*/
    
    .fun_option_content_single_container_unselected:hover{
        border: 1px solid #399DA0;
        background-color: #50B5B9;
    }
    .fun_option_content_single_container_unselected:hover button{
        cursor: pointer;
    }
    .fun_option_content_single_container_unselected:hover p{
        color: #FFF;
        transform: scale(1.1);
    }

    /*選項按鈕(active)-未選擇*/
    
    .fun_option_content_single_container_unselected:active{
        border: 1px solid #399DA0;
        background-color: #50B5B9;
        transition: transform 0.15s ease;
        transform: scale(0.95);
    }
    .fun_option_content_single_container_unselected:active button{
        cursor: pointer;
    }
    .fun_option_content_single_container_unselected:active p{
        color: #FFF;
        transform: scale(1.1);
    }

    /*返回鍵(hover)*/
    .fun_option_header_back_btn:hover{
        transform: scale(1.1);
        cursor: pointer;
        transition: transform 0.1s ease;
    }

    /*返回鍵(active)*/
    .fun_option_header_back_btn:active{
        transform: scale(0.95);
        cursor: pointer;
        transition: transform 0.1s ease;
    }
}