body {
  font-family: Poppins, Roboto, Verdana, sans-serif;
}

main {
  font-weight: 400;
}

.main-search-page {
  min-height: 100vh;
}

main a {
  color: #30ba78;
}

.ds-message {
  background-color: #f7f7f7;
  font-weight: bold;
  text-align: center;
  font-size: 1.5rem;
  padding: 2rem;
  margin: 1rem 0;
}

.ds-error {
  background-color: #ff8e77;
  color: #000;
}

.ds-sorry {
  background-color: #90ebcd;
  color: #000;
}

.ds-crumb {
  background-color: #f7f7f7;
  padding: 1rem 0;
  position: relative;
  /* To account for header-end-line, the colored bar below the menu */
  top: 8px;
}

.ds-crumb span {
  display: inline-block;
  padding: 0;
  font-size: 1.3rem;
  line-height: 2rem;
}

.ds-crumb > .container-fluid > span::after {
  content: "/";
  color: #90ebcd;
  display: inline-block;
  padding: 0 2rem;
}

.ds-crumb > .container-fluid > span:last-child::after {
  content: none;
}

.ds-crumb a {
  color: #000;
}

/* Site section tabbery */

.container.ds-section-container {
  padding-top: 4rem;
  padding-bottom: 0;
}

#ds-section-select {
  display: block;
  clear: both;
  width: 100%;
  height: 4.4rem;
}

.ds-docset-section-tab {
  color: #000;
  background-color: #efefef;
  padding: 1.6rem;
  min-width: 20rem;
  margin-top: 0.8rem;
  display: block;
  float: left;
  text-align: center;
  line-height: 1.4rem;
  margin-right: 4px;
  border-top: 2px solid #c0c2c4;
  border-left: 2px solid #c0c2c4;
  border-right: 2px solid #c0c2c4;
}

.ds-docset-section-tab:last-child {
  margin-right: 0;
}

.ds-docset-section-tab:hover,
.ds-docset-section-tab:focus,
.ds-docset-section-tab.ds-active {
  color: #000;
  background-color: #90ebcd;
  text-decoration: none !important;
  border-color: #62b390;
}

.ds-docset-section-tab.ds-active {
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: 0;
}

/* Hide product selector if there's only a single product */

.ds-version-select-only .ds-product-select-col {
  display: none;
}
.ds-version-select-only .ds-version-select-col {
  width: 100%;
}

/* Content part of pages */

div.ds-page-wrap {
  padding-top: 6rem;
  padding-bottom: 8rem;
}

h1.ds-title {
  font-weight: 500;
  text-align: left;
  font-size: 6rem;
  line-height: 1;
  margin-bottom: 30px;
  color: #000;
  max-width: 90rem;
}

h2.ds-select {
  color: #000;
  margin: 2rem 0 1rem;
}

div.ds-page-desc > p,
div.ds-docset-desc > p {
  text-align: left;
  font-size: 1.6rem;
  color: #000;
  /* max-width: 90rem; */
}

div.ds-page-desc > p {
  max-width: 90rem;
}

div.ds-search-alternate-bg {
  background-color: #dedfe0;
}

div.ds-alternate-bg {
  background: #90ebcd url(bg-dots.png) right top repeat-y;
}

div.ds-search-alternate-bg > .container {
  padding: 3rem 0;
}

div.ds-alternate-bg > .container {
  padding-top: 4rem;
}

p.ds-alternate-bg-desc {
  color: #000;
}

div.ds-boring-bg {
  margin-bottom: 6rem;
}

div.ds-select-list-outer {
  margin: 1rem 0;
  padding: 2rem 0;
  position: relative;
  background-color: #fff;
  box-shadow: 0 2px 4px 0 rgba(87, 89, 95, 0.4);
}

div.ds-select-list {
  margin: 0 1rem;
  height: 40rem;
  overflow: auto;
  position: relative;
}

