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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* ==========================
   Navigation bar
   ========================== */
nav {
  background: #ffffff9e;
  height: 80px;
  width: 100%;
  padding-left: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flow-root;
  inset: 0;
  backdrop-filter: blur(25px);
}

/* logo image in navbar */
.logo {
  max-width: 120px;
  height: 80px;
  vertical-align: middle;
}

nav ul {
  float: right;
  margin-right: 20px;
  list-style: none;
}

nav ul li {
  display: inline-block;
  line-height: 80px;
  margin: 0 5px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 17px;
  padding: 7px 13px;
  border-radius: 3px;
  text-transform: uppercase;
}

a.active,
a:hover {
  background: hsl(180, 30%, 45%);
  color: #fff;
  transition: 0.5s;
}

/* mobile menu icon */
.checkbtn {
  font-size: 22px;
  color: hsl(180, 30%, 45%);
  float: right;
  line-height: 80px;
  margin-right: 30px;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

@media (max-width: 1050px) {
  .logo {
    max-width: 80px;
  }

  nav ul li a {
    font-size: 16px;
  }
}

@media (max-width: 890px) {
  .checkbtn {
    display: block;
  }

  nav ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #2c3e50;
    top: 80px;
    left: -100%;
    text-align: center;
    transition: all 0.5s;
    float: none;
    margin-right: 0;
  }

  nav ul li {
    display: block;
    margin: 50px 0;
    line-height: 30px;
  }

  nav ul li a {
    font-size: 20px;
    color: #fff;
  }

  a:hover,
  a.active {
    background: none;
    color: hsl(180, 30%, 45%);
  }

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