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

@layer base {
  h1, h2 {
    /* font-family: 'Bebas Neue'; */
    @apply font-header text-5xl w-fit;
  }

  h3, h4, h5 {
    color: #333;
  }

  p {
    color: #5A5A5A;
  }

  input[type='text'], textarea {
    border-width: 0px !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
  }

  ::placeholder, .choices__placeholder-custom {
    color: rgba(0,0,0,.3) !important;
    font-size: .875rem;
    line-height: 1.2;
  }

  .docs h1 {
    @apply text-4xl font-bold mb-4;
  }

  .docs h2 {
    @apply text-xl font-sans font-bold mb-4 pt-6;
  }

  .docs h3 {
    @apply text-lg font-semibold mb-3 pt-2;
  }

  .docs h4 {
    @apply text-base font-semibold mb-3 pt-2;
  }

  .docs p {
    @apply text-base my-2;
  }

  .docs pre {
    @apply my-4 mx-auto w-full rounded-md shadow text-sm overflow-scroll;
  }

  .docs a {
    color: #6E45E2;
    text-decoration-line: underline !important;
    text-underline-offset: 4px;
  }

  .docs li {
    @apply text-base;
    list-style-position: inside;
  }

  .docs ul > li {
    list-style-type: disc;
  }

  .docs ul > li > ul > li, .docs ol>li>ul>li {
    list-style-type: circle;
    margin-left: 1.5rem;
  }

  .docs ul > li > ul > li > ul > li {
    list-style-type: square;
    margin-left: 3rem;
  }

  .docs ol > li {
    list-style-type: decimal;
  }

  .docs ol > li > ol > li {
    list-style-type: lower-alpha;
    margin-left: 1.5rem;
  }

  .docs ol > li > ol > li > ol > li {
    list-style-type: lower-roman;
    margin-left: 3rem;
  }

  .docs img:not(.zoomed) {
    object-fit: contain;
    cursor: zoom-in;
    width: 80%;

    @media (max-width: 768px) {
      width: 100%;
    }
  }

  .docs video {
    object-fit: contain;
    margin-left: 2rem;
    width: 70%;

    @media (max-width: 768px) {
      width: 100%;
      margin-left: 0;
    }
  }

  .docs code:not(pre code) {
    @apply bg-yellow-600/10 rounded-md px-2 py-0.5;
  }

  .docs blockquote {
    @apply my-4 pl-4 border-l-4 border-gray-200 text-gray-600 italic;
  }
  /* a:not(.btn):hover {
    @apply text-turbine-linear;
  } */
}

@layer components {
  .btn {
    @apply cursor-pointer py-2.5 md:py-2 px-4 rounded-lg;
  }

  .btn:active {
    @apply scale-[0.98] transition-transform;
  }

  .btn-primary {
    @apply bg-turbine-linear text-white;
  }

  .faq a, #flash a {
    color: #6E45E2 !important;
    text-decoration-line: underline !important;
    text-underline-offset: 2px !important;
  }

  .faq a:hover {
    @apply text-turbine-linear;
    text-decoration-color: #6E45E2;
  }

  a.link:hover {
    @apply text-turbine-linear;
  }

  .form-field {
    @apply grid grid-cols-1 md:grid-cols-3 gap-2 md:gap-8 relative mb-4 md:mb-8;
  }

  .form-label {
    @apply text-[#5A5A5A] text-sm font-semibold md:pt-2;
  }

  .form-control, .form-select {
    @apply md:col-span-2;
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.15);
  }

  /* .field_with_errors:not(:has(label)) { */
  label.error {
    @apply text-red-400;
  }

  .error-msg {
    @apply absolute right-1 text-red-400 italic;
    bottom: -1.25rem;
    font-size: 0.75rem;
  }
  /* choices js classes */
  .choices__outer-custom {
    border-radius: 6px !important;
    margin-bottom: 0 !important;
  }

  .choices__inner-custom {
    background: #fff !important;
    border-radius: 6px !important;
    border-width: 0 !important;
    min-height: unset !important;
  }

  .choices__list--single-custom {
    padding: 4px 16px 4px 4px !important;
  }

  .choices__list--dropdown-custom {
    box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.15);
    border-radius: 6px !important;
    margin-top: 0 !important;
    border-width: 0 !important;
  }

  .privacy-policy h1 {
    @apply text-2xl font-bold font-sans;
  }

  .privacy-policy h2 {
  @apply text-xl font-bold font-sans;
  }

  .privacy-policy h3 {
    @apply text-base mb-1 font-sans;
  }

  .privacy-policy p {
    @apply text-sm mb-2;
  }
}
.footer-links a {
  position: relative;
}

