/* Core CSS */
*,
*::after,
*::before {
  box-sizing: border-box;
}

:root {
  font-size: 15px;
}

::selection {
  background-color: transparent;
  color: inherit;
  cursor: inherit;
}

@font-face {
  font-family: "AuxMono";
  src: url("/fonts/AuxMono-Regular.woff2") format("woff2");
  letter-spacing: -0.04em;
  font-display: swap;
}

@font-face {
  font-family: "HelveticaNeue Bold";
  src: url("/fonts/HelveticaNeue\ Bold.woff2") format("woff2");
  src: url("/fonts/HelveticaNeue\ Bold.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Tipemite";
  src: url("/fonts/Tipemite.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

body {
  margin: 0;
  --color-text: #aaa;
  --color-bg: #0a0a0a;
  --color-link: #d0d0d0;
  --color-link-hover: #d0d0d0;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: "AuxMono", Monospace, -apple-system, BlinkMacSystemFont, Segoe UI,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

a,
b,
p,
strong,
h1,
h2,
h3,
h4,
h5,
h6,
i,
li,
ul {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: "liga=1";
  -ms-font-feature-settings: "liga";
  font-feature-settings: "liga";
}

main#animated-content {
  height: 100dvh;
  max-height: 100%;
}

/* Cookie Notice CSS */
#cookie-notice {
  display: flex;
  background: #141414;
  border-radius: 4px;
  color: #d0d0d0;
  font-size: 13px;
  padding: 0.8rem 1.2rem;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 335px;
  opacity: 0;
  z-index: 99999999;
  justify-content: space-between;
  align-items: center;
}

.cookies__inner-left {
  float: left;
  width: 90%;
  position: relative;
}

.cookies__inner-right {
  float: right;
  width: 10%;
}

.cookies__inner-left p {
  cursor: default;
  font-size: 11px;
  color: #d0d0d0;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.cookies__inner-left a {
  color: #d0d0d0;
  text-decoration: underline;
}

.cookies__inner-right i {
  font-size: 22px;
  float: right;
  line-height: 50px;
  cursor: pointer;
}

@media (max-width: 575px) {
  #cookie-notice {
    width: calc(100% - 3rem);
  }
  .cookies__inner-left {
    width: 80% !important;
  }
  .cookies__inner-left p {
    font-size: 11px;
  }
}

@media (max-width: 395px) {
  #cookie-notice {
    font-size: 11px;
    width: calc(100% - 3rem);
  }
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
  content: "";
  position: fixed;
  z-index: 1000;
}

.js .loading::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

.js .loading::after {
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 50%;
  opacity: 0.4;
  background: var(--color-link);
  animation: loaderAnim 0.7s linear infinite alternate forwards;
}

@keyframes loaderAnim {
  to {
    opacity: 1;
    transform: scale3d(0.5, 0.5, 1);
  }
}

a {
  text-decoration: none;
  color: #d0d0d0;
  outline: none;
  transition: cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s all;
  -webkit-transition: cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s all;
  -moz-transition: cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s all;
  -o-transition: cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s all;
  -ms-transition: cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s all;
}

a:hover,
a:focus {
  color: #fff;
  outline: none;
  transition: cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s all;
  -webkit-transition: cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s all;
  -moz-transition: cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s all;
  -o-transition: cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s all;
  -ms-transition: cubic-bezier(0.215, 0.61, 0.355, 1) 0.3s all;
}

.frame {
  padding: 3rem 5vw;
  text-align: center;
  position: relative;
  z-index: 1000;
  opacity: 0;
}

.frame__title {
  font-size: 1rem;
  margin: 0 0 1rem;
  font-weight: normal;
  opacity: 0;
}

.frame__links {
  display: inline;
}

.frame__links a:not(:last-child),
.frame__demos a:not(:last-child) {
  margin-right: 1rem;
}

.frame__demos {
  margin: 1rem 0;
}

.frame__demo--current,
.frame__demo--current:hover {
  color: var(--color-text);
}

.content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh);
  position: relative;
  justify-content: flex-start;
  align-items: center;
  opacity: 1;
}

#parent {
  width: 100%;
  height: 100vh;
}

