#nav-toggle:checked~.main-content header {
   width: calc(100% - 70px);
   left: 70px;
}

header {
   position: fixed;
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: calc(100% - 345px);
   min-height: 70px;
   padding: 0.5rem 1rem;
   background: #1d203c;
   border-bottom: 2px solid #575C81;
   transition: left 300ms;
   left: 345px;
   top: 0;
   z-index: 100;
}

#nav-toggle {
   display: none;
}

header h2 {
   display: flex;
   margin: 0;
   align-items: center;
}

header h2 label {
   font-size: 1.7rem;
   padding-right: 1rem;
   cursor: pointer;
}

.user-wrapper {
   display: flex;
   align-items: center;
}

.user-wrapper h4 {
   margin: 0;
   font-size: 1.3rem;
}

.user-wrapper img {
   border-radius: 50%;
   margin-right: 1rem;
}

.user-wrapper small {
   display: inline-block;
   color: #bcc3ff;
}

@media only screen and (max-width: 1200px) {
   .main-content header {
      width: calc(100% - 70px);
      left: 70px;
   }

   #nav-toggle:checked~.main-content header {
      width: calc(100% - 345px);
      left: 345px;
   }
   
}

@media only screen and (max-width: 768px) {
   header h2 {
      display: flex;
      justify-content: center;
      font-size: 1.1rem;
   }

   header h2 label {
      display: inline-block;
      background: #575d8c;
      padding-right: 0rem;
      margin-right: 1rem;
      height: 40px;
      width: 40px;
      border-radius: 50%;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center !important;
   }

   header h2 span {
      text-align: center;
      padding-right: 0rem;
   }

   .user-wrapper h4 {
      font-size: 1rem;
   }

   .user-wrapper small {
      font-size: 0.7rem;

   }

   .main-content {
      width: 100%;
      margin-left: 0rem;
   }

   header {
      width: 100% !important;
      left: 0 !important;
   }

   #nav-toggle:checked~.main-content {
      margin-left: 0rem !important;
   }
}