body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: #222;
    /* Το φόντο αλλάζει από το script.js ανάλογα με τον καιρό */
    background-image: linear-gradient(135deg, #1f4037, #99f2c8);
    transition: background-image 0.5s ease;
    font-size: 120%;
  }

  .card {
    background: #000000d0;
    color: white;
    padding: 2em;
    border-radius: 30px;
    width: 100%;
    max-width: 420px;
    margin: 1em;
    box-sizing: border-box;
  }

  .search {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  button {
    margin: 0.5em;
    border-radius: 50%;
    border: none;
    height: 44px;
    width: 44px;
    outline: none;
    background: #7c7c7c2b;
    color: white;
    cursor: pointer;
    transition: 0.2s ease-in-out;
  }

  input.search-bar {
    border: none;
    outline: none;
    padding: 0.4em 1em;
    border-radius: 24px;
    background: #7c7c7c2b;
    color: white;
    font-family: inherit;
    font-size: 105%;
    width: calc(100% - 100px);
  }

  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;
  }

  /* Φόρμα για το API key */
  .hidden {
    display: none !important;
  }

  .key-form {
    margin-bottom: 1em;
    font-size: 85%;
  }

  .key-form a {
    color: #8fd3ff;
  }

  .key-form input.key-input {
    border: none;
    outline: none;
    padding: 0.5em 1em;
    border-radius: 24px;
    background: #7c7c7c2b;
    color: white;
    font-family: inherit;
    font-size: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .key-form button.key-save,
  button.change-key {
    width: auto;
    height: auto;
    border-radius: 24px;
    padding: 0.5em 1.2em;
    margin: 0.8em 0 0;
    font-family: inherit;
  }

  button.change-key {
    font-size: 70%;
    margin-top: 1.2em;
  }

  .key-form .hint {
    font-size: 85%;
    opacity: 0.7;
  }

  .error {
    color: #ffb4a8;
    font-size: 85%;
    margin: 0.3em 0 0.8em;
  }
