/* fonts */
/* wix-madefor-display-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Wix Madefor Display';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/wix-madefor-display-v11-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* wix-madefor-display-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Wix Madefor Display';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/wix-madefor-display-v11-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


:root {
  --main: #000;

  --base: #fff;
  --contrast: #000;

  --radius: 50px;
  --btn-radius: 7px;

  --fs-sm: calc(clamp(1rem, 0.347vw + 0.833rem, 1.25rem));
  --fs--md: calc(clamp(1.25rem, 0.694vw + 0.938rem, 1.563rem));
  --fs-md: calc(clamp(1.563rem, 0.972vw + 1.125rem, 1.953rem));
  --fs-lg: calc(clamp(1.953rem, 1.528vw + 1.406rem, 2.441rem));
  --fs-xl: calc(clamp(2.441rem, 2.347vw + 1.766rem, 3.052rem));
  --fs-2xl: calc(clamp(3.052rem, 3.472vw + 2.219rem, 3.815rem));
}

::selection {
  background: black;
  color: white;
}

* {
  box-sizing: border-box;
  font-family: 'Wix Madefor Display', Arial, sans-serif;
}

img {
  max-width: 100%;
}

html, body {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #fafafa;
    background-color: #e5e5f7;
    background-image: linear-gradient(circle at 0 0, #d4d4e8 0%, #e5e5f7 100%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0px;
    margin-bottom: 20px;
    padding: 0;
    line-height: 1.2;
    color: var(--main);
    font-size: var(--fs-lg);
}

p {
  margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--contrast);
    font-size: var(--fs--sm);
}


/* btn */

.main-btn {
    background: var(--main);
    color: #fff;
    padding: 10px 27px;
    text-decoration: none;
    border-radius: var(--radius);
    transition: .5s;
    font-size: var(--fs--md);
    width: fit-content;
    display: block;
    position: relative;
    overflow: clip;
    line-height: 1;
}

.main-btn:hover {
    opacity: .7;
  transform: scale(1.1);
}

.main-btn.inverted-btn {
  color: var(--contrast);
  background: var(--base);
}

.main-btn:after {
  content: "";
  position: absolute;
    top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  opacity: 0;
  transform: rotate(30deg);

  background: rgba(255, 255, 255, 0.13);
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.13) 77%,
    rgba(255, 255, 255, 0.5) 92%,
    rgba(255, 255, 255, 0.0) 100%
  );
}

.main-btn:hover:after {
  opacity: 1;
  left: 130%;
  transition-property: left, top, opacity;
  transition-duration: 0.7s, 0.7s, 0.15s;
  transition-timing-function: ease;
}

@media(max-width: 1024px) {
  .main-btn {
    margin-inline: auto;
  }

  p, .title {
    text-align: center;
  }
}

#buy-btn.dancing {
  animation: dancing .5s linear infinite;
}

@keyframes dancing {
  0% {
    transform: rotate(0deg);
  }
  
  25% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(5deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* glass */
.glass{
  background: white;
  box-shadow: 0 10px 20px 5px rgb(0 0 0 / 15%);
}

/* navigation */
#navbar {
  width: min(1500px, 100% - 4rem);
  margin-inline: auto;
  border-radius: var(--radius);
  padding: 20px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 20px;
  z-index: 500;
  transition: .7s;
  transition-timing-function: 
    linear(0, 0.402 7.4%, 0.711 15.3%, 0.929 23.7%, 1.008 28.2%, 1.067 33%, 1.099 36.9%, 1.12 41%, 1.13 45.4%, 1.13 50.1%, 1.111 58.5%, 1.019 83.2%, 1.004 91.3%, 1)
  ;
}

@media(max-width: 1024px) {
  #navbar {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

  .logo {
    text-align: center;
  }
}

#navbar:hover {
  transform: scale(1.02);
}

.logo {
  text-decoration: none;
}

.logo >* {
    margin: 0;
    text-shadow: 0 0 100px white, 0 0 50px white;
}

/* product */

.nothing-product {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
  width: min(1500px, 100% - 2rem);
  margin-inline: auto;
}

.nothing-product .main-btn {
  margin-inline: auto;
}

.product-image {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  max-width: 500px;
  box-shadow: 0 10px 20px 5px rgb(0 0 0 / 15%);
  background-position: 0px 0px, 10px 10px;
  background-size: 20px 20px;
  background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee 100%),linear-gradient(45deg, #eee 25%, white 25%, white 75%, #eee 75%, #eee 100%);
  position: relative;
  transition: .5s;
  overflow: clip;
  cursor: pointer;
}

