body { margin: 0; min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; } #root { width: 100%; height: 100%; flex: 1; display: flex; }