<h3>Libya</h3>

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

.libya {
  background: linear-gradient(#e70013 25%, #000 25%, #000 75%, #239e46 0);
  display: grid;
  place-items: center;
}

.libya::before {
  position: absolute;
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 1in;
  box-shadow: -5px 0 0 3px white;
  margin-left: -10px;
}

.libya::after {
  position: absolute;
  content: "";
  width: 35px;
  height: 35px;
  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%
  );
  rotate: -15deg;
  margin-left: 35px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.