@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins',sans-serif;
}

nav{
  display: flex;
  width: 100%;
  background: #353535;
  position: relative;
  justify-content: space-between;
  text-align: center;
  padding: 15px 30px;
}

nav .icon{
  font-size: 35px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
}

nav ol{
  display: flex;
  list-style: none;
  margin: auto 0;
}

nav ol li{
  margin: 0 2px;
}

nav ol li a{
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  text-transform: capitalize;
  letter-spacing: 1px;
  padding: 5px 10px;
}

a:not([href]){cursor: default;}

nav ol li:hover a[href]{
  background: #5a5959;
  color: red;
}

nav .search_box{
  display: flex;
  margin: auto 0;
  height: 35px;
  line-height: 35px;
}

nav .search_box input{
  border: none;
  outline: none;
  background: #fff;
  height: 100%;
  padding: 0 10px;
  font-size: 20px;
  width: 350px;
}

nav .search_box span{
  color: #5a5959;
  font-size: 20px;
  background: #fff;
  height: 100%;
  padding: 8px;
  position: relative;
  cursor: pointer;
  z-index: 1;
}

nav .search_box span::after{
  height: 100%;
  width: 0%;
  content: '';
  background: red;
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  transition: 0.4s;
}

nav .search_box span:hover::after{
  width: 100%;
}

nav .bar{
  position: relative;
  margin: auto;
  display: none;
}

nav .bar span{
  position: absolute;
  color: #fff;
  font-size: 35px;
}
input[type="checkbox"]{
  -webkit-appearance: none;
  display: none;
}

@media screen and (max-width: 1250px){
  nav{
    display: block;
    padding: 0;
  }
  
  nav .icon{
    display: inline-block;
    padding: 15px 30px;
  }
  nav .search_box{
    width: 100%;
    display: inline-flex;
    justify-content: center;
    margin-bottom: 15px;
  }
  nav .search_box input{
    width: 90%;
  }
  nav ol{
    display: flex;
    flex-direction: column;
    background: #353535;
    height: 0;
    visibility: hidden;
    transition: 0.3s;
  }
  nav ol li{
    text-align: center;
    transition: 0.3s 0.1s all;
    opacity: 0;
  }
  nav ol li a{
    color: #ffffff;
    font-size: 28px;
    padding: 25px;
    display: block;
  }
  nav ol li:nth-child(1){
    transform: translateX(-150px);
  }
  nav ol li:nth-child(2){
    transform: translateX(-200px);
  }
  nav ol li:nth-child(3){
    transform: translateX(-250px);
  }
  nav ol li:nth-child(4){
    transform: translateX(-300px);
  }
  nav ol li:nth-child(5){
    transform: translateX(-350px);
  }
  nav .bar{
    display: block;
    position: absolute;
    top: 20px;
    right: 80px;
    cursor: pointer;
  }
  nav .bar #times{
    display: none;
  }
  #check:checked ~ nav .bar #times{
    display: block;
  }
  #check:checked ~ nav .bar #bars{
    display: none;
  }
  #check:checked ~ nav ol{
    visibility: visible;
    height: 465px;
  }
  #check:checked ~ nav ol li:nth-child(1),
  #check:checked ~ nav ol li:nth-child(2),
  #check:checked ~ nav ol li:nth-child(3),
  #check:checked ~ nav ol li:nth-child(4),
  #check:checked ~ nav ol li:nth-child(5){
    transform: translateX(0);
    opacity: 1;
  }
}

section{
  background: url(bg.jpg);
  height:100%;
  width: 100%;
  position: absolute;
  background-position: center;
  background-size: cover;
  top: 0;
  z-index: -1;
  filter: brightness(30%);
}

