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

body {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: linear-gradient(#8e8b8b,#12caf4);
  background-repeat: no-repeat;
  overflow:visible;
}

nav {
  /* margin-top: 10px; */
  height: 70px;
  width: 800px;
  background-color: #6e6c6c;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;

}

nav .app {
  color: #12caf4;
  margin-left: 20px;
  font-size: 30px;
  font-family: Space Grotesk, sans-serif;
}

nav #inputfild {
  margin-top: 15px;
  margin-right: 30px;
}

nav #inputfild input {
  height: 40px;
  width: 300px;
  font-size: 20px;
}

nav #inputfild button {
  height: 40px;
  width: 100px;
  font-size: 20px;
  border-radius: 5px;
  background-color: #f2f2f2;
  color: #6c6b6b;
  border: none;
}

nav #inputfild button:hover {
  background-color: #afabab;
  color: white;
}

#weatherResult {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #f2f2f2;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  max-width: 800px;
  display: none;
}

header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 50px;
}

.pressur {
  margin-bottom: 20px;
}

.left-side {
  text-align: center;
}

#city {
  text-align: center;
  padding: 0 15px;
  border: 1px solid #121212;
  height: 25px;
  font-size: 15px;
  border-radius: 5px;
}

.temperature {
  font-size: 100px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #555;
  margin-top: 50px;
}

.righttemperature {
  font-size: 60px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #6c6b6b;
}

.weather {
  font-size: 24px;
  color: #555;
  margin-bottom: 20px;
}

.rightweather {
  font-size: 24px;
  color: #555;
  margin-bottom: 20px;
}

.details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-icon {
  font-size: 24px;
  color: #555;
}

.detail-value {
  font-size: 16px;
  color: #555;
}

.right-side {
  text-align: center;
}

.city {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #555;
  text-transform: capitalize;
}

img {
  height: 40px;
  width: 50px;
}

#img1 {
  height: 100px;
  width: 100px;
}

#img2 {
  height: 70px;
  width: 70px;
}

#img3 {
  height: 100px;
  width: 130px;
}

h3 {
  /* margin-right: 292px; */
  padding-top: 10px;
  font-weight: bold;
  font-family: Space Grotesk, sans-serif;
}

h4 {
  font-size: 20px;
  font-weight: bold;
  font-family: Space Grotesk, sans-serif;
}

.app {
  font-size: 20px;
  color: #111111;
  margin-top: 20px;
  font-weight: 600;
  text-transform: capitalize;
  font-family: "Bona Nova SC", serif;
}

h4 {
  margin-top: 20px;
}

.forecast {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.forecast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  background-color: #fff;
}

.forecast-time {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
}

.forecast-temp {
  font-size: 18px;
  font-weight: bold;
  color: #555;
  margin-bottom: 5px;
}

.forecast-weather {
  font-size: 12px;
  color: #555;
}

.hourly-forecast {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.hourly-forecast-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  background-color: #fff;
  width: 80px;
}

.hourly-forecast-time {
  font-size: 12px;
  color: #555;
  margin-bottom: 5px;
}

.hourly-forecast-temp {
  font-size: 16px;
  font-weight: bold;
  color: #555;
  margin-bottom: 5px;
}

.hourly-forecast-weather {
  font-size: 10px;
  color: #555;
}

.daily-forecast {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  margin-top: 6px;
  margin-bottom: 20px;
}

.daily-forecast-item {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  background-color: #fff;
}

.daily-forecast-day {
  font-size: 12px;
  color: #555;
  margin-bottom: 5px;
}

.daily-forecast-temp {
  font-size: 16px;
  font-weight: bold;
  color: #555;
  margin-bottom: 5px;
}

.daily-forecast-weather {
  font-size: 10px;
  color: #555;
}

#error {
  color: red;
}
#footer{
  display: flex;
  justify-content: center;
  font-family: Space Grotesk, sans-serif;
}

/* Responsive Styles */
@media only screen and (min-width:830px) {
  form{
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media only screen and (max-width: 830px) {
  nav {
    margin-top: 0;
    height: 70px;
    width: 100vw;
    border-radius: 0;
  }
  body{
    background: linear-gradient(#8e8b8b,#12caf4);
    background-repeat: no-repeat;
  }
  nav .app {
    font-size: 4vw;
  }

  #weatherResult {
    flex-direction: column;
    max-width: 100vw;
    /* padding-left: 37px; */
  }
  
  .daily-forecast {
    gap: 10px;
    flex-wrap: wrap;
  }

  .daily-forecast-item {
    width: 40vw;
  }

  .forecast-item {
    width: 200px;
    margin-bottom: 10px;
  }
}

@media only screen and (max-width: 700px) {
  .forecast-item {
    width: 150px;
  }
}

@media only screen and (max-width: 640px) {
  nav #inputfild input {
    height: 40px;
    width: 200px;
    font-size: 20px;
  }
}

@media only screen and (max-width: 500px) {
  .daily-forecast {
    display: grid;
    gap: 10px;
  }

  .daily-forecast-item {
    width: 90vw;
  }

 
  .forecast-item {
    width: 100px;
  }

  nav {
    justify-content: space-evenly;
  }

  nav #inputfild input {
    width: 45vw;
  }

  nav #inputfild button {
    height: 40px;
    width: 80px;
  }
}

@media only screen and (max-width: 480px) {
  nav #inputfild {
    margin-right: 0;
  }
 body{
  overflow-x: hidden;
 }
  nav #inputfild button {
    height: 40px;
    width: 70px;
    font-size: 20px;
    border-radius: 5px;
    background-color: #f2f2f2;
    color: #6c6b6b;
    border: none;
  }
}

@media only screen and (max-width: 370px) {
  nav .app {
    display: none;
  }

  nav #inputfild input {
    width: 200px;
  }

  nav #inputfild button {
    height: 40px;
    width: 96px;
  }
  .temperature{
    margin-top: 20px;
  }
   h3{
    padding-top: 23px;
    padding-bottom: 10px;
   }
  #weatherResult {
    width: 365px;
  }
  .right-side{
    text-align: center;
    /* padding-right: 38px; */
    width: 336px;
  }
}

@media only screen and (max-width: 350px) {
  nav .app {
    display: none;
  }

  nav #inputfild input {
   max-width: 150px;
  }

  .forecast-item {
    width: 85px;
  }

  #flexdiv {
    display: flex;
  }
}
