:root {
  --main-color: #016fba;
  --second-color: #3d8fc6;
  --third-color: #014a7a;
  --lightgrey: #e6e6e6;
  --lightergrey: #f9f9fc;
}

.sidebar-logo {
  width: 150px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
}

.footer-links p {
  margin-right: 1rem;
}

.footer-links p a {
  font-size: 0.8rem;
  color: #333;
}

.section h2 {
  margin-top: 4rem;
}

.sidebar-tree .toctree-l1 > .reference,
.sidebar-tree .toctree-l1 > label .icon {
  --color-sidebar-link-text--top-level: var(--main-color);
  color: var(--color-sidebar-link-text--top-level);
}

.toc-tree li.scroll-current > .reference {
  --color-sidebar-link-text--top-level: var(--main-color);
  color: var(--color-sidebar-link-text--top-level);
}

.section {
  margin: 4rem 0 1rem 0;
}

h1 {
  font-size: 3rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
}

h1,
h2 {
  color: var(--main-color);
  text-transform: uppercase;
}

h3,
h4,
h5,
h6 {
  color: var(--second-color);
  font-weight: normal;
}

a,
a:visited {
  color: var(--main-color);
}

a:hover,
a:visited:hover {
  color: #333333;
}

.related-pages a:hover .page-info .title {
  color: #333333;
}

.related-pages svg {
  width: 50px;
}

.shooter-text {
  color: var(--main-color);
  font-weight: bold;
  font-size: 1.2rem;
}

dl dt {
  font-size: 22px;
  color: var(--second-color);
}

strong {
  color: var(--main-color);
}

div.color_names_container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-auto-rows: 100px;
  gap: 0.2rem;
}

div.color_names-items p {
  text-align: center;
  color: #333;
}

.table-wrapper table {
  width: calc(100% - 1rem);
  margin-left: 0;
  box-shadow: none;
}

.table-wrapper table tr.row-odd {
  background-color: var(--lightergrey);
}

.table-wrapper table tr.row-odd:first-of-type,
body[data-theme="dark"] .table-wrapper table tr.row-odd:first-of-type {
  background-color: transparent;
}

.table-wrapper table tr th.head {
  background-color: transparent;
  border: none;
  border-bottom: 3px solid var(--second-color);
  color: var(--second-color);
  text-align: left;
}

.table-wrapper table tr td {
  border: none;
  padding: 0.5rem 0.25rem;
  font-size: 0.9rem;
}

.table-wrapper table tr td .line {
  margin: 0.5rem 0;
}

.table-wrapper table tr td:first-of-type {
  color: var(--second-color);
  font-weight: bold;
}

body[data-theme="dark"] .table-wrapper table tr.row-odd {
  background-color: rgba(51, 51, 74, 0.3);
}

body[data-theme="auto"] .table-wrapper table tr.row-odd {
  background-color: transparent;
}

blockquote div p {
  font-size: 35px;
}

.admonition {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.cp_embed_wrapper {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

table.docutils td,
table.docutils th {
  padding: 0.25rem 0.25rem;
}

em {
  color: var(--second-color);
}

ul li::marker,
ol li::marker {
  color: var(--second-color);
}

.highlight .err {
  border: inherit;
  box-sizing: inherit;
}

.cp-examples-wrapper {
  padding: 2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.cp-examples-wrapper:before {
  content: "Ergebnis";
  position: absolute;
  top: 5px;
  right: 30px;
  text-transform: uppercase;
  color: #333333;
  font-weight: bold;
  font-size: 12px;
}

.cp-examples-wrapper:after {
  content: "";
  background-image: url("/_images/webpage.png");
  background-size: 15px;
  display: block;
  position: absolute;
  right: 10px;
  top: 5px;
  width: 15px;
  height: 15px;
}

.cp-editable {
  background-color: #e2f5f9;
  padding: 1rem;
  padding-top: 2rem;
  position: relative;
  display: block;
  margin-bottom: 3rem;
  white-space: pre;
  font-size: 16px;
}

.cp-editable:before {
  content: "Code bearbeiten";
  position: absolute;
  top: 5px;
  right: 30px;
  text-transform: uppercase;
  color: #333333;
  font-weight: bold;
  font-size: 12px;
}

.cp-editable:after {
  content: "";
  background-image: url("/_images/edit.png");
  background-size: 15px;
  display: block;
  position: absolute;
  right: 10px;
  top: 5px;
  width: 15px;
  height: 15px;
}

.ex-iframe {
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border: none;
  height: 400px;
}

example-box {
  display: block;
  background-color: white;
  border: 1px solid #f2f2f2;
  padding: 0.5rem;
  font-family: sans-serif;
  box-sizing: border-box;
  display: block;
  color: black;
  font-size: 1rem;
  line-height: normal;
  border-radius: 8px 8px 6px 6px;
  background-image: url("images/browser-mobile.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100%;
  padding-top: 70px;
  margin-bottom: 2rem;
  overflow: hidden;
}

@media screen and (min-width: 480px) {
  example-box {
    background-image: url("images/browser-desktop.png");
  }
}

.imp-da {
  a {
    font-size: 12px;
  }
}
