html {
  font-size: 16px;
  --color-1: #FFECDB;
  --color-1-rich: #FFF0A6;
  --color-2: #dd58dd;
}


* {
  box-sizing: border-box;
  z-index: 100;
}


body {
  height: 100vh;
  overflow: hidden;
  margin: 0;
  background-color: var(--color-1);
  font-family: "Aref Ruqaa";
  direction: rtl;
}


.sections {
  display: flex;
  flex-direction: column;
  margin: 100px 0;
}

.sections:first-of-type, .sections:last-of-type {
  height: 100vh;
  margin: 0;
  background-position: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.sections:first-of-type {
  background-image: url("../assets/imgs/487506857_3925045397769092_6715727143545141707_n.jpg");
}

.sections .content-c {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  text-shadow: 0 0 30px var(--color-1-rich);
  text-align: center;
  will-change: transform, opacity;
}
.sections:first-of-type .content-c, .sections:last-of-type .content-c {
  height: 100%;
  color: white;
}
.sections:first-of-type .content-c {
  background-image: linear-gradient(180deg, #000000AA 80%, var(--color-1));
}
.sections:first-of-type .content-c h1 {
  line-height: 5rem;
  animation: glow 2s ease-in-out infinite alternate;
}


.sections:not(:first-of-type, :last-of-type) .content-c {
  background-image: linear-gradient(225deg, transparent, var(--color-1-rich) 30%, transparent);
  margin: auto 8px;
  padding: 4rem 0;
  border-radius: 1rem;
  border: 1px solid var(--color-1-rich);
  word-spacing: 1rem;
}


.rest {
  font-size: 24px;
}


.timers-c {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: space-between;
  width: 100%;
  padding: 0 8px;
}

.timers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 90px;
  height: 90px;
  border-radius: 12px;
  corner-shape: bevel;
  border: 3px double black;
  line-height: 24px;
}

.timers p::after {
  content: attr(data-unit);
  font-size: 1.2rem;
}


.thanks {
  font-size: 2.4rem;
  color: black;
  text-shadow: 0 0 24px black;
  font-weight: bold;
}


iframe {
  width: 100%;
}


.sections:last-of-type {
  background-position: 50% 25%;
  background-image: url("../assets/imgs/482354107_3925046657768966_4807700848257780636_n.jpg");
}
.sections:last-of-type .content-c {
  height: 100%;
  background-image: linear-gradient(0deg, #00000088 80%, var(--color-1));
  color: white;
}


.back-items {
  width: 300px;
  height: 300px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  position: fixed;
  bottom: 0;
  opacity: .5;
  background-image: url(../assets/imgs/U-N__symbol-1.png);
  filter: drop-shadow(0 0 8px black);
  translate: -50% 100%;
  z-index: 10;
  will-change: scroll-position, transform, stroke-dashoffset;
}
.back-items:nth-of-type(1) {
  left: 0vw;
  rotate: -15deg;
}
.back-items:nth-of-type(2) {
  left: 50vw;
  rotate: 0deg;
}
.back-items:nth-of-type(3) {
  left: 75vw;
  rotate: 15deg;
}

.sqgly-line {
  width: 100%;
  position: fixed;
  left: 0;
  opacity: .5;
}
.sqgly-line:nth-of-type(1) {
  top: 0;
}
.sqgly-line:nth-of-type(2) {
  top: 50%;
}

.sqgly-line path {
  stroke-width: 16px;
  stroke-dasharray: 526px;
  filter: drop-shadow(0 0 8px black);
}
.sqgly-line:nth-of-type(1) path {
  stroke-dashoffset: 526px;
}
.sqgly-line:nth-of-type(2) path {
  stroke-dashoffset: -526px;
}


.envelope {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.envelope-body {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  bottom: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--color-1-rich);
  background-image: url(../assets/imgs/U-N__envelope_body.png);
}

.envelope-cover {
  width: 100%;
  height: 60%;
  position: fixed;
  left: 50%;
  top: 0;
  translate: -50% 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--color-1-rich);
  background-image: url(../assets/imgs/U-N__envelope_cover.png);
  filter: drop-shadow(0 0 1px black);
  transform-origin: top;
}
.floating-cover {
  animation: floating 1s ease-in-out infinite;
}
@keyframes floating {
  50% {
    filter: drop-shadow(0 0 8px black);
    transform: rotateX(15deg);
  }

  100% {
    filter: drop-shadow(0 0 4px black);
    transform: rotateX(0);
  }
}

.click-to-open {
  visibility: hidden;
  width: 100%;
  position: fixed;
  bottom: 10vh;
  text-align: center;
  font-size: 2.4rem;
  color: white;
  text-shadow: 0 0 4px black;
  animation: floating2 4s ease-in-out infinite;
}
@keyframes floating2 {
  50% {
    text-shadow: 0 0 8px black;
    translate: 0 -15%;
  }
}




@media (width > 425px) {
  .envelope-cover {
    height: 120vh;
    top: -25%;
  }


  .timers-c {
    justify-content: center;
  }


  iframe {
    width: auto;
  }
}