﻿.sidebar {
    /*height: 100%;*/
    width: 300px;
    /*position: absolute;*/
    z-index: 102;
    top: 0;
    left: 0;
    overflow-x: hidden;
    transition: 0.5s;
}
.sidebar a:hover {
    color: #f1f1f1;
}
.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 30px;
    display: none;
}
.sidebar .list a {
    display: block;
}
.openbtn {
    font-size: 15px;
    cursor: pointer;
    background-color: #d75e37;
    color: white;
    padding: 20px 10px;
    border: none;
    writing-mode: vertical-lr;
    display: none;
}
.openbtn:hover {
    background-color: #444;
}
#main {
    transition: margin-left .5s;
    /*margin-left: 250px;*/
}
.clevel1 {
    border: 3px solid #ED6A40;
    border-radius: 25px;
    margin-top: 30px;
    margin-bottom: 10px;
}
.mcategory {
    color: black;
    display: inline-block;
    line-height: 1.7;
}
.mcategory.icon {
    padding: 0 10px; 
}
.collapse.in div, .collapsing div {
    color: gray;
    padding: 7px 0 7px 25px;
}
.collapse.in a:hover, .collapse.in a:focus {
    color: #454545;
    border-bottom: 3px dashed #ED6A40;
}
[aria-expanded="false"] .up {
    display: inline-block;
}
[aria-expanded="true"] .up {
    display: none;
}
[aria-expanded="false"] .down {
    display: none;
}
[aria-expanded="true"] .down {
    display: inline-block;
}
/* tagCloud */
.tagCloud {
    border: 3px solid #E5D2B4;
    border-radius: 20px;
}
.tagCloud a {
    padding-right: 5px;
    display: inline-block;
}
.tagCloud a:hover {
    color: inherit;
    opacity: 0.6;
}
.tagLevel1 {
    font-size: 18px;
    color: #7c99b6 !important;
}
.tagLevel2 {
    font-size: 16px;
    color: #ea437d !important;
}
.tagLevel3 {
    font-size: 15px;
    color: #a9940a !important;
}
.tagLevel4 {
    font-size: 14px;
}
@media screen and (max-width : 768px) {
	.openbtn {
        display: block;
	}
    .sidebar {
        position: absolute;
        width: 0px;
        height: 100%;
        background-color:white;
    }
    .sidebar .closebtn {
        display: block;
    }
    #main {
        margin-left: 0;
    }
}


/* =========================================================
   SunnyAudios Front V1.7I：移除手機版左側分類殘留色塊
   本版已從 sidebar.ascx 移除 <div id="main"> 開啟按鈕。
   以下 CSS 是防快取／舊標記殘留保險。
   ========================================================= */

@media screen and (max-width: 900px) {
    div#main,
    #main,
    #main *,
    #main .openbtn,
    a.openbtn,
    .openbtn,
    .sy-mobile-category-openbtn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -99999px !important;
        top: auto !important;
        width: 0 !important;
        height: 0 !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        clip-path: inset(50%) !important;
        background: transparent !important;
    }

    /* 防止舊 sidebar 在手機版預留左側紅/橘色區塊 */
    #mySidebar.sidebar {
        left: -360px !important;
        transform: translateX(-360px) !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        overflow: hidden !important;
    }

    body,
    form,
    .sy-detail-main,
    .detail-modern,
    .sy-detail-page {
        margin-left: 0 !important;
    }
}
