<div class="container">
  <div class="title">Lorem Ipsum</div>
  <div class="content">
    Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  </div>
</div>
$radius = 12px
$color = #184a51
.container
  width 500px
  color #1cb0d5
  padding 35px 35px 15px
  border 2px solid $color
  border-bottom-width 0
  border-top-left-radius 20px
  border-top-right-radius 20px
  margin auto
  position relative
  box-sizing border-box
  filter drop-shadow(0 0 25px @color)
  .radius-border
    content ''
    width 40px
    height 15px
    border-width 0
    border-style solid
    border-color $color
    display block
    position absolute
  &:before
    @extend .radius-border
    border-left-width 2px
    border-bottom-width 2px
    left -2px
    bottom -15px
    border-bottom-left-radius $radius
  &:after
    @extend .radius-border
    border-right-width 2px
    border-bottom-width 2px
    right -2px
    bottom -15px
    border-bottom-right-radius $radius
  .title
    font-size 20px
    margin-bottom 20px
    &:after
      @extend .radius-border
      width calc(100% - 160px)
      height 15px
      border-width 2px
      border-top-width 0
      border-bottom-left-radius $radius
      border-bottom-right-radius $radius
      margin 0 auto
      left 0
      right 0
      bottom -40px
  .content
    font-size 16px
    line-height 1.3
    &:before
      @extend .radius-border
      border-top-width 2px
      border-right-width 2px
      border-top-right-radius $radius
      left 38px
      bottom -30px
    &:after
      @extend .radius-border
      border-top-width 2px
      border-left-width 2px
      border-top-left-radius $radius
      right 38px
      bottom -30px
    
    
body
  width 100vw
  height 100vh
  background black
  display flex
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.