:root {
  /* set the offset varaible for padding */
  --offset: 6px;
}

body {
  background: url(./img/background/bg1.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

/* font-animation effect */
#font-animation {
  width: 61.25rem;
  font-size: 6.25rem;
  font-family: Helvetica;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.mask {
  height: 106px;
  position: relative;
  overflow: hidden;
  margin-top: var(--offset);
}

.mask span {
  display: block;
  box-sizing: border-box;
  position: absolute;
  top: 100px;
  padding-bottom: var(--offset);

  background-size: 100% 100%;
  /* testing version for background-clip  add -webkit*/
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-repeat: no-repeat;
}

.mask span[data-show] {
  transform: translateY(-100%);
  transition: 0.5s transform ease-in-out;
}

.mask span[data-up] {
  /* move up two height of the font size */
  transform: translateY(-200%);
  transition: 0.5s transform ease-in-out;
}

.mask span:nth-child(1) {
  background-image: linear-gradient(45deg, #0ecffe 50%, #07a6f1);
}

.mask span:nth-child(2) {
  background-image: linear-gradient(45deg, #18e198 50%, #0ec15d);
}

.mask span:nth-child(3) {
  background-image: linear-gradient(45deg, #8a7cfb 50%, #633e9c);
}

.mask span:nth-child(4) {
  background-image: linear-gradient(45deg, #fa7671 50%, #f45f7f);
}

/* Testing version for Masonry Layout start */
.card img {
  transition: 0.3s;
  width: 100%;
  border-radius: 2px;
}
.container {
  width: 100%;
  height: 100vh;
  align-items: center;
  justify-content: center;
}
.card {
  border-radius: 12px;
  padding: 3%;
  margin-bottom: 6%;
  background: #fff;
  -webkit-box-shadow: 10px 10px 24px -12px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 10px 10px 24px -12px rgba(0, 0, 0, 0.75);
  box-shadow: 10px 10px 24px -12px rgba(0, 0, 0, 0.75);
  transition: 0.3s;
}
.card:hover {
  -webkit-box-shadow: inset 10px 10px 24px -12px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: inset 10px 10px 24px -12px rgba(0, 0, 0, 0.75);
  box-shadow: inset 10px 10px 24px -12px rgba(0, 0, 0, 0.75);
}
.card:hover img {
  transform: scale(1.1);
}
@media screen and (max-width: 985px) {
  .card-columns {
    column-count: 2;
  }
}
@media screen and (max-width: 420px) {
  .card-columns {
    column-count: 1;
  }
}
