<h3>Philippines</h3>

<div class="flag philippines">
  <div class="philippines__star"></div>
  <div class="philippines__star"></div>
  <div class="philippines__star"></div>
  <img src="https://imgur.com/n4LM8Lv.png" height="120" alt="" />
</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;
}

.philippines {
  background: linear-gradient(#0035a9 50%, #cf0922 0);
}

.philippines::before {
  content: "";
  position: absolute;
  left: 0;
  border-width: 100px 150px;
  border-style: solid;
  border-color: transparent;
  border-left-color: white;
}

.philippines > img {
  position: absolute;
  top: 50%;
  transform: translatey(-50%);
}

.philippines__star {
  position: absolute;
  width: 20px;
  aspect-ratio: 1;
  background-color: #fcd20e;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  z-index: 1;
}

.philippines__star:nth-child(1) {
  left: 1%;
  top: 8%;
  transform: rotate(-20deg);
}
.philippines__star:nth-child(2) {
  left: 37%;
  top: 45%;
  transform: rotate(20deg);
}
.philippines__star:nth-child(3) {
  left: 1%;
  top: 82%;
  transform: rotate(-5deg);
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.