title: CSS shape semicircle alignment problem with border of rectangle
body: <p>I want to create a shape using CSS. The only problem I am facing is the alignment of semicircle with the border of rectangle which is not working out properly.
  I am attaching the image of what I have done till now. Can anybody help me out to fix these alignment problem. Thank you.</p>
  <p><a href="https://i.stack.imgur.com/kWQAS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kWQAS.png" alt="enter image description here" /></a></p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
  }
  
      #talkbubble {
        width: 120px;
        height: 80px;
        border: 4px solid #4C4C4C;
        position: relative;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        border-radius: 10px;
      }
  
      #talkbubble:before {
        content: "";
        position: absolute;
        top: 42%;
        left: -11.6px;
        width: 30px;
        height: 15px;
        border: 4px solid #4C4C4C;
        border-bottom: none;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px; 
        background-color: white;
        transform: rotate(90deg);
        box-sizing: border-box;
      }
  
    #talkbubble:after {
          content: "";
          position: absolute;
          top: 42%;
          right: -12px;
          width: 30px;
          height: 15px;
          border: 4px solid #4C4C4C;
          border-bottom: none;
          border-top-left-radius: 30px;
          border-top-right-radius: 30px;
          background-color: white;
          transform: rotate(270deg);
          box-sizing: border-box;
        }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="talkbubble"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>