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

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;

    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;

    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;

    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;

    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;

    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;

    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;

    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;

    --radius: 0.5rem;
  }

  .dark {
    --background: 0 0% 9%;
    --foreground: 0 0% 98%;

    --card: 0 0% 9%;
    --card-foreground: 0 0% 98%;

    --popover: 0 0% 9%;
    --popover-foreground: 0 0% 98%;

    --primary: 0 0% 98%;
    --primary-foreground: 0 0% 100%;

    --secondary: 0 0% 25.1%;
    --secondary-foreground: 0 0% 98%;

    --muted: 0 0% 25.1%;
    --muted-foreground: 0 0% 63.9%;

    --accent: 0 0% 25.1%;
    --accent-foreground: 0 0% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;

    --border: 0 0% 25.1%;
    --input: 0 0% 25.1%;
    --ring: 0 0% 83.1%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground relative antialiased;
  }
}

.chat-message em {
  @apply italic opacity-60;
}

.article {
  @apply w-full max-w-2xl mx-auto;
}
.article-body {
  @apply text-gray-300 text-base leading-loose;
}
.article-body p {
  @apply mb-4 text-base leading-loose;
}
.article h1,
.article-body h1 {
  @apply text-2xl lg:text-4xl font-medium mt-8 lg:mt-12 mb-4 text-primary;
  line-height: 1.5;
}
.article h1.article-title {
  @apply mt-6;
}
.article .article-feature-image {
  @apply block min-w-full rounded-md shadow-xl mt-4 max-h-[400px] object-cover object-top;
}
.article-body h2 {
  @apply text-2xl font-medium mt-8 lg:mt-12 mb-4 text-primary;
}
.article-body h3 {
  @apply text-xl font-medium mt-8 lg:mt-12 mb-4 text-primary;
}
.article-body pre {
  @apply bg-gray-800 text-gray-200 rounded px-2 py-1 mb-4;
}
.article-body pre code {
  @apply p-0 bg-transparent;
}
.article-body code {
  @apply bg-gray-800 text-gray-200 rounded px-2 py-1;
}
.article-body a {
  @apply text-rose-400 hover:underline;
}
.article-body hr {
  @apply my-8 border-gray-800 border-t;
}
.article-body ul {
  @apply list-disc list-inside;
}
.article-body ol {
  @apply list-decimal list-inside;
}
.article-body ul,
.article-body ol {
  @apply space-y-3;
}

.article-body .kg-image-card {
  @apply block min-w-full rounded-md mt-6;
}
.article-body .kg-image-card .kg-image {
  @apply rounded-md shadow-xl;
}

.bg-pattern-podium {
  @apply bg-background;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='24' viewBox='0 0 88 24'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='autumn' fill='%232a2a2a' fill-opacity='0.4'%3E%3Cpath d='M10 0l30 15 2 1V2.18A10 10 0 0 0 41.76 0H39.7a8 8 0 0 1 .3 2.18v10.58L14.47 0H10zm31.76 24a10 10 0 0 0-5.29-6.76L4 1 2 0v13.82a10 10 0 0 0 5.53 8.94L10 24h4.47l-6.05-3.02A8 8 0 0 1 4 13.82V3.24l31.58 15.78A8 8 0 0 1 39.7 24h2.06zM78 24l2.47-1.24A10 10 0 0 0 86 13.82V0l-2 1-32.47 16.24A10 10 0 0 0 46.24 24h2.06a8 8 0 0 1 4.12-4.98L84 3.24v10.58a8 8 0 0 1-4.42 7.16L73.53 24H78zm0-24L48 15l-2 1V2.18A10 10 0 0 1 46.24 0h2.06a8 8 0 0 0-.3 2.18v10.58L73.53 0H78z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.clip-001 {
  -webkit-clip-path: polygon(
    50% 0,
    100% 0,
    100% 25%,
    100% 100%,
    68% 100%,
    32% 100%,
    0 100%,
    0 25%,
    20% 0
  );
  clip-path: polygon(
    50% 0,
    100% 0,
    100% 25%,
    100% 100%,
    68% 100%,
    32% 100%,
    0 100%,
    0 25%,
    20% 0
  );
}
.clip-002 {
  -webkit-clip-path: polygon(
    50% 0,
    85% 0,
    100% 17%,
    100% 100%,
    68% 100%,
    32% 100%,
    0 100%,
    0 17%,
    16% 0
  );
  clip-path: polygon(
    50% 0,
    85% 0,
    100% 17%,
    100% 100%,
    68% 100%,
    32% 100%,
    0 100%,
    0 17%,
    16% 0
  );
}
.clip-003 {
  -webkit-clip-path: polygon(
    50% 0,
    85% 0,
    100% 25%,
    100% 100%,
    68% 100%,
    32% 100%,
    0 100%,
    0 0,
    20% 0
  );
  clip-path: polygon(
    50% 0,
    85% 0,
    100% 25%,
    100% 100%,
    68% 100%,
    32% 100%,
    0 100%,
    0 0,
    20% 0
  );
}

[data-rmiz-portal] [data-rmiz-modal-overlay="visible"] {
  @apply bg-black bg-opacity-50 backdrop-blur-sm;
}

details summary {
  list-style-type: none;
}

.scrollbar-hidden {
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
}

.scrollbar-hidden::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.cmai-card {
  @apply transition-all duration-500;
}

.cmai-card.active {
  @apply !scale-100;
}

.cmai-card .card-image {
  @apply rounded-3xl;
}

.cmai-card.active .card-image {
  @apply !scale-100;
}

.cmai-card.active .card-image {
  @apply border-[4px] border-rose-500;
}

.cmai-card.inactive {
  @apply opacity-20;
}
/*
 * 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.
 *


 */
