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

:root {
  --flag-height: 2;
  --flag-width: 3;
  --djibouti-blue: #6ab2e7;
  --djibouti-green: #12ad2b;
  --djibouti-red: #d7141a;
}

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

#djibouti::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(45deg, transparent 50%, white 50%);
}

#djibouti::after {
  content: "";
  position: absolute;
  width: 16%;
  height: 16%;
  top: 50%;
  left: 25%;
  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="%23d7141a" 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;
}