@media screen and (min-width: 53em) {
  .frame {
    position: fixed;
    text-align: left;
    z-index: 100;
    top: 0;
    left: 0;
    display: grid;
    align-content: space-between;
    width: 100%;
    max-width: none;
    height: 100vh;
    padding: 3rem;
    pointer-events: none;
    grid-template-columns: 75% 25%;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "title links"
      "... ..."
      "... demos";
  }
  .frame__title-wrap {
    grid-area: title;
    display: flex;
  }
  .frame__title {
    margin: 0;
  }
  .frame__tagline {
    position: relative;
    margin: 0 0 0 1rem;
    padding: 0 0 0 1rem;
    opacity: 0.5;
  }
  .frame__demos {
    margin: 0;
    grid-area: demos;
    justify-self: end;
  }
  .frame__links {
    grid-area: links;
    padding: 0;
    justify-self: end;
  }
  .frame a {
    pointer-events: auto;
  }
  .content {
    height: 100vh;
    justify-content: center;
  }
}

/* nav css */
.navbar-wrapper {
  position: relative;
  z-index: 999999;
}

.navbar {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 0;
  left: 0;
  padding: 1rem 1.5rem 0rem 1rem;
  width: 100%;
  text-transform: uppercase;
  color: #d0d0d0;
}

.navbar .column {
  flex: 1;
  text-align: left;
}

.navbar .column.center {
  text-align: center;
  margin: 0 auto;
}

.navbar .column.center a.main-link {
  top: 4px;
  position: relative;
}

.navbar .column.right {
  text-align: right;
  margin-left: auto;
}

.navbar .column.right span.copyright-icon {
  font-size: 23px;
}

/* footer css */
footer {
  z-index: 999999;
  position: relative;
}

.footerbar-wrapper {
  position: relative;
  z-index: 999999;
}

.footerbar {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1.5rem;
  width: 100%;
  text-transform: uppercase;
  color: #d0d0d0;
  letter-spacing: -0.04em;
}

.footerbar .column {
  flex: 1;
  text-align: left;
}

.footerbar .column.center {
  text-align: center;
  margin: 0 auto;
}

.footerbar .column.right {
  text-align: right;
  margin-left: auto;
}

/*logo overlay css */
.main-logo {
  width: 100%;
}

.logo-overlay-clip {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
}

#logo-overlay {
  width: 100%;
  height: 100dvh;
  position: absolute;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  overflow: hidden;
}

#logo-overlay img {
  width: 75%;
  max-width: 800px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* plugin css */
.rgbKineticSlider {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

canvas {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  cursor: auto !important;
}

nav a {
  color: var(--color-link-hover);
}

nav a:hover,
nav a:focus {
  color: var(--color-link-hover);
  outline: none;
}

nav a:hover span {
  width: 0;
}

nav a.next {
  right: 10vw;
}

nav a.prev {
  left: 10vw;
}

.notice {
  text-decoration: none;
  opacity: 0;
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  z-index: 1;
  color: var(--color-link);
}

@media screen and (max-width: 53em) {
  nav a {
    top: auto;
    bottom: 3rem;
  }
  .notice {
    bottom: auto;
    top: 2rem;
    left: 10vw;
    left: 3rem;
  }
}

/* Overlay CSS */
.overlay-gradient {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.7777704831932774) 0%,
    rgba(0, 0, 0, 0.5984987745098039) 20%,
    rgba(0, 0, 0, 0.22034751400560226) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  height: 15%;
  width: 100%;
  position: absolute;
  z-index: 2;
  mix-blend-mode: overlay;
  opacity: 0.6;
}

/* Grained CSS */
#grain-overlay {
  display: block;
  height: 100%;
  min-height: 100vh;
  pointer-events: none;
  position: absolute !important;
  width: 100%;
  z-index: 1;
}

#color-overlay {
  display: block;
  height: 100%;
  min-height: 100svh;
  pointer-events: none;
  position: absolute !important;
  width: 100%;
  z-index: 1;
  background-color: #ff2929;
  mix-blend-mode: darken;
}

/* Video */
#canvasVideo {
  display: none;
}

/* Animate In */
span.animate-in {
  opacity: 0;
}

/* Mobile CSS */
@media screen and (max-width: 911px) {
  .navbar .column.center {
    display: flex;
    justify-content: space-between;
  }
  #logo-overlay img {
    min-width: 275px;
  }
}

/* Ripples */
#ripples {
  position: absolute;
  z-index: 999;
  width: 100%;
  height: 100%;
}

#ripples canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

/* Button */

.btn-dropify-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.btn-dropify-wrapper .column {
  margin-top: 35svh;
}

/* Button row layout for mobile */
.button-row-top,
.button-row-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
}

.button-row-top {
  gap: 20px;
  margin-bottom: 20px;
}

