<h3>Costa Rica</h3>

<div class="flag costa_rica"></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;
}
.costa_rica {
  background: linear-gradient(
    #002b7f 16%,
    #fff 16%,
    #fff 34%,
    #ce1126 34%,
    #ce1126 68%,
    #fff 68%,
    #fff 84%,
    #002b7f 0
  );
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.