*{

 

  box-sizing: border-box;
  font-family:Time News Roman;
} 
body{
    margin:0;
     padding:0;
    }
nav{
    width:100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 99;
    box-shadow: 0 0 10px #000;
    background: rgba(0,0,0,0.5);
}
#chk1{
    display: none;


}
i{
    color: #fff;
    cursor: pointer;
}
nav .logo{
    flex: 1;
    color:#fff; 
    margin-left: 50px;
    text-transform: uppercase;
    font-size: 25px;
}
nav .search-box{
    flex: 1;
    position: relative;
}
.search-box input{
    width: 50%px;
    height: 40px;
    border: none;
    outline: none;
    background:#f2f2f2;
    border-radius: 30px;
    color:gray;
    font-size: 16px;
    padding-left: 3px;
    text-align: center;
    float: right;
    margin-right: 40px;

}

.search-box button{

    width: 40px;
    height: 40px;
    border-radius: 30px;
    border:none;
    position: absolute;
    top:0;
    right: 40px;
    transform: scale(0.9);
    background: brown;
    color: #fff;
}
nav ul {
    flex:2;
    display: flex;
    justify-content: space-evenly;
}
nav ul li{
    list-style: none;
}
nav ul li a{
    text-decoration: none;
    color:#fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 15px;
}
nav ul li a:hover{
    border-bottom: 2px solid cadetblue;
}
nav .menu{
    font-size: 2.5em;
    display: none;
}
@media(max-width:1000px){
    .search-box button{
        position: absolute;
    }
    nav ul{
        position: fixed;
        top:100px;
        right: -100%;
        background: rgba(0,0,0,0.5);
        height: calc(100vh - 100px);
        width:50%;
        flex-direction: column;
        align-items: center;
        transition: right 0.5s linear;
    }

    nav .menu{
        display: block;
        width:100px;
        text-align: center;
    }
    #chk1:checked ~ ul{
        right: 0;

    }

}
@media screen and (max-width: 768px){
    .logo h1{
        font-size: 25px;
    }
    .search-box input{
        margin-right: 20px;
        width: 90%;
    }
    .search-box button{
        right: 20px;
        width: 40px;
    }
}

 