:root {
    --sidebar-width: 400px;
    /* Default width for larger screens */
}


.cr-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: calc(-1 * var(--sidebar-width));
    z-index: 5;
    width: var(--sidebar-width);
    /* font-weight: 200; */
    color: #000;
    background-position: center center;
    background-size: cover;
    transition: left 0.1s ease-in;
    outline-width: 1px;
    font-family: 'Open Sans', sans-serif;
    overflow-y: auto;
}

.cr-sidebar+.cr-content {
    transition: margin 0.1s ease-in;
}

.cr-sidebar::after,
.cr-sidebar::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    content: '';
}

.cr-sidebar::before {
    background: #000;
    opacity: 0.33;
}

.cr-sidebar::after {
    z-index: 3;
    background: #fff;
    /* fallback for old browsers */
    opacity: 1;
}

.cr-sidebar[data-image]:after {
    opacity: 1;
}

.cr-sidebar__content {
    position: relative;
    height: 100vh;
    z-index: 4;
    /* height: calc(100vh - 120px); */
    /* height: -webkit-fill-available; */
    padding-bottom: 30px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-color: white;
}

.cr-sidebar__content::-webkit-scrollbar {
    width: 0;
}

.cr-sidebar__background {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
}

.cr-sidebar__nav-item-collapse {
    display: flex !important;
    justify-content: space-between;
    cursor: pointer;
}

.cr-sidebar--open {
    left: 0;
    transition: left 0.2s ease-in;
}

.cr-sidebar--open+.cr-content {
    margin: 0 0 0 var(--sidebar-width);
    transition: margin 0.2s ease-in;
}

.cr-sidebar .collapse {

    /* margin-left: 15px;
  margin-right: 15px;
  padding: 15px;
  margin-bottom: 2px; */
    /* max-height: 400px; */
    /* overflow-y: auto; */
}

.cr-sidebar .navbar-fixed-bottom .navbar-collapse,
.cr-sidebar .navbar-fixed-top .navbar-collapse {
    max-height: none;
}

.cr-sidebar .nav {
    font-family: 'Open Sans', sans-serif;
}

.cr-sidebar .nav .nav-item {
    outline-width: 1px;
    background-color: rgb(235, 235, 235);
    font-family: 'Open Sans', sans-serif;
    /* margin: 5px 10px; */
    border-radius: 4px;
    opacity: 0.86;
}

.splitterSidebar_DisplayNone {
    display: none !important;
}

.splitterSidebar_NavItem {
    margin: 0px !important;
    margin-bottom: 2px !important;
    background-color: #fff;
}

.splitterSidebar_a {
    color: blue;
    text-decoration: 'underline'
}

.cr-sidebar__nav-item-icon {
    width: 1.5rem;
    height: 1.5rem;
    padding-right: 0.5rem;
}

.splitterSidebar_ArrowClass {
    padding: 0;
    transition-duration: 0.3s;
    transition-property: transform;
}

.cr-sidebar .nav .nav-link {
    flex-wrap: nowrap !important;
    font-size: 16px;
    font-weight: 500;
    /* aligns nav tabs for quarry search in sidebar */
    font-family: 'Open Sans', sans-serif !important;
}

.cr-sidebar .nav .nav-link:hover {
    background: #c4c4c4;
}

.sidebarTextOnlyLink {
    color: blue;
}

.sidebarScroll {
    overflow-y: scroll;
    height: 100vh;
    /* height: -moz-available; */
    /* height: -webkit-fill-available; */
    /* height: fill-available; */
    top: 82px;
    position: absolute;
    overflow-x: hidden;
}

.sidebar .nav a {
    transition: all 150ms ease-in;
}

.flex-sidebarContainer {
    width: -webkit-fill-available !important;
    width: -moz-available;
}



/* :::::::::::::::::::::::::::::::::::::::::::::::::::: Change menu text size at breakpoints */
/*1rem = 16px*/

/* very small devices 
 -- reduce the size fo the sidebar a bit */
@media (max-width: 575px) {

    /* force the sidebar to a small width on the smallest breakpoint in bootstrap */
    .cr-sidebar {
        /* left: -300px !important; */
        width: var(--sidebar-width) !important;
    }

    .cr-sidebar--open+.cr-content {
        margin: 0 0 0 var(--sidebar-width) !important;
    }

    .navbarAppNameTextSize,
    .navbarGovSecretaryLinks,
    .lowerMenuText {
        /* font-size: 14px !important; */
        padding-left: 15px;
    }

    .navbarAgencyTextSize {
        font-size: 10px !important;
    }

    .navbar-brand {
        font-size: 13px !important;
    }

    .modal-bookmarks {
        width: 80vw;
        height: 55vh;
    }
}

/* Small devices (landscape phones, 544px and up) */
@media (min-width: 576px) {
    .navbarAgencyTextSize {
        font-size: 10px !important;
    }

    /* .navbar-brand {
		font-size: larger;
	} */
}

/* Medium devices (tablets, 768px and up) The navbar toggle appears at this breakpoint */
@media (min-width: 768px) {
    .navbarAgencyTextSize {
        font-size: 10px !important;
    }

    .modal-bookmarks {
        width: 80vw;
        height: 55vh;
    }
}

@media (max-width: 991px) {
    .entireNavbar {
        margin-left: 3px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .navbarAgencyTextSize {
        font-size: 14px !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .navbarAppNameTextSize {
        font-size: 20px !important;
    }

    .navbarAgencyTextSize {
        font-size: 16px !important;
    }

    .sidebarNav {
        height: 82px !important;
    }
}

@media (max-width: 1200px) {

    /* Hide the governor and secretary text below this width */
    .navbarGovSecretaryLinks,
    /* .hideNavContent {
    display: none;
  } */
    .sidebarNav {
        height: 82px !important;
    }
}

@media (max-width: 1300px) {

    /* Hide the governor and secretary text below this width */
    .navbarGovSecretaryLinks,
    .hideNavContent {
        display: none;
    }
}

/* @media (min-width: 1301px) {
    .navbarGovSecretaryLinks {
        display: flex;
    }
} */

/* Extra large devices (large desktops, 1400px and up) */
@media (min-width: 1401px) {
    .navbarAppNameTextSize {
        font-size: 20px !important;
    }

    .navbarGovSecretaryLinks {
        /* visibility: visible; */
        display: flex;
    }

    /* .sidebarNav {
    height: 87px !important;
  } */
}

/*mobile or tablet*/
@media (max-width: 1400px) {

    /* reduce height or modals get cut off on a smaller device or screen */
    .modal-content {
        height: calc(100vh - 300px);
        min-height: 275px;
    }

    .modal-content {
        height: max-content !important;
    }


}