* { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inconsolata', monospace; color:rgb(140, 222, 249); font-weight: 400; background-color: black; margin: 5px; } .wrapper { display: grid; } .flex-container { margin-top: 20px; margin-left: 4vw; margin-right: 4vw; flex-wrap: wrap; display: grid; grid-template-columns: repeat(4, 1fr); /* 4 columns */ grid-template-rows: repeat(4, 1fr); /* 4 rows */ gap: 2px; /* Gap between grid items */ } /* Style for each div within the grid */ .flex-container > div { width: calc(25% - 10px); /* 25% width for each div with 10px gap */ height: 100px; /* Set height as needed */ background-color: rgba(51, 51, 51, 0.84); /* Background color */ margin-bottom: 10px; /* Add some space at the bottom */ text-align: left; /* Center text */ /* Vertically center text */ padding: 2px; border-radius: 5px; min-width: 22vw; min-height: 24vh; text-shadow: 0px 0px 5px #e3863ab4; overflow: scroll; } .data { padding-left: 1vw; }