@import "theme.css";
@import "variables.css";

body {
  --header-background: var(--ts3d-dk-grey);
}

@media only screen and (min-width: 768px) {
  body {
    --header-background: var(--content-bg) !important;
  }
}

a:not(.btn):active {
  text-decoration: underline;
}

video {
  width: 100%;
  max-width: 750px;
}

#back-banner {
  padding-bottom: 10px;
  padding-top: 10px;
  font-size: small;
  font-weight: bold;
  line-height: 13px;
  min-height: 12px;
  background-color: red;
  color: white;
  width: 100%;
  top: 0px;
  text-align: center;
  font-family: OpenSans, sans-serif;
}

#back-banner a {
  color: white;
}

.wy-nav-side {
  background: #333;
  padding-bottom: 0;
}

.wy-nav-content {
  max-width: 100%
}

.wy-nav-content a {
  color: var(--ts3d-lt-blue);
}

.wy-nav-content a:hover,
.wy-nav-content a:active {
  color: var(--ts3d-dk-blue);
}


.wy-nav-content .rst-content footer {
  margin-top: auto;
}

.wy-side-nav-search {
  position:fixed;
  width: var(--sidebar-width);
  background-color: var(--content-bg);
}
.wy-side-nav-search .logo {
  all: unset;
  max-width: 100%;
}

@media only screen and (min-width: 768px) {
  .wy-side-nav-search>a {
    color: #333;
  }

  .wy-side-nav-search>a:hover {
    color: var(--ts3d-dk-blue);
  }
}

.scrollToTopBtn {
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 48px;
  width: 30px;
  position: fixed;
  bottom: 10px;
  left: auto;
  right: 10px;
  z-index: 100;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.5s ease
}

.showBtn {
  opacity: 1;
  transform: translateY(0)
}



h1 {
  font-size: 40px;
  font-weight: normal
}

h2 {
  font-size: 30px;
  font-weight: normal
}

h3 {
  font-size: 20px;
  font-weight: normal
}

h4 {
  font-size: 18px;
  font-weight: normal
}

h5 {
  font-size: 16px;
  font-weight: normal
}

p {
  font-size: 16px;
  font-weight: regular
}

.wy-table-responsive th {
  white-space: normal;
}
.wy-menu-vertical{
  overflow-y: auto;
  overflow-x:hidden;
}

.wy-menu-vertical {
  padding-bottom: 2rem;
}

.wy-menu-vertical li button.toctree-expand {
  color: #d9d9d9;
}

html.writer-html4 .rst-content dl:not(.docutils) dl:not(.field-list)>dt,
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple) dl:not(.field-list)>dt {
  border-left: 0px;
}



html.writer-html4 .rst-content dl:not(.docutils)>dt,
html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)>dt {
  border-top: 0px;
}

/* DOC-2716 */
.rst-content a code.xref {
  all: inherit;
}

/* DOC-2967 */
.rst-content div[class^=highlight],
.rst-content pre.literal-block {
  display: grid;
}

@media screen and (min-width: 1100px) {
  .wy-nav-content {
    max-width: 80%
  }
}

.linkbox_main {
  background-color: #333;
  border-radius: 6px;
  border: 3px solid #ddd;
  color: #d9d9d9;
  padding: 10px;
  width: 400px;
  float: left;
}

.linkbox_main a {
  padding: 3px;
}

.linkbox_main a:link,
.linkbox_main a:visited {
  color: #d9d9d9;
}

.linkbox_main a:hover {
  background-color: #4e4a4a;
}

.linkbox_logo {
  height: 64px;
  width: 64px;
}

.linkbox_title {
  float: right;
  font-size: 1.5em;
  padding-top: 20px;
}

.linkbox_title ::after,
.linkbox_archives ::after,
.linkbox_kb ::after {
  display: none
}

.linkbox_kb {

  padding-right: 10px;
}

.linkbox_desc {
  font-style: italic;
  text-align: center;
}

html,
body {
  height: 100%;

}

body {
  display: grid;
  Grid-template-rows: 1fr auto;
  min-height: 100%;
}

footer {
  grid-row-start: 2;
  grid-row-end: 3;
}



.left-panel {
  float: left;
  width: 500px;
}


@keyframes glowing {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

  100% {
    background-position: 0 0;
  }
}



.linkbox_title {
  font-size: 22px;
  position: relative;
  left: 0px;
  top: 0px;
  color: white;

}


.linkbox_archives {
  display: flex;
  justify-content: center;
  position: relative;
  left: 0;
  top: 0px;
  color: white;
}


/* Three-Columns layout for API Reference index */
.api-index-section p.rubric {
  margin: 0 -20px 10px -20px;
  padding: 0 20px 10px 20px;
  border-bottom: 1px solid #ddd;
}


