@font-face {
  font-family: FredokaOne;
  font-display: fallback;
  src: url(../font/FredokaOne.woff2);
}
@font-face {
  font-family: Mali;
  font-display: fallback;
  src: url(../font/Mali-Regular.woff2);
}
body,
p {
  font-family: "Mali", cursive;
  color: #3a4750;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.wrapper {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0);
}

.badge {
  height: 50px;
  background: #58c777;
  width: 200px;
  text-align: center;
  font-size: 20px;
  line-height: 50px;
  font-family: "Mali", cursive;
  color: #eee;
  transform: rotate(-45deg);
  position: relative;
  top: -2px;
  left: -70px;
  box-shadow: inset 0px 0px 0px 4px rgba(255, 255, 255, 0.34);
}

.badge:after {
  position: absolute;
  content: "";
  display: block;
  height: 100px;
  width: 100px;
  top: -55px;
  left: 130px;
  transform: rotate(-45deg);
}

.badge .left {
  position: absolute;
  content: "";
  display: block;
  top: 50px;
  left: 14px;
  height: 8px;
  width: 8px;
}

.badge .right {
  position: absolute;
  content: "";
  display: block;
  top: 50px;
  left: 165px;
  height: 8px;
  width: 8px;
  transform: rotate(90deg);
}

.card-style {
  margin: auto;
  margin-top: 15%;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: max-content;
  background-color: #ffff99;
  font-family: Mali;
}

.animation-body {
  background-color: transparent;
  height: 20vh;
  display: grid;
  grid-template: repeat(15, 1fr) / repeat(15, 1fr);
  overflow: hidden;
}

.cell:nth-child(15n + 1):hover ~ .content {
  --positionX: 0;
}

.cell:nth-child(n + 1):nth-child(-n + 15):hover ~ .content {
  --positionY: 0;
}

.cell:nth-child(15n + 2):hover ~ .content {
  --positionX: 1;
}

.cell:nth-child(n + 16):nth-child(-n + 30):hover ~ .content {
  --positionY: 1;
}

.cell:nth-child(15n + 3):hover ~ .content {
  --positionX: 2;
}

.cell:nth-child(n + 31):nth-child(-n + 45):hover ~ .content {
  --positionY: 2;
}

.cell:nth-child(15n + 4):hover ~ .content {
  --positionX: 3;
}

.cell:nth-child(n + 46):nth-child(-n + 60):hover ~ .content {
  --positionY: 3;
}

.cell:nth-child(15n + 5):hover ~ .content {
  --positionX: 4;
}

.cell:nth-child(n + 61):nth-child(-n + 75):hover ~ .content {
  --positionY: 4;
}

.cell:nth-child(15n + 6):hover ~ .content {
  --positionX: 5;
}

.cell:nth-child(n + 76):nth-child(-n + 90):hover ~ .content {
  --positionY: 5;
}

.cell:nth-child(15n + 7):hover ~ .content {
  --positionX: 6;
}

.cell:nth-child(n + 91):nth-child(-n + 105):hover ~ .content {
  --positionY: 6;
}

.cell:nth-child(15n + 8):hover ~ .content {
  --positionX: 7;
}

.cell:nth-child(n + 106):nth-child(-n + 120):hover ~ .content {
  --positionY: 7;
}

.cell:nth-child(15n + 9):hover ~ .content {
  --positionX: 8;
}

.cell:nth-child(n + 121):nth-child(-n + 135):hover ~ .content {
  --positionY: 8;
}

.cell:nth-child(15n + 10):hover ~ .content {
  --positionX: 9;
}

.cell:nth-child(n + 136):nth-child(-n + 150):hover ~ .content {
  --positionY: 9;
}

.cell:nth-child(15n + 11):hover ~ .content {
  --positionX: 10;
}

.cell:nth-child(n + 151):nth-child(-n + 165):hover ~ .content {
  --positionY: 10;
}

.cell:nth-child(15n + 12):hover ~ .content {
  --positionX: 11;
}

.cell:nth-child(n + 166):nth-child(-n + 180):hover ~ .content {
  --positionY: 11;
}

.cell:nth-child(15n + 13):hover ~ .content {
  --positionX: 12;
}

.cell:nth-child(n + 181):nth-child(-n + 195):hover ~ .content {
  --positionY: 12;
}

.cell:nth-child(15n + 14):hover ~ .content {
  --positionX: 13;
}

.cell:nth-child(n + 196):nth-child(-n + 210):hover ~ .content {
  --positionY: 13;
}

.cell:nth-child(15n + 15):hover ~ .content {
  --positionX: 14;
}

