.main {
  height: 75vh;
  position: relative;
}

.section {
  z-index: 0;
  overflow: hidden;
  cursor: pointer;
  transform: scale(1);
  will-change: transform, contents;
  transition-property: all;
  transition-duration: 500ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 25%;
  border: 5px solid #e9ecef;
  border-radius: 15px;
}
@media (min-width: 576px) {
  .section {
    position: absolute;
    width: 50%;
    height: 50%;
  }
  .section:nth-child(1) {
    top: 0;
    left: 0;
    background: #F06060;
  }
  .section:nth-child(2) {
    top: 0;
    left: 50%;
    background: #FA987D;
  }
  .section:nth-child(3) {
    top: 50%;
    left: 0;
    background: #72CCA7;
  }
  .section:nth-child(4) {
    top: 50%;
    left: 50%;
    background: #10A296;
  }
}
.section.is-expanded {
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  cursor: initial;
}
.has-expanded-item .section:not(.is-expanded) {
  transform: scale(0);
}

.close-section {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 2rem;
  text-align: center;
  color: #fff;
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transition: opacity 150ms linear;
  will-change: opacity;
}
.section.is-expanded .close-section {
  opacity: 1;
  transition-delay: 500ms;
  pointer-events: initial;
}

.demo-box {
  color: #efefef;
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
}
.demo-box .Title {
  font-size: 1.5rem;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 10px 20px;
}
.demo-box:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
}
.demo-box .Content {
  transition: opacity 1s ease;
  opacity: 0;
  /*width:0%;
  height:0%;*/
  font-size: 1rem;
  position: absolute;
  top: 0;
}

.section.is-expanded {
  position: absolute;
}
.section.is-expanded .demo-box {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  text-shadow: none;
}
.section.is-expanded .Title {
  background-color: transparent;
}
.section.is-expanded .Content {
  opacity: 1;
  width: 100%;
  height: auto;
  position: initial;
  align-self: flex-start;
  padding: 1rem 10%;
  color: white;
  text-align: left;
}

@media (max-width: 767.98px) {
  .demo-box .Title {
    font-size: 1rem;
  }
  .demo-box .Content {
    font-size: 0.8rem;
  }
}

/*# sourceMappingURL=index.css.map */
