html 
{
  scrollbar-width: none;
}

@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Thin-Italic.woff2') format('woff2');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Xlight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Xlight-Italic.woff2') format('woff2');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Light-Italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Medium-Italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-SemiBold-Italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Bold-Italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-XBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-XBold-Italic.woff2') format('woff2');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Heavy.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Heavy-Italic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Black.woff2') format('woff2');
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SVN-Gilroy';
  src: url('font/SVN-Gilroy-Black-Italic.woff2') format('woff2');
  font-weight: 950;
  font-style: italic;
  font-display: swap;
}
body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea {
  font-family: 'SVN-Gilroy', sans-serif;
}
.uk-font-primary 
{
  font-family: 'SVN-Gilroy';
}
.uk-navbar-container .uk-navbar 
{
  width:637px;
  position: fixed;
  bottom: 16px;
  left: 50%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translate(-50%, 0%);
  background-color: white;
  padding: 6px 6px 6px 19px;
  box-sizing: border-box;
}

#tm-dialog
{
  padding: 104px 48px;
}
.single-post .uk-margin:has(>img)
{
  margin-bottom: 10px !important;
}
.single-post *+.uk-margin:has(>img)
{
  margin-top:10px !important;
}
.uk-navbar-right {
  width: 128px;
  flex: none;
  display: flex;
  justify-content: flex-end;  
}

.uk-navbar-toggle {
  margin-left: auto;           
}
.uk-navbar-toggle {
  position: relative;
  flex: none;
  width: 128px;
  min-width: 0;
  height: 49px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;              
  white-space: nowrap;
  background-color: #FFEA00;
  color: #000 !important;
  transition: width .45s cubic-bezier(.65, 0, .35, 1),
              background-color .2s linear,
              color .2s linear;
}

.uk-navbar-toggle[aria-expanded="true"] {
  width: 49px;
}

.uk-navbar-toggle:hover {
  background-color: #000;
  color: #fff !important;
}

.uk-navbar-toggle::before {
  content: "Menu";
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  opacity: 1;
  transition: opacity .2s linear .25s;  
}
.uk-navbar-toggle[aria-expanded="true"]::before {
  opacity: 0;
  transition: opacity .15s linear 0s;  
}

.uk-navbar-toggle .uk-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 49px;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s linear 0s;
}
.uk-navbar-toggle[aria-expanded="true"] .uk-icon {
  opacity: 1;
  transition: opacity .2s linear .25s;  
}

   :root {
    --tm-curtain-duration: 0.6s;
    --tm-curtain-ease: cubic-bezier(.77, 0, .18, 1);
    --tm-vh: 100vh;                     
}
@supports (height: 100dvh) {
    :root { --tm-vh: 100dvh; }
}

/* --------------------------------------------------------------------------
   1. Navbar: không opacity. Dùng đúng quãng đường / duration / easing của dialog
      => navbar luôn dính ở đáy dialog, trượt đồng bộ.
   -------------------------------------------------------------------------- */
@keyframes tmNavIn {
    from { transform: translate(-50%, var(--tm-vh)); }
    to   { transform: translate(-50%, 0); }
}
@keyframes tmNavOut {
    from { transform: translate(-50%, 0); }
    to   { transform: translate(-50%, var(--tm-vh)); }
}

/* chờ sẵn ở dưới màn hình (trước khi rèm bắt đầu chạy) */
html.tm-nav-out .uk-navbar-container .uk-navbar {
    transform: translate(-50%, var(--tm-vh)) !important;
}
/* trượt lên cùng rèm (mở) hoặc trượt lên lại sau khi đóng xong */
html.tm-nav-in .uk-navbar-container .uk-navbar {
    animation: tmNavIn var(--tm-curtain-duration) var(--tm-curtain-ease) backwards !important;
}
/* trượt xuống cùng rèm (đóng) */
html.tm-nav-down .uk-navbar-container .uk-navbar {
    animation: tmNavOut var(--tm-curtain-duration) var(--tm-curtain-ease) forwards !important;
}

