body {
  background-color: #2c3e50;
  color: #ecf0f1;
  font-family: "Work Sans", sans-serif;
  background: url("images/pexels-pixabay-76969.jpg") no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 20px;
  border-radius: 25px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 25%;
  transition: width 1s, height 1s;
}

h1 {
  margin-bottom: 20px;
  color: #fff;
}

.container.expanded {
  width: 75%;
  height: 75%;
}

#weatherForm {
  margin-bottom: 20px;
}

#city {
  padding: 10px;
  font-size: 16px;
  width: calc(100% - 120px);
  margin-right: 10px;
}

form {
  margin-bottom: 20px;
}

input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  font-family: "Work Sans", sans-serif;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  font-family: "Work Sans", sans-serif;
}

button:hover {
  background-color: #0056b3;
}

.hidden {
  display: none;
}

canvas {
  background-color: #34495e;
  border-radius: 8px;
  height: 50%;
}

#chartType {
  margin-bottom: 20px;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 10px;
  }

  #city {
    width: calc(100% - 100px);
  }

  button {
    width: 100%;
    margin-top: 10px;
  }

  #chartType {
    width: 100%;
  }

  canvas {
    height: 75%; /* Altezza maggiore per dispositivi mobili */
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 24px;
  }

  #city {
    width: calc(100% - 90px);
  }

  button {
    width: 100%;
    margin-top: 10px;
  }

  #chartType {
    width: 100%;
  }

  canvas {
    height: 75%; /* Altezza ancora maggiore per schermi più piccoli */
  }
}
