@media (max-width: 960px) {
        #content {
          min-height: 100dvh;
          flex-direction: row;
          align-items: stretch;
          justify-content: flex-start;
        }

        #leftSide
        {
          width: 253px !important;
        }

        #leftSide {
          min-height: 34vh;
          background-position: center;
          /* width: 150% !important; */
        }

        #welcome {
          min-height: 66vh;
          padding: 2rem 1.25rem !important;
        }
      }

      @media (max-width: 640px) {

        #content {
          min-height: 100dvh;
          flex-direction: column;
          align-items: stretch;
          justify-content: flex-start;
        }

        #leftSide {
          min-height: 28vh;
          /* width: 150% !important; */
        }

        #leftSide button {
          /* top: auto !important;
          bottom: 3.5rem;
          left: 0;
          margin: 1rem !important; */
        }

        #leftSide span {
              /* margin: 1rem !important; */
        }

        #welcome {
          padding: 1.5rem 1rem !important;
        }

        #postsHeader{
            display: none !important;
        }

        #openSidePanel{
            display: none !important;
        }
      }


@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overscroll-behavior-y: none;
  }

  .mobileDrawer-open {
    overflow: hidden;
  }

  body {
    position: relative;
    overflow: hidden;
    touch-action: pan-x pan-y;
  }

  #warpper,
  #mainView,
  #calendarArea,
  #middle,
  #calArea,
  #main_posts,
  #singleUserModal,
  #videoRoom,
  #profilePage,
  #settings_Modal,
  #supportPage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #profilePage{
    top: 4.25rem !important;
    padding: 1.75rem 0rem 1.5rem !important;
  }

  #topnav_profile, #topnav_settings{
    display: none !important;
  }

  #warpper,
  #mainView,
  #calendarArea {
    padding-top: 2rem;
    padding-bottom: 5.5rem;
  }

  #calendarArea {
    display: block;
    position: relative;
  }

  #topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 220;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    height: 4.25rem;
    padding: 0.75rem 0.35rem 0.75rem 0.75rem;
    flex-wrap: nowrap;
    overflow: hidden;
    background: linear-gradient(180deg, #2d2d2d 0%, #343434 100%);
  }

  #Btn_home {
    display: none !important;
  }

  #centerTopNavText_L1 {
    display: none !important;
  }

  #centerTopNavText_L2 {
    display: none !important;
  }

  #topnav #legendContainer {
    display: none !important;
  }

  #topnav.mobileTopbar--legend,
  #topnav.mobileTopbar--logout {
    justify-content: space-between;
  }

  #topnav.mobileTopbar--legend {
    overflow: visible;
  }

  #topnav.mobileTopbar--legend #legendContainer,
  #topnav.mobileTopbar--logout #legendContainer {
    display: flex !important;
    align-items: center;
    min-width: 0;
    margin-right: auto;
    justify-content: end;
  }

  #topnav.mobileTopbar--legend #dropdownToggle,
  #topnav.mobileTopbar--logout #logOut {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(199, 199, 199, 0.492);
    color: #f4f4f4;
    font-size: 0.92rem;
    line-height: 1;
    white-space: nowrap;
  }

   #logOut{
        background: red !important;
        color: white !important;
   }

  #topnav.mobileTopbar--legend #logOut,
  #topnav.mobileTopbar--logout #dropdownToggle,
  #topnav.mobileTopbar--logout #legend {
    display: none !important;
  }

  #topnav.mobileTopbar--legend #dropdownToggle {
    max-width: calc(100vw - 5.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #topnav.mobileTopbar--legend #legendContainer {
    position: static;
  }

  #topnav.mobileTopbar--legend #legend {
    position: fixed;
    top: 65px;
    left: 0.5rem;
    right: 0.5rem;
    z-index: 260;
    max-height: calc(100dvh - 65px - 6rem);
    overflow-y: auto;
  }

  #topnav.mobileTopbar--legend #legend table {
    width: 100%;
    box-sizing: border-box;
  }

  #topnav.mobileTopbar--legend #legend td {
    padding: 0.8rem 0.65rem;
    font-size: 1rem;
    vertical-align: middle;
  }

  #topnav.mobileTopbar--legend #legend i {
    font-size: 1.2rem;
    min-width: 1.5rem;
    text-align: center;
  }

  #topnav.mobileTopbar--legend #legend .colorName,
  #topnav.mobileTopbar--legend #legend p {
    font-size: 1rem;
    line-height: 1.3;
  }

  #calendarDrawerControls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 0.9rem 0.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    /* background: #ffffff; */
  }

  #calendarDesktopControlsHome {
    display: none;
  }

  #calendarDrawerControls #calendarFilterControlsHome,
  #calendarDrawerControls #timeZoneSelectorWrap,
  #calendarDrawerControls #calSelectorWrap {
    width: 100%;
  }

  #calendarDrawerControls  {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    /* background: var(--color-primary); */
    color: white;
    font-size: 0.95rem;
    white-space: normal;
  }

  #calendarDrawerControls #legend {
    position: static;
    max-height: none;
    margin-top: 0.5rem;
  }

  #calendarDrawerControls #legend table {
    width: 100%;
  }

  #calendarDrawerControls .ss-main,
  #calendarDrawerControls .selectr-container {
    width: 100% !important;
  }

  .mobileDrawerToggle {
    width: 44px;
    height: 44px;
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    flex: 0 0 auto;
    /* order: 3; */
    margin-left: 0;
    margin-right: auto;
  }

  .topbarActionButton {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: 0.05rem;
    border-radius: 50px;
    background: var(--color-primary)
  }

  .main_nav-buttons {
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    gap: 0.35rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 220;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.7rem 0.6rem calc(0.7rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #2d2d2d 0%, #232323 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: none;
    height: 4.25rem;
    }

  .main_nav-buttons::-webkit-scrollbar {
    display: none;
  }

  .main_nav-button {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-color: rgba(255, 255, 255, 0.18);
    background-color: #a19e9e;
  }

  #btn_navAction {
    display: none !important;
  }

  .main_icon_img {
    width: 58%;
  }

  .mobileDrawerToggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
  }

  .mobileDrawerBackdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 230;
    pointer-events: none;
    display: none;
  }

  .mobileDrawerBackdrop--visible {
    opacity: 1;
    pointer-events: none;
    display: block;
  }

  #leftSide {
    position: fixed !important;
    top: 4.25rem;
    bottom: 5.5rem;
    left: 0;
    width: min(84vw, 22rem) !important;
    min-width: 0 !important;
    max-width: 22rem;
    border-right: 0;
    background: linear-gradient(180deg, #f4f0e8 0%, #ffffff 100%);
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    z-index: 240;
    overflow-y: auto;
    pointer-events: auto;
    height: calc(100vh - 8.5rem);

  }

  #leftSide.mobileSidePanel--open {
    transform: translateX(0);
    box-shadow: 1px 0px 25px 5px gray;
  }

  #main_posts{
    position: fixed;
    top: 4.25rem;
    right: 0;
    bottom: 5.5rem;
    left: 0;
    height: auto !important;
    min-height: 0 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  
  #profilePage {
    position: fixed;
    top: 1.25rem;
    right: 0;
    bottom: 5.5rem;
    left: 0;
    height: auto !important;
    
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  #middle {
    width: 100%;
    max-width: 100%;
    min-height: calc(100dvh - 8.5rem);
  }

  #calArea{
    min-height: calc(100dvh - 8.5rem - 50px);
  }

  #profilePage, #settings_Modal,
  #main_posts,
  #videoRoom,
  #singleUserModal,
  #newchatUsersTable {
    min-height: calc(100dvh - 8.5rem);
  }

  #calArea,
  #singleUserModal,
  #chatWindow,
  #settings_Modal,
  .settings_Modal,
  .modalSettings,
  #profilePage,
  #main_posts,
  #newchatUsersTable {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  #postsFeed {
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  #newchatUsersTable {
    height: calc(100dvh - 9rem) !important;
    padding: 1rem !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  #newchatUsersTable > div:first-child {
    flex: 0 0 auto;
  }

  #newchatUsersTable #chatUsersTable {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  #newchatUsersTable .position-bottom-10 {
    flex: 0 0 auto;
    position: static !important;
    bottom: auto !important;
  }

  #singleUserModal{
        width: 100vw !important;
        left: 0 !important;
        top: 68px !important;
  }

  #singleUserModal {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 8.5rem) !important;
    min-height: calc(100dvh - 68px - 5.5rem) !important;
    padding-bottom: 0 !important;
    overflow: hidden;
  }

  #singleUserModal_name {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  #chatPannel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  #chatWindow {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 0.5rem;
  }

  #chat_send {
    position: sticky;
    bottom: 0;
    z-index: 6;
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    padding: 0.45rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom));    
  }

  #chat_send .message-input-with-emoji {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0.35rem 0.45rem;
    border-radius: 12px;
    box-sizing: border-box;
  }

  #message {
    min-width: 0;
    max-height: 6.5rem;
  }

  #SubmitMessageButton {
    flex: 0 0 auto;
    margin: 0;
    height: 2.75rem;
    padding: 0 0.9rem;
    border-radius: 12px;
  }

  #videoRoom {
    width: 100% !important;
    height: calc(100dvh - 8rem) !important;
    min-height: calc(100dvh - 8rem);
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    /* background: #f3efcf !important; */
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }


  #lobby {
    min-height: calc(100dvh - 8rem);
    justify-content: flex-start !important;
    padding: 1.25rem 0.75rem 1.5rem;
    box-sizing: border-box;
  }

  #roomList {
    width: 100% !important;
    max-width: none !important;
    margin-top: 1rem !important;
    padding-bottom: 1rem;
  }

  #videoRoomFrame {
    min-height: calc(100dvh - 8rem);
    padding: 1rem 0.75rem 1.5rem;
    box-sizing: border-box;
    justify-content: flex-start !important;
  }

  #videoContainer {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 1rem 0 !important;
    box-shadow: none !important;
  }

  #leftSide_Cal,
  #leftSide_Posts,
  #leftSide_Chat {
    width: 100% !important;
  }

  #mobileDrawer {
    display: none !important;
  }

  #rightSideMenu {
    display: none !important;
  }

  #settings_Modal,
  .settings_Modal,
  .modalSettings {
    position: fixed;
    top: 4.25rem;
    right: 0;
    bottom: 5.5rem;
    left: 0;
    height: auto !important;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #form{
        max-width: 90% !important;
  }

  #settingsContent {
    top: 0 !important;
    margin: 0 auto !important;
    padding: 0.75rem 0.85rem calc(0.5rem + env(safe-area-inset-bottom) + 1rem) !important;
  }

  #settingsContent fieldset {
    margin: 0 0 1rem 0;
  }

  #eventModal {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: calc(4.25rem + 0.75rem) 0.75rem calc(5.5rem + env(safe-area-inset-bottom) + 0.75rem) !important;
    box-sizing: border-box;
  }

  #eventModalBox {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 4.25rem - 5.5rem - env(safe-area-inset-bottom) - 1.5rem) !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  #userPreviewModal{
    max-width: 100% !important
  }

  #userNameField{
    font-size: 100% !important;
  }

  #headR{
    display: none !important;
  }

  #headR2{
        position: absolute;
        right: 0;
  }

  #aboutHeader{
    justify-content: flex-start;
  }


  #chatUsersSideTable {
    background: #ffffff;
  }

  .chat-cell {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
    /* min-height: 6.25rem; */
    padding: 0.45rem 0.6rem;
    border: 0;
    border-bottom: 1px solid #1d1d1d;
    background: #ffffff;
    box-sizing: border-box;
  }

  .chat-cell.active {
    background: #dbe5ff;
  }

  .chat-cell img {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border: 4px solid #111111;
    border-radius: 999px;
    background: #d9d9d9;
    justify-self: start;
  }

  .chat-cell-content {
    min-width: 0;
    gap: 0.1rem;
  }

  .chat-cell-name-row {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .chat-name,
  .chat-cell-name-row span {
    flex: 1;
    min-width: 0;
    font-size: 1.05rem;
    line-height: 1.15;
    color: #111111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-name, .chat-cell-name-row span{
    margin: 0px !important
  }

  .chat-cell-preview-row {
    font-size: 0.78rem;
    line-height: 1.2;
    color: #8493a8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  

  #supportContent{
    margin: 0px !important;
  }

  #modalEventTimeContainer{
    flex-direction: column;
    
  }


  #postBox, #addEvent, #leftSide_chats_header{
    display: none !important;
  }

  #middleHeader{
    gap: 20px !important;
  }

  #mobileInfo{
        position: absolute;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        z-index: 9999999;
        left: 50%;
        top: 3px  ;
        transform: translate(-50%, 0px);
        color: white;
        font-size: large;
    
  }

  #mobileInfoText{
    font-size: x-large;
  }

  .ss-list, .ss-search, .userListPanel{
    font-size: large;
  }

  .bubbleHeader{  
  font-size: larger;   
}

}
