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

:root {
  --rgb-yellow: 255, 226, 0;
}

@layer base {
  label[required] {
    @apply flex items-center !important;
  }

  label[required] span {
    @apply inline-block rounded-sm bg-yellow-300 mx-1 px-1.5 sm:px-2;
    @apply text-2xs font-bold tracking-widest leading-4 uppercase;
  }

  @keyframes appear-then-fade {
    0%,100% { opacity: 0; }
    5%,60% { opacity: 1; }
  }
}

@layer components {
  ul.yes li:before {
    @apply content-['✓'];
    @apply text-green-600 text-2xs font-bold leading-4;
    /* align-items: center; */
    /* background: url(/assets/images/general/icon-checkmark.svg) center center/0.55em auto no-repeat; */
    /* border-radius: 100%; */
    /* content: ""; */
    /* display: flex; */
    /* height: 1.175em; */
    /* justify-content: center; */
    /* left: 0; */
    /* line-height: 1; */
    /* pointer-events: none; */
    /* position: absolute; */
    /* top: .1em; */
    /* width: 1.175em; */
  }

  .dot::after {
    @apply w-5 h-5 left-auto -right-3 -top-3;
  }

  .text-highlight {
    background: linear-gradient(90deg, rgba(var(--rgb-yellow), 0) 0, rgba(var(--rgb-yellow), 0.75) 5%, rgba(var(--rgb-yellow), 0.25) 95%, rgba(var(--rgb-yellow), 0) 100%);
    @apply inline px-2 box-decoration-clone;
  }

  .bg-stripes {
    background: repeating-linear-gradient(-45deg, transparent, transparent 5px, #f3f4f6 0, #f3f4f6 10px);
  }

  .link {
    @apply underline cursor-pointer;
    @apply text-indigo-600 hover:text-gray-900 focus:ring-indigo-500;
  }

  nav .link {
    @apply underline-offset-8;
  }

  .badge {
    @apply inline-flex items-center rounded-full px-3 py-0.5 text-sm font-medium;
  }

  .btn {
    @apply inline-flex justify-center rounded-3xl border border-transparent py-2 px-4 text-sm font-medium shadow-sm sm:text-base focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2;
    @apply cursor-pointer;
  }

  .btn-primary {
    @apply btn;
    @apply bg-indigo-600 text-white hover:bg-indigo-700 focus:ring-indigo-500;
  }

  .btn-secondary {
    @apply btn;
    @apply bg-white text-gray-700 border-gray-300 hover:bg-gray-50 ring-1 ring-gray-300;
  }

  .btn-soft {
    @apply btn;
    @apply bg-indigo-50 text-indigo-600 border-indigo-600 hover:bg-indigo-100 focus:ring-indigo-500;
  }

  .field_with_errors > .frm-input {
    @apply border-red-500 focus:border-red-500 focus:ring-red-500;
  }

  .frm-input,
  .frm-select {
    @apply min-w-0 block w-full rounded-md border-gray-300 shadow-sm sm:text-sm focus:border-indigo-500 focus:ring-indigo-500;
  }

  .frm-radio {
    @apply h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-500;
  }

  .frm-checkbox {
    @apply h-4 w-4 rounded-md border-gray-300 text-indigo-600 focus:ring-indigo-500;
  }

  .appear-then-fade {
    animation: appear-then-fade 4s 300ms 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.
 *


 */
