<h3>Samoa</h3>

<div class="flag samoa">
  <div class="samoa__blue_box">
    <div class="samoa__star"></div>
    <div class="samoa_two_stars">
      <div class="samoa__star"></div>
      <div class="samoa__star"></div>
    </div>
    <div class="samoa__star"></div>

    <div class="samoa__absolute_star"></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;
}

.samoa {
  background: #ce1126;
}

.samoa__blue_box {
  width: 50%;
  height: 50%;
  background-color: #002b7f;
  /* width: 70px; */

  display: grid;
  grid-template-rows: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  justify-items: center;
}

.samoa__star,
.samoa__absolute_star {
  width: 16px;
  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%
  );
}

.samoa__star:nth-child(3) {
  width: 20px;
}
.samoa_two_stars {
  display: flex;
  gap: 40px;
}

.samoa__absolute_star {
  position: absolute;
  width: 11px;
  left: 27%;
  top: 27%;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.