@import url("https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&display=swap");

@keyframes hangRotate {
  0% {
    transform: rotate(3deg);
  }
  50% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(3deg);
  }
}

@keyframes cycleClouds {
  0%,
  100% {
    margin-left: 0;
  }

  50% {
    margin-left: -100vw;
    margin-right: 100vw;
  }
  51% {
    opacity: 0;
  }
  52% {
    margin-left: 100vw;
    margin-right: -100vw;
  }
}

@keyframes top-frame-leave {
  0% {
    transform: rotate(349deg);
  }
  100% {
    transform: rotate(330deg);
  }
}
@keyframes bottom-frame-leave {
  0% {
    transform: rotate(143deg);
  }
  100% {
    transform: rotate(162deg);
  }
}

/* Fade Stuff In When Open */
body:not(.open) .fadeOpen {
  opacity: 0;
  transform: translateY(60px);
}
body.open .fadeOpen {
  opacity: 1;
  transform: translateY(0px);
  transition: opacity 2s ease-in-out 4s, transform 1s ease-in-out 3.6s;
}

/* Main Tree */

body {
  font-family: "Amatic SC", cursive;
  animation: fade-in 2.5s ease-in-out forwards;
}

header,
section,
footer {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.boxed {
  max-width: 82%;
}

.tree {
  overflow: hidden; /* Fixed Jquery scroll issue */
}

.tree .main .boxed {
  width: 996px;
}

.falling-leaves {
  height: 100vw;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
}
.leaf-scene {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  transform-style: preserve-3d;
}
.leaf-scene div {
  position: absolute;
  opacity: 0.7;
  top: 0;
  left: 0;
  width: 70px;
  height: 70px;
  background: url(https://vhug.co.il/wp-content/uploads/2020/10/Path-Copy.png)
    no-repeat;
  background-size: 100%;
  transform-style: preserve-3d;
  backface-visibility: visible;
}

.tree .top {
  height: 780px;
  background: rgb(255, 255, 255);
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(197, 226, 239, 1) 100%
  );
}

.lottie_ballon {
  position: absolute;
  top: -100px;
  right: -23%;
  width: auto;
  height: 541px;
}

.bd_boy {
  height: 250px;
  width: 410px;
  background-size: cover;
  background-position: center center;
  transform: rotate(11deg);
  border: 13px solid #ffffff;
  box-shadow: 0 2px 63px 0 rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 130px;
}

.tree_top {
  height: 540px;
  position: absolute;
  overflow: hidden;
  width: 135%;
  margin-right: -25%;
  margin-left: -15%;
  bottom: 0;
}

.tree_top .div {
  background-color: green;
  border-radius: 50%;
  height: 150px;
  width: 40%;
}

.tree_top .a {
  margin-left: -29%;
  margin-top: 50px;
  background-image: linear-gradient(58deg, #71c150 0%, #64d934 100%);
}

.tree_top div {
  background-color: #29a22d;
  width: 60%;
  height: 980px;
  border-radius: 50%;
  float: left;
  margin-top: 30px;
  margin-left: -30%;
  background-image: linear-gradient(0deg, #71c150 0%, #64d934 100%);
}

.tree_top .b {
  width: 70%;
  margin-top: 0;
}

.tree_top .c {
  margin-left: -40%;
  margin-right: -40%;
}

img.cloud_smalls {
  position: absolute;
  top: 90px;
  left: 26%;
  animation: cycleClouds 40s linear 0s infinite normal none;
}

img.big_cloud {
  position: absolute;
  top: 30px;
  right: 0%;
  animation: cycleClouds 90s linear 0s infinite normal none;
}

img.cloud_smalls.dup {
  left: 156%;
  top: 120px;
  animation: cycleClouds 43s linear 0s infinite normal none;
}

img.big_cloud.dup {
  top: -20px;
  right: -71%;
  animation: cycleClouds 98s linear 0s infinite normal none;
}

.tree section.main {
  background: linear-gradient(0deg, #83e85a 0%, #6bcd43 100%);
  z-index: 7;
  position: relative;
  padding-bottom: 0;
}

.tree img.tree_base {
  margin-top: -367px;
  margin-left: -280px;
  margin-bottom: -350px;
  z-index: 4;
  position: relative;
}

.tree_bottom {
  z-index: 12;
}

.tree section.bottom {
  padding: 0;
  width: 100%;
}

.tree .top .title {
  font-size: 87px;
  color: #0b270a;
  text-align: right;
  text-shadow: 7px 2px 0 rgba(255, 255, 255, 0.5);
  line-height: 78px;
  margin-right: 500px;
  padding-top: 100px;
  margin-bottom: 150px;
}

.tree .top .comment {
  font-size: 39px;
  color: #8def65;
  text-align: right;
  margin-top: 50px;
  margin-right: 500px;
}

.tree .main .friend_rows {
  top: -240px;
}

.tree .greeting {
  color: #0b250a;
  text-align: right;
  font-size: 50px;
  line-height: 64px;
}

.tree .greeting::first-line {
  font-weight: 900;
  font-size: 60px;
}

.tree .bottom svg#wave {
  margin-bottom: -59px;
  z-index: 10;
}

.tree .bottom svg.blueWaves {
  position: absolute;
  width: 100vw;
  right: 0;
  bottom: -88px;
  z-index: 0;
}

img.plants_right {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 30;
}

img.plants_left {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 30;
}

/* Firends */

.tree .friend {
  height: 187px;
  width: 187px;
  border-radius: 50%;
  background-size: cover;
  background-position: center center;
  position: relative;
  overflow: visible;
  pointer-events: auto;
  z-index: 9999;
  animation: hangRotate 7s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-direction: reverse;
  box-shadow: -6px 6px 45px 10px #0b250a57;
}

.tree .orange {
  background-image: url(img/orange.png);
  height: 180%;
  width: 180%;
  margin: -47%;
  background-size: contain;
  background-position: center center;
  position: absolute;
  top: 0;
  left: 0;
  margin-top: -56%;
}

.tree .friend_img {
  border-radius: 50%;
  background-size: cover;
  background-position: center center;
  position: absolute;
  top: 0;
  left: 0;
  height: 95%;
  width: 95%;
  box-shadow: inset 0 0 15px #4e28076b, 0 0 13px #ffded1cc;
  cursor: pointer;
}

.tree .friend_row {
  position: relative;
}

.tree .friend_row:nth-child(3n)::before {
  content: "";
  position: absolute;
  bottom: -37%;
  right: -33px;
  height: 71px;
  width: 67px;
  background-image: url("img/Tree-hole2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.tree .friend_row:nth-child(6n)::before {
  right: auto;
  transform: rotateY(180deg);
  left: -33px;
}

.tree .friend_row .boxed {
  display: flex;
  justify-content: flex-end;
  pointer-events: auto;
}

.tree .friend_row:nth-child(even) .boxed {
  justify-content: flex-start;
}

.tree .friend_row:nth-child(even) .friend .orange {
  transform: rotate(35deg);
  margin: -39%;
  margin-top: -56%;
}

.tree .friend_img::after {
  content: "►";
  position: absolute;
  color: #ffffff;
  text-shadow: 0 0 14px #271804d6;
  font-size: 47px;
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px #271804d6;
  background-color: #ffffff2b;
  border-radius: 50%;
  display: block;
  height: 65px;
  width: 65px;
  line-height: 72px;
  text-align: center;
  text-indent: -10px;
  top: 0;
  bottom: 0;
  padding: 8px;
  opacity: 0;
  left: 0;
  right: 0;
  margin: auto;
  transition: all 0.2s ease-in-out;
}

.tree .friend_img:hover::after {
  opacity: 0.7;
}

.tree .friend_row:nth-child(4n-1) .friend {
  margin-left: 25%;
}

.tree .friend_row:nth-child(3) .friend .orange {
  transform: scaleX(-1);
  margin: -39%;
  margin-top: -56%;
}

.tree .friend_row:nth-child(4n) .friend {
  margin-right: 13%;
}

.tree .friend_row:nth-child(5n) .friend {
  margin-left: 5%;
}

.lightbox-box {
  background: #1a340f7a;
}

/* Responsive */

@media (max-width: 950px) {
  .tree_top {
    height: 414px;
  }
  .tree .friend_row:nth-child(3n)::before {
    height: 50px;
    width: 57px;
  }
  .tree_top div {
    height: 743px;
  }
  .tree_top .c {
    margin-left: -30%;
  }
  .tree_top .a {
    margin-left: -13%;
  }
  .tree_top .b {
    width: 50%;
  }

  .tree_top div:not(.b) {
    margin-top: 58px;
    height: 655px;
  }
  .bd_boy {
    position: relative;
    margin: auto;
    margin-top: -40px;
  }
  .tree .top .title {
    margin-top: 29px;
    margin-bottom: 160px;
    text-align: center;
    font-size: 73px;
    margin: auto;
    margin-bottom: 110px;
    color: #0e2d0d;
    text-shadow: 2px 2px 0 rgb(255 255 255 / 50%);
  }
  .tree .top .comment {
    font-size: 30px;
    text-align: center;
    margin: auto;
    margin-top: -79px;
  }
}

@media (max-width: 880px) {
  .tree .friend {
    height: 150px;
    width: 150px;
  }
  .tree .friend_img::after {
    font-size: 41px;
    height: 60px;
    width: 60px;
    line-height: 63px;
  }
  .tree_top div:not(.b) {
    margin-top: 58px;
    height: 655px;
  }
}

@media (max-width: 780px) {
  .tree .main .boxed {
    width: 78%;
  }
  .tree .friend_row {
    margin-bottom: 40px;
  }
  .tree .top {
    height: 736px;
  }
  .tree_top .b {
    width: 60%;
  }
  .tree_top div:not(.b) {
    margin-top: 41px;
    height: 761px;
  }

  .bd_boy {
    height: 210px;
    width: 310px;
    border: 10px solid #ffffff;
  }
  .tree .friend_row {
    margin-bottom: 22px;
  }
  .tree .friend_row:nth-child(4n-1) .friend {
    margin-left: 17%;
  }
  .tree img.tree_base {
    margin-top: -240px;
  }
  .plants_left {
    display: none;
  }
  .tree .top .title {
    margin-bottom: 93px;
    margin-top: 14px;
  }
  .tree .greeting {
    font-size: 39px;
    line-height: 57px;
  }
}

@media (max-width: 640px) {
  .tree .main .boxed {
    width: 85%;
  }
  .tree .friend {
    height: 130px;
    width: 130px;
  }
  .tree .friend_row {
    margin-bottom: 28px;
  }
  .tree .friend_row:nth-child(4n-1) .friend {
    margin-left: 11%;
  }
  .tree .friend_img::after {
    font-size: 36px;
    height: 50px;
    width: 50px;
    line-height: 53px;
  }
  .tree_top .b {
    width: 72%;
  }
  .tree .greeting {
    font-size: 35px;
    line-height: 49px;
  }
  .lottie_ballon {
    right: -58%;
  }
}

@media (max-width: 450px) {
  .tree .friend {
    height: 118px;
    width: 118px;
  }
  .tree_top div {
    height: 656px;
  }
  .bd_boy {
    height: 155px;
    width: 247px;
    border: 6px solid #ffffff;
  }
  .tree_top {
    width: 211%;
    margin-right: -95%;
  }
  .tree .top .title {
    font-size: 56px;
  }
  .tree .main .friend_rows {
    top: -179px;
  }
  .tree .greeting {
    font-size: 35px;
    line-height: 49px;
  }
}

@media (min-width: 1700px) {
  .tree_bottom {
    margin-bottom: -70px;
  }

  .tree section.main {
    background-image: linear-gradient(0deg, #83e85a 0%, #6bcd43 100%);
  }
}

@media (min-width: 2000px) {
  .tree_bottom {
    margin-bottom: -100px;
  }
  .tree img.tree_base {
    margin-bottom: -400px;
  }
}

@media (min-width: 2400px) {
  .tree_bottom {
    margin-bottom: -230px;
  }
  .tree img.tree_base {
    margin-bottom: -480px;
  }
}

@media (min-width: 2800px) {
  .tree_bottom {
    margin-bottom: -420px;
  }
  .tree img.tree_base {
    margin-bottom: -590px;
  }
}

.lightbox-box video {
  border: 6px solid #6fa044;
}

.lightbox-box .outer-frame::after {
  content: "";
  position: absolute;
  top: 211px;
  right: -44px;
  animation: floater 3s ease-in-out infinite;
  height: 198px;
  width: 128px;
  background-image: url(../../img/ballons.png);
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 2s ease-in-out;
}
.lightbox-box.open .outer-frame::after {
  top: -72px;
}

.lightbox-box .outer-frame {
  opacity: 0;
  transform: scale(0.2) rotate(705deg);
  transition: all 1s ease-in-out;
}

.lightbox-box.open .outer-frame {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.lightbox-box .frame::before,
.lightbox-box .frame::after {
  content: url("img/Leave.svg");
  width: 191px;
  position: absolute;
  top: 8px;
  left: 2px;
  border-radius: 15px;
  filter: drop-shadow(2px 4px 46px #00000021);
  transform: rotate(-24deg);
  animation: top-frame-leave 2.3s ease-in-out 0s infinite alternate-reverse;
  transition: all 1.4s ease-in-out, left 2s ease-in-out, right 2s ease-in-out;
}

.lightbox-box .frame::after {
  transform: rotate(153deg);
  position: absolute;
  top: auto;
  left: auto;
  right: 3px;
  bottom: 2px;
  z-index: -1;
  animation: bottom-frame-leave 2.6s ease-in-out 0s infinite alternate-reverse;
}

.lightbox-box.open .frame::before {
  width: 220px;
  top: -98px;
  left: -92px;
}

.lightbox-box.open .frame::after {
  width: 220px;
  right: -73px;
  bottom: -102px;
}