.product-image:hover {
  box-shadow: 0 10px 20px 15px rgb(0 0 0 / 10%);
  transform: scale(1.02);
}

.product-image:active {
  transform: scale(.95);
  transition-timing-function:
  linear(0, 0.247 13.2%, 0.415 20.5%, 0.624 27.4%, 1 37.8%, 0.794 44.9%, 0.747 47.9%, 0.731 50.8%, 0.744 53.5%, 0.785 56.4%, 0.999 65.5%, 0.927 69.6%, 0.904 73.4%, 0.921 77%, 1 84.5%, 0.981 89.4%, 1);
}

/* shine */
.product-image:after {
  content: "";
  position: absolute;
    top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  opacity: 0;
  transform: rotate(30deg);

  background: rgba(255, 255, 255, 0.13);
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.13) 77%,
    rgba(255, 255, 255, 0.5) 92%,
    rgba(255, 255, 255, 0.0) 100%
  );
}

.product-image:hover:after {
  opacity: 1;
  left: 130%;
  transition-property: left, top, opacity;
  transition-duration: 0.7s, 0.7s, 0.15s;
  transition-timing-function: ease;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  position: relative;
  z-index: 5;

  max-width: 500px;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) scale(1);
  transform-origin: center center;
  color: var(--contrast);
  padding: 16px 32px;
  border-radius: 18px;
  opacity: 0;
  pointer-events: none;
  font-size: var(--fs--sm);
  text-align: center;
  transition: .4s;
  animation: popInToast .4s;
  text-wrap: balance;
  width: min(500px, 100% - 2rem);
  z-index: 55;
}

.toast.show {
  opacity: 1;
  pointer-events: none;
}

@keyframes popInToast {
  0% {
    transform: translatex(-50%) scale(.4);
  }

  100% {
    transform: translatex(-50%) scale(1);
  }
}

.toast.hide-toast {
  animation: hideToast .5s forwards;
}

@keyframes hideToast {
  100% {
    transform: translatex(-50%) scale(0.8);
    opacity: 0;
  }

  0% {
    opacity: 1;
    transform: translatex(-50%) scale(1);
  }
}

/* why */
.dark-section {
  width: min(1500px, 100% - 2rem);
  margin-inline: auto;
  background: var(--contrast);
  color: var(--base);
  border-radius: var(--radius);
  overflow: clip;
  margin-block: 50px;
}

.dark-section * {
  color: inherit;
}

.big-title {
  font-size: var(--fs-2xl);
}

.why-flex {
  display: flex;
}

.why-flex >* {
  width: 50%;
}

.why-content {
    padding: calc(clamp(3.938rem, 3.906vw - 0.938rem, 9.75rem)) calc(clamp(0.938rem, 1.302vw + 0.313rem, 2.875rem));
    display: flex;
  flex-direction: column;
  justify-content: center;
}

@media(max-width: 1024px) {
  .why-flex {
    flex-wrap: wrap;
    gap: 0;
  }

  .why-flex>* {
    width: 100%;
  }

  .why-image {
    aspect-ratio: 16 / 9;
  }
  
}

.why-image {
  position: relative;
}

.why-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: saturate(0) contrast(150%) brightness(70%);
  border-radius: var(--radius);
}

li {
  font-size: var(--fs--md);
}

/* section  */
.section-wrap {
  padding-block: 50px;
  width: min(1500px, 100% - 2rem);
  margin-inline: auto;
}

.clicky-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.click-num-flex {
  font-size: 1rem;
  background: var(--contrast);
  color: var(--base);
  padding: 20px;
  aspect-ratio: 1 / 1;
  height: auto;
  width: auto;
  min-width: 7em;
  border-radius: 50%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-weight:bold;
  user-select: none;
  cursor: pointer;
}

/* 5 dollar bill */
.five-bill-section {
  aspect-ratio: 800 / 337;
  width: 100%;
  max-width: 800px;
  height: auto;
  padding: 0;
  padding-inline: 20px;
}

#five-dollar-bill {
  max-width: 800px;
  width: 100%;
  margin-inline: auto;
  display: block;
}

/* thanks */
.thanks-section {
  text-align: center;
  min-height: 70vh;
}

.thanks-section .main-btn {
  margin-inline: auto;
}

/* footer */
footer {
  background: var(--main);
  text-align: center;
  color: white;
  padding: 15px;
  border-radius: var(--radius) var(--radius) 0 0;
}

footer p, footer a {
  color: inherit;
  margin: 0;
}