/* override table width restrictions */
@media screen and (min-width: 767px) {

  .wy-table-responsive table td {
    /* !important prevents the common CSS stylesheets from
       overriding this as on RTD they are loaded after this stylesheet */
    white-space: normal !important;
  }

  .wy-table-responsive table p {
    line-height: 22px !important;
    font-size: 0.91rem !important;
  }

  .wy-table-responsive {
    overflow: visible !important;
  }

}

div.version {
  display: none;
}

.icon-home::before {
  content: ""
}

span.permission {
  background-color:#e74c3c;
  color: #fcfcfc;
/*  color:#fff; */
  box-sizing:border-box;
  white-space:nowrap;
  max-width:100%;
  border:1px solid #e1e4e5;
  font-size:75%;
  padding:0 5px;
  font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;
  overflow-x:auto  
}

span.value {
    background-color:inherit;
    color:#665f5f;
  /*  color:#fff; */
    box-sizing:border-box;
    white-space:nowrap;
    max-width:100%;
    border:1px solid #e1e4e5;
    font-size:75%;
    padding:0 5px;
    font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;
    overflow-x:auto  
}

span.code {
  background-color:#c5dbc5;
  color:#065806;
/*  color:#fff; */
  box-sizing:border-box;
  white-space:nowrap;
  max-width:100%;
  border:1px solid #065806;
  font-size:75%;
  padding:0 5px;
  font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;
  overflow-x:auto  
}
/* RTD adds extra p */
div.container > p,
div.container > ul {
	margin: 0 !important;
}

/* api main sections like Function, Types etc */
.api-main-section h2 {
	margin-top:2em;
}
.api-permission-info {
	margin-top:2em;
}

/* api sections below the main sections,
/* for example the individual function definitions */
.api-main-section > section:not(.api-section-body) {
  background: #e7f2fa;
  border-top: 3px solid #6ab0de;
  margin-bottom:1ex;
  display: inline-flex;
  align-items: center;  
}
.api-main-section > section:not(.api-section-body)  > span {
    font-size: 80%;
    font-weight: bold;
    font-style: italic;
    padding: 5px;
    display: block;
    color: #3782bb;
}
#functions > section:not(.api-section-body) > span::after {
    content: "func";
    /*color: #6ab0de;*/
}
.api-main-section section h3 {
  padding: 6px;
  margin:0;
  font-size: 90%;
  line-height: normal;  
}
#events > section:not(.api-section-body) {
  /*background: #ffedcc;*/
  /*border-top: 3px solid #f0b37e;*/
}
#events > section:not(.api-section-body) > span::after {
    content: "event";
    /*color: #f0b37e;*/
}
#types > section:not(.api-section-body) {
  /*background: #dbfaf4;*/
  /*border-top: 3px solid #1abc9c;*/
}
#types > section:not(.api-section-body) > span::after {
    content: "type";
    /*color: #1abc9c;*/
}
#properties > section:not(.api-section-body) {
  border-top: 3px solid #ccc;  
  background: #f0f0f0;
}
#properties > section:not(.api-section-body) > span::after {
    content: "prop";
    color: #888;
}

/* api section class embraces only the section title, */
/* the rest of the section is inside the sectionbody */
.api-section-annotation > p {
  padding: 6px;
  margin:0;
  font-size: 80%;
  font-style: italic;
}
.api-section-body {
	margin-bottom:3em;
	margin-left: 1em;  
}
.api-section-body a {
  font-size: 95%;
  font-style: italic;
}

/* styles for the api headers like "Parameters" */
.api-header-node {
	margin: 0 0 24px;
}
.api-header-section {
  background: #f0f0f0;
  margin-bottom:1ex;
  display: inline-flex;
  align-items: center;  
  border-left: 3px solid #ccc;  
}
.api-header-section div {
  padding: 6px;
}
.api-header-annotation {
  margin-left:2em;
}
.api-header-annotation > p {
  font-size: 80%;
  font-style: italic;
}

/* member styles, elements below api headers*/
.api-member-definition {
  display: flex;
  align-items: text-top;
}
.api-member-name, .api-member-type, .api-member-annotation {
  margin-right: 0.5ex;
}
.api-member-node {
  margin-bottom: 0.5ex;
}
.api-member-description p {
  font-size: 95%;
}
.api-member-description {
  margin-left: 2em;
  margin-bottom:1ex;
}
.api-member-description-only {
  margin-bottom:1ex;  
  margin-left: 1ex;
}
.api-member-description-only > .api-member-node {
  margin-left:-1ex;  
}
.api-member-annotation > p {
  font-size: 80%;
  font-style: italic;
}
.api-member-type > p {
  font-size: 95%;
  font-style: italic;
}


.api-member-inline-changes dl,
.api-member-inline-changes dd,
.api-member-inline-changes dd > p {
  margin:0 !important;
  padding: 0 !important;
}
.api-member-inline-changes dt {
  font-size: 95%;
  line-height:24px;
  margin:0 !important;
  padding: 0 1ex 0 0 !important;
}

/* Hide "On GitHub" section from versions menu */
div.rst-versions > div.rst-other-versions > div.injected > dl:nth-child(2) {
  display: none;
}
/* Hide the entire navigation bar at the top */
div.rst-content > div[role=navigation] {
  display: none;
}
div.document h1 {
  border-bottom:1px solid #ccc;
  color: #3782bb;
}
div.document h2, div.rst-content p.caption[role=heading] > span.caption-text {
  color: #3782bb;
}

/* All sections in the first level (having a h1 in the same level) need some extra space */
h1 ~ div.section, h1 ~ section {
  margin-block: 3em 1em;
}
/* A section starting below a h1 header does not need extra space */
h1 + div.section, h1 + section {
  margin-block: 1em;
}

.wy-nav-content {
  max-width:820px !important;
}

.sticky-sidebar {
  position:fixed;
  width: 320px;
  margin-left: 810px;
  color: #888;
  padding: inherit;
  top: 2em;
}
.sticky-sidebar > p {
  font-size: 105%;
}
.sticky-sidebar a {
  color: inherit;
}
.sticky-sidebar a:visited {
  color: inherit;
}
.sticky-sidebar a:hover {
  color: #3782bb;
} 
.sticky-sidebar li {
  list-style: circle;
}
.sticky-sidebar ul {
  padding-left: 2em;
  padding-bottom: 1em;
}
div.sticky-sidebar ul {
  margin-bottom: 1em !important;
}
.sticky-sidebar ul p {
  color: #999;
  margin:0.1em 0;
}


/* Make external links icon not consume extra space */
a.reference.external::after {
  vertical-align: inherit !important;
  position: relative;
  top: -5px;
}

/* Hide sidebar if not enough space */
@media screen and (max-width: 1480px) {
  .sticky-sidebar {
    display: none;
  }
}

/* Hide fake rubric, which are only used as valid ref targets */
.api-member-rubric-hidden {
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
}
.api-member-hide-bullet-point .api-member-bullet {
  visibility: hidden;
}

.api-member-depth-1 {
  margin-left: 1ex;
}

.api-member-depth-2 {
  margin-left: 2em;
}
