/**
 * Styles not part of the standard Hyde distribution, used to customize
 * the Sinric Pro documentation site
 */

img.sidebar-social-icon {
  width: 32px;
  float: left;
  display: inline;
  margin-left: 7px;
}

img.sidebar-logo {
  float: left;
  border: 0px solid white;
  max-width: 90%;
}

div.sidebar-social-icons a {
  text-decoration: none;
}

nav.sidebar-nav {
  clear: both;
}

/* Code examples need a bit more space */
figure.highlight {
  margin-left: 0;
}

/* Make code snippets scrollable, as seen in https://monicagranbois.com/blog/webdev/formatting-code-with-pygments-and-jekyll/ */
figure.highlight pre code {
  white-space: pre;
  display: block;
  overflow-x: auto;
  word-wrap: normal;
}
pre {
  white-space: pre;
  display: block;
  overflow-x: auto;
  word-wrap: normal;
}

/* Some tables need to be wide to make sense of them, even if it breaks the design and responsiveness */
table.wide-table td {
  white-space: nowrap;
  font-size: 0.8em;
}

table.wide-table th {
  font-size: 0.8em;
}


/* tab controllers for device templates */

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

.tabcontent p {
  margin: 10px 0;
}

/* Style that matches the example image */
.tab {
  display: flex;
  flex-wrap: wrap;
  background-color: #f1f1f1;
  border-radius: 0;
  border: 1px solid #ccc;
}

.tab button {
  padding: 15px 20px;
  background-color: #f1f1f1;
  border-radius: 0;
  font-weight: normal;
}

.tab button.active {
  background-color: white;
  border-bottom: 3px solid #0070e0;
  color: #0070e0;
  font-weight: normal;
}

.tabcontent {
  border: 1px solid #ccc;
  border-top: none;
}