* {
  box-sizing: border-box;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica,
    Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', Segoe UI Symbol;
  overflow: hidden;
}

a {
  display: block;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  text-decoration: none;
}

body,
a {
  width: 100vw;
  height: 100vh;
}

.content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 318px;
  max-height: 318px;

  color: #fff;
  font-size: 11px;

  display: flex;
  flex-direction: column;
}

header {
  grid-area: header;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

time {
  flex-grow: 1;
}

#logo {
  display: inline-block;
  width: 83px;
  height: 24px;
  background-size: 75px;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #10658e;
  border-radius: 5px;
}
.top {
  height: 150px;
  padding: 16px;
  flex-grow: 1;
  display: grid;
  grid-template-areas:
    'header header'
    'placemark placemark'
    'temp wind';
  grid-template-rows: repeat(3, min-content);
}
.placemark {
  grid-area: placemark;
  font-size: 17px;
  margin-bottom: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
.temp {
  grid-area: temp;
  font-size: 34px;
  line-height: 28px;
}
.wind {
  grid-area: wind;
  display: flex;
  align-items: flex-end;
  margin-left: auto;
}
.wind img {
  height: 18px;
  margin-right: 2px;
}
#wind-speed {
  font-size: 20px;
  line-height: 18px;
  margin-right: 4px;
}
#wind-unit {
  font-size: 10px;
}
.bottom {
  height: 166px;
  background: rgba(16, 101, 142, 0.7);
  border-top: 1px solid #ffbe00;
}
.weekday {
  margin-bottom: 12px;
}

.forecasts {
  height: 136px;
  display: flex;
  padding: 8px;
}

.forecast {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 120px;
  align-items: center;
  flex: 1 0 0;
}

.forecast-1:before,
.forecast-2:before,
.forecast-3:before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.symbol {
  height: 24px;
  width: auto;
  margin-top: 6px;
}

.temperature {
  font-size: 22px;
}

.divider {
  width: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 6px 0;
}

.degree {
  display: inline-block;
  width: 0;
}
.degree:before {
  content: '°';
}

footer {
  display: flex;
  align-items: center;
  font-size: 10px;
  text-align: right;
  justify-content: flex-end;
  padding: 0 12px;
}

.arrow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-left: 8px;
  background: #00537f url(../../../content/widget/card_arrow.svg) 70% 50% no-repeat;
  background-size: 24px;
}

@media (max-width: 290px) {
  .forecast-3 {
    display: none;
  }
}
@media (max-width: 244px) {
  .forecast-2 {
    display: none;
  }
  footer {
    font-size: 9px;
  }
  .smaller .placemark {
    font-size: 13px;
  }
}
@media (max-width: 170px) {
  #logo {
    width: 24px;
    background-image: url('../../../content/widget/ic_logo_shadow.svg') !important;
    background-size: contain;
    background-color: transparent;
  }
  .wind {
    display: none;
  }
  .forecast-1 {
    display: none;
  }
  .forecast-0 {
    display: grid;
    grid-template-areas:
      'weekday weekday weekday'
      'temperature1 divider temperature2'
      'symbol symbol symbol';
    grid-template-columns: repeat(3, min-content);
    grid-template-rows: repeat(3, min-content);
    justify-content: center;
    row-gap: 4px;
  }
  .forecast-0 .weekday,
  .forecast-0 .symbol,
  .forecast-0 .divider {
    margin: 0 auto;
  }
  .forecast-0 .weekday {
    grid-area: weekday;
  }
  .forecast-0 .temperature:first-of-type {
    grid-area: temperature1;
  }
  .forecast-0 .temperature:nth-of-type(2) {
    grid-area: temperature2;
  }
  .forecast-0 .divider {
    grid-area: divider;
    transform: translateX(4px) rotate(280deg) scaleX(0.7);
  }
  .forecast-0 .symbol {
    grid-area: symbol;
  }
  footer {
    position: absolute;
    right: 8px;
    bottom: 8px;
    font-size: 0;
    padding: 0;
  }
  .top {
    padding: 8px;
  }
  header,
  .placemark,
  .temp {
    margin-bottom: 6px;
  }
}

#cntimage {
  position: absolute;
}