html, body {
    font-family: "Noto Sans TC !important";
    font-weight: 600;
    font-size: 15px !important;
}

:root
{
    --il-story-post-sticky-top: var(--bs-app-header-height);
}

/* variable */
div[font-name=font-noto] {
  --il-font-family: "Noto Sans HK", sans-serif;
  --il-font-optical-sizing: auto;
  --il-font-weight: normal;
  --il-font-style: normal;
}

div[font-name=font-chiron] {
  --il-font-family: "Chiron GoRound TC", sans-serif;
  --il-font-optical-sizing: auto;
  --il-font-weight: normal;
  --il-font-style: normal;
}

div[font-name=font-lxgw] {
  --il-font-family: "LXGW WenKai TC", cursive;
  --il-font-optical-sizing: auto;
  --il-font-weight: normal;
  --il-font-style: normal;
}

div[font-size=font-size-xs] {
    --il-font-size: 1rem;
    --il-font-space: unset;
}

div[font-size=font-size-sm] {
    --il-font-size: 1.1rem;
    --il-font-space: unset;
}

div[font-size=font-size-normal] {
    --il-font-size: 1.2rem;
    --il-font-space: unset;
}

div[font-size=font-size-lg] {
    --il-font-size: 1.3rem;
    --il-font-space: 0.1rem;
}

div[font-size=font-size-xl] {
    --il-font-size: 1.4rem;
    --il-font-space: 0.15rem;
}

div[font-size=font-size-xxl] {
    --il-font-size: 1.6rem;
    --il-font-space: 0.2rem;
}

div[font-size=font-size-xxxl] {
    --il-font-size: 1.8rem;
    --il-font-space: 0.2rem;
}


/* Override */
.app-sidebar-secondary .menu.app-sidebar-menu {
    padding: 0.2rem;
}
.app-sidebar-secondary .menu.app-sidebar-menu > .menu-item > .menu-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.app-sidebar-secondary .menu.app-sidebar-menu > .menu-item .menu-link {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}
.btn-xs, .btn-group-xs > .btn {
  --bs-btn-padding-y: 0.2rem;
  --bs-btn-padding-x: 0.4rem;
  --bs-btn-font-size: 0.9rem;
  --bs-btn-border-radius: 0.4rem;
}
.menu-link .menu-title {
    -webkit-user-select: none; /* Safari */
    user-select: none;
    /* color: var(--bs-text-primary) !important; */
}
.menu-link .menu-title:hover {
    filter: brightness(0.5);
}
html[data-bs-theme=dark] .menu-link .menu-title:hover {
    filter: brightness(1.5);
}

.app-sidebar-primary .app-navbar-item i {
    margin-left:0.4rem;
    color: var(--bs-text-gray-900);
}

.app-sidebar-primary .app-navbar-item a:hover i
, .app-sidebar-primary .app-navbar-item a:focus i
, .app-sidebar-primary .app-navbar-item a.active i
{
    color: var(--bs-text-gray-100);
}

#kt_app_header
, #kt_scrolltop
, #kt_app_sidebar
{
    z-index: 99999;
}

.ad.ad-banner
{
    overflow: hidden;
}

/* The container for the tooltip trigger */
.tipable {
  position: relative;
  cursor: pointer;
  display: inline-block;
   /*border-bottom: 1px dashed #666; Visual cue for the user */
}

/* Creating the tooltip box using a pseudo-element */
.tipable::after {
  content: attr(data-tooltip); /* Pulls text from the HTML data attribute */
  position: absolute;
  bottom: 125%; /* Positions the box above the text */
  left: 50%;
  transform: translateX(-50%);
  isolation: isolate;
  z-index: 9999;

  /* Custom Styles (Modify these to your liking) */
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  
  /* Hiding the tooltip by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

/* Showing the tooltip on hover */
.tipable:hover::after {
  opacity: 1;
}



/* style */
.story-post {
    font-family: var(--il-font-family) !important;
    font-size: var(--il-font-size) !important;
    font-weight: var(--il-font-weight) !important;
    font-style: var(--il-font-style) !important;
    letter-spacing: var(--il-font-space) !important;
}

.story-post-sidebar {
    position: sticky;
    top: var(--il-story-post-sticky-top);
    padding-top:8px;
    padding-bottom: 5px;
    z-index: 9997;
}

.story-post-topbar {
    position: sticky;
    top: var(--il-story-post-sticky-top);
    background-color: var(--bs-card-bg);
    padding-top:8px;
    padding-bottom: 5px;
    z-index: 9998;
    justify-content: space-between;
    flex-direction: column;
}

.story-post-image {
    flex:0.3 300px;
    /*
    position: sticky;
    top: calc(var(--il-story-post-sticky-top) + 55px);
    */
}
.story-post-intro {
    flex:1 500px;
}

.clickable {
    cursor: pointer;
    filter: brightness(0.8);
    -webkit-user-select: none; /* Safari */
    user-select: none;
}

.clickable:hover {
    filter: brightness(1.1);
}

.clickable-no-brightness {
    filter: unset;
}
.clickable-no-brightness:hover {
    filter: unset;
}

html[data-bs-theme=dark] .clickable:hover {
    filter: brightness(1.3);
}

html[data-bs-theme=dark] .theme-mode-button[data-kt-value=light] {
    display: unset;
}
html[data-bs-theme=dark] .theme-mode-button[data-kt-value=dark] {
    display: none !important;
}
html[data-bs-theme=light] .theme-mode-button[data-kt-value=dark] {
    display: unset;
}
html[data-bs-theme=light] .theme-mode-button[data-kt-value=light] {
    display: none !important;
}

.filter-primary {
    filter: hue-rotate(330deg);
}

.ease-in-out {
    transition: transform 0.5s ease-in-out;    
}


.story-in-ad {
    float:right;
}


/* Media */

@media screen and (max-width: 480px) {
    :root
    {
        --il-story-post-sticky-top: calc( var(--bs-app-header-height) - 2px);
    }
    
    #kt_app_page {
        margin-bottom: 50px;
    }
    
    .card .card-body
    {
        padding: 1rem;
    }
    
    .app-content
    {
        padding-top: 0.5rem !important;
    }
    
    .app-container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .post-control-panel {
        background-color: var(--bs-card-bg);
        position: fixed;
        bottom:0px;
        left:0px;
        width:100%;
        z-index: 99;
        padding: 0.75rem 1rem 0px;
        align-items: center;
        
    }
    
    .post-control-panel i {
        font-size: 1.3rem !important;
    }    
    
    .story-post-image {
        flex:1;
        position: unset;
        top: unset;
    }
    
    .story-in-ad {
        float:unset;
    }

}


@media screen and (min-width: 480px) {
    
    
    
}

