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

:root {
  --flag-height: 10;
  --flag-width: 19;
  --liberia-red: #cf2027;
  --liberia-white: #ffffff;
  --liberia-blue: #002868;
}

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

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

#liberia::after {
  content: "";
  position: absolute;
  width: 14%;
  height: 14%;
  top: 20%;
  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>');
}

