﻿.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 18px;
  cursor: pointer;
  color: #fff !important;
}
.menu-icon div {
  background-color: #fff;
  height: 2px;
  border-radius: 2px;
}
.menu-icon .line1,
.menu-icon .line3 {
  width: 100%;
}
.menu-icon .line2 {
  width: 75%;
  align-self: center;
  margin-left: -8px;
}

.wp-block-cover .wp-block-cover__background {
  z-index: 0;
}
img.menu-open {
  display: block;
}
#btn:checked ~ img.menu-open {
  display: none;
}
ul.sub-menu {
  display: block;
  padding: 0;
}
ul.sub-menu li {
  font-size: 16px;
  margin: 0px;
  padding: 0px;
  line-height: 34.5px !important;
  list-style: none;
  padding: 5px 0;
  color: white;
}
#sidebar .list-items ul.sub-menu li a{
  font-weight: 300;
}
#sidebar .list-items ul.sub-menu li:first-child a{
  font-weight: 500;
}
#sidebar .list-items ul.sub-menu.has-list-bold li a{
  font-weight: 500;
}
.sub-main-container.show {
  display: block;
}

.menu--icon i.rotate {
  transform: rotate(180deg);
}

.sub-main-container {
  padding-left: 40px;
  display: none;
  margin-left: 230px;
  background-color: rgba(44, 65, 65, 0.95);
  top: 60px;
  position: fixed;
  width: 70%;
  z-index: 0;
}

.sub-row {
  display: inline-block;
  width: 22%;
}

.wrapper {
  margin-right:25px;
}

.wrapper .menu-btn {
  /* position: absolute;
  left: 8px;
  top: 10px; */
  background: #2c4141;
  color: #fff;
  height: 45px;
  width: 45px;
  /*             z-index: 9999; */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.overflow-hidden {
  overflow: hidden;
}

.wrapper .menu-btn i {
  position: absolute;
  font-size: 23px;
  transition: all 0.3s ease;
}

.wrapper .menu-btn i.fa-times {
  opacity: 0;
}

#btn:checked ~ .menu-btn i.fa-times {
  opacity: 1;
  transform: rotate(-180deg);
}

#btn:checked ~ label.menu-btn .menu-icon {
  opacity: 0;
  transform: rotate(180deg);
}

#sidebar {
  position: fixed;
  height: 100%;
  width: 270px;
  overflow: hidden;
  left: -270px;
  transition: all 0.3s ease;
  z-index: 1;
  margin-top: 0px;
}

#btn:checked ~ #sidebar {
  left: 0;
}

#sidebar .title {
  line-height: 65px;
  text-align: center;
  background: #003135;
  font-size: 25px;
  font-weight: 600;
  color: #f2f2f2;
  border-bottom: 1px solid #222;
}

#sidebar .list-items {
  position: relative;
  background: #2c4141;
  width: 100%;
  height: 100%;
  margin-top:0;
  list-style: none;
}
li.menu-item.active i.fa.fa-long-arrow-right.rotate {
  transform: rotate(180deg);
}
#sidebar .list-items li {
  padding-left: 0px;
  line-height: 50px;
  transition: all 0.3s ease;
}

#sidebar .list-items li:first-child {
  border-top: none;
}

#sidebar .list-items li a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  height: 100%;
  width: 100%;
  display: block;
}

#sidebar .list-items li a i {
  margin-right: 20px;
  transition: transform 0.3s ease;
}

#sidebar .list-items .icons {
  width: 100%;
  height: 40px;
  text-align: center;
  position: absolute;
  bottom: 100px;
  line-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sidebar .list-items .icons a {
  height: 100%;
  width: 40px;
  display: block;
  margin: 0 5px;
  font-size: 18px;
  color: #f2f2f2;
  background: #095b63;
  border-radius: 5px;
  border: 1px solid #09484f;
  transition: all 0.3s ease;
}

#sidebar .list-items .icons a:active {
  background: #124045;
}

.list-items .icons a:first-child {
  margin-left: 0px;
}

.menu-icon-box {
  display: flex;
}

.menu-title {
  width: 65%;
}

.menu-item.active .menu-title {
  border-bottom: 4px solid #c6d86d;
  height: 40px;
}

.menu-item .menu--icon.rotate {
  transform: rotate(180deg);
}
@media only screen and (min-width: 320px) and (max-width: 768px) {
  .sub-main-container.show {
    display: contents;
    overflow: hidden;
    left: 0px;
    top: 0px;
    width: auto;
  }
  .sub-row {
    display: block;
    width: auto;
  }
  #sidebar .list-items li {
    padding-left: 20px;
    background: rgba(44, 65, 65, 0.95);
  }
  ul.sub-menu {
    /* display: block; */
    padding: 0;
    margin-left: -18px;
  }
  ul.sub-menu li {
    background: #2c4141;
  }
  li.menu-item.active i.fa.fa-long-arrow-right.rotate {
    transform: rotate(90deg);
  }
  #btn:checked ~ #sidebar {
    left: 0;
    width: 100%;
    overflow: scroll;
  }
  #sidebar .list-items {
    padding-left: 0px;
  }
}


.logged-in .wrapper .menu-btn {
    /* position: absolute;
    left: 0px;
    top: 44px; */
}


#sidebar.fixed{
    position: fixed;
    top: -20px; 
    left: 0; 
    width: 250px; 
    z-index: 1000;
    transition: top 0.3s ease; 
}
.fixed .sub-main-container.show{
 
    position: fixed;
    top: 0 !important; 
    left: 0; 
    z-index: 1000; 
    transition: top 0.3s ease; 
}

.main-content {
   
    padding-left: 270px; 
    transition: padding-left 0.3s ease; 
}

@media only screen and (width >= 768px) {
  div.sub-row {
    display:inline-flex;
  }
}