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

@layer base {

  label {
    @apply block text-sm font-medium leading-6 text-gray-900;
  }

  input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"], select, textarea {
    @apply block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-inset focus:ring-tertiary sm:text-sm sm:leading-6;
  }

  textarea {
    @apply h-40;
  }

  h1 {
    @apply text-xl md:text-2xl font-bold text-gray-900;
  }

  h2 {
    @apply text-lg md:text-xl font-bold text-gray-900;
  }

  h3 {
    @apply text-base md:text-lg font-bold text-gray-900;
  }

  a {
    @apply text-tertiary hover:text-primary;
  }

}

@layer components {

  .button {
    @apply flex w-full justify-center rounded-md bg-primary px-3 py-1.5 text-sm font-semibold leading-6 text-white hover:text-white shadow-sm hover:bg-tertiary cursor-pointer;
  }

  .errors {
    @apply bg-red-400 p-3 rounded-lg border text-white border-red-600 mb-4;
  }

  .survey-question {
    @apply flex flex-wrap justify-center items-center mb-8;
  }

  .survey-question .question {
    @apply w-full mb-2 text-center text-lg;
  }

  .survey-question .answer span {
    @apply bg-dark text-white rounded-lg p-3 mx-2 cursor-pointer w-24 text-center hover:opacity-75 block;
  }

  .survey-question .answer input {
    @apply hidden;
  }

  .pagination {
    @apply flex flex-nowrap justify-between items-center;
  }

}
/*
 * 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.
 *


 */
