<h3>Turkmenistan</h3>
<div class="flag turkmenistan">
<div class="turkmenistan__vertical__stars">
<div class="turkmenistan__star"></div>
<div class="turkmenistan__star"></div>
<div class="turkmenistan__star"></div>
</div>
<div class="turkmenistan__star left_star"></div>
<div class="turkmenistan__star right_star"></div>
<img style="margin-left: 36px" src="https://imgur.com/2MoKRjD.png" width="54" 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;
}
.turkmenistan {
background: #00843d;
}
/* Turkmenistan Moon */
.turkmenistan::before {
position: absolute;
content: "";
width: 50px;
aspect-ratio: 1;
border-radius: 1in;
left: 40%;
top: 15%;
box-shadow: 5px 5px 0 2px white;
}
.turkmenistan__vertical__stars {
position: absolute;
left: 40.21%;
right: 56.74%;
top: 9.5%;
bottom: 86.16%;
}
.turkmenistan__star {
height: 10px;
aspect-ratio: 1;
background: white;
transform: rotate(-15deg);
margin: 5px;
clip-path: polygon(
50% 0%,
61% 35%,
98% 35%,
68% 57%,
79% 91%,
50% 70%,
21% 91%,
32% 57%,
2% 35%,
39% 35%
);
}
.turkmenistan > .left_star,
.turkmenistan > .right_star {
position: absolute;
left: 36%;
top: 19%;
transform: rotate(-15deg);
}
.turkmenistan > .right_star {
left: 44.5%;
top: 15%;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.