/* Header (chứa navbar) nằm trên dialog suốt thời gian menu mở,
   để navbar đi cùng rèm. Chỉ navbar nhận click, phần còn lại của header thì không. */
html.tm-dialog-lift .tm-header {
    z-index: 100001 !important;
    pointer-events: none;
}
html.tm-dialog-lift .uk-navbar-container .uk-navbar {
    pointer-events: auto;
}

/* --------------------------------------------------------------------------
   2. Khoá scroll trang nền khi dialog mở
   -------------------------------------------------------------------------- */
html.tm-dialog-open,
html.tm-dialog-open body {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   3. Dialog full-screen (ghi đè inline style của UIkit Drop)
   -------------------------------------------------------------------------- */
#tm-dialog.tm-curtain-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    box-sizing: border-box;
    z-index: 100000 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   4. Hai animation độc lập của dialog
   -------------------------------------------------------------------------- */
@keyframes tmCurtainIn {
    from { transform: translate3d(0, 100%, 0); }
    to   { transform: translate3d(0, 0, 0); }
}
@keyframes tmCurtainOut {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, 100%, 0); }
}

#tm-dialog.tm-curtain-in {
    animation: tmCurtainIn var(--tm-curtain-duration) var(--tm-curtain-ease) backwards !important;
}
#tm-dialog.tm-curtain-out {
    animation: tmCurtainOut var(--tm-curtain-duration) var(--tm-curtain-ease) forwards !important;
}

@media (prefers-reduced-motion: reduce) {
    #tm-dialog.tm-curtain-in,
    #tm-dialog.tm-curtain-out{
        animation-duration: .01s !important;
    }
}


#tm-dialog-mobile:not(.uk-open){
  display:none!important;
}
#tm-dialog-mobile.uk-open{
  position:fixed!important;
  top:0!important;left:0!important;right:0!important;bottom:auto!important;
  width:100vw!important;max-width:none!important;
  height:100vh!important;height:100dvh!important;max-height:none!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  box-sizing:border-box;
}

html:has(#tm-dialog-mobile.uk-open),
html:has(#tm-dialog-mobile.uk-open) body{
  overflow:hidden;
}


@media(max-width:1023px)
{

  .single-post *+.uk-margin:has(>img)
{
  margin-top:5px !important;
}
.single-post .uk-margin:has(>img)
{
  margin-bottom: 5px !important;
}
  
  .uk-navbar-toggle:hover {
    background-color: #FFEA00;
    color: #000000 !important;
  }
    .uk-navbar-toggle[aria-expanded="true"]
  {
    width:43px !important;
  }
  .uk-navbar-toggle .uk-icon
  {
    height:43px !important;
    width:43px !important;
  }
  .uk-navbar-item, .uk-navbar-nav>li>a, .uk-navbar-toggle
  {
    min-height: 43px !important;
  }
  /* .uk-navbar-container .uk-navbar {
    position: static;
    transition: translate;
    transform: translate(0);
    gap: 16px;
    margin-top: 43px;
} */
  #tm-dialog-mobile{
      padding-top:98px;
  }
  .uk-navbar-container .uk-navbar
  {
    height:fit-content;
    padding:6px 6px 6px 10px;
    margin:0px ;
    gap: initial;
    box-sizing: border-box;
    top:20px;
    width: calc(100% - 40px);

  }
  .uk-navbar-toggle
  {
    font-size: 15px;
    padding:13px 22px;
    width:83px;
    min-height: 43px;
    height:43px;
  }
  .uk-navbar-toggle::before
  {
    width:83px;
  }
  html:has(#tm-dialog-mobile.uk-open) .tm-header-mobile .uk-navbar-container .uk-navbar{
    z-index:100001;
  }
}
@media(max-width:639px)
{
  .uk-navbar-container .uk-navbar
  {
    width: calc(100% - 20px);
    top:10px;
  }
}
