/* Definições gerais do tema */
:root {
  --r-background-color: var(--ada-clarke-black);
  --r-main-font-size: 18px;
  --r-main-font: Fira Code, Helvetica, sans-serif;
  --r-heading-font: Fira Code, Helvetica, sans-serif;
  --r-code-font: Fira Code, Consolas, monospace;
  --r-heading-color: var(--ada-lovelace-green);
  --r-heading-font-weight: 300;
  --r-heading1-size: 1.35em;
  --r-heading2-size: 1.2em;
  --r-heading3-size: 1.1em;
  --r-heading4-size: 1em;
  --r-heading-text-transform: normal;
  --r-link-color: var(--ada-hamilton-blue);
  --r-link-color-hover: #7a99f1;
  --r-link-color-dark: #314da6;
  --ada-sans-serif-font: Ubuntu, Helvetica, sans-serif;
  --ada-clarke-black: #181c23;
  --ada-lovelace-green: #a6f750;
  --ada-hamilton-blue: #2371ff;
  --ada-hopper-white: #fffbf0;
  --ada-gray: #acacaa;
  --ada-warning: #d2a60a;
  --ada-gray-one: #0f1216;
}
.reveal ::selection {
  background: var(--ada-hamilton-blue);
  color: var(--ada-hopper-white);
}
.reveal section {
  padding-bottom: 90px; /* Compensando o espaço do logo embaixo */
}
.reveal .slide-background {
  background: #181c25 url(./bg.jpg) center center no-repeat;
  background-size: contain;
}
.present h1:not(.pretitle, .subtitle, .code),
.present h2:not(.pretitle, .subtitle, .code),
.present h3:not(.pretitle, .subtitle, .code),
.present h4:not(.pretitle, .subtitle, .code),
.present h5:not(.pretitle, .subtitle, .code),
.present h6:not(.pretitle, .subtitle, .code) {
  font-family: var(--ada-sans-serif-font);
  margin-bottom: 40px;
}
.present > h2:not(.subtitle),
.present > h3:not(.subtitle),
.present > h4:not(.subtitle),
.present > h5:not(.subtitle),
.present > h6:not(.subtitle) {
  margin-top: 0;
}
h1.pretitle,
h2.pretitle,
h3.pretitle,
h4.pretitle,
h5.pretitle {
  font-family: var(--ada-sans-serif-font);
  font-size: 0.9em;
  opacity: 0.4;
  margin-bottom: 0;
}
h2.subtitle,
h3.subtitle,
h4.subtitle,
h5.subtitle {
  color: var(--ada-hopper-white);
  font-size: 0.8em;
  margin-top: -36px;
  margin-bottom: 40px;
}
.reveal .slides {
  text-align: left;
}
.reveal blockquote {
  margin-left: 0;
  font-family: var(--ada-sans-serif-font);
  padding: 5px 10px;
}
.h3 {
  font-size: var(--r-heading3-size) !important;
}
.reveal .slides section .fragment.grow.visible {
  transform: none;
  font-size: 1.1em;
  line-height: 1;
  font-weight: bold;
}
.reveal ul {
  display: block;
}
.margin > li + li {
  margin-top: 1em;
}
.present .margin + h3 {
  margin-top: 2em;
}
pre.code-wrapper {
  margin-left: 0;
}
code.hljs {
  font-size: 1.3em;
  line-height: 1.45;
  scrollbar-color: var(--ada-clarke-black) #282a36;
}
code.hljs > span.code {
  font-style: italic;
  color: var(--ada-warning);
}
code:not(.hljs) {
  font-size: 0.95em;
  padding: 3px 6px;
  color: var(--ada-warning);
  background-color: var(--ada-gray-one);
}
kbd {
  font-size: 0.95em;
  padding: 3px 6px;
  color: var(--ada-hopper-white);
  background-color: var(--ada-gray-one);
}
.badge {
  vertical-align: middle;
  font-size: 0.65em;
  padding: 3px 6px;
  color: var(--ada-gray);
  background-color: var(--ada-gray-one);
  font-variant: small-caps;
}

/**
 * Layouts dos slides
 */
