
.menu input, menu label.toggleClose, .menuClose, #implicitCloseMenu, #stickyMenuClose, #implicitCloseMenuContainerTop input  {
  position:absolute;
  opacity: 0;  
  height: 0;
  width: 0;   
  }
  
  #implicitCloseMenu
  {  
    display:block;width:100%;height:100%;
    cursor: pointer; 
  }
  
  /*
  :has(.menu label.toggleClose input:checked) .menuClose
  {
  position: absolute;
  display: block;
  z-index: 100;
  width:99%;
  height:99%;  
  background-color: aqua;  
  }
  */
  .menu {  
  position: relative;
  /*background-color: blue;  */
  z-index: 200;
  min-width: 100%;
  max-width:max-content;
  label {
  min-width: 100%;
  max-width:max-content;
  cursor: pointer;  
  }
  user-select: none;
  }
  
  .items {  
  /*background-color: blue; */
  display: none;
  }
  
  .items > .menu {
    display: none; 
  }
  
  .menu .items {
  /*position:absolute; not for cascade*/
  z-index: 202;
  }
  
  
  .menu > * > * > .items {
  /*position:absolute;*/
  top:100%;
  left:0;
  }
  
  .menu > * > * > .items {
  /*position:absolute;*/
  top:100%;
  left:0;
  }
  
  
  .menu:has(label.toggleClose input:checked) label.toggleClose {    
  pointer-events: none;
  cursor: pointer;
  * > * {
  pointer-events: initial;
  }
  }
  
  .menu label.toggleClose input:checked ~ .items{
    display: grid;
    border-top: 0.1em solid white;
    /*padding: 0.5em 0;*/
    /*background-color: rgb(43, 43, 43);*/
    background-color: rgb(25, 25, 25);
  }
  
  .items:has(.menu input:checked)  {  
    display: block;
    border-top: 0.1em solid white  
  }
  
  .items .menu label:has(input:checked) > .title  {    
    /*width:100%; */
    font-style: italic; 
    font-weight: bold; 
  }
  
  
  .menu label.toggleClose:has(input:checked) > .title  {   
    font-style: italic;
    font-weight: bold;
  }
  
  @media (min-width: 45rem)  {
  
    #implicitCloseMenu, #stickyMenuCloseContainer
    {
      display:none;
    }
  
    #showMenu {
      display:none;
      bottom:2.5rem;
    }
  
    .menu .title {
      box-sizing: border-box;
    }
  
    .menuComp {
      color:white;      
    }
  
    #livecams
    {
      display: block;    
      padding:0.5em 0;
      margin:1em 0;    
  
      label > label > .title {
        border-top:0.1em solid white;
        padding: 0.5em;
        display: inline-block;
        background-color: 434343;
        width: 100%;
      }       
    }

    .menu label.toggleClose:has(input:checked) .menu.active > label > .title  {      
      text-decoration:underline;
    }  
  
  /*
    .menu.active {                                   
        font-style: italic;
        a {
            text-decoration: underline; 
            pointer-events: none;           
        }
    }
*/
    .menu.active {                                   
      font-style: italic;
      > a, > .title, > .title > a {
          text-decoration: underline; 
          pointer-events: none;           
      }
    }
  
    #livecams.menu label.toggleClose > .items 
    {        
        display:block!important;
        border-top: 0.1em solid white;
        border-bottom: none;
        margin: 0!important;
        background-color: rgb(43, 43, 43);
        padding: 0.5em 0;
      }
  
    .menuComp .menu:nth-of-type(n + 2):not(#livecams)::before {
      content: '\00a0|\00a0';
    }
  
    .menu label.toggleClose > .items{    
      border-top: 0.1em solid white;
      border-bottom: 0.1em solid white;   
      padding: 0.5em 0;
      margin: 0.5em;
      background-color: rgb(43, 43, 43);
    }
      
      
  
    .menu label.toggleClose input:checked ~ .items{
      display: block;
      /*border-top: 0.1em solid white;
      border-bottom: 0.1em solid white;   
      padding: 0.5em 0;
      margin: 0.5em;
      */
      background-color: rgb(43, 43, 43);
    }
  
    .menuComp .liveCamSettings {
    display: block;
    height: max-content;
    border-top: 0.1em solid white;
    border-bottom: 0.1em solid white;   
    background-color: rgb(43, 43, 43);  
    padding: initial;
    margin: initial;
    .menu .title {  
      display: inline-block;  
      padding: 0.5em 0;    
    }

    .menu.active {                                                      
      display:block;
    }
  
    .menu a {                
      display: inline-block;
      width: 100%;      
    }
  
    .menu .menu::before {
      content: initial!important;           
    }  
  
    /*
    .menu .menu > .title  {
      display: block;
        width:100%;
        text-align: left;
        padding-left: 0.5em;
        padding-right: 0.5em;
    }  */
  
    .menu .menu .title  {
      display: block;
      /*width:100%;*/
      text-align: left;
      padding-left: 0.5em;
      padding-right: 0.5em;
    }  
  
    .menu .title:hover {
      background-color: green;
    }
  
    .menu .layout a:hover {
      background-color: green;
    }
    
    .menu label .items {
      position: absolute;
      top:calc(100% + 0.05em);    
    }
  
  
    .menu label .items .menu .items {
      position: absolute;
      top:inherit;    
      left:100%;
      top:0px;  
      border-top: none;    
    }
  
    .menu label input:checked ~ .items {
      position: absolute;
      top:calc(100% + 0.05em);    
      background-color: rgb(32, 32, 32);    
      .menu {
        display: block;
      }    
    }
  
    .menu .items {
      width:max-content;    
  
    }
  
    .items > .small {    
      padding: 0 0.5em;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      align-content: center;
      align-items: center;
      justify-content: space-around;
      height:100%;
      align-items: center;
      width:15em;
      .menu {                
          text-align: center;
          border: 1px solid white!important;                         
          flex:2 0 25%;
          min-width: 25%;
          width: 5em;       
          
          max-width: initial;            
          a {                
              display: block;
              width: 100%; 
              padding: 0.2em 0;                   
          }
      }
    }
  }
  
  
    
  }
  
  .menuComp {         
      background-color: black;   
  }
  
  @media (max-width: 45rem)  {
  
    
    #showMenu {
  
      bottom:2rem;
    }
  
    .menu label.toggleClose:has(input:checked) > .title  {           
      background-color: rgb(43, 43, 43);  
      width:100%;   
    }  

    .menu label.toggleClose:has(input:checked) .menu.active > label > .title  {      
      text-decoration:underline;
    }  
  
    .items .menu label:has(input:checked) > .title  {    
      background-color: rgb(43, 43, 43);  
      width:100%; 
      font-style: italic;  
    }
  
    .menu.active {                                   
      font-style: italic;
      > a, > .title, > .title > a {
          text-decoration: underline; 
          pointer-events: none;           
      }
    }
  
    .menuComp {         
      font-size: 1rem;
      padding:0 0.25em;
      border-bottom: 0.1em solid white;
      background-color: black;
      > .menu {                  
          display: block;                                
      } 
    }
    .menu, .menu .items {
      background-color: initial;
    }
  
    .menuComp > .menu > label > label > .title:not(:has(a)) {      
      padding:  0.75em 0 0.75em 0;       
      display: inline-block;      
    }    
  
    .menuComp > .menu > label > label > .title > a {      
      padding:  0.75em 0 0.75em 0;       
      display: inline-block;      
    }
  
    .menuComp .items .menu > .title:not(:has(a)), .menuComp .items .menu > .title a {      
      padding:  0.5em 0 0.5em 0;       
      display: inline-block;      
    }      
  
    .menuComp .items .menu:nth-of-type(n + 2)  {
      display: block; 
      border-top: 0.1em dashed white !important;    
    }
  
    .menuComp .liveCamSettings .menu label > label > .title {      
      padding:  0.5em 0 0.5em 0;       
      display: block;          
    }      
  
    .menuComp .liveCamSettings .items .menu label .title {      
      padding:  0.3em 0 0.3em 0;          
      display: inline-block;      
    }      
    
    .menuComp > .menu {       
      label.toggleClose {                
          border-bottom: 0.1rem solid white;  
      }
      label {
          height: fit-content;
      }
    }
      
  
    .menu a {                
        display: inline-block;
        width: 100%;      
    }
  
    .menuComp .items {     
      .menu .title {         
        display: list-item !important;
        margin:0 0 0 1.5em;
      }  
    }
  
    .menuComp > .menu:last-of-type {    
      border-bottom: initial;      
    }
  
    .menuComp .liveCamSettings .menu {   
      .title {
        display: inline-block;      
      } 
  
      label.toggleClose {
          border-bottom: 0.1rem solid white;  
      }
      label {
          height: fit-content;
      }
    }
  
    .menuComp .liveCamSettings
    {
      font-size: 0.9em;
      border:dotted white; border-width: 0 1px 0 1px;margin:0.2em 0.2em;padding:0 0.5rem;
    }
  
  
    .menuComp .menu label {
        text-align:initial;
      }
    .menuComp
    {
      .menu {
          label {
              display: block;
              
          }        
  
          .items .layout .title {            
              padding-left: 0.5em;
          }
  
          .liveCamSettings .items {
              padding-left: initial;
          }
      }            
      .items > .menu.active {                         
          display:block;            
          font-style: italic;
          a {
              text-decoration: underline; 
              pointer-events: none;           
          }
      }    
  
      .menu label.toggleClose:has(input:not(:checked)):has(.items > .menu.active, .items > div.layout > .menu.active):not(:has(input:checked)) {     
        
          display: flex;         
          .title {            
              display: inline-block!important;
              margin: auto 0;
              padding-left: 0;
          }
          .items {
              display: inline-block;
              flex-grow: 1;
              text-align: center;            
          }
          .items > .menu, .items > div > .menu {            
              display:none;
              padding:initial;             
          }
          .items > .menu.active, .items > div > .menu.active {                                  
              display:flex;
              justify-content: center;            
              font-style: italic;
              border:initial;
              font-size: 0.9em;
              height:100%;
              align-items: center;
              border-top: initial!important; 
  
              label {
                min-width: initial!important;
                max-width: initial!important;
              }
  
              a {
                width:initial!important;              
              }              
  
              span.tip {
                  display: none;
              }
  
              
              * {
                  text-decoration: none; 
                  pointer-events: none;           
              }           
          }
  
          > .items > .layout > span.menu.active::before {                                                  
              content:'(\00a0';                
          }
  
          > .items > .layout > span.menu.active .items span.menu.active::before {                                                  
              content:'\00a0|\00a0';                
          }
  
          > .items > .layout > span.menu.active::after {
              content:'\00a0)';                
          }                   
            
        .items > .layout.small {        
          padding: initial;
          display: flex;
          flex-direction: row;
          flex-wrap: wrap;
          align-content: center;
          align-items: center;
          justify-content: space-around;
          height:100%;
          align-items: center;
        
          .menu {           
              text-align: center;            
              flex:2 0 25%;
              border:initial!important;
              min-width: 25%;
              max-width: initial;            
              a {                
                  display: block;
                  width: 100%;
                  
              }
            }
        }
    }
  
    .items > .small {    
      padding: 0 0.5em;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      align-content: center;
      align-items: center;
      justify-content: space-around;
      height:100%;
      align-items: center;
    
      .menu {                
          text-align: center;
          border: 1px solid white!important;                         
          flex:2 0 25%;
          min-width: 25%;
          max-width: initial;            
          a {                
              display: block;
              width: 100%;
              padding: 0.4em 0;
          }
      }
    }
    
  }  
  
  #showMenu .Open .button span.menuTitle::before{
      content: 'Show ';
  }
  /*
  #stickyMenu3 {
          position: sticky;top:0px;color:white;z-index: 5000;display: block;
      }    
  
  
  #stickyMenu {
    display: none;      
  }
  */
  
  #stickyMenu {               
      color:white;
  }   
  
  #stickyMenuCloseContainer, #implicitCloseMenuContainer, #implicitCloseMenuContainerTop {
    display:none;  
  }

  /*
  #implicitCloseMenuContainer {
    height:-webkit-fill-available;
  }*/

  :has(#showMenu .Open input:checked, #stickyMenuContent input:checked)
  {           
    #stickyMenu {              
      position: fixed;bottom:0px;color:white;z-index: 5000;display: block;             
     
    }    

    #stickyMenuContent
    {
      padding-top:0;
    }

      
    /* Mobile Layout Styles - Begin*/
    #stickyMenuCloseContainer
    {
      padding-top:0!important;
      border-top: 0.1rem solid white;      
    }

    #implicitCloseMenuContainerTop{      
      height:100%;
      opacity: 0.6;
      background-color:grey;
      display:block;
    }

    #implicitCloseMenuContainer
    {
      opacity: 0.6;
      background-color:grey;      
      padding-top:3rem!important; 
    }

    #stickyMenuContent
    {
      
    }

    #stickyMenuContent
    {    
      scroll-snap-align: end;
      scroll-snap-stop: always;    
    }
  }
  /* Mobile Layout Styles - end*/  

  :has(#showMenu .Open input:checked, #stickyMenuContent input:checked)
  {     

      #stickyMenuCloseContainer
      {
        background-color: black;
        float:right;
        width: 100%;
        text-align:right;
        padding-right:1rem;padding-top:1rem;
      }

      #stickyMenu {
        width:100%;             
        height:100%;    
      }

      #stickyMenuCN {
        width:100%;      
        overflow-x:hidden;
        overflow-y:scroll;
        scrollbar-width: none;
        height:100%;    

        scroll-padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        display: flex;
        flex-direction: column;       
      }
      #stickyMenuCloseContainer, #implicitCloseMenuContainer {
        display:block;
      }      
  
      #showMenu .Open {
          pointer-events: none;        
      }
  
      #showMenu .Open .button span.menuTitle::before {
          content: 'Close ';
      }   
  }
  
  
  #stickyMenuContent
  {
    padding-top:2rem;
  }
  
  #showMenu {
  
    position: fixed;width:100%;text-align: right;color:white;z-index: 5500;
    pointer-events:none;

    .Open, .Close {
      padding: 0.5rem 0;
    }

    .Close {
      pointer-events: initial;
    }
    label {
      user-select: none;
      cursor: pointer; 
      text-align: center;
      vertical-align: middle;
      input {
        position:absolute;opacity: 0;height: 0;width: 0;
      }    
    }  
  
    .button {     
      .burger {
        display: inline-block;      
        width:1em;      
        vertical-align: middle;
        span {
          display: inline-block;
          width:100%;                         
          background-color: white;
          height:0.2rem;              
        }
        :nth-child(n + 2) {            
          margin-top: 0.2em;
        }   
      }
      background-color: black;
      width:fit-content;
      margin-right: 1rem;
      padding: 0.5em 1em;
      border: 0.1rem solid white;
      border-radius: 2rem;
    }
  
   
  
  
  }
  
  }
   
