body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: #222;
    background-image: url('https://source.unsplash.com/1600x900/?landscape');
    font-size: 120%;
  }
  
  .card {
    background: #000000d0;
    color: white;
    padding: 2em;
    border-radius: 30px;
    width: 100%;
    max-width: 480px;
    margin: 1em;
    box-sizing: border-box;
  }
  
  .search {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  button {
    margin: 0.5em;
    border-radius: 50%;
    border: none;
    height: 44px;
    width: 44px;
    outline: none;
    background: #7c7c7c7a;
    color: white;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  input.search-bar {
    border: none;
    outline: none;
    padding: 0.4em 1em;
    border-radius: 24px;
    background: #7c7c7c7a;
    color: white;
    font-family: inherit;
    font-size: 105%;
    flex-grow: 1;
    min-width: 200px;
    box-sizing: border-box;
  }
  
  button:hover {
    background: #7c7c7c6b;
  }
  
  h1.temp {
    margin: 0;
    margin-bottom: 0.4em;
  }
  
  .flex {
    display: flex;
    align-items: center;
  }
  
  .description {
    text-transform: capitalize;
    margin-left: 8px;
  }
  
  .weather.loading {
    visibility: hidden;
    max-height: 20px;
    position: relative;
  }
  
  .weather.loading:after {
    visibility: visible;
    content: "Loading...";
    color: white;
    position: absolute;
    top: 0;
    left: 20px;
  }
  
  @media (max-width: 600px) {
    body {
      font-size: 100%;
    }
    .card {
      padding: 1.5em;
    }
  }
  
  @media (max-width: 400px) {
    .card {
      padding: 1em;
    }
    button {
      height: 36px;
      width: 36px;
    }
    input.search-bar {
      padding: 0.3em 0.8em;
      font-size: 95%;
      min-width: 160px;
    }
  }
  
  @media (max-width: 280px) {
    .card {
      padding: 0.5em;
    }
    button {
      height: 30px;
      width: 30px;
      margin: 0.3em;
    }
    input.search-bar {
      padding: 0.2em 0.5em;
      font-size: 90%;
      min-width: 140px;
    }
    h1.temp {
      font-size: 1.5em;
    }
    .description {
      font-size: 0.9em;
    }
    .humidity, .wind {
      font-size: 0.9em;
    }
  }
  