/*removed link to font awsome since icons (not button) are from API*/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  /*full height of the viewpoint - it will take up the entire vertical height of the user's screen*/
}

.container {
  background: linear-gradient(135deg, #a2c2e8, #f6e6f6);
  display: flex;
  align-items: center;
  flex-direction: column;
  max-width: 320px;
  width: 100%;
  height: 600px;
  margin: 100px auto;
  border: none;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/*no container img*/
#main-icon {
  width: 68px;
  height: 68px;
  margin: 15px auto;
  display: block;
  position: relative;
}

.icon-temp {
  display: flex;
  align-items: center;
  gap: 8px; /* adjust spacing between icon and temp */
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background-image: url('./assets/Cloudy.jpg');
  background-size: cover;
  background-position: center;
  clip-path: ellipse(120% 92% at 50% 0%);
  z-index: 0;
}

.overlay {
  width: 100%;
  height: 60%;
  background: rgba(3, 10, 85, 0.45);
  clip-path: ellipse(120% 92% at 50% 0%);
}

.weather-content {
  position: absolute;
  top: 30%;
  /* Adjust based on layout */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  /* Puts content above image*/
  color: #ffffff;
}

.input-container {
  color: #ffffff;
  position: absolute;
  top: 5%;
  /* Adjust for better placement*/
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  border: 1px solid #ffffff;
  width: fit-content;
  border-radius: 8px;
  z-index: 2;
}

input {
  background-color: inherit;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.8rem;
  text-decoration: none;
  text-align: left;
  border: none;
  outline: none;
}

input::placeholder {
  color: #dedede;
}

#search-button {
  border: 1px solid transparent;
  width: 40px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  color: #ffffff;
}

#search-button img {
  width: 24px;
  height: 24px;
  border-left: 1px solid #ffffff;
}

#next-side-button {
  margin: 40px 0;
  border: none;
  width: 70px;
  height: 70px;
  background-color: rgb(32, 32, 136);
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  position: absolute;
  /* Allows precise positioning */
  top: 46%;
  /* Center vertically */
  right: 10px;
  /* Align to the right */
  transform: translateY(-50%);
  /* Adjust to true center */
}

/*styling weather content*/
#temperature {
  font-size: 40px;
  font-weight: 300;
}

#city {
  font-size: 35px;
  font-weight: 300;
}

#time {
  font-size: 18px;
  font-weight: 300;
  margin: 6px 0 8px 0;
}

#weather,
#sunrise,
#sunset {
  font-size: 15px;
  font-weight: 300;
  margin: 6px 0;
}

#sunrise {
  margin-right: 10px;
}

.sunrise-sunset {
  display: flex;
}

.sunrise-sunset p {
  white-space: nowrap;
}

.weather-forecast {
  color: #333;
  position: absolute;
  top: 76%;
  /* Adjust based on layout */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  /* Puts content above image */
}

.weather-forecast table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

.weather-forecast td {
  padding: 6px 8px;
  font-size: 16px;
}

#windday1,
#windday2,
#windday3,
#windday4 {
  white-space: nowrap;
}

/*no iconday style*/

.weather-forecast img {
  display: flex;
  width: 40px;
  height: 40px;
  top: 0;
  /* Adjust based on layout */
  left: 25%;
}

#next-side-button:hover {
  background-color: #1976d2;
}