/* General body styling */
body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  overflow: hidden; /* To prevent scrolling */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
}

/* Map styling */
/* #map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; 
} */

/* Weather Bubble */
#weather-bubble {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(194, 194, 194, 0.8);
  color: rgb(40, 40, 40);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  border-radius: 20px;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

#weather-bubble:hover {
  transform: scale(1.05); 
}

/* Dropdown styling 
.dropdown-content {
  display: none; 
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  padding: 10px;
  margin-top: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;

}

#weather-bubble:hover .dropdown-content {
  display: block;
}*/

/* Container initially hidden */
.dropdown-content {
  display:none;
  position: relative;
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#weather-bubble:hover .dropdown-content{
display: block;
}

/* Full weather container */
/* .container {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 300px;
  max-height: 90vh;
  overflow-y: auto; 
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 5; 
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: auto; 
} */

#close-weather {
  align-self: flex-end;
  background-color: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Flexbox for form and forecast sections */
form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.weather-info, .forecast-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  width: 100%;
}

.forecast-info canvas {
  width: 100%;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .container {
    width: 90%; /* Adjust width on smaller screens */
    right: 5%; /* Center on smaller screens */
  }
}

@media (max-width: 500px) {
  .container {
    width: 100%;
    right: 0;
    top: 0;
    height: auto;
    max-height: none; /* Remove height restriction */
    padding: 10px;
  }
}

/* Suggestions list styling */
#suggestions-list {
  list-style-type: none;
  padding: 0;
  margin-top: 5px;
  background-color: #fff;
  border: 1px solid #ddd;
  width: 100%;
}

#suggestions-list li {
  padding: 8px;
  cursor: pointer;
}

#suggestions-list li:hover {
  background-color: #f0f0f0;
}

button {
  padding: 10px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

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