How do I correctly center a Material Design icon within a div to fix the gap issue? I have tried using text-align on the items div, but it hasn't worked. (Refer to screenshots for clarification) https://i.sstatic.net/eHuiR.png https://i.sstatic.net/nLMtd.png
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
body {
margin: 0;
font-family: 'Roboto', sans-serif;
}
header {
display: flex;
justify-content: space-between;
box-sizing: border-box;
width: 100%;
padding: 1em;
background: #3378FF;
color: white;
}
.right_panel {
align-items: center;
}
.title {
font-size: 24px;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body>
<header>
<div class="title">Shop</div>
<div class="right_panel">
<span class="material-icons">
account_circle
</span>
</div>
</header>
<div></div>
</body>
</html>