.cell:nth-child(n + 211):nth-child(-n + 225):hover ~ .content {
  --positionY: 14;
}

.headline {
  padding: 170px 0px;
}

.content {
  --positionX: 7;
  --positionY: 7;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 200px 0px;
  padding: 200px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.css {
  font-family: "Mali";
  position: absolute;
  top: 15%;
  left: 50%;
  -webkit-animation: color 3s infinite linear;
  animation: color 3s infinite linear;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6666666667);
  transition: all 0.5s;
}
.css:nth-child(1) {
  font-size: 50px;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
  opacity: 0.1;
  transform: translateX(calc(-50% - (var(--positionX) - 7) * 21px))
    translateY(calc(-50% - (var(--positionY) - 7) * 21px))
    rotateX(calc(0deg - (var(--positionY) - 7) * 5deg))
    rotateY(calc((var(--positionX) - 7) * 5deg));
}
.css:nth-child(2) {
  font-size: 60px;
  -webkit-animation-delay: -0.3s;
  animation-delay: -0.3s;
  opacity: 0.2;
  transform: translateX(calc(-50% - (var(--positionX) - 7) * 18px))
    translateY(calc(-50% - (var(--positionY) - 7) * 18px))
    rotateX(calc(0deg - (var(--positionY) - 7) * 5deg))
    rotateY(calc((var(--positionX) - 7) * 5deg));
}
.css:nth-child(3) {
  font-size: 70px;
  -webkit-animation-delay: -0.6s;
  animation-delay: -0.6s;
  opacity: 0.3;
  transform: translateX(calc(-50% - (var(--positionX) - 7) * 15px))
    translateY(calc(-50% - (var(--positionY) - 7) * 15px))
    rotateX(calc(0deg - (var(--positionY) - 7) * 5deg))
    rotateY(calc((var(--positionX) - 7) * 5deg));
}
.css:nth-child(4) {
  font-size: 80px;
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
  opacity: 0.4;
  transform: translateX(calc(-50% - (var(--positionX) - 7) * 12px))
    translateY(calc(-50% - (var(--positionY) - 7) * 12px))
    rotateX(calc(0deg - (var(--positionY) - 7) * 5deg))
    rotateY(calc((var(--positionX) - 7) * 5deg));
}
.css:nth-child(5) {
  font-size: 90px;
  -webkit-animation-delay: -1.2s;
  animation-delay: -1.2s;
  opacity: 0.5;
  transform: translateX(calc(-50% - (var(--positionX) - 7) * 9px))
    translateY(calc(-50% - (var(--positionY) - 7) * 9px))
    rotateX(calc(0deg - (var(--positionY) - 7) * 5deg))
    rotateY(calc((var(--positionX) - 7) * 5deg));
}
.css:nth-child(6) {
  font-size: 100px;
  -webkit-animation-delay: -1.5s;
  animation-delay: -1.5s;
  opacity: 0.6;
  transform: translateX(calc(-50% - (var(--positionX) - 7) * 6px))
    translateY(calc(-50% - (var(--positionY) - 7) * 6px))
    rotateX(calc(0deg - (var(--positionY) - 7) * 5deg))
    rotateY(calc((var(--positionX) - 7) * 5deg));
}
.css:nth-child(7) {
  font-size: 110px;
  -webkit-animation-delay: -1.8s;
  animation-delay: -1.8s;
  opacity: 0.7;
  transform: translateX(calc(-50% - (var(--positionX) - 7) * 3px))
    translateY(calc(-50% - (var(--positionY) - 7) * 3px))
    rotateX(calc(0deg - (var(--positionY) - 7) * 5deg))
    rotateY(calc((var(--positionX) - 7) * 5deg));
}
.css:nth-child(8) {
  font-size: 120px;
  -webkit-animation-delay: -2.1s;
  animation-delay: -2.1s;
  opacity: 0.8;
  transform: translateX(calc(-50% - (var(--positionX) - 7) * 0px))
    translateY(calc(-50% - (var(--positionY) - 7) * 0px))
    rotateX(calc(0deg - (var(--positionY) - 7) * 5deg))
    rotateY(calc((var(--positionX) - 7) * 5deg));
}
.css:nth-child(9) {
  font-size: 130px;
  -webkit-animation-delay: -2.4s;
  animation-delay: -2.4s;
  opacity: 0.9;
  transform: translateX(calc(-50% - (var(--positionX) - 7) * -3px))
    translateY(calc(-50% - (var(--positionY) - 7) * -3px))
    rotateX(calc(0deg - (var(--positionY) - 7) * 5deg))
    rotateY(calc((var(--positionX) - 7) * 5deg));
}
.css:nth-child(10) {
  font-size: 140px;
  -webkit-animation-delay: -2.7s;
  animation-delay: -2.7s;
  opacity: 1;
  transform: translateX(calc(-50% - (var(--positionX) - 7) * -6px))
    translateY(calc(-50% - (var(--positionY) - 7) * -6px))
    rotateX(calc(0deg - (var(--positionY) - 7) * 5deg))
    rotateY(calc((var(--positionX) - 7) * 5deg));
}

