*, ::after, ::before { box-sizing: border-box; } .item-container { --grid-layout-gap: 8px; --grid-column-count: 6; --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; 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; } body, html { margin: 0; padding: 0; } 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; } .container, .container-fluid, .container-xxl, .container-xl, .container-lg, .container-md, .container-sm { --bs-gutter-x: 1.5rem; --bs-gutter-y: 0; width: 100%; padding-right: var(--bs-gutter-x, 0.75rem); padding-left: var(--bs-gutter-x, 0.75rem); margin-right: auto; margin-left: auto; } @media (min-width: 576px) { .container-sm, .container { max-width: 540px; } } @media (min-width: 768px) { .container-md, .container-sm, .container { max-width: 720px; } } @media (min-width: 992px) { .container-lg, .container-md, .container-sm, .container { max-width: 960px; } } @media (min-width: 1200px) { .container-xl, .container-lg, .container-md, .container-sm, .container { max-width: 1140px; } } @media (min-width: 1400px) { .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container { max-width: 1320px; } } .u-full-width { width: 100%; box-sizing: border-box; } .u-hidden { display: none; }