title: CSS Grid Stadium Shape
body: <p>I've been trying to work with the following figure on CSS Grid, but it has turned out very challenging</p>
  <p><a href="https://i.stack.imgur.com/7QMAO.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7QMAO.gif" alt="enter image description here" /></a></p>
  <p>The image represents a stadium, but it is turning very hard to make it look like the image attached. A few considerations</p>
  <ul>
  <li><p>The corners are triangles, so the hardest part is to make them with that shape and also responsive.</p>
  </li>
  <li><p>I can use a CSS Mask to deal with the shapes and spacing but that will chop off a few circles.</p>
  </li>
  </ul>
  <p>I did my try and error and error and got it halfway through. Any idea how to make it work? or maybe If someone has a different approach also would help me out</p>
  <p><a href="https://jsfiddle.net/rodboc/9psa4bg3/1/" rel="nofollow noreferrer">https://jsfiddle.net/rodboc/9psa4bg3/1/</a></p>
  <p>Any thoughts?</p>
  <pre><code>.grid {
    max-width: 80vw;
    min-height: 90vh;
    display: grid;
    grid-gap: 5px;
    grid-template-columns: 30% [main-start] 40% [main-end] 30%;
    grid-template-rows: 20% [main-start] 30% [main-end] 20%;
    margin: 0 auto;
  }
  
  [class^=&quot;item&quot;] {
    background-color: blue;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: center;
  }
  
  .item1 {
    background-color: red;
    grid-area: main;
  }
  .circle {
    width: 5px;
    height: 5px;
    overflow: hidden;
    background: #ccc;
    border-radius: 50%;
    margin: 1px;
    padding: 0;
  }
  
  .circle:hover {
    background: blue;
  }
  
  &lt;div class=&quot;grid&quot;&gt;
    &lt;div class=&quot;item1&quot;&gt;
    &lt;/div&gt;
    &lt;div class=&quot;item2&quot;&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;circle&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;item3&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;item4&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;item5&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;item6&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;item7&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;item8&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;item9&quot;&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>