.sidebar {
  height: 100%;
  position: fixed;
  width: 250px;

  background-size: cover;
  top: 0;
  border-left: 0px;
  overflow-x: hidden;
  transition: margin-left 0.3s ease;
}

.sidebar div.inner-sidebar {
  padding-top: 6px;
  height: 100%;
  width: 250px;
  background-color: white;
  /* border-radius: 18px; */
}

#opnbtn {
  display: none;
}

.bg-nav {
  background-color: var(--bg-sidebar);
}

.sidebar .sidebar-item {
  text-overflow: clip;
  padding: 11px 8px 10px 12px;
  margin-top: 2px;
  margin-bottom: 2px;
  text-decoration: none;
  color: #444;
  font-size: 11pt;
  display: block;
  margin-left: 10px;
  margin-right: 10px;
  font-weight: 500;
  transition: background-color 0.5s ease;
}

.sidebar .sidebar-item:hover {
  margin-top: 2px;
  margin-bottom: 2px;
    padding: 11px 8px 10px 12px;

  text-decoration: none;
  background-color: rgba(84, 84, 84, 0.15);
  display: block;
  transition: background-color 0.5s ease;
}

/* header with fontsize 2 */

.sidebar .sidebar-item.selected {
  font-weight: 500;
  background-color: #013a63;
  color: white;
  /* background: linear-gradient(45deg, #3096e7 0%, #8cc8f8 100%); */

  /* color:white; */
  transition: background-color 0.5s ease;
}

/* .sidebar .sidebar-item.selected::before {
    content: "";
    float: left;
    height: 21px;
    margin-top: 0px;
    margin-left: -11px;
    margin-right: 6px;
    border-left: 4px solid var(--bg-primary);
    border-radius: 5px;
    transition: background-color 0.5s ease;

} */

.sidebar .sidebar-item.selectedSub {
  background-color: var(--bg-primaryDark);
  border-radius: 7px;
  color: #fff;
  font-weight: 700;
}

#main {
  /* transition: margin-left 0.2s ease; */

  margin-left: 250px;
}

.round-top-left {
  border-top-left-radius: 10px;
  height: 100vh;
}

/* Media query for screens with a maximum width of 767px (mobile devices) */
@media screen and (max-width: 867px) {
  .sidebar {
    margin-left: -350px;
  }

  .round-top-left {
    border-top-left-radius: 0px;
    min-height: 100vh;
  }

  #main {
    margin-left: 0;
  }

  #opnbtn {
    display: block;
  }
}

@media screen and (min-width: 867px) {
  .sidebar {
    width: 250px;
  }

  #main {
    margin-left: 250px;
  }

  /* 
    #nav {
        margin-left: 200px;

    } */
}

@media screen and (min-width: 1090px) {
  .sidebar {
    width: 250px;
  }

  #main {
    margin-left: 250px;
  }

  /* 
    #nav {
        margin-left: 250px;

    } */
}
