:root {

  /* KED Colors */

  --ked-red: #D92828;
  --ked-blue: #004070;
  --ked-green: #20AC35;
  --ked-orange: #E6B220;
  --ked-yellow: #EFE13A;
  --ked-violet: #DF8BD9;
  --ked-lite-blue: #4492d5;
  --ked-card-gray: #F2F1EB;

  /* Product Colors */

  --pie-color: #80B742;
  --cm-color: #213F80;
  --osp-color: #F4D10F;
  --opp-color: #e96b04;
}


*,*::before, *::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  background-color: white;
}

body {
  font-size: 1rem;
  overflow-y: scroll;
  line-height: 1.4em;
  text-rendering: optimizeSpeed;
  font-family: "Poppins", sans-serif;

  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 0.5rem;
  line-height: 1.4em;
  font-family: "Poppins";
  color: var(--ked-blue);
  text-transform: uppercase;
}

/* ICONS */

svg.icon {
  fill: currentColor;
  width: var(--icon-size, 2em);
  height: var(--icon-size, 2em);
}


/* NAVIGATION */

nav {
  z-index: 1;
  height: 78px;
  display: flex;
  padding: 1rem;
  overflow-x: clip;
  position: relative;
  background-color: white;
  box-shadow: 0 0 8px -1px rgba(0,0,0,0.3);
}

nav img {
  max-height: 100%;
  width: auto;
}

.version {
  bottom: 0;
  opacity: 0.3;
  right: 0.5rem;
  font-size: 0.7rem;
  position: absolute;
  font-family: monospace;
}

.lights {
  top: 0;
  left: 10rem;
  z-index: 200;
  width: 1350px;
  height: 100px;
  position: absolute;
}

@media (max-width: 480px) {
  .lights {
    left: 5rem;
  }
}

/* MAIN */

.wrapper {
  flex-grow: 1;
  overflow: clip;
  padding-top: 1rem;
  perspective: 1600px;

  min-height: 630px;

  display: flex;
  justify-content: center;

  background-color: #d6e5ea;
  background-repeat: repeat-x;
  background-position: 0 75%;
  background-image: url(../assets/forest.png);
}

.wrapper:after  {
  bottom: 0;
  z-index: -1;
  content: "";
  width: 100%;
  height: 20vh;
  position: absolute;
  background-color: #deeaee;
}

@media (max-width: 480px) {
  .wrapper{
    min-height: 420px;
  }
}

/* SNOW */

canvas.snow {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  position: fixed;
  pointer-events: none;
}


/* PHOTO */

.photo {
  z-index: 10;
  position: relative;

  max-width: 410px;
  width: 100%;

  border: none;
  height: 465px;
  padding: 1rem;
  cursor: pointer;
  background-color: transparent;

  transform-style: preserve-3d;
  transform-origin: center 0;

  rotate: -10deg;
  translate: -10% 4rem;

  outline: none !important;
}

.photo > * {
  pointer-events: none;
}

@media (max-width: 480px) {
  .photo {
    scale: 0.75;
    width: 300px;
    height: 380px;
    rotate: unset;
    translate: 0 0;
  }
}

.photo-card {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.3rem;
  position: absolute;
  text-align: center;
  border-radius: 0.5rem;
  backface-visibility: hidden;
  background-color: var(--ked-card-gray);
  filter: drop-shadow(0px 5px 4px rgba(0,0,0,0.3));
}

.photo-card.--front {

}

.photo-card.--back {
  transform: rotateY(180deg);
  overflow: hidden;
  color: #1d1314;
  font-size: 1.4rem;
  line-height: 1.3em;
  font-family: "Caveat", sans-serif;
}

.photo-card.--back:before {
  top: 0;
  left: 0;
  z-index: 10;
  content: "";
  width: 100%;
  height: 3rem;
  position: absolute;
  background: var(--ked-card-gray);
  background: linear-gradient(0deg, rgba(255, 255, 255,0) 0%, var(--ked-card-gray) 70%);
}

.photo-card.--back:after {
  bottom:0;
  left: 0;
  z-index: 10;
  content: "";
  width: 100%;
  height: 3rem;
  position: absolute;
  background: var(--ked-card-gray);
  background: linear-gradient(180deg, rgba(242, 241, 236,0) 0%, var(--ked-card-gray) 70%);
}

.photo-card .slider {
  display: flex;
  padding: 1rem;
  border-radius: 0.5rem;
  flex-direction: column;
}

.photo span.br {
  display: block;
  height: 1.3rem;
}

