/* Container with padding and centered layout */
.container {
  max-width: 800px;
  color: #ccc;
  background: rgba(85, 70, 102, 0.4);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin: auto;
  text-align: left;
}

/* Search container to arrange input and button */
.searchContainer {
  margin: 20px 0;
  display: flex; /* Align input and button side by side */
  gap: 10px; /* Space between the input field and button */
  justify-content: flex-start; /* left-align input and button */
  align-items: center;          /* vertical alignment if needed */
}

/* Input field styling */
.inputField {
  padding: 10px;
  width: 70%;
  border: none;/*1px solid #aaa;*/
  border-radius: 8px;
  box-sizing: border-box; /* Include padding/border in total width/height */
  height: 40px; /* Set fixed height */
  background: rgba(111, 104, 118, 0.4);
  color: #aaa;
}

/* Button styling */
#searchBtn {
  padding: 10px;
  background: rgba(111, 104, 118, 0.4);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  height: 40px; /* Set button to the same height as the input */
  width: 25%; /* Button takes 25% of the container width */
  box-sizing: border-box; /* Ensure padding/border is included in the width */
  transition: background-color 0.3s ease; /* Smooth transition on hover */
}

/* Button hover effect */
#searchBtn:hover {
  opacity: 0.8; /* Darker blue on hover */
}

#searchBtn:active {
  opacity: 0.5; /* Darker blue on hover */
}

/* Weather info container hidden until data is available */
#weatherContainer {
  display: none;
}

/* Error message styling */
#errorMessage {
  color: red;
  font-weight: bold;
}
