<h3>Brunei</h3>

<div class="flag brunei">
  <div class="brunei__black"></div>
  <img src="https://imgur.com/pjuyDpw.png" alt="" class="brunei__logo" />
</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;
}
.brunei {
  background-color: #f7e017;
}

.brunei__black {
  width: 100%;
  height: 25%;
  transform: rotate(15deg) scaleX(1.5) translate(10px, 50px);
  background-color: white;
  box-shadow: 0 50px black;
}

.brunei__logo {
  position: absolute;
  inset: 0;
  height: 150px;
  margin: auto;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.