.photo img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 0.3rem;
  box-shadow: 0 0 0px 2px #D0D0CB;
}

.photo button {
  border: none;
  font-size: 2rem;
  font-weight: 800;
  background: no-repeat;
  font-family: "Poppins";
  color: var(--ked-blue);
  text-transform: uppercase;
}

/* BAUBLES */

@keyframes windWeak {
  0%, 100% {
    transform: rotate(4deg);
  }
  50% {
    transform: rotate(-4deg);
  }
 }

@keyframes windStrong {
  0%, 100% {
    transform: rotate(8deg);
  }
  50% {
    transform: rotate(-8deg);
  }
 }

.baubles {
  top: 5rem;
  width: 100%;
  color:aliceblue;
  position: absolute;
}

.baubles .bauble:nth-of-type(1) {
  --bauble-size: 5rem;
  --icon-size: 3rem;
  --bauble-color: var(--cm-color);

  left: 10%;
}

.baubles .bauble:nth-of-type(2) {
  --bauble-size: 6rem;
  --icon-size: 3.5rem;
  --bauble-color: var(--pie-color);

  left: 18%;
}

.baubles .bauble:nth-of-type(3) {
  --bauble-size: 4rem;
  --icon-size: 3rem;
  --bauble-color: var(--osp-color);

  right: 20%;
}

.baubles .bauble:nth-of-type(4) {
  --bauble-size: 8rem;
  --icon-size: 5rem;
  --bauble-color: var(--ked-blue);

  right: 8%;
}

@media (max-width: 920px) {
  .baubles .bauble:nth-of-type(1) {
    left: 5%;
  }

  .baubles .bauble:nth-of-type(2) {
    left: 8%;
    z-index: 200;
  }

  .baubles .bauble:nth-of-type(3) {
    right: 18%;
  }

  .baubles .bauble:nth-of-type(4) {
    right: 5%;
    z-index: 200;
  }
}

@media (max-width: 480px) {
  .baubles {
    bottom: 0;
    top: unset;
  }

  .baubles .bauble {
    top: unset;
    scale: 0.6;
    bottom: 0%;
    transform-origin: 50% 50%;
    animation: none !important;
  }

  .baubles .bauble::after {
    content: none;
  }

  .baubles .bauble:nth-of-type(1) {
    left: 2rem;
    z-index: 10;
    rotate: 20deg;
  }

  .baubles .bauble:nth-of-type(2) {
    left: -1rem;
    z-index: 5;
    rotate: -30deg;
  }

  .baubles .bauble:nth-of-type(3) {
    right: 4rem;
    z-index: 10;
    bottom: 0.6rem;
    rotate: -15deg;
  }

  .baubles .bauble:nth-of-type(4) {
    right: -1rem;
    bottom: -1rem;
    rotate: 15deg;
    z-index: 10;
  }
}

.bauble {

  position: absolute;

  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: 50% -200px;
  transition: translate 0.5s ease-in-out;

  width: var(--bauble-size);
  height: var(--bauble-size);
  animation-delay: var(--bauble-delay);
}

/* Handle */
.bauble::before {
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 0.3rem;
  filter: brightness(0.85);
  background-color: var(--bauble-color);
  bottom: calc(var(--bauble-size) - 0.5rem);

  z-index: -1;
  position: absolute;
}

/* String */
.bauble::after {
  content: "";
  width: 1px;
  height: 200px;
  bottom: 100%;
  border-left-width: 4px;
  border-left-style: dotted;
  border-left-color: var(--bauble-color);

  z-index: -2;
  position: absolute;
}

.bauble:hover {
  translate: 0 -2rem;
}

.bauble > span {
  width: var(--bauble-size);
  height: var(--bauble-size);
  border-radius: 50%;
  background-color: var(--bauble-color);

  z-index: -1;
  flex-shrink: 0;
  position: absolute;
}

.bauble.--big {
  animation: windWeak 3s ease-in-out infinite;
}

.bauble.--small {
  animation: windStrong 3s ease-in-out infinite;
}


/* SNOW CAPS */

.snow-caps-front {
  bottom: 0;
  z-index: 20;
  width: 660px;
  position: absolute;
}

@media (max-width: 480px) {
  .snow-caps-front {
    top: unset;
    bottom: -4rem;
  }
}

.snow-caps {
  display: flex;
  flex-direction: column;

  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
  justify-content: flex-end;
}

.snow-caps svg {
  width: 100%;
}

.snow-caps:after {
  content: "";
  width: 100%;
  height: 6rem;
  background-color: white;
}

