/* @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap'); */

/*General styling for structure*/
/* *{
  box-sizing: border-box;
  border: solid 1px coral;
} */
body,
html {
  margin: 0;
  margin: 0;
}

.sparkle-ecommerce main section {
  overflow: hidden;
}

.sparkle-ecommerceh2 {
  width: 70vw;
  max-width: 80ch;
  animation: fade-in 2s ease-in-out both;
  /* transform: translateX(-6em); */
}

.sparkle-ecommerce .container {
  /* max-width: 1280px;
  width: 95%; */
  margin: 0 auto;
  background-color: #437E81;
}

header.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  color: #f0f0f1;
}

header.container h3 {
  font-weight: 400;
}

.sparkle-ecommerce section h3 {
  color: #437E81;
}

.sparkle-ecommerce .autoscale {
  width: 100%;
  height: auto;
  max-width: 80ch;
}

.sparkle-ecommerce .scroll-container {
  height: 100vh;
  min-height: 450px;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.sparkle-ecommerce .scroll-container:nth-of-type(1),
.scroll-container:nth-of-type(3),
.scroll-container:nth-of-type(6),
.scroll-container:nth-of-type(10) {
  background-color: #437E81;
  color: #f0f0f1;
}

.sparkle-ecommerce .scroll-container:nth-of-type(1) h3,
.scroll-container:nth-of-type(3) h3,
.scroll-container:nth-of-type(6) h3,
.scroll-container:nth-of-type(10) h3 {
  color: #f0f0f1;
}

.sparkle-ecommerce .scroll-container:nth-of-type(2),
.scroll-container:nth-of-type(8) {
  background-color: #7ACFD340;
}

.sparkle-ecommerce .scroll-container:nth-of-type(4),
.scroll-container:nth-of-type(7),
.scroll-container:nth-of-type(11) {
  background-color: #f0f0f1;
}

.sparkle-ecommerce .scroll-container:nth-of-type(even) {
  flex-direction: row-reverse;
}

.sparkle-ecommerce .scroll-element,
.sparkle-ecommerce .scroll-caption {
  width: 50%;
}

.sparkle-ecommerce .scroll-caption {
  max-width: 50ch;
}

.sparkle-ecommerce .scroll-container:nth-of-type(3) .scroll-element {
  transform: translateY(5rem);
  filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.5));
}

.sparkle-ecommerce .scroll-container:nth-of-type(8) .scroll-element {
  transform: translateY(25rem);
  filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.5));
}

.sparkle-ecommerce .scroll-element {
  min-height: 300px;
  display: flex;
  justify-content: center;
}

.sparkle-ecommerce .scroll-caption {
  margin: 3rem;
}

.sparkle-ecommerce footer {
  text-align: center;
  padding: 0.5rem 0;
  background-color: #437E81;
  color: #f0f0f1;
}

.sparkle-ecommerce footer p {
  font-size: 0.75rem;
  margin: 0.25rem 0;

}

.sparkle-ecommerce a {
  text-decoration: none;
  color: inherit;
}

.sparkle-ecommerce ol {
  padding-left: 2rem;
}

.sparkle-ecommerce li {
  margin: 1rem 0;
  color: #437E81;
}

.sparkle-ecommerce .centersec {
  padding: 5rem 1rem;
  text-align: center;
}

.sparkle-ecommerce .centersec div {
  max-width: 80ch;
  margin: 0 auto;
}

.sparkle-ecommerce .album {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 60ch;
  /* grid-template-columns: repeat(auto-fill,minmax(130px, 1fr)); */
}

.sparkle-ecommerce .album p {
  color: #575758;
}

.sparkle-ecommerce .frame {
  width: 20ch;
  height: 20ch;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.sparkle-ecommerce .frame img {
  height: 100%;
  width: auto;
}

.sparkle-ecommerce .twoimg img {
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1)
}

.sparkle-ecommerce .abso img {
  position: absolute;
  width: 80%;
}

.sparkle-ecommerce .twoimg img:first-of-type {
  left: 0%;
  top: -5rem;
}

.sparkle-ecommerce .twoimg img:last-of-type {
  right: 15%;
  transform: translateY(5rem);
}