.api-index-section ul {
  column-count: 3;
  column-gap: 20px;
  padding: 0;
  list-style: none;
  line-height: 1.333em;
}

@media (max-width: 900px) {
  .api-index-section ul {
    column-count: 1;
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .api-index-section ul {
    column-count: 2;
  }
}

.api-index-section ul li {
  column-break-inside: avoid;
  page-break-inside: avoid;
}

.api-index-section a,
.api-parent-kind-module a {
  color: #9600ff;
}

.api-index-section .api-parent-kind-interface a {
  color: #7da01f;
}

.api-index-section .api-parent-kind-enum a {
  color: #cc9900;
}

.api-index-section .api-parent-kind-class a {
  color: #4da6ff;
}

.api-index-section .api-kind-module a {
  color: #9600ff;
}

.api-index-section .api-kind-interface a {
  color: #7da01f;
}

.api-index-section .api-kind-enum a {
  color: #cc9900;
}

.api-index-section .api-kind-class a {
  color: #4da6ff;
}

.api-index-section .api-is-private a {
  color: #808080;
}


/* Styles related to linkboxes */

div[role="main"] {
  container-name: content;
  container-type: inline-size;
}

.linkbox-grid-container {
  --card-spacer: .75rem;
  --card-divider: 1px solid var(--ts3d-lt-grey);
  --link-color: var(--ts3d-lt-blue);
  --link-hover-color: var(--ts3d-dk-blue);
  --landing-grey: #ddd;

  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.linkbox {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
  'title'
  'tagline'
  'links';
  justify-items: center;
  text-align: center;
  gap: var(--card-spacer);
  padding: 1rem;
  background-color: #fff;
  border: 1px solid var(--ts3d-lt-grey);
  border-radius: var(--search-border-radius);
  box-shadow: inset 0 1px 3px var(--landing-grey);
}

.linkbox:has(img) {
  grid-template-rows: repeat(2, auto) 1fr auto;
  grid-template-areas:
  'logo'
  'title'
  'tagline'
  'links';
}

.linkbox a {
  color: var(--link-color);
}

.linkbox a:hover {
  color: var(--link-hover-color);
}

.linkbox img {
  grid-area: logo;
  width: 75px;
  aspect-ratio: 1;
  justify-self: center;
}

.linkbox p.title {
  grid-area: title;
  margin: 0;
  font-size: larger;
  color: var(--link-hover-color);
}

.tagline {
  grid-area: tagline;
}
  
.tagline * {
  margin: 0;
}
  
.tagline + ul {
  grid-area: links;
  margin: 0 !important;
  text-align: initial;
}

.tagline + ul li {
  font-weight: bold;
}
  
@container content (max-width: 31.99rem) {
  .tagline {
    width: 100%;
    padding-bottom: var(--card-spacer);
    border-bottom: var(--card-divider);
  }
}

@container content (min-width: 32rem) {
  .linkbox-grid-container {
    grid-template-rows: repeat(2, auto) 1fr;
  }

  .linkbox {
    grid-row: 1 / 4;
    grid-template-rows: subgrid;
    justify-items: initial;
    text-align: initial;
  }

  .linkbox:has(img) {
    grid-template-areas:
    'logo title'
    'logo tagline'
    'links links';
  }

  .tagline + ul {
    padding-top: var(--card-spacer);
    border-top: var(--card-divider);
  }

  .linkbox:has(img) .tagline + ul {
    grid-column: 1 / 3; /* Chrome rule to honor column span */
  }202  
}

@container content (min-width: 32rem) and (max-width: 49.99rem) {
  .linkbox-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .linkbox:has(img) {
    grid-template-columns: minmax(3rem, 25%) 1fr;
  }

  .linkbox:nth-child(n + 3) {
    grid-row: 4 / 7;
  }

  .linkbox:nth-child(n + 5) {
    grid-row: 7 / 10;
  }

  .linkbox:nth-child(n + 7) {
    grid-row: 10 / 13;
  }

  .linkbox:nth-child(n + 9) {
    grid-row: 13 / 16;
  }

  .linkbox:nth-child(n + 11) {
    grid-row: 16 / 19;
  }
}

@container content (min-width: 50rem) {
  .linkbox-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .linkbox:has(img) {
    grid-template-columns: auto 1fr;
  }

  .linkbox:nth-child(n + 4) {
    grid-row: 4 / 7;
  }

  .linkbox:nth-child(n + 7) {
    grid-row: 7 / 10;
  }

  .linkbox:nth-child(n + 10) {
    grid-row: 10 / 13;
  }
}

/* Contact Us table styles */
.contact-us {
  text-align: center; /* center all content */
}

.contact-us thead,
.contact-us td:first-child * {
  text-align: initial; /* un-center all content in header row and first column */
}

/* End styles related to linkboxes */

@import "api.css";
