:root {
  --sm-space: .4rem;
  --md-space: .8rem;
  --lg-space: 1.6rem;
  --xl-space: 3.2rem;

  --font-base: 1.6rem;
  --font-title: 1.8rem;
  --font-lgc: 3rem;

  --bg-color-default: #2A7B9B;
  --color-default: #fff;

  --radius-md: .8rem;
}

html {
  font-size: 10px;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: var(--lg-space);
  background: #2A7B9B;
  background: linear-gradient(180deg, rgba(42, 123, 155, 1) 0%, rgba(36, 105, 133, 1) 100%);
  color: var(--color-default);
  font-size: var(--font-base);
  overflow-x: hidden;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  align-items: center;
  gap: var(--lg-space);
}

.panel {
  background: rgba(0,0,0,.5);
  border-radius: var(--radius-md);
  padding: var(--md-space);
  max-width: 100%;
  width: 100%;
}

.panel-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--lg-space);
  margin-bottom: var(--md-space);
  width: 100%;
  padding: var(--sm-space) 0;
  border-bottom: 1px solid var(--color-default);
  text-align: center;
  font-size: var(--font-title);
}

.panel-detail {
  display: flex;
  justify-self: flex-end;
  font-weight: 100;
}

.panel-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--lg-space);
}

.details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--md-space);
}

.temperature {
  font-size: x-large;
}

.current-interpretation {
  display: flex; 
  flex-direction: column;
  text-align: center;
}

.current-interpretation .picture {
  font-size: 10rem;
}

.wind-direction {
  display: inline-block;
}

.change-city-form {
  position: relative;
  display: flex;
  justify-self: end;
  gap: var(--md-space);
  justify-content: space-between;
  width: 100%;
}

.suggestions-list {
  position: absolute;
  bottom: 100%;
  width: 100%;
  background: white;
  color: black;
  list-style: none;
}

.suggestions-list li {
  cursor: pointer;
}

.suggestions-list li:hover {
  background: black;
  color: white;
}

.scrollable-h {
  overflow-x: scroll;
  display: flex;
  gap: var(--md-space);
  padding-bottom: var(--md-space);
}

.scrollable-h .scrollable-item {
  min-width: 9rem;
  background: rgba(255,255,255,.1);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--sm-space);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--md-space);
}

.scrollable-h .present {
  background: rgba(255,255,255,.1);
  border-color: var(--color-default);
}

.scrollable-h .past {
  opacity: .3;
}

.scrollable-h .interpretation {
  font-size: var(--font-lg);
}

.scrollable-h .temperature {
  font-size: var(--font-base)
}

.temperature.min {
  color: cyan;
}

.temperature.max {
  color: coral;
}

.twilight {
  display: flex;
  flex-direction: column;
  align-items: center;
}