.container { --grid-layout-gap: 8px; --grid-column-count: 3; --grid-item--min-width: 150px; --gap-count: calc(var(--grid-column-count) - 1); --total-gap-width: calc(var(--gap-count) * var(--grid-layout-gap)); --grid-item--max-width: calc((100% - var(--total-gap-width)) / var(--grid-column-count)); display: grid; grid-template-columns: repeat(auto-fill, minmax(max(var(--grid-item--min-width), var(--grid-item--max-width)), 1fr)); grid-auto-rows: 1fr; grid-gap: var(--grid-layout-gap); } .playing { background-color: burlywood; } h2.bot { margin-top: 0; margin-bottom: .5rem; text-align: center; } .item { display: flex; justify-content: center; align-items: center; padding: 1rem; background-color: #80cbc4; border: 1px solid black; font-size: clamp(1rem, -0.8750rem + 8.3333vw, 2rem); text-align: center; cursor: pointer; color: #073642 } .item.stop { background-color: #cb4b16; } #info { display: flex; flex-direction: column; align-items: center; gap: 6px; } .controls { display: flex; align-items: center; justify-content: space-around; width: 100%; margin: 0 auto; max-width: 512px; } .input-container { max-width: 512px; } .box { /* background-color: #fefefe;*/ margin: 15% auto; /* 15% from the top and centered */ padding: 2rem; /*border: 1px solid #888;*/ width: 80%; /* Could be more or less, depending on screen size */ align-content: center; } /* The Modal (background) */ .modal { display: block; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1; /* Sit on top */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0,0,0); /* Fallback color */ background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ } /* Modal Content/Box */ .modal-content { margin: 15% auto; /* 15% from the top and centered */ padding: 2rem; width: 80%; /* Could be more or less, depending on screen size */ text-align: center; font-size: 32px; } body, html { margin: 0; padding: .5rem; } input[type="button"], input[type="submit"] { display: inline-block; height: 38px; padding: 0 30px; color: #555; text-align: center; font-size: 11px; font-weight: 600; line-height: 38px; letter-spacing: .1rem; text-transform: uppercase; text-decoration: none; white-space: nowrap; border-radius: 4px; border: 1px solid #bbb; cursor: pointer; box-sizing: border-box; } input[type="button"]:focus, input[type="submit"]:hover { color: #333; border-color: #888; outline: 0; } input[type="text"] { height: 38px; padding: 6px 10px; background-color: #fff; border: 1px solid #D1D1D1; border-radius: 4px; box-shadow: none; box-sizing: border-box; -webkit-appearance: none; -moz-appearance: none; appearance: none; } input[type="text"]:focus { border: 1px solid #33C3F0; outline: 0; } section { margin-bottom: .5rem; } .u-full-width { width: 100%; box-sizing: border-box; } .u-hidden { display: none; }