.wineGlass
View Compiled
$clear: transparent;
$black: #000;
$a-black: rgba(0,0,0,0.5);
$gray: #666;
$white: #fff;
$red: #96002d;

.wineGlass {
  position: relative;
  width: 300px;
  height: 430px;
  margin: 50px auto;
  border-radius: 20% 20% 50% 50% / 60% 60% 40% 40%;
  box-sizing: border-box;
  background-image:
    linear-gradient(
      0deg,
      $clear 0%,
      $clear 40%,
      $white 40%,
      $white 100%
    ),
    radial-gradient(
      ellipse at 50% 60%,
      $clear 0%,
      $black 90%,
      $black 100%
    ),
    linear-gradient(
      0deg,
      $red 0%,
      $red 40%,
      $clear 40%,
      $clear 100%
    );
  box-shadow:
    0 -15px 30px 0px $black inset;
  
  &::before {
    display: block;
    position: absolute;
    top: 98.4%;
    right: 0;
    left: 0;
    margin: auto;
    width: 90%;
    height: 83.5%;
    margin-bottom: 50px;
    border-radius: 0 0 50% 50% / 0 0 5% 5%;
    background-image:
      linear-gradient(
        0deg,
        $black 0%,
        $gray 5%,
        $a-black 20%,
        $clear 30%,
        $clear 90%,
        $clear 90%,
        $black 95%
      ),
      linear-gradient(
        90deg,
        $black 0%,
        $black 47%,
        $white 50%,
        $black 53%,
        $black 100%
      );
    box-shadow: 0 4px 5px $a-black;;
    content: '';
  }
  &::after {
    display: block;
    position: absolute;
    top: 96.9%;
    left: 53%;
    width: 90%;
    height: 80.5%;
    border-radius: 21% 21% 50% 50% / 20%;
    background-color: $white;
    box-shadow: 
      -288px 0 $white,
      -290px 5px 10px 1px $white,
      2px 5px 10px 1px $white;
    content: '';
  }
}
View Compiled
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.