html,
body {
  background-color: rgba(0, 0, 0, 0.805);
  background-image: url("../images/wonkyBackground.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  font-family: "Caveat Brush", cursive;
  margin: 0;
  min-height: 100vh;
  padding-top: 1px;
}

@media (max-aspect-ratio: 1/1) {
  html,
  body {
    background-size: cover;
  }
}

.app_name {
  font-family: "Caveat Brush", cursive;
  letter-spacing: 0.05em;
  font-size: 45px;
  margin-top: 25px;
  margin-bottom: 10px;
  text-align: center;

  color: rgba(245, 240, 255, 1);

  /* Brighter inner fill */
  color: rgba(250, 245, 255, 1); /* luminous near-white lavender */

  /* Shadow-only depth (no stroke) */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.88),
    /* contrast anchor */ 0 0 8px rgba(200, 180, 255, 0.7),
    /* lilac glow */ 0 0 18px rgba(150, 120, 220, 0.45);
}

/* weather app block ... up to footer settings */
.weather_app {
  background: rgba(253, 252, 252, 0.75); /* translucent */
  border-radius: 18px;
  box-shadow: 0 30px 50px rgba(65, 50, 100, 0.15);
  margin: 12px auto;
  padding: 12px;
  width: 750px;
}

.search_block form {
  display: flex;
  justify-content: center;
  padding: 15px;
  width: 100%;
}

.search_input {
  background-color: rgba(255, 255, 255, 0.6); /* translucent */
  border: 1px solid rgba(255, 255, 255, 0.604);
  border-radius: 5px;
  color: #403068;
  outline: none;
  padding: 10px 10px;
  width: 65%;
}

.search_input:hover {
  border-color: darkgrey;
}

.search_input:focus {
  border-color: #241b3a;
  outline: none; /* remove default blue outline */
  box-shadow: 0 0 0 2px rgba(5, 5, 5, 0.15);
}

.search_button {
  background-color: #885df1;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  line-height: 1;
  margin-left: 5px;
  padding: 15px;
}

.search_button:hover {
  cursor: pointer;
}

/* current day weather forecast */
.current_weather {
  background-color: white;
  border-radius: 12px;
  display: flex;
  gap: 60px;
  justify-content: center; /* block content centered within weather_app */
  margin: 0 auto;
  max-width: 90%;
}

.current_city {
  font-size: 45px;
  font-weight: 900;
  line-height: 1;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  text-align: left;
}

/* current day weather forecast details */
.current_details {
  color: rgba(61, 3, 132, 0.4);
  font-size: 22px;
  font-weight: 520;
  line-height: 1.2;
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 8%;
  padding: 0;
}

.date-time {
  display: block;
  color: rgba(61, 3, 132, 0.4);
  margin-bottom: 0;
  font-size: 24px;
}

/* humidity & wind results setting */
.current_details strong {
  color: #f65282;
  font-size: 24px;
  letter-spacing: 0.05em;
}

/* Temperature today */
.current_temperature {
  display: flex;
}

.current_temp_icon {
  height: auto;
  margin-right: 10px;
  max-width: 70px;
  max-height: 100px;
}

.current_temp_value {
  font-size: 80px;
  font-weight: bold;
  margin-top: 12px;
}

/* Celcius sign settings*/
.current_temp_unit {
  align-self: flex-start;
  font-size: 28px;
  margin-top: 12px;
}

/* daily forecast for the week */
.weeklyForecast {
  margin-top: 25px;
}

.dailyFCst {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dailyFCst li {
  flex: 1;
  margin-bottom: 10px; /* more air */
  position: relative;
  text-align: center;
}

.forecast-day {
  display: block;
  font-size: 20px;
  font-weight: 500;
  position: relative;
}

.forecast-temps {
  display: flex;
  font-size: 20px;
  gap: 8px;
  justify-content: center;
}

.temp-max {
  color: red;
  font-size: 18px;
  font-weight: 500;
}

.temp-min {
  color: blue;
  font-size: 18px;
  opacity: 0.8;
}

.temp-max::after {
  content: " | ";
  color: black;
  opacity: 0.85;
}

.dayFCst_icon {
  width: 60px;
  height: auto;
  margin-bottom: 0;
  transform: translateY(-1px);

  filter:
    /* Contrast anchor to separate & enhance from background) */ drop-shadow(
      0 2px 3px rgba(0, 0, 0, 0.75)
    )
    /* Inner crisp white pop (brighter than your grey) */
    drop-shadow(0 0 5px rgba(255, 255, 255, 1)) /* Main luminous glow */
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.92))
    /* Outer lilac halo (depth, not fog) */
    drop-shadow(0 0 46px rgba(150, 120, 220, 0.65));
}

footer {
  font-family: "Reboto", sans-serif;
  font-size: 12px;
  text-align: center;
}

footer a {
  color: blueviolet;
}

/** EXTRA FEATURES ... positioning for weather emoticons */
.weemoticons {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.weather_app {
  position: relative;
  z-index: 5;
}

.wx-icon {
  position: absolute;
  top: var(--y, 50%);
  width: clamp(200px, 25vw, 300px);
  height: auto;

  opacity: 0;
  filter: grayscale(100%) blur(2px) brightness(0.85);
  will-change: opacity, transform, filter;
}

.wx-icon.left {
  left: clamp(220px, 3vw, 60px);
}

.wx-icon.right {
  right: clamp(220px, 3vw, 60px);
}

@keyframes popCycle {
  0% {
    opacity: 0;
    transform: translateY(calc(-50% + 14px)) scale(0.9);
    filter: grayscale(100%) blur(2px) brightness(0.85);
  }
  20% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    filter: none;
  }
  70% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    filter: none;
  }
  100% {
    opacity: 0;
    transform: translateY(calc(-50% - 10px)) scale(0.95);
    filter: grayscale(30%) blur(1px) brightness(0.9);
  }
}

.wx-icon.play {
  animation: popCycle 3s ease-in-out 1 both;
}

/* ✅ delays applied to the same elements that have the animation */
.wx-icon.i1 {
  animation-delay: 0s;
}
.wx-icon.i2 {
  animation-delay: 1.5s;
}
.wx-icon.i3 {
  animation-delay: 3s;
}
.wx-icon.i4 {
  animation-delay: 4.5s;
}
.wx-icon.i5 {
  animation-delay: 6s;
}
.wx-icon.i6 {
  animation-delay: 7.5s;
}
.wx-icon.i7 {
  animation-delay: 9s;
}
