I am trying to build a flag of Bosnia and Herzegovina that looks like this.

I'm trying to understand how the stars lined up. They fit on a 45-degree inclined axis, but the stars themselves do not rotate.
Below is the minimum minimum code I'm trying, but it also rotates the stars.
Is there any way to avoid this?
PS - I am not allowed to add another element to the DOM.
.flag {
position: relative;
width: 300px;
height: 200px;
}
.flag::before {
position: absolute;
content: 'β
β
β
β
β
β
β
β
β
';
color: black;
font-size: 3rem;
letter-spacing: 0.33rem;
transform: translateY(-50%) rotate(45deg);
top: 50%;
}
<div class="flag"></div>
Run codeHide result
source
share