/* Light mode */
@media (prefers-color-scheme: light) 
{
    .d-none-on-light_theme { display: none !important; }
    .d-block-on-light_theme { display: block !important; }
    .d-block-on-dark_theme { display: none !important; }
  }
  
  /* Dark mode */
  @media (prefers-color-scheme: dark) 
  {

    /* Show\Hide classes */
    .d-none-on-dark_theme { display: none !important; }
    .d-block-on-light_theme { display: none !important; }
    .d-block-on-dark_theme { display: block !important; }
    body.light_theme .d-block-on-dark_theme { display: none !important; }
  

    /* colors */
    :root{
        --fullblack-color: #141414;
        --black-color: #181818;
        --gray-color: #909090;
        /* --primary-color: #303030; */
        --primary-color: #c18973;
        --secondary-color: #696969;
        --card-color: #1f1f1f;
        --muted-color: #424242;
        /* --white-color: #dbdbdb; */
        --pure-white-color: #ffffff;
        
        --header-color: #fff;
        --link-color: #fff;
        --text-color: #dbdbdb;
        --subtext-color: #909090;
        --body-color: #181818;

        --bronze-color: rgb(173 136 101);


    }

    /* text color */

    body:not(.light_theme) *:not(.unbind-theme),
    body:not(.light_theme),
    body:not(.light_theme) .text-dark:not(.unbind-theme),
    body:not(.light_theme) .text-dark-hover:not(.unbind-theme):hover,
    body:not(.light_theme) .text-dark-hover:not(.unbind-theme):focus,
    body:not(.light_theme) .text-dark-main.active:not(.unbind-theme),
    body:not(.light_theme) a.text-dark-hover:not(.unbind-theme):hover,
    body:not(.light_theme) a.text-dark-hover:not(.unbind-theme):focus,
    body:not(.light_theme) a.text-dark-main.active:not(.unbind-theme)
    {
        color: var(--text-color) !important;
    }
    
    body:not(.light_theme) .text-light:not(.unbind-theme),
    body:not(.light_theme) .text-light-hover:not(.unbind-theme):hover,
    body:not(.light_theme) .text-light-hover:not(.unbind-theme):focus,
    body:not(.light_theme) .text-light-main.active:not(.unbind-theme),
    body:not(.light_theme) a.text-light-hover:not(.unbind-theme):hover,
    body:not(.light_theme) a.text-light-hover:not(.unbind-theme):focus,
    body:not(.light_theme) a.text-light-main.active:not(.unbind-theme)
    
    {
        color: var(--subtext-color) !important;
    }

    body:not(.light_theme) .border.text-light:not(.unbind-theme) {
      border-color: var(--subtext-color) !important;
    }
   

    body:not(.light_theme) h1:not(.unbind-theme),
    body:not(.light_theme) h2:not(.unbind-theme),
    body:not(.light_theme) h3:not(.unbind-theme),
    body:not(.light_theme) h4:not(.unbind-theme),
    body:not(.light_theme) h5:not(.unbind-theme),
    body:not(.light_theme) h6:not(.unbind-theme),
    body:not(.light_theme) .h1:not(.unbind-theme),
    body:not(.light_theme) .h2:not(.unbind-theme),
    body:not(.light_theme) .h3:not(.unbind-theme),
    body:not(.light_theme) .h4:not(.unbind-theme),
    body:not(.light_theme) .h5:not(.unbind-theme),
    body:not(.light_theme) .h6:not(.unbind-theme),
    body:not(.light_theme) .display-1:not(.unbind-theme),
    body:not(.light_theme) .display-2:not(.unbind-theme), 
    body:not(.light_theme) .display-3:not(.unbind-theme), 
    body:not(.light_theme) .display-4:not(.unbind-theme), 
    body:not(.light_theme) .display-5:not(.unbind-theme), 
    body:not(.light_theme) .display-6:not(.unbind-theme) 
    {
        color: var(--header-color) !important;
    }

    body:not(.light_theme) .text-mw-main:not(.unbind-theme),
    body:not(.light_theme) .text-mw-main-hover:not(.unbind-theme):hover,
    body:not(.light_theme) .text-mw-main-hover:not(.unbind-theme):focus,
    body:not(.light_theme) .text-mw-main.active:not(.unbind-theme),
    body:not(.light_theme) a:not(.unbind-theme),
    body:not(.light_theme) a.text-mw-main-hover:not(.unbind-theme):hover,
    body:not(.light_theme) a.text-mw-main-hover:not(.unbind-theme):focus,
    body:not(.light_theme) a.text-mw-main.active:not(.unbind-theme)
    {
      color: var(--link-color) !important
    }

    body:not(.light_theme) .text-mw-bronze:not(.unbind-theme),
    body:not(.light_theme) .text-mw-bronze-hover:not(.unbind-theme):hover,
    body:not(.light_theme) .text-mw-bronze-hover:not(.unbind-theme):focus,
    body:not(.light_theme) .text-mw-bronze.active:not(.unbind-theme),
    body:not(.light_theme) a.text-mw-bronze-hover:not(.unbind-theme):hover,
    body:not(.light_theme) a.text-mw-bronze-hover:not(.unbind-theme):focus,
    body:not(.light_theme) a.text-mw-bronze.active:not(.unbind-theme)
    {
      color: var(--bronze-color) !important
    }

    body:not(.light_theme) .form-control:not(.unbind-theme),
    body:not(.light_theme) .form-group label:not(.unbind-theme)
    {
      color: var(--black-color) !important
    }
    

    /* btn text */
    body:not(.light_theme) .btn.btn-white.bordered {
      border: none !important;
    }
    body:not(.light_theme) .btn-white:not(.unbind-theme)
    {
      background-color: var(--muted-color) !important;
    }
    
    /* body:not(.light_theme) .btn-white.text-dark,
    body:not(.light_theme) .btn-white .text-dark
    {
      color: var(--fullblack-color) !important;
    } */

    /* backgroud colors */

    body:not(.light_theme),
    body:not(.light_theme) .bg-white:not(img)
    {
      background-color: var(--black-color) !important;
    }
   


    /* body:not(.light_theme) .modal-content, */
     /* body:not(.light_theme) .form-control,
    body:not(.light_theme) .form-control:focus
    {
      background-color:  var(--muted-color) !important;
    } */
    body:not(.light_theme) .card
    {
      background-color:  var(--card-color) !important;
    } 


    /* body:not(.light_theme) img{
      -webkit-filter: brightness(0.85);
      -moz-filter: brightness(0.85);
      -o-filter: brightness(0.85);
      filter: brightness(0.85);
    }
    body:not(.light_theme) .twoGIS-map,body:not(.light_theme) #gMap {
      -webkit-filter: grayscale(100%) brightness(.75);
      filter: grayscale(100%) brightness(.75);
    } */

    body.light_theme{
      background-color: var(--pure-white-color) !important;
    }

  
    /* заголовки */
   /* 
    body:not(.light_theme) .text-white,body:not(.light_theme) .text-white-hover:hover,body:not(.light_theme) .text-white-hover:focus,body:not(.light_theme) .text-white-main.active,body:not(.light_theme) a.text-white-hover:hover,body:not(.light_theme) a.text-white-hover:focus,body:not(.light_theme) a.text-white-main.active{
      color: var(--white-color)  !important
    }
    body:not(.light_theme) .pure-material-switch {
      color: var(--white-color)  !important
  
    }
    body:not(.light_theme) .pure-material-switch > span::before {
      background-color: var(--gray-color)  !important
  
    }
  .text-black {
    color :#fff !important;
  }
  
    body:not(.light_theme) .card, body:not(.light_theme) .bg-light,body:not(.light_theme)  .bg-light-hover:hover, body:not(.light_theme) .bg-light-hover:focus, body:not(.light_theme) .bg-light-hover.active{background-color: var(--card-color) !important;}
    body:not(.light_theme) .bg-muted, body:not(.light_theme) .bg-muted-hover:hover, .body:not(.light_theme) bg-muted-hover:focus,body:not(.light_theme) .bg-muted-hover.active{background-color: var(--primary-color) !important;}
    body:not(.light_theme) .bg-black,body:not(.light_theme) .bg-black-hover:hover, .body:not(.light_theme) bg-black-hover:focus,body:not(.light_theme) .bg-black-hover.active{background-color: var(--fullblack-color) !important;}
    body:not(.light_theme) .pure-material-switch > input:checked + span::after {
      background-color: var(--white-color)  !important
    } */
    
  
    
  }