@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  @keyframes animatedgradient {
    0% {
      background-position: 0% 50%;
    }

    50% {
      background-position: 100% 50%;
    }

    100% {
      background-position: 0% 50%;
    }
  }

  .animated-gradient {
    background: linear-gradient(60deg, #fbbf24, #f43f5e, #be123c, #a166ab, #0891b2, #22d3ee, #07b39b, #86efac);
    background-size: auto;
    -webkit-animation: animatedgradient 6s ease infinite alternate;
    animation: animatedgradient 6s ease infinite alternate;
    background-size: 300% 300%;
  }
}

#toc {
  @media (min-width: 1025px) {
    display: block;
    position: fixed;
    top: 100px;
    right: 50px;
    max-height: calc(100vh - 200px);
    width: 300px;
  }
}

#onesheet,
#share-controls {
  @media (min-width: 1025px) {
    max-width: calc(100% - 370px);
  }
}

.interstitial {
  border-color: rgba(0, 240, 255, 0.5);
  background-color: rgba(0, 240, 255, 0.05);
  display: flex;
  align-items: center;
}

#toc a.active {
  @apply text-sky-900 font-extrabold;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(5px);
  }

  50% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }

  100% {
    transform: translateX(0);
  }
}

.shake-animation {
  animation: shake 0.8s cubic-bezier(.36, .07, .19, .97) both;
}
/*
 * 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.
 *


 */
