.top-part {
position: relative;
display: flex;
background: rgba(51, 102, 255,0.7);
width: 100%;
height: 8cm;
background-position: center;
background-size: cover;
}
.not-content {
display: flex;
align-items: center; /* this should center the text horizontally */
justify-content: center;
flex-direction: column;
text-align: center;
font-family:'Consolas','Courier New','Trebuchet MS';
color: white;
line-height: .5cm;
flex-wrap: wrap;
}
<section class="top-part">
<div class="not-content">
<h1><strong>BIG TEXT</strong></h1>
<h4>TEXT</h4>
</div>
</section>
i can't figure out what's causing my text not to be centered horizontally, maybe there's an issue with the CSS code regarding "align-items: center;"