body {
  background-image: url("/images/bg-image.JPG");
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: white;
  padding: 0;
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3, p {
  margin: 0;
}

.topnav,
.button {
  background-color: rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.topnav a {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 1.25rem;
}

.topnav a:hover:not(.active) {
  background-color: white;
  color: black;
}

.button {
  display: inline-block;
  border: none;
  margin: 0;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
}

.button:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.35);
}

.active {
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
}

.page-content {
  width: min(1100px, 94vw);
  margin: 24px auto 40px;
}

.current-summary-wrap {
  display: flex;
  justify-content: center;
}

.current-summary {
  width: min(960px, 100%);
  padding: 18px 22px;
  border-radius: 16px;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-city {
  font-size: 2rem;
  font-weight: 600;
}

.summary-date {
  margin-top: 4px;
  font-size: 1.05rem;
  opacity: 0.92;
  text-transform: capitalize;
}

.summary-main {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.current-weather {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.big-icon {
  height: 120px;
  width: 120px;
  flex-shrink: 0;
}

.summary-temp {
  font-size: 3rem;
  line-height: 1;
}

.summary-description {
  font-size: 1.2rem;
  text-transform: capitalize;
}

.sun-cycle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sun-time {
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.9rem;
}

.sun-time strong {
  margin-left: 4px;
}

.discreet .sun-time {
  opacity: 0.9;
}

.snow-accumulation {
  margin-top: 2px;
  color: #daf3ff;
  font-size: 0.9rem;
}

.snow-accumulation.small {
  font-size: 0.82rem;
}

.daily-history {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.day-card {
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px;
}

.day-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.day-card-header h3 {
  font-size: 1.25rem;
  text-transform: capitalize;
}

.day-count {
  font-size: 0.88rem;
  opacity: 0.86;
}

.day-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
}

.day-value {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
}

.value-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forecast-hour {
  font-size: 0.95rem;
  font-weight: 600;
}

.forecast-image {
  height: 56px;
  width: 56px;
}

.value-temp {
  margin-top: 2px;
  font-size: 1.55rem;
}

.value-desc {
  text-transform: capitalize;
  font-size: 0.95rem;
}

.value-meta {
  margin-top: 3px;
  font-size: 0.82rem;
  opacity: 0.9;
}

.empty-state {
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 12px;
}

.degre:after {
  content: " \00b0 C";
}

.container {
  margin: auto;
}

.error,
.location {
  padding: 20px;
}

@media (max-width: 760px) {
  .summary-city {
    font-size: 1.5rem;
  }

  .summary-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .big-icon {
    height: 95px;
    width: 95px;
  }

  .summary-temp {
    font-size: 2.2rem;
  }

  .day-values {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  }
}
