.menu-buttons {
  background-color: #484b4f;
  padding: 0.55rem 0.15rem;
  cursor: pointer;
  float: left;
  width: 100%;
}
.sidebar-left {
  z-index: 3;
  border-radius: 0.2rem;
  height: 100%;
}
h4.h6 {
  font-size: 0.85rem;
}
.bg-cover {
  background-image: url("../DIYtools_images/sidebar-img/planet.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 106px;
}
.sidebar-left {
  z-index: 3;
  border-radius: 0.2em;
}
.sidenav {
  position: fixed;
  z-index: 3;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  top: 102px;
}
.service-item {
  position: relative;
  color: white;
  border-radius: 0.2em;
  justify-content: center;
  box-sizing: content-box;
  height: 3.1rem;
  padding-top: 8px;
  background-color: #79746c;
  float: left;
  padding-bottom: 0.9rem;
  text-align: center;
  width: 17.8%;
  margin-right: 1.97%;
}
.service-item:first-child {
  margin-left: 1.25%;
}
.service-item h5 {
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1rem;
  text-align: center;
  float: none;
  width: auto;
}
.service-item span {
  font-size: 0.7rem;
  display: block;
  float: none;
  line-height: 0.8rem;
  width: 85%;
  margin: 0.2rem auto;
}
.service-item:last-child {
  margin-bottom: 0;
  margin-right: 0;
  padding-right: 3px;
  padding-left: 2px;
}
.service-item:last-child span {
  width: 88%;
}
.service-item a {
  color: #ffffff;
}
.service-item a:hover {
  color: #e3e3e3;
  text-decoration: none;
}
.service-item .fas {
  display: block;
  float: none;
}
.service-item.active {
  border: 1px solid white;
}
.service-item i {
  color: white;
}
.service-item img.transit-model-icon {
  width: 4rem;
  margin: 0.15rem auto;
  float: none;
}
.service-item img.calendar {
  width: 1.8rem;
  float: none;
  margin: 0.15rem auto;
}
.service-item img.telescope-icon {
  width: 1.8rem;
  margin: 0.15rem auto;
  float: none;
}
.service-item img.sun {
  width: 1.8rem;
  line-height: 1em;
  margin: 0.15rem auto;
  float: none;
}
.service-item img.analysis {
  width: 1.8rem;
  margin: 0.15rem auto;
  float: none;
}
.service-item .fa-globe {
  font-size: 1.55em;
  margin: 0.25rem auto 0.19rem auto;
  line-height: 1.1;
  float: none;
}
@media all and (max-width: 3800px) and (min-width: 768px) {
  .menu-buttons {
    padding: 0.4rem 0.35rem;
  }
  .service-item {
    position: relative;
    color: white;
    border-radius: 0.2em;
    height: 4rem;
    background-color: #79746c;
    float: none;
    text-align: center;
    width: 100%;
    padding-bottom: 0.68rem;
    margin-bottom: 0.35rem;
  }
  .service-item h5 {
    float: none;
  }
  .service-item h5 span {
    font-size: 0.65rem;
    display: block;
    float: none;
    margin-top: 0.25rem;
    line-height: 0.85rem;
  }
  .service-item:first-child {
    margin-left: 0;
  }
  .service-item:last-child {
    margin-bottom: 0;
    margin-right: 0;
    padding-right: 0;
    padding-left: 0;
  }
  .service-item:last-child span {
    width: 95%;
  }
}

@media all and (max-width: 850px) and (min-width: 768px) {
  .sidenav {
    position: fixed;
  }
  .service-item h5 span {
    font-size: 0.6rem;
    line-height: 0.75rem;
    padding-bottom: 0.45rem;
  }
}
@media all and (min-width: 1200px) and (max-width: 3800px) {
  .service-item h5 span {
    font-size: 0.75rem;
    line-height: 0.9rem;
    padding-bottom: 0.45rem;
  }
}
@media all and (min-width: 540px) and (max-width: 767px) {
  .sidenav {
    position: relative;
  }
  .service-item {
    height: 3.5rem;
  }
  .service-item h5 {
    float: none;
    text-align: center;
  }
}
@media all and (min-width: 375px) and (max-width: 539px) {
  .sidenav {
    position: relative;
  }
  .service-item h5 span {
    font-size: 0.55rem;
    line-height: 0.8rem;
    line-height: 0.7rem;
  }
  .service-item {
    margin-right: 0.38rem;
  }
  .service-item:first-child {
    margin-left: 1.79%;
  }
}
@media all and (min-width: 280px) and (max-width: 374px) {
  .sidenav {
    position: relative;
  }
  .menu-buttons {
    background-color: #484b4f;
    padding: 0.5rem 0.05rem;
    cursor: pointer;
    float: left;
    width: 100%;
  }
  .service-item {
    margin-right: 0.25rem;
  }
  .service-item h5 span {
    font-size: 0.53rem;
    line-height: 0.78rem;
    line-height: 0.65rem;
  }
  .service-item:first-child {
    margin-left: 1.5%;
  }
}
@media (max-width: 280px) and (min-width: 200px) {
  .sidenav {
    position: relative;
  }
  .service-item h5 span {
    font-size: 0.45rem;
    line-height: 0.69rem;
  }
  .service-item:first-child {
    margin-left: 0.6%;
  }
  .service-item:last-child {
    margin-bottom: 0;
    margin-right: 0;
    padding-right: 0;
    padding-left: 0;
  }
}

/* Bootstrap breakpoints for main-top */
.main-top {
  margin-top: 108px;
}
@media (min-width: 576px) {
  .main-top {
    margin-top: 114px;
  }
}
@media (min-width: 768px) {
  .main-top {
    margin-top: 202px;
  }
}
@media (min-width: 992px) {
  .main-top {
    margin-top: 170px;
  }
}
@media (min-width: 1200px) {
  .main-top {
    margin-top: 118px;
  }
}
