Here's one way to solve it:
<!DOCTYPE html>
<html>
<head>
<style>
.container {
display: flex;
gap: 16px;
padding: 20px;
background: #1a1a2e;
min-height: 200px;
align-items: center;
justify-content: center;
flex-wrap: wrap;
}
.box {
width: 100px;
height: 100px;
background: linear-gradient(135deg, #667eea, #764ba2);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
font-size: 24px;
}
</style>
</head>
<body>
<div class="container">
<div class="box">1</div>
<div class="box">2</div>
<div class="box">3</div>
<div class="box">4</div>
</div>
</body>
</html>