div.ds-select-list > a {
  display: block;
  color: #000;
  border: none;
  font-weight: 500;
  text-decoration: none;
  padding: 1rem 1.25rem;
  box-sizing: border-box;
  outline: none;
}

div.ds-select-list > a:hover,
div.ds-select-list > a:focus,
div.ds-select-list > a:active,
div.ds-select-list > a.ds-selected {
  background-color: #dedfe0;
  text-decoration: none;
}

div.ds-select-instruction {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 2rem;
  /* let's assume there will only ever be a single line here. boundtofail. */
  position: absolute;
  top: calc(50% - 1rem);
  text-align: center;
}

div.ds-select-instruction::before {
  content: "(";
}

div.ds-select-instruction::after {
  content: ")";
}

body.ds-fold-selector h2.ds-select {
  display: none;
}

body.ds-fold-selector div.ds-select-list {
  height: 4rem;
  overflow: hidden;
}

body.ds-fold-selector div.ds-select-list a:not(.ds-selected) {
  display: none;
}

h1.ds-docset-title {
  font-size: 6rem;
  margin-bottom: 4rem;
  font-weight: 500;
  color: #000;
  /* max-width: 90rem; */
}

div.ds-docset-category {
  margin-top: 4rem;
  clear: both;
}

div.ds-docset-category.ds-category-no-title {
  margin-top: 8rem;
  clear: both;
}

h2.ds-docset-category-title {
  margin-top: 0rem;
  margin-bottom: 1rem;
  clear: both;
}

div.ds-docset-category p {
  font-size: 14px;
}

div.survey-box {
  display: flex;
  align-items: center;
  margin-block: 1rem;
}

div.survey-box .first-child:first-child {
  margin-right: 20px;
}

div.survey-box img {
  border: 1pt solid gray;
  width: 12rem;
}

div.survey-box .second-child {
  text-align: left;
  width: 44rem;
  font-size: 1.8rem;
}

table.ds-docset-table {
  width: 100%;
  margin-top: 2rem;
  font-size: 14px;
  clear: both;
}

table.ds-docset-table tr td {
  background-color: #f7f7f7;
}

table.ds-docset-table tr:nth-child(2n) td {
  background-color: #fff;
}

table.ds-docset-table td {
  border-bottom: 0.3rem solid #fff;
  border-right: 0.3rem solid #fff;
  padding: 0.5rem 1rem;
}

table.ds-docset-table td:nth-last-child(1) {
  border-right: none;
}

table.ds-docset-table td {
  width: 10%;
}

table.ds-docset-table td.ds-docset-table-title {
  width: 45%;
}

table.ds-docset-table td.ds-docset-table-language {
  width: 15%;
}
table.ds-docset-table td.ds-docset-table-language.ds-has-language-selector {
  padding: 0;
}

select.ds-docset-table-lang-select {
  font-family: inherit;
  border: 2px solid #90ebcd;
  width: 100%;
  color: #000;
  padding: 0.3rem 2rem 0.3rem 0.5rem;
  background-color: #fff;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url(chevron-down.svg);
  background-repeat: no-repeat;
  background-position: right center;
  outline: none;
}

table.ds-docset-table td.ds-docset-table-formats {
  width: 30%;
  padding-top: 0;
  padding-bottom: 0;
}

table.ds-docset-table td.ds-docset-table-formats.no-date {
  width: 40%;
}

a.ds-docset-table-link {
  display: inline-block;
  padding: 0.5rem;
  margin-right: 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}

a.ds-docset-table-link:hover,
a.ds-docset-table-link:active,
a.ds-docset-table-link:focus {
  color: #00c081;
  text-decoration: underline;
}

table.ds-docset-table td.ds-docset-table-date {
  width: 10%;
}

.container {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 4rem;
}

/* Our own search form */

.ds-search-form {
  margin: 0;
}

.ds-search-form * {
  font-family: Poppins, Roboto, Verdana, sans-serif;
  color: #000;
}

