<h3>Singapore</h3>

<div class="flag singapore">
  <div class="singapore__moon">
    <div class="singapore__star"></div>
    <div class="singapore__middle_stars">
      <div class="singapore__star"></div>
      <div class="singapore__star"></div>
    </div>
    <div class="singapore__bottom_stars">
      <div class="singapore__star"></div>
      <div class="singapore__star"></div>
    </div>
  </div>
</div>
* {
  box-sizing: border-box;
  margin: 0;
}

body {
  width: 100%;
  height: 100vh;
  background-color: rgb(221, 239, 255);
  display: grid;
  place-items: center;
  font-family: cursive;
  font-weight: bold;
}

h3 {
  position: absolute;
  text-align: center;
  top: 20px;
}

/* Main Style Stars from here  */
.flag {
  position: relative;
  width: 300px;
  height: 200px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.singapore {
  background: linear-gradient(#ed2939 50%, #fff 0);
}

.singapore__moon {
  position: absolute;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 1in;
  box-shadow: -17px 0 white;
  left: 14%;
  top: 6.6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.singapore__middle_stars {
  display: flex;
  gap: 15px;
  margin-top: -3px;
}
.singapore__bottom_stars {
  display: flex;
  gap: 5px;
  margin-top: 2px;
}

.singapore__star {
  height: 17px;
  aspect-ratio: 1;
  background-color: white;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.