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

:root {
  --flag-height: 2;
  --flag-width: 3;
  --chile-red: #d52b1e;
  --chile-blue: #0039a6;
  --star-size: 25%;
}

#chile {
  position: relative;
  height: 180px;
  aspect-ratio: var(--flag-width) / var(--flag-height);
  background:
    linear-gradient(180deg,
      white 0%,
      white 50%,
      var(--chile-red) 50%,
      var(--chile-red) 100%);
}

#chile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 33.333%;
  height: 50%;
  background: var(--chile-blue);
}

#chile::after {
  content: "";
  position: absolute;
  width: var(--star-size);
  height: var(--star-size);
  top: 25%;
  left: 16.666%;
  transform: translate(-50%, -50%);
  background: 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>') no-repeat center/contain;
}
