@tailwind utilities;

/* Define theme variables */
:root {
  --slidev-theme-primary: #87B1EB;
  --slidev-theme-accent: rgba(255, 255, 255, 0); /*  #20a808 */
  --slidev-theme-text: #333333;
  --slidev-theme-text-dark: #ffffff;
  --slidev-theme-background: #F3F6FE;
  --slidev-theme-background-dark: #212B36;

  /* Add font family variable */
  --slidev-theme-font-family: 'Avenir', system-ui, sans-serif;
}

html:not(.dark) #slide-content {
  background-color: var(--slidev-theme-background);
  color: var(--slidev-theme-text);
}

/* Style all links with the accent color */
a {
  color: var(--slidev-theme-accent);
  text-decoration: none;
}

a:hover {
  color: var(--slidev-theme-accent);
  text-decoration: underline;
}

/* Apply font family globally */
* {
  font-family: var(--slidev-theme-font-family) !important;
}

.slidev-layout.cover,
.slidev-layout.intro {
  height: 100%;
  display: grid;

  h1 {
    font-size: 3rem;
    line-height: 5rem;
  }

  h1 + p {
    margin-top: -0.5rem;
    opacity: 0.7;
    margin-bottom: 1rem;
  }

  p + h2,
  ul + h2,
  table + h2 {
    margin-top: 2.5rem;
  }
}

.slidev-layout.new-section {
  height: 100%;
  display: grid;
}

.dark #slide-content {
  background-color: var(--slidev-theme-background-dark);
  color: var(--slidev-theme-text-dark);
}



.slidev-layout h1 {
  font-size: 2.5rem;
  margin: 0;
  margin-bottom: 1.25rem !important;
  line-height: 1 !important;
  font-weight: 200;
}
.slidev-layout h2 {
  margin: 0;
  margin-bottom: 0.875rem !important;
  line-height: 1 !important;
  font-weight: 600;
}
.slidev-layout h3,
.slidev-layout h4,
.slidev-layout h5,
.slidev-layout h6 {
  margin: 0;
  margin-bottom: 0.725rem !important;
  line-height: 1 !important;
}

.slidev-layout ul {
  list-style: square;
  margin-bottom: 0.75rem !important;
  font-size: 0.875em;
  line-height: 1.6;
}

.slidev-layout ol {
  margin-bottom: 0.75rem !important;
  font-size: 0.875em;
  line-height: 1.6;
}

.slidev-layout li {
  line-height: 1.4;
}

.slidev-layout p {
  margin-top: 0;
  margin-bottom: 0.75rem !important;
  font-size: 0.9em;
  line-height: 1.4;
}

.slidev-layout table {
  font-size: 0.6em;
  line-height: 1;
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.slidev-layout table th,
.slidev-layout table td {
  padding: 0.4rem 0.75rem;
  border-right: 1px solid rgba(128, 128, 128, 0.2);
}

.slidev-layout table th {
  font-weight: 600;
}

.slidev-layout table th:first-child,
.slidev-layout table td:first-child {
  width: 20%; /* Give more space to first column */
}

.slidev-layout table th:not(:first-child),
.slidev-layout table td:not(:first-child) {
  width: calc(80% / 6); /* Distribute remaining space evenly */
  text-align: center;
}

.slidev-layout table th:last-child,
.slidev-layout table td:last-child {
  border-right: none;
}

.fixed.flex.flex-wrap.text-xl.p-2.gap-1.rounded-md.bg-main.shadow.transition-opacity.duration-200.z-20.border.border-main {
  display: none;
}


/* Small tag styling for disclaimers */
.slidev-layout small {
  font-size: 0.6em;
  line-height: 1.2;
  opacity: 0.8;
}

/* Remove special styling from anchor tags */
.slidev-layout a {
  color: inherit;
  text-decoration: none;
}

/* Table column sizing - give first column more space */
.slidev-layout table {
  table-layout: fixed;
  width: 100%;
}

.slidev-layout table th:first-child,
.slidev-layout table td:first-child {
  width: 25%;
}

.slidev-layout table th:not(:first-child),
.slidev-layout table td:not(:first-child) {
  width: calc(75% / 8);
}

/* Custom cursor for the entire presentation */
* {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='3' cy='3' r='3' fill='%23FB7879'/%3E%3C/svg%3E") 3 3, none !important;
}