.button-row-bottom {
  gap: 20px;
}

/* Desktop: display inline */
@media (min-width: 769px) {
  .btn-dropify-wrapper .column.center {
    display: block;
  }

  .button-row-top,
  .button-row-bottom {
    display: inline;
  }

  .button-row-top {
    margin-bottom: 0;
    gap: 0;
  }

  .button-row-bottom {
    gap: 0;
  }
}

/* Mobile: stack rows */
@media (max-width: 768px) {
  .btn-dropify-wrapper .column {
    margin-top: 45svh;
  }

  .btn-dropify-wrapper .column.center {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.btn-dropify {
  pointer-events: auto !important;
  cursor: pointer !important;
  padding: 1rem 1rem 0.85rem;
  border-radius: 8px;
  outline: 0;
  background: #151515;
  color: #d0d0d0;
  text-transform: uppercase;
  letter-spacing: -0.08em;
  font-size: 14px;
  border: 0;
  font-family: "AuxMono", Monospace, -apple-system, BlinkMacSystemFont, Segoe UI,
    Helvetica, Arial, sans-serif;
  position: relative;
  padding-left: 3rem;
}

.btn-dropify::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("/assets/Shopify.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.btn-dropify-menu {
  pointer-events: auto !important;
  cursor: pointer !important;
  padding: 1rem 1rem 0.85rem;
  border-radius: 8px;
  outline: 0;
  background: #151515;
  color: #d0d0d0;
  text-transform: uppercase;
  letter-spacing: -0.08em;
  font-size: 14px;
  border: 0;
  font-family: "AuxMono", Monospace, -apple-system, BlinkMacSystemFont, Segoe UI,
    Helvetica, Arial, sans-serif;
  position: relative;
  padding-left: 3rem;
}

.btn-dropify-menu::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 52%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("/assets/App-Icon-White.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.btn-docs {
  pointer-events: auto !important;
  cursor: pointer !important;
  padding: 1rem 1rem 0.85rem;
  border-radius: 8px;
  outline: 0;
  background: #151515;
  color: #d0d0d0;
  text-transform: uppercase;
  letter-spacing: -0.08em;
  font-size: 14px;
  border: 0;
  font-family: "AuxMono", Monospace, -apple-system, BlinkMacSystemFont, Segoe UI,
    Helvetica, Arial, sans-serif;
  position: relative;
  padding-left: 3rem;
}

.btn-docs::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("/assets/LG_Icon_W.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.btn-dropify,
.btn-dropify-menu {
  opacity: 0;
}

.btn-docs {
  opacity: 0;
  cursor: pointer !important;
}

/* Allow pointer cursor on the Watch Video trigger only */
.btn-dropify-menu.video-hover-area {
  cursor: pointer !important;
}

/* Video Modal Styles (mirrored from example.html) */
.fullscreen-player {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  background: #111111;
  z-index: 2000000;
  visibility: hidden;
}

.fullscreen-player.inactive .custom-controls,
.fullscreen-player.inactive .close-btn {
  opacity: 0;
}

.fullscreen-player video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

@media (max-width: 768px) {
  .fullscreen-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.close-btn {
  position: absolute;
  top: 3vw;
  right: 3vw;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 100000;
  mix-blend-mode: difference;
}

.close-btn:before,
.close-btn:after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: #fff;
  transform-origin: center;
}

.close-btn:before {
  transform: translateY(-50%) rotate(45deg);
}

.close-btn:after {
  transform: translateY(-50%) rotate(-45deg);
}

.close-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.custom-controls {
  position: absolute;
  bottom: 3vw;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px 10px 10px;
  border-radius: 10px;
  background: #e8e8e8;
  transition: opacity 0.4s ease;
  mix-blend-mode: exclusion;
}

.play-pause-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  position: relative;
  outline: none;
  flex-shrink: 0;
}

.play-pause-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid #333333;
  transition: all 0.2s ease;
}

.play-pause-btn.playing::before {
  border-style: double;
  border-width: 0 0 0 14px;
  border-color: #333333;
  height: 16px;
  width: 6px;
  border-left-style: solid;
  border-right-style: solid;
  border-left-width: 5px;
  border-right-width: 5px;
  transform: translate(-50%, -50%);
}

.progress-bar-container {
  flex-grow: 1;
  height: 6px;
  background: #cdcdcd;
  border-radius: 3px;
  cursor: pointer;
}

.progress-bar-fill {
  width: 0;
  height: 100%;
  border-radius: 3px;
  background: #333333;
}
