/* reference: https://en.wikipedia.org/wiki/Flag_of_Cuba */

:root {
  --flag-height: 1;
  --flag-width: 2;
  --cuba-blue: #002a8f;
  --cuba-red: #cf142b;
  --cuba-white: #ffffff;
}

#cuba {
  position: relative;
  height: 180px;
  aspect-ratio: var(--flag-width) / var(--flag-height);
  background: repeating-linear-gradient(
    180deg,
    var(--cuba-blue) 0%,
    var(--cuba-blue) 20%,
    var(--cuba-white) 20%,
    var(--cuba-white) 40%
  );
}

#cuba::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(60deg, var(--cuba-red) 50%, transparent 50%);
}

#cuba::after {
  content: "";
  position: absolute;
  width: 18%;
  height: 18%;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><polygon fill="%23ffffff" points="15,0 19,11 30,11 21,17 24,28 15,22 6,28 9,17 0,11 11,11"/></svg>');
}

