Align-items:center can't center items vertically as a whole?

<div id="main">
    <div id="inner">inner box</div>
    <img src="image.png" alt="">
</div>

css


*{
margin:0;
padding:0;
}

-sharpmain{
    margin:0 auto;
    width:600px;
    height:392px;
    border:1px solid red;
    text-align:center;
    position:relative;
    display:flex;
    align-items:center;
    flex-direction:column;
    justify-content:cneter;
}

   
-sharpinner{
    margin:10px auto;
    width:300px;
    height:40px;
    line-height:40px;
    border:1px solid red;
    z-index:10;
}

img{
    width:256px;
    height:256px;
}

effect

Why can"t inner div and img be centered vertically as a whole? They are in the middle of the level.

Mar.16,2021

justify-content:cneter;
because ~ many people make mistakes carelessly ~

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3702b-2b8a7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3702b-2b8a7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?