@media (orientation: landscape) {
  
  .tableau {
    font-size: 1rem;
  }
  
  #skyscraper1 {
    height: 60vh;
  }

}

@media (orientation: portrait) {
  
  .tableau {
    font-size: 0.8rem;
  }
  
  #skyscraper1 {
    height: 75vh;
  }
}

:root {
  --card-width: 10vw;
  --card-height: calc(var(--card-width) * (726/500));
  --gap-size: 0.4vw;
  font-family: system-ui;
  font-size: 1rem;
}


img {
  max-width: 100%;
}

.tableau {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: var(--gap-size);
  background-color: green;
  padding: var(--gap-size);
}

.tableau > div { /* Child combinator */
  padding: var(--gap-size);
  color: lightgreen;
}

.card-column {
  text-align: center;
  touch-action: none;
  border: 1px solid #999999;
  border-radius: 3px;
  align-content: end;
}

.card {
  touch-action: none;
  height: var(--card-height);
  width: var(--card-width);
  border: 1px solid #999999;
  border-radius: 3px;
}

.cardText {
  touch-action: none;
  position: absolute;
  font-size: calc(0.7 * var(--card-height));
  color: red;
  z-index: 2;
}

#col9 {
  text-align: start;
  align-items: stretch;
}