@-webkit-keyframes color {
  0% {
    color: hsl(0deg, 75%, 75%);
  }
  10% {
    color: hsl(36deg, 75%, 75%);
  }
  20% {
    color: hsl(72deg, 75%, 75%);
  }
  30% {
    color: hsl(108deg, 75%, 75%);
  }
  40% {
    color: hsl(144deg, 75%, 75%);
  }
  50% {
    color: hsl(180deg, 75%, 75%);
  }
  60% {
    color: hsl(216deg, 75%, 75%);
  }
  70% {
    color: hsl(252deg, 75%, 75%);
  }
  80% {
    color: hsl(288deg, 75%, 75%);
  }
  90% {
    color: hsl(324deg, 75%, 75%);
  }
  100% {
    color: hsl(0deg, 75%, 75%);
  }
}

@keyframes color {
  0% {
    color: hsl(0deg, 75%, 75%);
  }
  10% {
    color: hsl(36deg, 75%, 75%);
  }
  20% {
    color: hsl(72deg, 75%, 75%);
  }
  30% {
    color: hsl(108deg, 75%, 75%);
  }
  40% {
    color: hsl(144deg, 75%, 75%);
  }
  50% {
    color: hsl(180deg, 75%, 75%);
  }
  60% {
    color: hsl(216deg, 75%, 75%);
  }
  70% {
    color: hsl(252deg, 75%, 75%);
  }
  80% {
    color: hsl(288deg, 75%, 75%);
  }
  90% {
    color: hsl(324deg, 75%, 75%);
  }
  100% {
    color: hsl(0deg, 75%, 75%);
  }
}
/* Global Typography */
h1,
h2,
h3 {
  font-family: "FredokaOne", cursive;
  font-size: 50px;
  font-weight: regular;
  color: #303841;
}

/* index.html style  */
.header .headline {
  font-family: "FredokaOne", cursive;
  font-size: 40px;
}

.header .logo {
  width: 40%;
}

.features .section-title {
  font-size: 25px;
}

.features .center img {
  display: block;
  margin: 0 auto;
}

main {
  padding-inline: 25px;
  padding-bottom: 70px;
}

.section {
  padding-block: 0px;
}

main p {
  text-align: justify;
  margin-bottom: 20px;
  font-size: 20px;
}

.section #mark-text,
mark {
  background-color: #fcf8e3;
}

.footer-icon {
  padding-top: 70px;
  margin-top: 10%;
}

@-webkit-keyframes logoAnimation {
  0% {
    transform: translatey(0px);
  }
  50% {
    transform: translatey(-20px);
  }
  100% {
    transform: translatey(0px);
  }
}
@keyframes logoAnimation {
  0% {
    transform: translatey(0px);
  }
  50% {
    transform: translatey(-20px);
  }
  100% {
    transform: translatey(0px);
  }
}
.logo {
  overflow: hidden;
  transform: translatey(0px);
  -webkit-animation: logoAnimation 6s ease-in-out infinite;
  animation: logoAnimation 6s ease-in-out infinite;
}

/* index2.html style   */
#logo {
  max-width: 270px;
}

.header .header-title {
  font-size: 40px;
  font-family: "FredokaOne", cursive;
}

.section-title-index2 {
  font-size: 25px;
  font-family: "Mali", cursive;
}

.form-input {
  font-family: "Mali", cursive;
  font-size: 30px;
  font-display: fallback;
  letter-spacing: 2px;
  width: 310px;
  height: 60px;
  margin: 0 auto;
}

.form-input input {
  width: 100%;
  height: 100%;
  font-size: 30px !important;
  border: 1px solid rgba(255, 169, 10, 0.7) !important;
  border-radius: 2em !important;
  padding-top: 0.5em;
  padding-right: 1em;
  padding-left: 1em;
  display: inline-block;
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
}

.form-input input::-moz-placeholder {
  font-family: "Mali" !important;
  font-display: fallback;
}

.form-input input:-ms-input-placeholder {
  font-family: "Mali" !important;
  font-display: fallback;
}