/* Primeiro slide */
.slide-background.slide-first {
  background-image: linear-gradient(90deg, #25302a 0%, #1a2535 100%);
}
.slide-background.slide-first > .slide-background-content {
  background: url(./bg-first.jpg) center center no-repeat;
  background-size: contain;
}
.slide-first > .slide-wrapper,
.slide-title > .slide-wrapper {
  width: 50%;
  margin-left: 50%;
  padding-top: 50vh;
}
.slide-first > .slide-wrapper > h1,
.slide-first > .slide-wrapper > h2,
.slide-title > .slide-wrapper > h1,
.slide-title > .slide-wrapper > h2 {
  color: var(--ada-hopper-white);
}
.slide-first > .slide-wrapper > h1,
.slide-title > .slide-wrapper > h1 {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 15px;
  line-height: 1;
  border-bottom: 2px var(--ada-lovelace-green) solid;
}
.slide-first > .slide-wrapper > h1:after,
.slide-title > .slide-wrapper > h1:after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 25%;
  height: 100%;
  border-bottom: 2px var(--ada-hamilton-blue) solid;
}
.slide-first > .slide-wrapper > h2,
.slide-title > .slide-wrapper > h2 {
  font-size: 0.9em;
  font-weight: 300;
}
/* Slides de título */
.slide-background.slide-title {
  background-image: linear-gradient(90deg, #1f2e41 20%, #2d3d30 80%);
}
.slide-background.slide-title > .slide-background-content {
  background: url(./bg-title.jpg) center center no-repeat;
  background-size: contain;
}
.slide-title > .slide-wrapper > h1 {
  font-family: var(--ada-sans-serif-font);
}
@media print {
  html, body {
    background-color: #181c25;
  }
  .reveal .slide-background,
  .slide-background.slide-first > .slide-background-content,
  .slide-background.slide-title > .slide-background-content {
    background-size: cover;
  }
}
@media (max-width: 1280px) {
  .reveal .slide-background,
  .slide-background.slide-first > .slide-background-content,
  .slide-background.slide-title > .slide-background-content {
    background-size: cover;
  }
}

/* Classes auxiliares: margens e posicionamento */
.d-none {
  display: none !important;
}
.d-flex {
  display: flex !important;
}
.d-flex.half-columns > * {
  flex: 50% 1 0;
}
.d-flex.third-columns > * {
  flex: 33.33% 1 0;
}
.justify-between {
  justify-content: space-between;
}
.align-self-center {
  align-self: center;
}
.d-grid {
  display: grid;
  row-gap: 5px;
}
.d-grid.grid-half {
  grid-template-columns: 1fr 1fr;
  column-gap: 1em;
}
.my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.mt-0 {
  margin-top: 0 !important;
}
.mt-0_5 {
  margin-top: 0.5em !important;
}
.mt-1 {
  margin-top: 1em !important;
}
.mt-2 {
  margin-top: 2em !important;
}
.mt-4 {
  margin-top: 4em !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 1em !important;
}
.mb-2 {
  margin-bottom: 2em !important;
}
.mb-3 {
  margin-bottom: 3em !important;
}
.mb-4 {
  margin-bottom: 4em !important;
}
.mr-1 {
  margin-right: 1em !important;
}
.mr-5 {
  margin-right: 5em !important;
}
.ml-1 {
  margin-left: 1em !important;
}
.ml-2 {
  margin-left: 2em !important;
}
.py-1,
tr.py-1 > td {
  padding-top: 1em !important;
  padding-bottom: 1em !important;
}
.va-middle {
  vertical-align: middle;
}
.d-grid.va-middle {
  align-items: center;
}
.rounded {
  border-radius: 50%;
}

/* Classes auxiliares: tipografia */
.fw-bold {
  font-weight: 600 !important;
}
.ls-compact {
  letter-spacing: -1px !important;
}
.small {
  font-size: 0.9em;
}
.smaller {
  font-size: 0.8em;
}
.lead {
  font-size: 1.25em;
}
.text-center {
  text-align: center;
}
.nowrap {
  white-space: nowrap;
}

/* Classes auxiliares: cores */
svg .fill {
  fill: var(--ada-lovelace-green);
}
svg .fill-fg {
  fill: var(--r-background-color);
}
svg .fill-gray {
  fill: var(--ada-gray);
}
.text-white {
  color: var(--ada-hopper-white) !important;
}
.text-gray {
  color: var(--ada-gray) !important;
}
.text-warning {
  color: var(--ada-warning) !important;
}

/* Timeline */
ul.timeline {
  margin-left: 0;
  padding-left: 0;
  list-style-type: none;
}
ul.timeline > li {
  position: relative;
  margin: 0;
  padding: 20px 0 20px 40px;
  border-left: 1px white solid;
}
ul.timeline > li:before {
  position: absolute;
  top: 22px;
  left: 0;
  content: "";
  width: 12px;
  height: 12px;
  margin-left: -10px;
  border-radius: 50%;
  background-color: var(--ada-hamilton-blue);
  border: 4px var(--ada-hopper-white) solid;
}
ul.timeline > li > p {
  margin: 0;
}
ul.timeline > li > p:first-child {
  color: var(--ada-lovelace-green);
  margin-bottom: 0;
}

/* Index */
table.index > thead > tr > th,
table.index > tbody > tr > td {
  color: var(--ada-gray);
  border-color: rgba(255, 255, 255, 0.25);
}
table.index > tbody > tr > td:not(:first-child) {
  border-left: 1px rgba(255, 255, 255, 0.25) solid;
}
table.index > tbody > tr > td {
  padding: 0.75em 0.5em;
}
table.index > tbody > tr > td > span:first-child {
  display: block;
  margin-bottom: 0.5em;
  font-size: 0.8em;
  color: var(--ada-gray);
}
table.index > tbody > tr > td > a {
  display: block;
}
table.index > tbody > tr > td > p:not(.small),
table.index > tbody > tr > td > a {
  margin: 0;
  letter-spacing: -1px;
}
table.index > tbody > tr > td > p.small {
  margin: 0;
  font-size: 0.75em;
  line-height: 1.25;
}
table.index > tbody > tr > td > p.small + p:not(.small),
table.index > tbody > tr > td > p.small + a {
  margin-top: 1em;
}
table.index > tbody > tr > td:nth-child(1),
table.index > tbody > tr > td:nth-child(2),
table.index > tbody > tr > td:nth-child(4) {
  width: 31%;
  color: var(--ada-hopper-white);
}

/* Definition list */
.reveal .dl > h3 {
  margin-top: 2em;
  margin-bottom: 0;
}
.reveal .dl > h3 + p {
  margin-top: 0.5em;
}
.reveal .dl > p + a {
  font-size: 0.9em;
}

/* Cloud */
#img-vinicius-cloud {
  width: 20px;
  height: 20px;
  margin: 0;
  vertical-align: middle;
  border-radius: 50%;
}
