nav{
  background-color: rgba(255, 255, 255, 0.9);
  position: fixed;
  height: 9rem;
  width: 100%;
  z-index: 1;
}

.logo{
  float: right;
  margin-right: 5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  transition: 0.5s;
}

.logo img{
  height: 6rem;
  background: transparent;
  opacity: 0.8;
}

.logo:hover{
  cursor: pointer;
  opacity: 0.7;
}

.logo:active{
  cursor: pointer;
  opacity: 0.3;
}

nav ul{
  float:left;
  margin-left: 4rem;
  margin-top: 1.5rem;
}
nav ul li{
  display: inline-block;
  text-align: center;
  width: 8.5rem;
  margin: 1rem 0;

}
nav ul li a {
  color: black;
  font-size: 0.95rem;
  cursor: pointer;
  text-transform: uppercase;
  padding: 0.95rem;
}
.active {
  border: 0.14rem solid black;
  transition: 0.5s;
}

.passive:hover {
  border: 0.14rem solid black;
}

.checkbtn{
  color:white;
  float: left;
  cursor: pointer;
  display: none;
}

#check{
  display: none;
}

@media(max-width: 1280px){

  nav{
    height: 7rem;
  }

  .logo{
    margin-right: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
    
  .logo img{
    height: 5rem;
  }
  .checkbtn{
    display: block;
    margin-left: 2rem;
    margin-top: 1rem;
    background: transparent;
    transition: 0.8s;
  }

  .checkbtn img{
    opacity: 0.2;
    width: 4rem;
  }

  .checkbtn:hover{
    scale: 120%;
  }

  .checkbtn:active{
    opacity: 0.2;
  }

  nav ul{
    margin: 0;
  }
  ul{
    position: fixed;
    width: 100%;
    top: 7rem;
    height: calc(100vh - 7rem);
    background-color: rgba(255, 255, 255);
    left: -100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all .5s;
  }
  nav ul li {
    display: block;
    width: 15rem;
    margin-top: 1.6rem;
    margin-bottom: 1.6rem;
  }

  #check:checked ~ ul{
    left:0;
  }

}

@media(max-height : 600px){

  nav{
    background-color: rgba(255, 255, 255, 0);
  }
  ul{
    top: 0rem;
    height: 100vh;
    z-index: -1;
  }
  nav ul li{
    margin: 1rem 0;
  }
  nav ul li a{
    font-size: 0.8rem;
    padding: 0.5rem;
  }
}

