
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

.nav-top{
  margin: 0;
  padding: 0;
  text-decoration: none;
}
.sidebar {
  position: fixed;
  width: 240px;
  left: -240px;
  height: 100%;
  background: #64a0f3;
  transition: all 0.5s ease;
  
}
.sidebar header {
  font-size: 28px;
  line-height: 70px;
  text-align: center;
  background: #8fbeff;
  user-select: none;
  font-family: "Montserrat", sans-serif;
}
.sidebar header img {
  margin-top: 20px;
}
.sidebar a {
  display: block;
  height: 65px;
  width: 100%;
  color: #ffffff;
  text-decoration: none;
  line-height: 65px;
  padding-left: 30px;
  box-sizing: border-box;
  border-bottom: 0.5px solid #e2eeff;
  border-top: 0.5px solid #e2eeff;
  border-left: 5px solid transparent;
  font-family: "Open Sans", sans-serif;
  transition: all 0.5s ease;
  font-weight: bold;
}
a.active,
a:hover {
  border-left: 5px solid #ff3333;
  color: #ff3333;
}
.sidebar a i {
  font-size: 23px;
  margin-right: 16px;
}
.sidebar a span {
  letter-spacing: 1px;
  text-transform: uppercase;
}
#check {
  display: none;
}
label #btn,
label #cancel {
  position: absolute;
  cursor: pointer;
  color: white;
  border-radius: 5px;
  border: 1px solid #3f8bf5;
  margin: 15px 30px;
  font-size: 29px;
  background: #b0ccf3;
  height: 45px;
  width: 45px;
  text-align: center;
  line-height: 45px;
  transition: all 0.5s ease;
}
label #cancel {
  opacity: 0;
  visibility: hidden;
}
#check:checked ~ .sidebar {
  left: 0;
}
#check:checked ~ label #btn {
  margin-left: 245px;
  opacity: 0;
  visibility: hidden;
}
#check:checked ~ label #cancel {
  margin-left: 245px;
  opacity: 1;
  visibility: visible;
}
@media (max-width: 860px) {
  .sidebar {
    height: auto;
    width: 70px;
    left: 0;
    margin: 100px 0;
  }
  header,
  #btn,
  #cancel {
    display: none;
  }
  span {
    position: absolute;
    margin-left: 23px;
    opacity: 0;
    visibility: hidden;
  }
  .sidebar a {
    height: 60px;
  }
  .sidebar a i {
    margin-left: -10px;
  }
  a:hover {
    width: 200px;
    background: inherit;
  }
  .sidebar a:hover span {
    opacity: 1;
    visibility: visible;
  }
}
