<h3>Comoros</h3>

<div class="flag comorosa">
  <div class="comorosa__triangle"></div>
  <div class="comorosa__moon">
    <div class="comorosa__star"></div>
    <div class="comorosa__star"></div>
    <div class="comorosa__star"></div>
    <div class="comorosa__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;
}

.comorosa {
  background: linear-gradient(
    #ffc621 25%,
    #fff 25%,
    #fff 50%,
    #ce2029 50%,
    #ce2029 75%,
    #4175b9 0
  );
}

.comorosa__triangle {
  border-style: solid;
  border-width: 100px 142px;
  border-color: transparent;
  border-left-color: #3f8e43;
}

.comorosa__moon {
  border-radius: 1in;
  background-color: transparent;
  position: absolute;
  left: 13%;
  right: 62%;
  top: 32%;
  bottom: 32%;
  box-shadow: -15px 0 white;
  display: grid;
  place-items: center;
}

.comorosa__star {
  width: 12px;
  height: 12px;
  background-color: white;
  margin-left: -15px !important;
  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.