/* B1 — World's Tallest Buildings */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #dfe6f2;
  background: linear-gradient(#0d1524 0%, #1d3050 55%, #47638c 100%);
}

h1 {
  position: absolute;
  top: 28px;
  left: 40px;
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9fb2d0;
}

.skyline {
  display: flex;
  align-items: flex-end;   /* every tower stands on the same ground line */
  justify-content: center;
  gap: 26px;
  padding: 0 40px;
  overflow-x: auto;
}

.building {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.building img {
  display: block;
  width: auto;             /* height is set from the data, so the ratio is kept */
}

.building figcaption {
  height: 72px;            /* same height for every caption keeps the towers aligned */
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-top: 1px solid rgba(223, 230, 242, 0.35);
  align-self: stretch;
  text-align: center;
}

.building .name {
  font-size: 12px;
  max-width: 130px;
  line-height: 1.3;
}

.building .height {
  font-size: 12px;
  font-weight: 700;
  color: #ffd479;
}
