I have a white box I'm using to make a word game. When I adjust my browser window to make the viewport smaller, the box doesn't move to the center and shrink, it almost slides.
I'd like it to work like Wordle because the grid stays constant even if you shrink the browser.
Can anyone help with what CSS positioning I'm doing incorrectly?
* {
padding:0;
margin:0;
}
body{
margin: 0;
padding: 0;
font-family: 'Figtree', sans-serif;
font-family: 'Inter', sans-serif;
font-family: 'Montserrat', sans-serif;
background: #212529;
}
.wrapper{
margin-top: 120px;
align-content: center;
position: fixed;
left:400px;
padding: 0px 80px;
background: white; opacity: 1;
border-radius: 10px;
box-shadow: 0 3px 5px rgba(0,0,0,0.5);
max-width: 500px;
max-height: 500px;
}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<link href="https://fonts.googleapis.com/icon?family=Material+Symbols+Outlined" rel="stylesheet">
</head>
<body>
<div class="wrapper">
<div class="content">
<div class="guesses-text">0/10</div>
<hr class="bum">
<div class="inputs">
<input type="text" class="exterior-letters">
<input type="text" class="interior-letters">
<input type="text" class="interior-letters">
<input type="text" class="interior-letters">
<input type="text" class="exterior-letters">
</div>
</div>
</div>
</body>
</html>
I have tried using "display: flex;" and other methods but none have worked.