.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.logo a img {
  width: 2rem;
}

.logo img {
  width: 2rem;
}

/*Hide the search input*/

.input-group {
  display: none;
}

/*Hide the search input*/

.nav__links {
  display: flex;
  margin: 5px;
}

.nav__links li {
  margin: 1rem 1rem;
}

li #login__btn {
  border: 1px solid #2a7ae4;
  color: #2a7ae4;
  padding: 1rem 2rem;
}

#search__icon {
  color: #2a7ae4;
  margin-left: 2rem;
  width: 10px;
}

/*            Responsive design                */

/*   Tablet   */

@media screen and (min-width: 767px) and (max-width: 1023px) {

  #search__icon {
    display: none;
  }

  .hero {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }

  .logo {
    margin: 0;
  }

  .logo img:nth-child(2) {
    width: 4rem;
  }

  .logo img:nth-child(3) {
    width: 4rem;
  }

  /*Search input*/

  .input-group {
    display: flex;
    align-items: center;
  }
  
  .input {
    width: 300px;
    min-height: 50px;
    max-width: 300px;
    padding: 0 1rem;
    color: #000;
    font-size: 15px;
    border: 1px solid #2a7ae4;
    border-radius: 6px 0 0 6px;
    background-color: transparent;
  }
  
  .button--submit {
    min-height: 50px;
    padding: .5em 1em;
    border: 1px solid #2a7ae4;
    border-radius: 0 6px 6px 0;
    background-color: #fff;
    color: #000;
    font-size: 15px;
    cursor: pointer;
    transition: background-color .3s ease-in-out;
  }
  
  .button--submit:hover {
    background-color: #2a7ae4;
  }

  .button--submit img {
    margin-top: .5em;
  }
  
  .input:focus, .input:focus-visible {
    border-color: whitesmoke;
    outline: none;
  }
}

/* Desktop */

@media screen and (min-width: 1024px) {
  .hero {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
  }

  .logo {
    margin: 0;
  }

  .logo img:nth-child(2) {
    width: 4rem;
  }

  .logo img:nth-child(3) {
    width: 4rem;
  }

  /*Search input*/

  .input-group {
    display: flex;
    align-items: center;
  }
  
  .input {
    width: 300px;
    min-height: 50px;
    max-width: 300px;
    padding: 0 1rem;
    color: #000;
    font-size: 15px;
    border: 1px solid #2a7ae4;
    border-radius: 6px 0 0 6px;
    background-color: transparent;
  }
  
  .button--submit {
    min-height: 50px;
    padding: .5em 1em;
    border: 1px solid #2a7ae4;
    border-radius: 0 6px 6px 0;
    background-color: #fff;
    color: #000;
    font-size: 15px;
    cursor: pointer;
    transition: background-color .3s ease-in-out;
  }
  
  .button--submit:hover {
    background-color: #2a7ae4;
  }

  .button--submit img {
    margin-top: .5em;
  }
  
  .input:focus, .input:focus-visible {
    border-color: whitesmoke;
    outline: none;
  }  

  .nav {
    display: flex;
    flex-direction: row-reverse;
  }

  .nav__links {
    flex-direction: inherit;
  }

  #login__btn {
    transition: 600ms;
  }

  #login__btn:hover {
    background: #2a7ae4;
    color: #fff;
  }

  .fa-magnifying-glass {
    color: black;
    position: absolute;
    right: 35%;
    margin-top: .5rem;
  }

  #search__icon {
    display: none;
  }

}