.footer-links a:not(:last-child):after {
  content: "·";
  position: absolute;
  right: -0.65rem;
}

/* Add this CSS */
details>summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Adjusts space between caret and text - modify value as needed */
}

/* Optional: If you want to customize the caret itself */
details>summary::marker {
  margin-right: 0.5rem;
  /* Alternative way to add spacing */
}

/* If you want even more control, you can remove the default marker and add your own */
details>summary {
  list-style: none;
  /* Removes default marker */
}

details>summary::before {
  content: "▶";
  color: rgba(0,0,0,0.6);
  font-size: 0.65rem;
  /* Custom caret icon */
  display: inline-block;
  margin-right: 0.75rem;
  /* Space between custom caret and text */
  transition: transform 0.2s;
  /* Optional: smooth rotation animation */
}

details[open]>summary::before {
  transform: rotate(90deg);
  /* Rotates caret when details is open */
}

/* Add transition effects for the content */
details>div {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

details[open]>div {
  opacity: 1;
}
@import url("https://papercrane-general.oss-cn-shanghai.aliyuncs.com/turbine_assets/workshops/reveal.css");

/* @import "reveal.js/dist/reveal.css"; */
/* @import "reveal.js/dist/theme/league.css"; */

/* custom theme below */

/**
 * White theme for reveal.js. This is the opposite of the 'black' theme.
 *
 * By Hakim El Hattab, http://hakim.se
 */
/* @import url(https://turbine.papercranetech.cn/fonts/source-sans-pro/source-sans-pro.css); */

section.has-dark-background,
section.has-dark-background h1,
section.has-dark-background h2,
section.has-dark-background h3,
section.has-dark-background h4,
section.has-dark-background h5,
section.has-dark-background h6 {
  color: #fff;
}

/*********************************************
 * GLOBAL STYLES
 *********************************************/
:root {
  --r-background-color: #fff;
  --r-main-font: 'Open Sans', Helvetica, sans-serif;
  --r-main-font-size: 42px;
  --r-list-font-size: 36px;
  --r-main-color: #333;
  --r-block-margin: 20px;
  --r-heading-margin: 0 0 20px 0;
  --r-heading-font: 'Bebas Neue', Helvetica, sans-serif;
  --r-heading-color: #333;
  --r-heading-line-height: 1.2;
  --r-heading-letter-spacing: normal;
  --r-heading-text-transform: uppercase;
  --r-heading-text-shadow: none;
  --r-heading-font-weight: 600;
  --r-heading1-text-shadow: none;
  --r-heading1-size: 2.5em;
  --r-heading2-size: 1.6em;
  --r-heading3-size: 1.3em;
  --r-heading4-size: 1em;
  --r-heading-text-aling: left;
  --r-code-font: monospace;
  --r-link-color: #6E45E2;
  --r-link-color-dark: #6E45E2;
  --r-link-color-hover: #88D3CE;
  --r-selection-background-color: rgba(136, 211, 206, 0.8);
  --r-selection-color: #fff;
  --r-overlay-element-bg-color: 0, 0, 0;
  --r-overlay-element-fg-color: 240, 240, 240;
}

.reveal-viewport {
  background: #fff;
  background-color: var(--r-background-color);
}

.reveal {
  font-family: var(--r-main-font);
  font-size: var(--r-main-font-size);
  font-weight: normal;
  color: var(--r-main-color);
}

.reveal ::selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
  text-shadow: none;
}

.reveal ::-moz-selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
  text-shadow: none;
}

.reveal .slides section,
.reveal .slides section>section {
  line-height: 1.3;
  font-weight: inherit;
}

.reveal .slides section.half {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.reveal .slides section.half>img {
  width: 48%;
  height: 100%;
  object-fit: contain;
}

.reveal .slides section.half>section {
  width: 48%;
}

/*********************************************
 * HEADERS
 *********************************************/
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  margin: var(--r-heading-margin);
  color: var(--r-heading-color);
  font-family: var(--r-heading-font);
  font-weight: var(--r-heading-font-weight);
  line-height: var(--r-heading-line-height);
  letter-spacing: var(--r-heading-letter-spacing);
  text-transform: var(--r-heading-text-transform);
  text-shadow: var(--r-heading-text-shadow);
  word-wrap: break-word;
  text-align: var(--r-heading-text-aling);
}

.reveal h1 {
  font-size: var(--r-heading1-size);
}

.reveal h2 {
  font-size: var(--r-heading2-size);
}

.reveal h3 {
  font-size: var(--r-heading3-size);
}

.reveal h4 {
  font-size: var(--r-heading4-size);
}

.reveal h1 {
  text-shadow: var(--r-heading1-text-shadow);
}

