* {
  box-sizing: border-box;
}

body {
  background-color: #041036;
  color: #fff;
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* prevent horizontal scrollbar */
}

.main_container {
  background-color: #060722;
  width: calc(100% - 60px); /* leaves 30px gap on each side */
  margin: 40px auto;
  height: 150vh;
  padding: 30px 50px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  position: relative;
}

#app_name {
  color: #3E92FF;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 26px;
  display: inline-block;
  margin-bottom: 20px;
}

form {
  display: inline-block;
  margin-left: 35%;
  margin-top: 0px;
  position: relative;
  bottom: 8vh;
}

input {
  width: 350px;
  height: 50px;
  border-radius: 5px;
  border: none;
  padding-left: 10px;
  background-color: #1C1E35;
  color: #fff;
  font-size: 16px;
}

button {
  width: 80px;
  height: 50px;
  border-radius: 5px;
  border: none;
  background-color: #3E92FF;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #5aa0ff;
}

/* Row Layout: card | map | sidebar */
.content_row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
}

.weather_card {
  flex: 0 0 25%;
  background: rgba(0, 0, 0, 0.3);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

#place {
  font-size: 40px;
  margin: 0;
}

#short_desc {
  font-size: 24px;
  color: #929292;
  margin: 5px 0;
}

#temperature {
  font-size: 90px;
  margin: 10px 0;
}

.feels_like {
  font-size: 24px;
  margin-bottom: 10px;
}

.weather_icon {
  height: 100px;
  width: 100px;
  object-fit: contain;
}

/* Map takes middle space */
#map {
  flex: 1;
  height: 455px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Sidebar (Humidity + Wind) */
.sidebar {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.humidity_container,
.wind_container {
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  padding: 20px;
  border-radius: 8px;
  font-size: 18px;
  color: #d0d0d0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 220px;
}

.humidity_head, .wind_head {
  font-size: 28px;
  margin-bottom: 10px;
}

.humidity, .wind {
  font-size: 48px;
  font-weight: bold;
  margin: 0;
}

.humidity_desc, .wind_desc {
  font-size: 28px;
  margin-top: 5px;
  color: #929292
}

.stats_row {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 20px;
}

.other_boxes {
  flex: 1;
  height: 220px; 
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  padding: 20px;
  border-radius: 8px;
  font-size: 18px;
  color: #d0d0d0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.other_boxes h4 {
  font-size: 28px;
  color: #d0d0d0;
  text-align: center;
}

.other_boxes .precipitation,
.other_boxes .aqi,
.other_boxes .visibility,
.other_boxes .uv {
  font-size: 48px;
  font-weight: bold;
}

.other_boxes .precipitation_desc,
.other_boxes .aqi_desc,
.other_boxes .visibility_desc,
.other_boxes .uv_desc {
  font-size: 28px;   
  color: #777;
}


.other_boxes h4,
.other_boxes .precipitation,
.other_boxes .aqi,
.other_boxes .visibility,
.other_boxes .uv,
.other_boxes .precipitation_desc,
.other_boxes .aqi_desc,
.other_boxes .visibility_desc,
.other_boxes .uv_desc {
  margin: 5px 0; /* tighten up spacing */
}