.ds-search-input {
  display: inline-block;
  border: 2px solid #fe7c3f;
  font-size: 1.6rem;
  width: calc(100% - 10rem - 1rem);
  padding: 1rem 1rem;
  outline: none;
  box-sizing: border-box;
}

.ds-search-button {
  display: inline-block;
  background-color: #fe7c3f;
  border: 2px solid #fe7c3f !important;
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  border: none;
  width: 10rem;
  padding: 1rem 1rem;
  box-sizing: border-box;
  float: right;
}

.ds-search-button:hover,
.ds-search-button:focus,
.ds-search-button:active {
  background-color: #fe9f72;
  border-color: #fe9f72;
  border-color: #fe9f72 !important;
}

/* Google Custom Search Overrides */

div.gsc-control-wrapper-cse * {
  font-family: Poppins, Roboto, Verdana, sans-serif;
}

div.gsc-control-cse {
  padding-left: 0;
  padding-right: 0;
}

div.gsc-input-box {
  border: 2px solid #fe7c3f;
  height: 4.25rem;
}

input.gsc-input {
  height: 3rem !important;
}

button.gsc-search-button {
  height: 4.25rem;
  line-height: 4.25rem;
  border: 2px solid #fe7c3f;
  border-radius: 0;
}

/* When Google Custom Search is blocked by an ad blocker */

div.container.ds-hidden-fallback-search {
  display: none;
}

body.ds-cse-fail div.container.ds-hidden-fallback-search {
  display: block;
}

@media only screen and (max-width: 1050px) {
  .ds-docset-section-tab.ds-active {
    padding: 1.6rem;
    height: 8.8rem;
  }

  .ds-docset-section-tab {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: unset;
    max-width: calc(25% - 4px);
    height: 8rem;
  }

  div.ds-alternate-bg {
    background-image: none;
  }
}

@media only screen and (max-width: 768px) {
  .ds-search-alternate-bg {
    padding: 0 1rem;
  }
}

@media only screen and (max-width: 640px) {
  .ds-docset-section-tab {
    min-width: unset;
    max-width: unset;
    width: calc(50% - 1.5rem);
    min-height: 10rem;
    line-height: 2rem;
    border-bottom: 2px solid #c0c2c4;
  }

  .ds-docset-section-tab,
  .ds-docset-section-tab.ds-active {
    margin: 0 1.5rem 1.5rem 0;
  }

  .ds-docset-section-tab:nth-child(2n) {
    margin-right: 0;
    width: 50%;
  }

  .ds-docset-section-tab:nth-last-child(2),
  .ds-docset-section-tab:nth-last-child(1) {
    margin-bottom: 1.5rem;
  }
}

@media only screen and (max-width: 1024px) {
  table.ds-docset-table tr td {
    background-color: transparent;
  }

  table.ds-docset-table tr {
    background-color: #f7f7f7;
    padding: 1rem;
  }

  table.ds-docset-table tr:nth-child(2n) {
    background-color: #fff;
  }

  table.ds-docset-table,
  table.ds-docset-table > tr,
  table.ds-docset-table > td {
    display: block;
  }

  table.ds-docset-table {
    clear: both;
  }

  table.ds-docset-table tr {
    width: 100%;
    margin-bottom: 0.75rem;
    clear: both;
  }

  table.ds-docset-table tr::after {
    content: "";
    display: block;
    width: 100%;
    clear: both;
  }

  table.ds-docset-table td {
    border: 0;
  }

  table.ds-docset-table td.ds-docset-table-title {
    font-weight: bold;
    width: 100%;
  }

  table.ds-docset-table td.ds-docset-table-language,
  table.ds-docset-table td.ds-docset-table-formats,
  table.ds-docset-table td.ds-docset-table-date {
    width: 35% !important;
    float: left;
  }

  table.ds-docset-table td.ds-docset-table-formats {
    width: 65% !important;
    float: right;
  }
}

@media only screen and (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  h1.ds-title,
  h1.ds-docset-title {
    font-size: 4rem;
  }
}
