* { margin: 0; padding: 0; box-sizing: border-box; } :root { --black: hsl(0, 0%, 10%); } body { width: 100vw; min-height: 100vh; display: grid; place-items: center; padding: 2rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; color: var(--black); line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .wrapper { width: 100%; max-width: 60rem; min-width: 20rem; margin: 0 auto; overflow: hidden; } .controls { display: flex; align-items: center; flex-wrap: wrap; margin: 2rem 0; } .controls__label { margin-right: 1rem; font-weight: 500; font-size: 1rem; } .controls__randomize { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; } .controls__btn { width: 8rem; height: 2.25rem; margin-right: 1rem; background: #fff; border-radius: 0; border: none; border: 2px solid var(--black); font-family: inherit; color: var(--black); font-size: 1rem; font-weight: 500; cursor: pointer; } .controls__btn:hover { background: var(--black); color: #fff; } .controls__btn--save { position: relative; margin-left: auto; margin-right: 0; background: var(--black); color: #fff; } .controls__btn--save:hover { background: #fff; color: var(--black); } .controls__saving-disabled { font-size: 0.875rem; margin-top: 2rem; font-weight: 500; display: none; font-style: italic; } @media only screen and (max-width: 800px) { body { padding: 0.75rem; } .controls__btn { width: 6rem; height: 2rem; font-size: 0.875rem; margin-top: 0.75rem; } .controls__label { font-size: 0.875rem; margin-right: 0.5rem; width: 100%; } .controls__btn--save { width: 100%; margin-top: 1.25rem; } } @media only screen and (max-width: 480px) { .controls__btn { margin-right: 0.5rem; } .controls__btn--save { display: none; } .controls__saving-disabled { width: 100%; display: block; } }