@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  /* Dynamic, Soothing Gradient */
  background: linear-gradient(135deg, #43cea2, #185a9d); /* Blue-Green modern gradient */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Minimum height ensures it covers the full viewport */
  min-height: 100vh; 
  padding: 20px; /* Padding for mobile view */
}

.container {
  text-align: center;
  /* Frosted Glass Effect (Glassmorphism) */
  background-color: rgba(255, 255, 255, 0.15); /* Slightly less transparency */
  backdrop-filter: blur(10px); /* Key for glass effect */
  -webkit-backdrop-filter: blur(10px); /* For Safari support */
  
  padding: 35px; /* Increased padding */
  border-radius: 25px; /* Softer edges */
  width: 100%; /* Use full width on small screens */
  max-width: 420px; /* Slightly increased max-width */
  /* Modern soft shadow */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); 
  border: 1px solid rgba(255, 255, 255, 0.18); /* Subtle border for definition */
  transition: transform 0.5s ease; /* Transition for animation */
}

/* Hover Effect for desktop */
.container:hover {
    transform: translateY(-5px); 
}

h1 {
  margin-bottom: 25px;
  font-weight: 600; /* Medium bold */
  letter-spacing: 1.5px; /* Slight letter spacing */
}

.search-box {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.search-box input {
  padding: 12px;
  border: none;
  border-radius: 10px; /* More rounded */
  outline: none;
  width: 65%; /* Slightly increased width */
  font-size: 1rem;
  color: #333; /* Darker text for readability */
  /* Subtle inner shadow for depth */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); 
}

.search-box button {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  /* Bright contrasting color */
  background-color: #f7b733; 
  color: #185a9d; 
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease; /* Smoother transition */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Lifted effect */
}

.search-box button:hover {
  background-color: #fc4a1a; /* Orange-Red for hover */
  color: #fff;
  transform: translateY(-2px); /* Slight lift on hover */
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.weather-info {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3); /* Separation line */
  font-size: 1.1rem;
  text-align: left; /* Left align text for better readability */
  line-height: 1.8; /* Increased line height */
}

/* Styling for the dynamically inserted content */
.weather-info h2 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.weather-info h3 {
    font-size: 3.5rem;
    font-weight: 300; /* Light weight for temperature */
    margin: 10px 0 15px;
}

.weather-info p {
    font-weight: 400;
    margin-left: 10px; /* Slight indentation */
}