body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #000;
  color: #fff;
  overflow: hidden;
}

/* Input Box */
.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  width: 50%;
  max-width: 400px;
  height: auto;
  overflow: hidden;
}

/* Results Box */
.results-container {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  width: 80%; /* Larger container for results */
  max-width: 800px;
  height: 90%; /* Increased height to accommodate all content */
  overflow: hidden;
}

/* Button Styles */
button {
  margin: 10px;
  padding: 10px;
  font-size: 1.2em;
  border: none;
  border-radius: 20px;
  background-color: #444;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background-color: #555;
}

input {
  margin: 10px;
  padding: 10px;
  font-size: 1.2em;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #222;
  color: #fff;
}

/* Slider Styling */
#slider {
  position: relative;
  height: 80%; /* Use most of the available height */
  display: flex;
  transition: transform 1s ease-in-out;
}

/* Slides */
.slide {
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

/* Current Weather and Forecast Content */
.forecast {
  padding: 20px;
  box-sizing: border-box;
}

.buttons {
  margin-top: 20px;
  text-align: center;
}

#forecastList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.forecastItem {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 1s ease-in-out;
}

#sunriseSunsetSlide {
  position: relative;
  /* background-color: #fffbe6; Optional light background */
  padding: 20px;
  height: auto; /* Allow height to adjust dynamically */
  display: flex;
  align-items: center;
}

.sun-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 120px; /* Adjust size */
  height: 120px;
  background: url('./sun.png') no-repeat center;
  background-size: contain;
  opacity: 0.8; /* Optional: Adjust transparency */
  z-index: 1;
}

#sunriseSunset {
  position: relative;
  z-index: 2; /* Ensure content sits above the sun icon */
  margin-left: 150px; /* Start content after the sun icon */
  white-space: nowrap; /* Prevent text wrapping */
  font-size: 1.2em; /* Adjust font size */
  overflow: visible; /* Ensure text is visible */
}

#currentWeatherSlide {
  display: flex;
  align-items: center;
  padding: 20px;
/*  background-color: #e0f7fa; Optional light background */
}

#weatherIcon {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 120px; /* Adjust size */
  height: 120px;
  background-size: contain;
  opacity: 0.8; /* Optional: Adjust transparency */
  z-index: 1;
}

#currentWeatherContent {
  position: relative;
  z-index: 2; /* Ensure content sits above the sun icon */
  margin-left: 150px; /* Start content after the sun icon */
  white-space: nowrap; /* Prevent text wrapping */
  font-size: 1.2em; /* Adjust font size */
  overflow: visible; /* Ensure text is visible */
}