.form-input input::placeholder {
  font-family: "Mali" !important;
  font-display: fallback;
}

.form-input input:focus {
  box-shadow: 2px 2px 7px 7px rgba(255, 169, 10, 0.2),
    -2px -2px 7px 7px rgba(255, 169, 10, 0.2) !important;
}

::-webkit-input-placeholder {
  text-align: center;
}

:-moz-placeholder {
  text-align: center;
}

/*responsive smaller than 580px*/
@media (max-width: 580px) {
  body,
  p {
    font-family: "Mali", cursive;
    color: #3a4750;
    text-align: center;
  }
  
 h1,
 h2,
 h3 {
  font-family: "FredokaOne", cursive;
  font-size: 29px;
  font-weight: regular;
  color: #303841;
}

  .header .logo {
    width: 60%;
  }

  .section-title-index2 {
    font-size: 20px;
  }

  .header .header-title {
    font-family: "FredokaOne", cursive;
    font-size: 40px;
  }
  .card-style {
    margin-top: 15%;
  }

  .headline {
    padding: 170px 0px;
  }

  .content {
    margin: 200px 0px;
    font-family: Mali;
  }

  .css:nth-child(1) {
    font-size: 32px;
  }
  .css:nth-child(2) {
    font-size: 34px;
  }
  .css:nth-child(3) {
    font-size: 36px;
  }
  .css:nth-child(4) {
    font-size: 38px;
  }
  .css:nth-child(5) {
    font-size: 40px;
  }
  .css:nth-child(6) {
    font-size: 42px;
  }
  .css:nth-child(7) {
    font-size: 44px;
  }
  .css:nth-child(8) {
    font-size: 46px;
  }
  .css:nth-child(9) {
    font-size: 48px;
  }
  .css:nth-child(10) {
    font-size: 50px;
  }
}
/* responsive larger than 580px  */
@media (min-width: 580px) {
  .section .section-title {
    font-size: 45px;
  }
  
  .header .logo {
    width: 60%;
  }


  main p {
    font-size: 25px;
  }

  .header .header-title {
    font-family: "FredokaOne", cursive;
    font-size: 40px;
  }

  .section-title-index2 {
    font-size: 25px;
  }

  .form-input {
    width: 310px;
    height: 60px;
    margin: 0 auto;
  }

  #success-btn {
    padding: 15px 20px;
    font-size: 30px;
  }

  #logo {
    max-width: 300px;
  }
}
/* responsive larger than 768px  */
@media (min-width: 768px) {
  .card-style {
    margin-top: 15%;
  }
  
  .header .logo {
    width: 60%;
  }

  .css:nth-child(1) {
    font-size: 10px;
  }
  .css:nth-child(2) {
    font-size: 20px;
  }
  .css:nth-child(3) {
    font-size: 30px;
  }
  .css:nth-child(4) {
    font-size: 40px;
  }
  .css:nth-child(5) {
    font-size: 50px;
  }
  .css:nth-child(6) {
    font-size: 60px;
  }
  .css:nth-child(7) {
    font-size: 70px;
  }
  .css:nth-child(8) {
    font-size: 80px;
  }
  .css:nth-child(9) {
    font-size: 90px;
  }
  .css:nth-child(10) {
    font-size: 100px;
  }

  .section {
    width: 90%;
    margin: 0 auto;
  }

  main p {
    font-size: 35px;
  }

  .form-input {
    width: 310px;
    height: 60px;
    margin: 0 auto;
  }

  #success-btn {
    padding: 15px 20px;
    font-size: 30px;
  }

  #logo {
    max-width: 500px;
  }
}
/* responsive larger than 1150px  */
@media (min-width: 1150px) {
  .card-style {
    margin-top: 15%;
  }

  .css:nth-child(1) {
    font-size: 50px;
  }
  .css:nth-child(2) {
    font-size: 60px;
  }
  .css:nth-child(3) {
    font-size: 70px;
  }
  .css:nth-child(4) {
    font-size: 80px;
  }
  .css:nth-child(5) {
    font-size: 90px;
  }
  .css:nth-child(6) {
    font-size: 100px;
  }
  .css:nth-child(7) {
    font-size: 110px;
  }
  .css:nth-child(8) {
    font-size: 120px;
  }
  .css:nth-child(9) {
    font-size: 130px;
  }
  .css:nth-child(10) {
    font-size: 135px;
  }

  .header .headline {
    font-size: 140px;
  }

  .section .section-title.top {
    font-size: 40px;
  }

  .section .section-title.top {
    font-size: 40px;
  }
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