/*********************************************
 * OTHER
 *********************************************/
.reveal p {
  margin: var(--r-block-margin) 0;
  line-height: 1.3;
  text-align: left;
}

/* Remove trailing margins after titles */
.reveal h1:last-child,
.reveal h2:last-child,
.reveal h3:last-child,
.reveal h4:last-child,
.reveal h5:last-child,
.reveal h6:last-child {
  margin-bottom: 0;
}

/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
  max-width: 95%;
  max-height: 95%;
}

.reveal strong,
.reveal b {
  font-weight: bold;
}

.reveal em {
  font-style: italic;
}

.reveal ol,
.reveal dl,
.reveal ul {
  display: inline-block;
  text-align: left;
  margin: 0 0 0 1em;
  font-size: var(--r-list-font-size);
}

.reveal ol {
  list-style-type: decimal;
}

.reveal ul {
  list-style-type: disc;
}

.reveal ul ul {
  list-style-type: square;
}

.reveal ul ul ul {
  list-style-type: circle;
}

.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
  display: block;
  margin-left: 40px;
}

.reveal dt {
  font-weight: bold;
}

.reveal dd {
  margin-left: 40px;
}

.reveal blockquote {
  display: block;
  position: relative;
  width: 70%;
  margin: var(--r-block-margin) auto;
  padding: 5px;
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
}

.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
  display: inline-block;
}

.reveal q {
  font-style: italic;
}

.reveal pre {
  display: block;
  position: relative;
  width: 90%;
  margin: var(--r-block-margin) auto;
  text-align: left;
  font-size: 0.55em;
  font-family: var(--r-code-font);
  line-height: 1.2em;
  word-wrap: break-word;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

.reveal code {
  font-family: var(--r-code-font);
  text-transform: none;
  tab-size: 2;
}

.reveal pre code {
  display: block;
  padding: 5px;
  overflow: auto;
  max-height: 400px;
  word-wrap: normal;
}

.reveal .code-wrapper {
  white-space: normal;
}

.reveal .code-wrapper code {
  white-space: pre;
}

.reveal table {
  margin: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.reveal table th {
  font-weight: bold;
}

.reveal table th,
.reveal table td {
  text-align: left;
  padding: 0.2em 0.5em 0.2em 0.5em;
  border-bottom: 1px solid;
}

.reveal table th[align=center],
.reveal table td[align=center] {
  text-align: center;
}

.reveal table th[align=right],
.reveal table td[align=right] {
  text-align: right;
}

.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
  border-bottom: none;
}

.reveal sup {
  vertical-align: super;
  font-size: smaller;
}

.reveal sub {
  vertical-align: sub;
  font-size: smaller;
}

.reveal small {
  display: inline-block;
  font-size: 0.6em;
  line-height: 1.2em;
  vertical-align: top;
}

.reveal small * {
  vertical-align: top;
}

.reveal img {
  margin: var(--r-block-margin) 0;
}

/*********************************************
 * LINKS
 *********************************************/
.reveal a {
  color: var(--r-link-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

.reveal a:hover {
  color: var(--r-link-color-hover);
  text-shadow: none;
  border: none;
}

.reveal .roll span:after {
  color: #fff;
  background: var(--r-link-color-dark);
}

/*********************************************
 * Frame helper
 *********************************************/
.reveal .r-frame {
  border: 4px solid var(--r-main-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.reveal a .r-frame {
  transition: all 0.15s linear;
}

.reveal a:hover .r-frame {
  border-color: var(--r-link-color);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
}

/*********************************************
 * NAVIGATION CONTROLS
 *********************************************/
.reveal .controls {
  color: var(--r-link-color);
}

/*********************************************
 * PROGRESS BAR
 *********************************************/
.reveal .progress {
  background: rgba(0, 0, 0, 0.2);
  color: var(--r-link-color);
}

/*********************************************
 * PRINT BACKGROUND
 *********************************************/
@media print {
  .backgrounds {
    background-color: var(--r-background-color);
  }
}
/*
 * 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.
 *


 */
 @import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

 @font-face {
   font-family: 'Bebas Neue';
   src: url('https://papercrane-general.oss-cn-shanghai.aliyuncs.com/fonts/BebasNeue-Regular.ttf') format('truetype');
   font-weight: normal;
   font-style: normal;
 }

 /* Change class name to .scroll-reveal so it doesn't conflict with reveal.js */
 .scroll-reveal {
   opacity: 0;
   transform: translateY(20px);
   transition: 1s cubic-bezier(0.5, 0, 0, 1);
   transition-property: opacity, transform;
 }

 .scroll-reveal.in {
   opacity: 1;
   transform: none;
 }

 /* @import "reveal.css"; */
