@import url("https://fonts.googleapis.com/css2?family=Alice&family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@100..900&display=swap");
@font-face {
  font-family: "Slight";
  src: url(./font/Slight.ttf);
}
@font-face {
  font-family: "Amoersa";
  src: url(./font/Amoersa.otf);
}
:root {
  --Garamond: "Cormorant Garamond", serif;
  --Montserrat: "Montserrat", sans-serif;
  --Alice: "Alice", serif;
  --Amoersa: "Amoersa";
  --Slight: "Slight";
  --dark-brown: #6b4f2f;
  --medium-brown: #7f5048;
  --yellow: #fffbef;
  --white: #eee9e3;
  --gold: #d67d3e;
  --box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
  color: var(--medium-brown);
  font-family: var(--Garamond);
  scroll-behavior: smooth;
}
html {
  font-size: 13px;
}
p,
h1 {
  z-index: 5;
}
button {
  z-index: 6;
}
.section_first_animation {
  animation: slide-out-top 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
}
section {
  display: flex;
  flex-direction: column;
  align-items: center;
}
section:not(.cover) .content {
  background-color: var(--yellow);
}
section .content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  width: calc(0.7 * 100vh);
}
section.cover {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 100vh;
  z-index: 5;
}
section.cover .content {
  position: absolute;
  height: 100vh;
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: 700;
}
section.cover .content img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 100vh;
}
section.cover .content > p:nth-child(2) {
  letter-spacing: 0.05rem;
  margin-bottom: 4rem;
  font-size: 1.5rem;
  max-width: 60%;
}
section.cover .content div {
  position: relative;
  margin-bottom: 2.5rem;
  width: 100%;
}
section.cover .content div p {
  font-family: var(--Amoersa);
  font-size: 6rem;
  color: var(--dark-brown);
  text-transform: capitalize;
  letter-spacing: 0.3rem;
  transform: rotate(-7deg);
  line-height: 10rem;
  font-weight: normal;
}
section.cover .content div > p:nth-child(2) {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 25rem;
  opacity: 0.2;
  color: var(--gold);
}
section.cover .content > p:nth-child(4) {
  letter-spacing: 0.1rem;
  margin-bottom: 3rem;
  font-size: 1.5rem;
}
section.cover .content button {
  box-shadow: var(--box-shadow);
  font-family: var(--Montserrat);
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--dark-brown);
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--white);
  cursor: pointer;
  animation: pulsate-bck 2s ease-in-out infinite;
}
section.first .content {
  position: relative;
  height: 60vh;
}
section.first .content img {
  position: absolute;
}
section.first .content img:nth-child(1) {
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
}
section.first .content img:nth-child(2) {
  width: 45%;
  left: -20%;
  bottom: 0;
}
section.first .content img:nth-child(3) {
  width: 31%;
  right: 0;
  top: 0;
}
section.first .content p {
  font-size: 1.3rem;
  font-family: var(--Montserrat);
  width: 55%;
}
section.first .content p:nth-child(5) {
  font-family: var(--Alice);
  font-size: 1.5rem;
  margin-top: 1rem;
  font-weight: 600;
}
section.second .content {
  position: relative;
  height: 100vh;
  padding: 0 5%;
}
section.second .content img {
  position: absolute;
}
section.second .content img:nth-child(1),
section.second .content img:nth-child(2) {
  width: 15rem;
}
section.second .content img:nth-child(1) {
  transform: rotate(-45deg);
  top: 1rem;
}
section.second .content img:nth-child(2) {
  transform: rotate(135deg);
  bottom: 1rem;
}
section.second .content img:nth-child(3),
section.second .content img:nth-child(4) {
  width: 55%;
  top: 35%;
}
section.second .content img:nth-child(3) {
  left: calc(-0.3 * 0.71 * 100vh);
  transform: rotate(180deg);
}
section.second .content img:nth-child(4) {
  right: calc(-0.3 * 0.71 * 100vh);
}
section.second .content > p:nth-child(5),
section.second .content > p:nth-child(6) {
  font-size: 1.7rem;
}
section.second .content > p:nth-child(6) {
  font-family: var(--Garamond);
  padding: 1rem 0 1.5rem;
}
section.second .content > div p:nth-child(1),
section.second .content > div p:nth-child(5) {
  font-family: var(--Amoersa);
  font-size: 3rem;
  color: var(--gold);
}
section.second .content div p {
  font-family: var(--Alice);
  font-size: 1.5rem;
}
section.second .content > div > p:nth-child(2),
section.second .content > div > p:nth-child(6) {
  line-height: 2rem;
}
section.second .content > div > p:nth-child(3),
section.second .content > div > p:nth-child(7) {
  margin-top: 0.7rem;
}
section.second .content > div > div {
  font-family: var(--Slight);
  font-size: 2rem;
  position: relative;
  display: inline-block;
  margin: 2rem;
}
section.second .content > div > div::before,
section.second .content > div > div::after {
  content: "";
  position: absolute;
  width: 3rem;
  height: 0.15rem;
  background-color: var(--medium-brown);
  top: 50%;
  transform: translateY(-50%);
}
section.second .content > div > div::before {
  right: 5rem;
}
section.second .content > div > div::after {
  left: 5rem;
}
section.third .content {
  position: relative;
  height: 100vh;
}
section.third .content img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
section.third .content img:nth-child(1) {
  width: 100%;
}
section.third .content img:nth-child(2) {
  width: 13%;
  right: 3%;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
}
section.third .content img:nth-child(3) {
  width: 13%;
  left: 3%;
}
section.third .content > p:nth-child(4) {
  font-family: var(--Amoersa);
  font-size: 5rem;
  line-height: 7rem;
  color: var(--gold);
}
section.third .content div h1 {
  margin-top: 2rem;
  font-size: 2.5rem;
}
section.third .content div p {
  margin-top: 0.7rem;
  font-family: var(--Montserrat);
  line-height: 2rem;
  font-size: 1.5rem;
}
section.third .content .resepsi div p {
  font-family: var(--Alice);
  font-size: 2rem;
  line-height: 3rem;
}
section.third .content .resepsi div p:nth-child(2) {
  font-size: 3rem;
  position: relative;
  display: inline-block;
}
section.third .content .resepsi div p:nth-child(2)::before,
section.third .content .resepsi div p:nth-child(2)::after {
  position: absolute;
  font-size: 1.5rem;
  border-top: 2px solid var(--medium-brown);
  border-bottom: 2px solid var(--medium-brown);
  padding: 0.2rem 0;
  width: 10rem;
  top: 50%;
  transform: translateY(-50%);
  letter-spacing: 3px;
}
section.third .content .resepsi div p:nth-child(2)::before {
  content: "JU'MAT";
  right: 4rem;
  text-align: right;
}
section.third .content .resepsi div p:nth-child(2)::after {
  content: "13.00 WIB";
  left: 4rem;
  text-align: left;
}
section.third .content a {
  font-family: var(--Montserrat);
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2rem;
  background-color: var(--white);
  padding: 0.5rem 1rem;
  box-shadow: var(--box-shadow);
  border-radius: 0.5rem;
  z-index: 4;
}
section.fourth .content {
  position: relative;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
section.fourth .content .image-wrapper {
  position: relative;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
section.fourth .content .image-wrapper img {
  position: absolute;
}
section.fourth .content .image-wrapper img:nth-child(1) {
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
}
section.fourth .content .image-wrapper img:nth-child(2) {
  width: 100%;
  left: -60%;
  top: 10%;
}
section.fourth .content .image-wrapper img:nth-child(3) {
  width: 100%;
  right: -50%;
  top: 20%;
  transform: rotate(90deg);
}
section.fourth .content .image-wrapper p {
  font-family: var(--Alice);
  font-size: 1.7rem;
  line-height: 2rem;
  padding: 0 20%;
}
section.fourth .content > img:nth-child(2) {
  height: 15%;
}
/* media query */
@media (max-width: 458px) {
  html {
    font-size: 12px;
  }
  section .content {
    width: 100vw;
  }
  section.cover .content img {
    width: calc(10 / 21 * 100vh);
  }
  section.cover .content > p:nth-child(2) {
    font-size: 1.3rem;
    margin-top: 4rem;
  }
  section.cover .content div p {
    font-size: 4.7rem;
    line-height: 7.5rem;
  }
  section.cover .content div > p:nth-child(2) {
    font-size: 18rem;
  }
  section.cover .content > p:nth-child(4) {
    font-size: 1.3rem;
  }
  section.cover .content button {
    font-size: 1.1rem;
    padding: 0.7rem 1.5rem;
  }
  section.first .content {
    width: 100vw;
  }
  section.first .content p {
    width: 70%;
  }
  section.second .content {
    height: 100vh;
  }
  section.second .content img:nth-child(1),
  section.second .content img:nth-child(2) {
    width: 11rem;
  }
  section.second .content img:nth-child(3) {
    left: calc(-0.15 * 0.71 * 100vh);
    top: 45%;
  }
  section.second .content img:nth-child(4) {
    right: calc(-0.18 * 0.71 * 100vh);
    top: 45%;
  }
  section.second .content > p:nth-child(5),
  section.second .content > p:nth-child(6) {
    font-size: 1.7rem;
  }
  section.second .content > div p:nth-child(1),
  section.second .content > div p:nth-child(5) {
    font-size: 2.5rem;
  }
  section.third .content {
    height: calc(10 / 6 * 100vw);
    padding: 0 5%;
  }
  section.third .content > p:nth-child(4) {
    font-size: 2.5rem;
    line-height: 3.6rem;
  }
  section.third .content div h1 {
    font-size: 2rem;
    margin-top: 1rem;
  }
  section.third .content div p {
    margin-top: 0.3rem;
    font-size: 1.2rem;
  }
  section.third .content .resepsi div p {
    font-size: 1.5rem;
  }
  section.third .content a {
    font-size: 1.2rem;
  }
  section.fourth .content {
    height: 70vh;
  }
  section.fourth .content .image-wrapper img:nth-child(1) {
    width: 110%;
  }
  section.fourth .content .image-wrapper img:nth-child(2) {
    left: -70%;
  }
  section.fourth .content .image-wrapper img:nth-child(3) {
    right: -60%;
  }
  section.fourth .content .image-wrapper p {
    font-size: 1.4rem;
    margin-top: 10%;
  }
}
@media (max-width: 375px) {
  html {
    font-size: 10px;
  }
  section.cover .content img {
    width: calc(10 / 18 * 100vh);
  }
  section.fourth .content {
    height: 85vh;
  }
  section.fourth .content .image-wrapper p {
    margin-top: 0;
  }
}

/* end media query */

/* transition */
/* slide top */
.slide-top-hidden {
  transform: translateY(100px);
  opacity: 0;
  transition: all 2s;
}
.slide-top-show {
  transform: translateY(0);
  opacity: 1;
}
/* slide right */
.slide-right-hidden {
  transform: translateX(-100px);
  transition: all 2s;
  opacity: 0;
}
.slide-right-show {
  transform: translateX(0);
  opacity: 1;
}
/* slide left */
.slide-left-hidden {
  transition: all 2s;
  transform: translateX(100px);
  opacity: 0;
}
.slide-left-show {
  transform: translateX(0);
  opacity: 1;
}
/* tracking in contract */
.tracking-in-contract-hidden {
  transition: all 2s;
  letter-spacing: 2rem;
  opacity: 0;
}
.tracking-in-contract-show {
  letter-spacing: 0.4rem;
  opacity: 1;
}

@keyframes pulsate-bck {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slide-out-top {
  0% {
    transform: translateY();
  }
  100% {
    transform: translateY(-300vh);
  }
}
