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

@layer base {
  h1 {
    @apply text-4xl lg:text-7xl font-bold;
  }
  h2 {
    @apply text-2xl lg:text-4xl font-bold;
  }
  h3 {
    @apply text-xl lg:text-3xl font-bold;
  }
  h4 {
    @apply text-xl lg:text-2xl font-bold;
  }
  h5 {
    @apply text-lg font-bold;
  }

  input,
  textarea {
    @apply placeholder-leadwell-medium-gray;
  }

  .devise-auth {
    h1 {
      @apply text-4xl font-black my-1.5;
    }
    h2 {
      @apply text-2xl font-bold my-1.5;
    }
    h3 {
      @apply text-xl font-bold my-1.5;
    }
    h4 {
      @apply text-xl font-bold my-1.5;
    }
    h5 {
      @apply text-lg font-bold;
    }

    label {
      @apply inline-block mt-2 mb-1;
    }

    input {
      &[type='text'],
      &[type='password'],
      &[type='email'] {
        @apply block shadow rounded-md border border-gray-200 outline-none px-3 py-2 mt-1 mb-2 w-full;
      }
    }

    input[type='submit'],
    input[type='button'] {
      @apply text-gray-900 bg-gray-100 rounded-lg py-3 px-5 inline-block font-medium cursor-pointer;
    }

    input[type='submit'] {
      @apply bg-leadwell-saturated-blue text-white;
    }

    .links a,
    .link {
      @apply text-leadwell-medium-blue hover:text-leadwell-dark-blue hover:underline;
    }
  }

  .menu {
    @apply flex flex-col items-stretch py-1.5 px-1 bg-white border border-leadwell-light-gray rounded-md text-leadwell-dark-gray shadow-lg;
  }

  .menu hr {
    @apply h-px mx-1 my-1.5 border-0 bg-leadwell-medium-gray;
  }

  .menu__item,
  .menu__heading {
    @apply px-3 rounded-md min-w-40;
  }

  .menu__item {
    @apply py-1 flex flex-row items-center gap-3 text-base font-normal has-[:checked]:bg-leadwell-light-blue text-leadwell-dark-blue;
  }

  .menu__heading ~ .menu__item {
    @apply pl-6;
  }

  .menu__item--selected {
    @apply bg-leadwell-medium-gray/50;
  }

  .menu__heading {
    @apply pt-4 pb-0.5 text-lg font-semibold;
  }

  a.menu__item,
  label.menu__item {
    @apply cursor-pointer hover:bg-leadwell-dark-blue hover:text-white hover:no-underline;
  }

  .blog-content {
    h1 {
      @apply text-4xl text-balance lg:text-5xl font-semibold my-5 text-leadwell-dark-blue;
    }

    h2 {
      @apply text-2xl text-balance lg:text-4xl font-semibold my-4 text-leadwell-dark-blue;
    }

    h3 {
      @apply text-xl text-balance lg:text-3xl font-semibold my-3 text-leadwell-dark-blue;
    }

    h4 {
      @apply text-xl text-balance lg:text-2xl font-semibold my-2 text-leadwell-dark-blue;
    }

    h5 {
      @apply text-lg text-balance font-semibold my-2 text-leadwell-dark-blue;
    }

    h5 {
      @apply text-base text-balance font-semibold my-2 text-leadwell-dark-blue;
    }

    p {
      @apply my-2 text-lg;
    }
  }

  .bg-leadwell-gradient {
    @apply text-white  bg-gradient-to-br from-leadwell-saturated-blue to-leadwell-dark-blue hover:bg-gradient-to-br hover:from-leadwell-light-blue hover:to-leadwell-saturated-blue;
  }

  .group-bg-leadwell-gradient {
    @apply text-white  bg-gradient-to-br from-leadwell-saturated-blue to-leadwell-dark-blue group-hover:bg-gradient-to-br group-hover:from-leadwell-light-blue group-hover:to-leadwell-saturated-blue;
  }

  .video-player > iframe {
    @apply max-w-full aspect-video h-auto rounded-lg;
  }
}
:root {
  --leadwell-white: oklch(100% 0 0);
  --leadwell-light-gray: oklch(96.92% 0.003 247.86);
  --leadwell-medium-gray: oklch(87.3% 0.0025 242.854);
  --leadwell-dark-gray: oklch(32.11% 0 0);

  --leadwell-dark-blue: oklch(35.08% 0.084 244.29);
  --leadwell-medium-blue: oklch(65.04% 0.074 220.6);
  --leadwell-saturated-blue: oklch(69.67% 0.1 214.98);
  --leadwell-faded-blue: oklch(69.08% 0.037 241.7);

  --theme-text-primary: var(--leadwell-dark-gray);
  --theme-text-inverted: var(--leadwell-white);

  --theme-background-primary: var(--leadwell-white);
  --theme-background-secondary: var(--leadwell-light-gray);
  --theme-background-inverted: var(--leadwell-dark-blue);
}

body {
  background-color: var(--theme-background-secondary);
  color: var(--theme-text-primary);
}

a {
  color: var(--leadwell-dark-blue);

  &:hover {
    text-decoration: underline;
  }
}

[popover] {
  padding: 0;
  background: transparent;
  overflow: visible;
}
.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  background-color: WHITE;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: 'Roboto', arial, sans-serif;
  font-size: 14px;
  height: 40px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition:
    background-color 0.218s,
    border-color 0.218s,
    box-shadow 0.218s;
  transition:
    background-color 0.218s,
    border-color 0.218s,
    box-shadow 0.218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity 0.218s;
  transition: opacity 0.218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #ffffff61;
  border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: #303030;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow:
    0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
  box-shadow:
    0 1px 2px 0 rgba(60, 64, 67, 0.3),
    0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #303030;
  opacity: 8%;
}
/*
 * 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.
 *


 */
