body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #74b9ff, #dfefff);
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

.app {
  width: 90%;
  max-width: 460px;
  margin: 20px auto;
  padding: 22px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  text-align: center;
}

/* HEADER */

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.title-block {
  flex: 1;
  text-align: left;
}

h1 {
  font-family: "Palace Script MT", "Satisfy", "Brush Script MT", cursive;
  font-size: 52px;
  line-height: 0.95;
  margin: 0;
  color: #16324f;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.tagline {
  font-size: 14px;
  color: #52616f;
  margin: 8px 0 0;
  line-height: 1.35;
}

.profile-photo {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #dfefff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  background: #f5f9ff;
}

/* SEARCH AREA */

.search-panel {
  margin-top: 12px;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 18px;
  margin-bottom: 10px;
  box-sizing: border-box;
  border: 1px solid #cfd9e6;
}

.button-row {
  display: flex;
  gap: 10px;
}

button {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: #1f75fe;
  color: white;
  font-size: 17px;
  cursor: pointer;
  margin-top: 0;
}

button:hover {
  background: #155fd1;
}

#citySelect {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  font-size: 18px;
  border-radius: 12px;
  border: 1px solid #cfd9e6;
}

/* ALERT PANEL */

.alerts-section {
  margin-top: 20px;
  text-align: left;
}

.section-title {
  font-size: 17px;
  margin: 0 0 8px;
  color: #16324f;
}

#alertBox {
  padding: 14px;
  border-radius: 14px;
  background: #eef7ff;
  color: #16324f;
  border: 1px solid #b9d9f5;
  font-weight: normal;
  line-height: 1.45;
  max-height: 260px;
  overflow-y: auto;
}

#alertBox.active-alert {
  background: #fff4e5;
  color: #5b3200;
  border: 2px solid #e08a00;
}

.alert-status {
  font-weight: bold;
  font-size: 17px;
}

.alert-note {
  font-size: 14px;
  margin-top: 4px;
  color: #52616f;
}

.alert-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  background: #e08a00;
  color: white;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.alert-active h3 {
  margin: 4px 0 8px;
  font-size: 20px;
}

.alert-headline {
  margin: 0 0 10px;
}

.alert-description,
.alert-instructions {
  font-size: 15px;
  margin-top: 10px;
}

.alert-unavailable {
  font-weight: bold;
  color: #8b0000;
}

/* WEATHER CARD */

#weatherCard {
  margin-top: 24px;
  padding: 20px;
  background: #f5f9ff;
  border-radius: 16px;
}

#weatherCard h2 {
  margin-top: 0;
  color: #16324f;
}

#icon {
  font-size: 56px;
}

#temperature {
  font-size: 40px;
  font-weight: bold;
  margin: 10px 0;
}

#wind,
#condition {
  margin: 8px 0;
}

/* FORECAST */

#forecast {
  margin-top: 20px;
}

#forecast h3 {
  color: #16324f;
}

.forecast-day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f9ff;
  margin: 8px 0;
  padding: 10px;
  border-radius: 12px;
  font-size: 14px;
  gap: 6px;
}

#error {
  color: darkred;
}

.hidden {
  display: none;
}

#lastUpdated {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
}

/* FOOTER DISCLAIMER */

.app-footer {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid #e5edf5;
}

.app-footer p {
  font-size: 12px;
  color: #687785;
  line-height: 1.4;
  margin: 0;
}

/* MOBILE TWEAKS */

@media (max-width: 430px) {
  .app-header {
    flex-direction: column-reverse;
    text-align: center;
  }

  .title-block {
    text-align: center;
  }

  h1 {
    font-size: 40px;
  }

  .profile-photo {
    width: 94px;
    height: 94px;
  }

  .button-row {
    flex-direction: column;
  }

  button {
    font-size: 18px;
  }

  .forecast-day {
    font-size: 13px;
  }
}