.sparkle-ecommerce .twoimg img:hover {
  transform-origin: center;
  z-index: 2;
}

.sparkle-ecommerce .twoimg img:first-of-type:hover {
  transform: translateY(-1rem);
}

.sparkle-ecommerce .twoimg img:last-of-type:hover {
  transform: translateY(4rem);
}

.sparkle-ecommerce .btn {
  display: block;
  text-align: center;
  background-color: #437E81;
  color: #f0f0f1;
  padding: 1rem 2em 1rem 2em;
  border: none;
  font-size: 1.2rem;
  transition: all .5s ease-in-out;
  margin: 2rem 0 2rem 0;
}

.sparkle-ecommerce #zoom img:hover {
  filter: brightness(20%);
  transition: all .5s ease-in-out;
}

.sparkle-ecommerce figcaption {
  opacity: 0;
}

.sparkle-ecommerce #zoom img:hover~figcaption {
  transition: all .5s ease-in-out;
  opacity: 1;
}

.sparkle-ecommerce .noflow>img:hover {
  transition: all .5s ease-in-out;
  transform: translate(-2rem);
}

.sparkle-ecommerce .textBlock {
  margin: 0;
  font-size: 5em;
  transition-property: transform;
  transform: translate(0, 5rem);
  cursor: default;
}

.sparkle-ecommerce .textBlock::before {
  content: attr(data-content);
  position: absolute;
  top: -50px;
  height: 4rem;
  overflow: hidden;
  color: rgba(0, 25, 25, 0.8);
  opacity: 0;
  transition: opacity 1s;
}

.sparkle-ecommerce .textBlock::after {
  content: attr(data-content);
  position: absolute;
  top: -85px;
  left: 0;
  height: 3rem;
  color: rgba(0, 25, 25, 0.6);
  overflow: hidden;
  opacity: 0;
  transition: opacity 2s;
}


.sparkle-ecommerce .textBlock:hover::after,
.sparkle-ecommerce .textBlock:hover::before {
  opacity: 1;
}

@media screen and (max-width: 650px) {
  .sparkle-ecommerce h2 img {
    max-width: 100vw;
  }

  .sparkle-ecommerce .scroll-container,
  .sparkle-ecommerce .scroll-container:nth-of-type(even) {
    flex-direction: column;
    align-content: inherit;
  }

  .sparkle-ecommerce .scroll-container:nth-of-type(3) .scroll-element {
    transform: translateY(0);
  }

  .sparkle-ecommerce .scroll-container:nth-of-type(8) .scroll-element {
    transform: translateY(0);
  }

  .sparkle-ecommerce .abso img {
    width: 90%;
  }

  .sparkle-ecommerce .twoimg img:first-of-type {
    left: 0%;
    top: 0;
  }

  .sparkle-ecommerce .scroll-element {
    height: 100%;
    max-height: 400px;
    overflow: hidden;
  }

  .sparkle-ecommerce .noflow {
    overflow: unset;
    max-height: none;
  }

  .sparkle-ecommerce .scroll-element,
  .sparkle-ecommerce .scroll-caption {
    width: 100%;
  }

  .sparkle-ecommerce .album {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .sparkle-ecommerce h2 {
    transform: none;
  }

  .sparkle-ecommerce .frame {
    width: 10ch;
    height: 10ch;
    justify-self: center;
  }

  .sparkle-ecommerce #gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/**Styling scrollable elements*/

.js-scroll {
  opacity: 0;
  transition: opacity 500ms;
}

.js-scroll.scrolled {
  opacity: 1;
}

.scrolled.fade-in {
  animation: fade-in 1s ease-in-out both;
}

.scrolled.fade-in-bottom {
  animation: fade-in-bottom 1s ease-in-out both;
}

.scrolled.slide-left {
  animation: slide-in-left 1s ease-in-out both;
}

.scrolled.slide-right {
  animation: slide-in-right 1s ease-in-out both;
}

@keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-right {
  0% {
    -webkit-transform: translateX(100px);
    transform: translateX(100px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-in-bottom {
  0% {
    -webkit-transform: translateY(50px);
    transform: translateY(50px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}