/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

@layer base {

  button,
  [type='button'],
  [type='reset'],
  [type='submit'],
  [role="button"] {
    cursor: pointer;
  }
}

.flip-container {
  perspective: 1000px;
  width: 100%;
  height: 100%;
}

.flipper {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  width: 100%;
  height: 100%;
}

.flip .flipper {
  transform: rotateY(180deg);
}

.front,
.back {
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.front {
  z-index: 2;
  transform: rotateY(0deg);
}

.back {
  transform: rotateY(180deg);
}

.creative-node-container {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  flex-shrink: 0;
  background-color: #FAF8F2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.locked {
  border: 2px solid #D15937;
  box-shadow: 0 0 10px #D15937;
}

.highlight {
  background-color: #D15937;
  color: white;
}

.inspiration-refresh.is-spinning svg {
  animation: inspiration-spin 0.9s linear infinite;
}

@keyframes inspiration-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes flash-fade-in-and-out {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }

  10% {
    opacity: 1;
    transform: translateY(0);
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.animate-fade-in-and-out {
  animation: flash-fade-in-and-out 4s ease-in-out forwards;
}

#draft-editor::selection {
  background: #C65D47;
  color: #111111;
}

#draft-editor::-moz-selection {
  background: #C65D47;
  color: #111111;
}

.slider {
  --slider-track-color: #E5E7EB;
  --slider-fill-color: #47B0C6;
  --slider-fill-percent: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.5rem;
  background: linear-gradient(var(--slider-fill-color), var(--slider-fill-color)) 0/var(--slider-fill-percent) 100% no-repeat, var(--slider-track-color);
  border-radius: 9999px;
}

.slider:focus {
  outline: none;
}

.slider::-webkit-slider-runnable-track {
  height: 0.5rem;
  background: transparent;
  border-radius: 9999px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  background: var(--slider-fill-color);
  border: 2px solid #FFFFFF;
  border-radius: 9999px;
  margin-top: -0.25rem;
}

.slider::-moz-range-track {
  height: 0.5rem;
  background: var(--slider-track-color);
  border-radius: 9999px;
}

.slider::-moz-range-progress {
  height: 0.5rem;
  background: var(--slider-fill-color);
  border-radius: 9999px;
}

.slider::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  background: var(--slider-fill-color);
  border: 2px solid #FFFFFF;
  border-radius: 9999px;
}

@keyframes flash-green {
  0% {
    background-color: transparent;
  }

  10% {
    background-color: #dcfce7;
  }

  100% {
    background-color: transparent;
  }
}

.animate-flash-green {
  animation: flash-green 1s ease-out;
}

.research-page {
  background:
    radial-gradient(1200px 400px at 70% -5%, rgba(198, 93, 71, 0.08), transparent 60%),
    #f2f0ec;
}

.research-page .save-research-btn {
  min-height: 42px;
}

.research-page [data-action*="research#useHook"] {
  min-height: 74px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Carousel Navigation Arrows */
.carousel-btn {
  opacity: 0;
  transition: all 0.2s ease-in-out;
}

.group\/carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn.is-disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (hover: none) {
  .carousel-btn {
    opacity: 0.9;
  }
}
