.navbar {
    background-color: #333;
    overflow: hidden;
    position: relative;
    text-align: center;
    padding:15px;
    width: 98%;
  }
  .button {
    
    color: white;
    border:none;
    padding: 10px 25px;
    background-color:green ;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    
  }
  .navbar input[type=text] {
    padding: 3px;
    border: none;
    width:280px;
    font-size: 17px;
  }
  .logo{
    position:absolute;
    left:5px;
    height: 100px;
    width: 140px;
  }
  
  .navbar button[type=submit]
  {

  width: 4%;
  padding: 4px;
  background: #2196F3;
  color: white;
  font-size: 17px;
  border: 1px solid grey;
  border-left: none;
  cursor: pointer;
  max-width:300px
}

.navbar button:hover {
  background: #0b7dda;
}

  
  @media screen and (max-width: 600px) {
    .main a, .navbar input[type=text] {
      float: none;
      display: block;
      text-align: left;
      width: 100%;
      margin: 0;
      padding: 14px;
    }
    .navbar input[type=text] {
      border: 1px solid #ccc;
    }
  }
  .main {
    float: right;
    background-color: #333;

  }
  
  .main a {
    float: left; 
    color: #f2f2f2;
    text-align: center;
    padding: 10px 40px;
    text-decoration: none;
    font-size: 17px;
  }
  
  .main a:hover {
    background-color: #ddd;
    color: black;
  }
  
  .main a.active {
    background-color: #ff0000;
    color: white;
  }
  .main a.active:hover {
    background-color: #00abff;
    color: white;
  }

   .best
   { margin-left: 20px;
     float: left;
     width: 100%;
   }

  .best img{
    height:50%;
    width:100%;
    border-radius: 5px 5px 0 0;
    
  }

.card {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  width: 20%;
  border-radius: 5px;
  float: left;
  margin: 30px;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.664);
  transform: translate(10px);
}

.container {
  padding: 1px 15px;
}
<!--footer-->
.footer{
  background: #252525;
  width: 20%;
  height: 25%;
}