<main>
      <h1>Merry Christmas 🎄</h1>
      <div class="xmas-tree-wrapper">
        <div class="xmas-tree">
          <div class="shadow"></div>
          <div class="layer"></div>
          <div class="shadow"></div>
          <div class="layer"></div>
          <div class="layer"></div>
        </div>
      </div>
    </main>
main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
h1 {
  color: green;
  font-family: "Courier New", Courier, monospace;
  font-size: 3rem;
  font-weight: normal;
}
.xmas-tree-wrapper {
  width: 700px;
  height: 700px;
  border: dashed 3px #ccc;
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.xmas-tree {
  position: relative;
  margin-top: 20px;
  transform: scale(3, 3);
  top: -250px;
  left: -150px;
}
.xmas-tree .layer {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: green;
  clip-path: polygon(50% 5%, 100% 85%, 100% 100%, 0 100%, 0 85%);
}
.xmas-tree .shadow {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: black;
  clip-path: polygon(50% 0%, 0% 110%, 95% 100%);
  margin-top: 20px;
  margin-left: 10px;
}
.xmas-tree div:nth-child(1) {
  transform: translateY(5px);
  z-index: 3;
}
.xmas-tree div:nth-child(2) {
  transform: translateY(0);
  z-index: 3;
}
.xmas-tree div:nth-child(3) {
  transform: translateY(40px);
  z-index: 2;
}
.xmas-tree div:nth-child(4) {
  transform: translateY(35px);
  z-index: 2;
}
div:nth-child(5) {
  transform: translateY(70px);
  z-index: 1;
}
.xmas-tree:before {
  content: "⭐️";
  position: absolute;
  left: 42px;
  z-index: 10;
  top: -9px;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.