*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,html{
  width: 100%;
  height: 100;
  /* text-align: center; */
}
nav{
  width: 100%;
  height: 60px;
  background-color:white;
  border-bottom: 2px solid black;
  position: sticky;
  top: 0;
  z-index: 1000;
  position: fixed;
}


.logo{
  margin: 0 100px;
  line-height: 60px;
  font-size: 25px;
   font-family:calc();
  color: rgb(230, 128, 60);

  background: linear-gradient(90deg, red, rgb(1, 2, 30), rgb(248, 4, 4), green, blue, indigo, rgb(250, 8, 250));
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textColorMove 9s linear infinite;
  z-index: 2;
  position: relative;
}

@keyframes textColorMove {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

nav ul{
  float: right;
  list-style-type: none;
  margin-right: 100px;
}
nav ul li{
  display: inline-block;
  line-height: 60px;
  
}
nav ul li a{
  text-decoration: none;  
  color: black;
  font-size: 20px;
  text-transform: capitalize;
  /* first letter capital */
  padding: 8px 20px;
  margin-right: 5px;
  border: 2px solid rgba(7, 105, 132, 0.179);
  border-radius: 5px;
}

.navBarAnchor:hover {
   border: 2px solid rgb(231, 159, 5);
}

#checkbtn{
  float: right;
  line-height: 60px;
  margin-top: 2px;
  margin-right: 10px;
  font-size: 30px;
  color: black;
  display: none;
}

#checkbtn_cross{
  float: right;
  line-height: 60px;
  margin-top: 2px;
  margin-right: 10px;
  font-size: 40px;
  color: rgb(25, 24, 24);
  display: none;
}

#check{
  display: none;
}
#check:checked ~ ul{
  left: 0;
}

#check:checked ~ #checkbtn{
  display: none;
}

#check:checked ~ #checkbtn_cross{
  display: block;
}

@media(max-width:511px){
  .logo{
      font-size: 25px;
      margin: 0 50px;
      margin-left: 5px;
      margin-right: -10px;
  }
}

@media(max-width:360px){
  .logo{
      font-size: 22px;
      margin: 0 50px;
      margin-left: 5px;
      margin-right: -10px;
  }
}

@media(max-width:940px){ 
  #checkbtn{
      display: block;
  }

  #checkbtn:checked ~ #checkbtn{
  
    display: non;
  }

  nav ul{
      width: 50%;
      height: 75vh;
      background-color: rgb(28, 29, 29);
      position: fixed;
      top: 60px;
      left: -100%;
      transition: 300ms;
  }

  nav ul li a {
    color: rgb(28, 27, 27);
    
    
  }


  nav ul li{
      display: block;
      text-align: center;
      line-height: 40px;
      margin: 10px;
     border: 2px solid rgb(197, 215, 197);
     border-radius: 5px;
     background-color: #f6f7f2;
  }

}

.motivation {
  background-color:rgb(28, 29, 29) ;
  color: white;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  border:none ;
  margin-top: 25%;
  line-height: 20px;
  display: none;
}

@media (max-width:852px) {
  .motivation{
    display: block;
  }
}



/* Sidebar (ul) */
nav ul {
  z-index: 1001; /* Sidebar above overlay */
}

/* Overlay for click outside */
.overlay {
  position: fixed;
  top: 60px; /* below navbar */
  left: 0;
  width: 100%;
  height: calc(100% - 60px);
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1000; /* Overlay below sidebar */
}

/* Show sidebar & overlay when checked */
#check:checked ~ ul {
  left: 0;
}
#check:checked ~ .overlay {
  display: block;
}
