/* duck weather styles */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Patrick Hand", "Comic Sans MS", system-ui, sans-serif;
  color: #3b2f26;
  background:
    radial-gradient(circle at 20% 0%, #ffe4c7 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, #c9f2e0 0%, transparent 50%),
    linear-gradient(180deg, #fff5e6 0%, #fbeed9 70%, #f8e4c6 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.web-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}

.web-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.logo {
  font-family: "Caveat", cursive;
  font-size: 4.5rem;
  font-weight: 700;
  color: #3b2f26;
  line-height: 1;
  text-align: center;
  margin-bottom: 0;
}

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .web-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
  }

  .controls {
    justify-content: flex-end;
  }

  .content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
  }
}

.chip {
  border: none;
  background: rgba(255, 255, 255, 0.72);
  color: #3b2f26;
  font-family: inherit;
  font-size: 1.15rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(99, 70, 40, 0.08);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.chip:hover {
  transform: translateY(-1px);
  background: #fff;
}

.chip.location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
}

.chip.location .pin {
  color: #7aa988;
  font-size: 1.25rem;
}

.stage {
  position: relative;
  height: 380px;
  display: grid;
  place-items: center;
  margin-top: 6px;
}

.duck,
.duck-placeholder {
  position: relative;
  z-index: 1;
  max-height: 340px;
  max-width: 85%;
  object-fit: contain;
  image-rendering: auto;
}

.duck {
  display: none;
  mix-blend-mode: multiply;
  filter: contrast(1.1) brightness(1.05);
}

.duck.is-visible {
  display: block;
}

.duck-placeholder {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 24px;
  border: 2px dashed rgba(99, 70, 40, 0.25);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.4);
  color: rgba(59, 47, 38, 0.55);
  width: 260px;
  height: 260px;
}

.duck-placeholder span {
  font-size: 4rem;
}

.duck-placeholder p {
  margin: 0;
  font-size: 1.2rem;
}

.today {
  text-align: center;
  padding: 10px 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.today h1 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 2.5rem;
  margin: 2px 0 0;
}

.today .date {
  margin: 0;
  color: rgba(59, 47, 38, 0.6);
  font-size: 1.2rem;
}

.today .temp {
  font-family: "Caveat", cursive;
  font-size: 5.5rem;
  font-weight: 700;
  margin: 2px 0 0;
  line-height: 1;
}

.today .temp .deg {
  font-size: 3.5rem;
  vertical-align: top;
}

.today .desc {
  margin: 4px 0 2px;
  font-size: 1.4rem;
}

.today .extras {
  margin: 6px 0 12px;
  color: rgba(59, 47, 38, 0.7);
  font-size: 1.1rem;
  display: flex;
  gap: 8px;
}

.today .extras .sep {
  color: rgba(59, 47, 38, 0.35);
}

.graph-box,
.forecast-box {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(99, 70, 40, 0.04);
}

.graph-box h3,
.forecast-box h3 {
  font-family: "Caveat", cursive;
  font-size: 1.8rem;
  margin: 0 0 16px;
  color: #3b2f26;
}

.forecast-box .hint {
  font-size: 1.05rem;
  color: rgba(59, 47, 38, 0.6);
  margin: -10px 0 16px;
}

#tempGraph {
  width: 100%;
  height: 90px;
  overflow: visible;
}

.graph-point-group {
  cursor: crosshair;
}

.hover-dot {
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.graph-point-group:hover .hover-dot {
  opacity: 1;
}

.graph-tooltip {
  position: absolute;
  background: rgba(59, 47, 38, 0.95);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 1rem;
  pointer-events: none;
  transform: translate(-50%, -100%);
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(99, 70, 40, 0.2);
}

.graph-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(59, 47, 38, 0.55);
  padding: 0 2px;
  margin-top: 6px;
}

.forecast {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forecast .row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}

.forecast .row:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 8px rgba(99, 70, 40, 0.05);
}

.forecast .row.active {
  border-color: #86c9a6;
  background: #fff;
  box-shadow: 0 4px 12px rgba(134, 201, 166, 0.15);
}

.forecast .row .day {
  text-transform: lowercase;
  font-weight: bold;
}

.forecast .row .range {
  text-align: right;
  color: rgba(59, 47, 38, 0.75);
}

.forecast .row .icon {
  text-align: center;
  font-size: 1.4rem;
}
