.announcement-text {
  background: #f9edbe;
  border: 1px solid #f0c36d;
  font-size: 12px;
  font-size: 12px;
  line-height: 29px;
  line-height: 29px;
  margin: 0 12px;
  margin: 0 12px;
  text-align: center;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  height: 100%;
  margin-bottom: 0;
  margin-top: 0;
  min-height: 100%;
}

html {
  height: 100%;
}

#main-content {
  margin-bottom: -38px;
  min-height: 100%;
}

#main-content:after {
  content: '';
  display: block;
}

#about {
  background: #f2f2f2;
  border-top: 1px solid #e4e4e4;
  bottom: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  left: 0;
  line-height: 35px;
  margin-left: -10px;
  margin-right: -10px;
  overflow: hidden;
  right: 0;
  text-align: center;
}

#about, #main-content:after {
  height: 37px;
}

#about a:first-child {
  margin-left: 0;
}

#about a {
  color: #666;
  display: inline-block;
  margin-left: 27px;
  white-space: nowrap;
}

.footer-left {
  float: left;
  margin: 0 30px;
  white-space: nowrap;
}

.footer-right {
  float: right;
  margin: 0 30px;
  white-space: nowrap;
}

.header {
  display: inline-block;
  margin-bottom: 10px;
  margin-left: 130px;
  margin-top: 22px;
  padding-bottom: 5px;
  vertical-align: middle;
}

#overlay {
  background-color: rgba(32, 33, 36, .6);
  display: none;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
}

.header a {
  outline: none;
  text-decoration: none;
}

.google-logo {
  content: url(https://www.gstatic.com/images/branding/googlelogo/svg/googlelogo_clr_74x24px.svg);
  display: inline-block;
  height: 25px;
  vertical-align: middle;
  width: 77px;
}

.ngrams-logo {
  color: #666666;
  display: inline-block;
  font-family: 'Product Sans',Arial,sans-serif;
  font-size: 23px;
  line-height: 26px;
  padding-left: 1px;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  top: -0.8px;
  vertical-align: middle;
}

#overflow-container {
  float: right;
  margin-left: auto;
  margin-top: 15px;
  position: relative;
}

#overflow-menu-button {
  color: #70757a;
}

#overflow-menu {
  color: #3c4043;
  display: flex;
  flex-direction: column;
  height: 90px;
  justify-content: space-between;
  left: 23px;
  padding: 6px 0 0;
  position: absolute;
  top: 40px;
}

#overflow-menu a {
  color: #3c4043;
  padding-top: 8px;
  text-decoration: none;
}

#open-share {
  visibility: hidden;
}

.overflow-item {
  height: 20px;
  padding-bottom: 8px;
  padding-top: 8px;
}

#open-share {
  cursor: pointer;
}

.chart-legend-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #70757a;
  display: table;
  font-size: 13px;
  line-height: normal;
  margin-bottom: 20px;
  margin-right:auto;
  table-layout: fixed;
  white-space: nowrap;
  width: 100%;
}

.legend tbody {
  border-color: inherit;
  display: table-row-group;
  vertical-align: middle;
}

.legend tr {
  border-bottom: 1px solid #e5e5e5;
  display: table-row;
  vertical-align: inherit;
  border-color: inherit;
}

.legend tr:last-child td {
  border-bottom: 0;
}

.legend td {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 10px;
  padding-top: 10px;
  overflow: auto;
}

.legend-row-dot {
  width: 23px;
  margin-right: 0;
}

.legend-row-ngram {
  margin-left:10px;
  text-align: left;
  white-space: pre-wrap;
  text-overflow: ellipsis;
  width: 40%;
}

.legend-row-frequency {
  width: 35%;
  white-space: nowrap;
  text-align: right;
}

.legend-circle {
  border-radius: 50%;
  height: 8px;
  margin-left: 10px;
  width: 8px;
}

.legend-ngram {
  font-size: 16px;
}

.legend-frequency {
  font-size: 14px;
  margin-right: 16px;
}

.legend-tooltip {
  background-color: #fff;
  width: 25px;
  margin-top: 10px;
  margin-bottom: -5px;
  margin-left: -11px;
  font-weight: 400;
  font-size: 12px;
  height: 28px;
  line-height: 28px;
  padding-left: 8px;
  padding-right: 9px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2), 0 1px 1px rgba(0,0,0,.14);
}


/* Style the form - display items horizontally */
.row-column-flex {
  -ms-flex-align: center;
  -moz-box-align: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  justify-content: left;
  margin-left: 20px;
}

.row-column-flex label {
  white-space: nowrap;
}

.input-qm-checkbox {
  display: inline-block;
  margin-left: -11px;
  margin-right: 7px;
  white-space: nowrap;
  width: 140px;
}

#query {
  color: #70757a;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  margin: 5px 0 0 110px;
}

.smoothing {
  width: 50px;
}

#social-media-section {
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.custom-tweet-button {
    margin-right: 10px;
}

.ngrams_chart_section {
  margin-left: auto;
  margin-right: auto;
}


center#datasets-announcement {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  padding: 30px 0 10px;
}

#warning-area {
  border-radius: 8px;
  border: 1px solid #dfe1e5;
  margin-left: 130px;
  padding-bottom: 2px;
  padding: 16px;
  width: 1000px;
}

#warning-area:last-child {
  padding-bottom: 0;
}

#warnings {
  margin: 12px;
  line-height: 29px;
  font-size: 12px;
}

.warning {
  align-items: center;
  color: #5f6368;
  display: flex;
  font-size: 14px;
  padding-bottom: 14px;
}

/* D3 Chart styles */

svg.chart.main {
  display: block;
}

.label {
  fill: #444444;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
}

.axis text {
  fill: rgb(0, 0, 0, 0.62);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.axis path, .axis line {
  fill: none;
  shape-rendering: crispEdges;
  stroke-width: 1.5px;
  stroke: #9e9e9e;
}

.tips {
  fill: #444444;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 11px;
}

.grid .tick {
  opacity: 0.3;
  stroke: rgb(247, 247, 247) ;
}

.grid line {
  opacity: 0.7;
  stroke: #ccc;
}

.grid path {
  stroke-width: 0;
}

path.invisible {
  fill: none;
  stroke: rgba(0, 0, 0, 0);
  stroke-width: 15px;
}

.line {
  fill: none;
  stroke-width: 2px;
  -webkit-transition: opacity 0.3s;
  -moz-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

.tooltip_rect {
  fill: #fff;
  shape-rendering: crispEdges;
  rx: 6;
}

* html a:hover {
  background: transparent;
}

/* Style for a strong warning in the info page. */

.info_warning {
  background-color: #fcc;
  border-left: 6px solid #a03;
  padding: 6px 8px 6px 10px;
  width: 60%;
}

/* Style for input boxes. Adapted from kd_components.css.*/
input.query {
  -webkit-appearance: none;
  -webkit-rtl-ordering: logical;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: text;
  -webkit-writing-mode: horizontal-tb;
  background-color: rgb(255, 255, 255);
  border-bottom-color: rgb(217, 217, 217);
  border-bottom-left-radius: 1px;
  border-bottom-right-radius: 1px;
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-image-repeat: stretch;
  border-image-slice: 100%;
  border-image-source: none;
  border-image-width: 1;
  border-left-color: rgb(217, 217, 217);
  border-left-style: solid;
  border-left-width: 1px;
  border-right-color: rgb(217, 217, 217);
  border-right-style: solid;
  border-right-width: 1px;
  border-top-color: rgb(192, 192, 192);
  border-top-left-radius: 1px;
  border-top-right-radius: 1px;
  border-top-style: solid;
  border-top-width: 1px;
  box-sizing: border-box;
  color: rgb(0, 0, 0);
  cursor: auto;
  display: inline-block;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: normal;
  height: 29px;
  letter-spacing: normal;
  line-height: 27px;
  list-style-image: none;
  list-style-position: outside;
  list-style-type: none;
  padding-bottom: 1px;
  padding-left: 8px;
  padding-top: 1px;
  text-align: start;
  vertical-align: middle;
  writing-mode: lr-tb;
  z-index: 9;
}

input.query:hover, input.query.hover {
  border: 1px solid #b9b9b9;
  border-top: 1px solid #a0a0a0;
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

input.query:focus, input.query.focus {
  -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid #4D90FE;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  outline: none;
}

input.query,
select {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  box-sizing: border-box;
  color: #70757a;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  height: 48px;
  margin: 5px 1px;
}

select {
  cursor: pointer;
  text-indent: 4px;
}


/* Style for the question mark in the search box.*/

.options {
  display: inline-block;
  left: -35px;
  position: relative;
  top: 10px;
}

.noselect {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Style for bubbles. Adapted from kd_components.css.*/

.bubble {
  -moz-border-radius: 4px;
  -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  -webkit-border-radius: 4px;
  -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  display: inline-block;
  outline: 1px solid rgba(0, 0, 0, 0.0);
  padding: 10px;
  position: absolute;
  top: 30px;
  width: 264px;
  z-index: 15;
}

.bubble#share-url {
  left: 0;
  position: relative;
  top: 10px;
}

.bubble p {
  color: #666;
}

.bubble a {
  display: inline-block;
  padding: 0 10px;
  word-wrap: normal;
}

#samples {
  display: block;
  height: 410px;
  left: -230px;
  padding: 16px;
  position: absolute;
  top: 48px;
  width: 232px;
}

#samples a {
  color: #1a73e8;
  display: inline-block;
  font-family: 'Google Sans', SansSerif, sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 0 10px;
  text-decoration: none;
  word-wrap: normal;
}

.sample-links {
  padding-top: 36px;
  text-align: right;
}

#samples hr {
  margin-bottom: 16px;
  margin-top: 16px;
}

.sample-name {
  color: #3c4043;
  font-family: 'Google Sans', SansSerif, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
}

.sample-example {
  color: #80868b;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  padding-top: 8px;
}


@media all and (max-width: 640px) {
  h4.search-in {
    margin-left: 20px;
  }
  .axis text {
    font-size: 11px;
  }
}

/* This section is for the ngrams/about page and styling its tables for mobile
   and desktop.
*/

table.about {
  width: 60%;
}

.about td {
  word-wrap: break-word;
  white-space: normal;
}

.about-text {
  width: 60%;
}

.about-row-name {
  text-align: center;
}

@media only screen and (max-width: 640px),
(min-device-width: 768px) and (max-device-width: 1024px) {

 table.about, table.about thead, table.about tbody, table.about th,
 table.about td, table.about tr {
    display: block;
    width: 95%;
  }

 table.about thead tr {
   position: absolute;
   top: -9999px;
   left: -9999px;
  }

 table.about tr {
   border: 1px
   solid #ccc;
 }

 table.about td {
   border: none;
   border-bottom: 1px solid #eee;
   position: relative;
  }

  .about-text {
   width: 90%;
  }

  .info_warning {
   width: 90%;
  }
}

#search-field {
  height: 48px;
  width: 720px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
}

#ngram-query {
  -webkit-appearance: none;
  -webkit-rtl-ordering: logical;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: text;
  -webkit-writing-mode: horizontal-tb;
  background-color: rgb(255, 255, 255);
  border-radius: 8px;
  border: 0;
  color: #000000de;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 27px;
  list-style-image: none;
  list-style-position: outside;
  list-style-type: none;
  outline: none;
  padding-left: 2px;
  text-align: start;
  vertical-align: middle;
  width: 100%;
  -webkit-writing-mode: lr-tb;
      -ms-writing-mode: lr-tb;
          writing-mode: lr-tb;
}

/* Disable autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active  {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

#search-field:hover {
  border: 1px solid #b9b9b9;
}

#search-field:focus {
  outline: none;
}

#close-button {
  padding-right: 0;
}

#help-button {
  padding-left: 0;
}

/* Sharing Modal Styles */
.share-container {
  background: #fff;
  border: 0;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  bottom: 0;
  -moz-box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  -webkit-box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  color: #030303;
  cursor: auto;
  font-size: 16px;
  height: 175px;
  left: 0;
  margin: auto;
  padding: 16px;
  position: absolute;
  right: 0;
  top: 0;
  width: 267px;
  z-index: 110;
}

.share-container a {
  color: #222;
  text-decoration: none;
}

.modal-header {
  align-items: center;
  display: inline-flex;
  height: 24px;
  padding-bottom: 10px;
  width: 100%;
}

.modal-header-title {
  font-family: 'Google Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
}

.close-share-container {
  border: none;
  color: rgba(0,0,0,0.54);
  cursor: pointer;
  fill: rgba(0,0,0,0.54);
  margin-left: auto;
  outline: none;
}

#embed-modal {
  padding: 24px;
  width: 232px;
  height: 224px;
}

#embed-copy-button {
  margin-left: 0;
  margin-top: 8px;
}

#embed-copy-icon {
  color: #1a73e8;
  vertical-align: middle;
  --mdc-icon-size: 24px;
}

#embed-copy {
  color: #606060;
  cursor: pointer;
  font-size: 14px;
  line-height: 36px;
  margin-left: 0;
  width: 90px;
}

#close-embed {
  margin-left: 106px;
}

#embed-url {
  display: inline-block;
  max-height: inherit;
}

#embed-url textarea {
  border: 1px solid #dfe1e5;
  border-radius: 8px;
  color: #202124;
  font-family:'Roboto Mono', monospace;
  font-size: 14px;
  height: 130px;
  outline: none;
  resize: none;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
  width: 226px;
}
::-webkit-scrollbar {
  display: none;
}

.share-icon-container {
  display: inline-block;
  vertical-align: bottom;
  margin-right: 24px
}

.share-icon {
  height: 24px;
  width: 24px;
  vertical-align: middle;
}

.share-item {
  color: rgba(0,0,0,.87);
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: normal;
  line-height: 24px;
  padding: 12px 0 12px 0;
}

.embed-link-fill {
  background: #9e9e9e;
}

.twitter-blue-fill {
  background: #1da1f2;
}

.icon-text {
  font-size: 14px;
  padding-top: 10px;
  white-space: nowrap;
}

.fb-blue-fill {
  background: #3b5998;
}

.icon-fill {
  fill: #fff;
  height: 42px;
}

.mwc-icon-fill {
  color: #fff;
  --mdc-icon-size: 40px;
}

#year-pill {
  margin-left: 0;
}

#year-select {
  height: 168px;
  padding: 16px 16px 0 16px;
}

#year-feedback {
  color: #d32f2f;
  font-size: 14px;
  font-weight: 400;
  height: 25px;
  margin-left: 2px;
  margin-top: 8px;
  visibility: hidden;
}

#smoothing-select,
#corpus-select {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 355px;
  padding: 16px 0 0 0;
}

li.mobile-only {
  display: none;
}

#smoothing-select .bubble-header,
#corpus-select .bubble-header {
  padding-left: 16px;
}

.form-bubble {
  background: #fff;
  border: 0;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -moz-box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  -webkit-box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  box-shadow: 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  cursor: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  font-size: 16px;
  outline: 1px solid rgba(0, 0, 0, 0.0);
  position: absolute;
  text-align: left;
  width: 232px;
  left: 1px;
  top: 42px;
  z-index: 25;
}

.bubble-hide {
  display: none !important;
}

.bubble-show {
  display: inherit;
}

.bubble-body {
  color: #000000de;
  -webkit-box-pack : justify;
      -ms-flex-pack : justify;
          justify-content : space-between;
  text-align : center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  margin-top: 16px;
}

a.bubble-control {
  color: #1a73e8;
  display: inline-block;
  font-family: 'Google Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 48px;
  margin-left: 32px;
  text-decoration: none;
}

.bubble-operations {
  height: 49px;
  margin-bottom: 0;
  text-align: right;
}

.bubble-header {
  line-height: 24px;
  color: #3c4043;
  margin-top: 0;
  margin-bottom: 0;
}

.bubble-corpus {
  margin-top: 8px;
  text-align: left;
  overflow: scroll;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}
::-webkit-scrollbar {
  display: none;
}

input.bubble-input {
  width: 96px;
  font-size: 16px;
  margin: 0;
}
::placeholder {
  color: #b7b7b7;
}

.search-buttons {
  padding: 5px;
}

/* Material design colors and icon sizes */
mwc-icon-button {
  --mdc-icon-button-size: 40px
}
mwc-icon-button-toggle {
  --mdc-icon-button-size: 40px
}
mwc-list {
  --mdc-theme-primary: #1967d2;
  --mdc-theme-text-primary-on-background: #202124;
}

mwc-list-item {
  --mdc-theme-primary: #1967d2;
  --mdc-theme-on-surface: #202124;
  --mdc-theme-text-primary-on-background: #202124;
}

.year-space {
  margin-left: 9px;
  margin-right: 8px;
}

#case-pill {
  outline: none;
  padding: 5px 12px;
}

.dropdown-icon {
  line-height: 1px;
  color: inherit;
  font-size: 20px;
  position: relative;
  top: 1px;
  vertical-align: sub;
}

.drop-align {
  display: inline-block;
  position: relative;
  top: 1px;
  width: 9px;
  left: -4px;
}

#first-checked-lang,
#first-checked-smoothing,
.mobile-check-lang,
.mobile-check-smoothing {
  display: none;
}

#form-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 44px;
  margin-bottom: 10px;
  margin-left: 20px;
  margin-top: 10px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
  white-space: nowrap;
}
::-webkit-scrollbar {
  display: none;
}

#divider {
  border: 0;
  height: 4px;
  border-bottom: 1px solid #dadce0;
  margin-bottom: 0;
  margin-left: -10px;
  margin-right: -10px;
  overflow: hidden;
}

#linear-progress {
  --mdc-theme-primary: #1565c0;
  margin-left: -10px;
  margin-right: -10px;
  overflow: hidden;
}

#search-holder {
  position: relative;
  padding: 13px;
}

.hidden-form-field {
  display:none;
}

#hidden-submit {
  position: absolute;
  visibility: hidden;
}

.pill {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-radius: 16px;
  cursor: pointer;
  display:inline;
  font-size: 14px;
  line-height: 20px;
  margin: 5px 4px 5px 4px;
  outline: none;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
}

.pill-label {
  display: inline-block;
  min-width: 34px;
}

.check-hidden {
  display: none;
}

#case:checked ~ #case-pill {
  background-color: #e8f0fe;
  border: 1px solid #e8f0fe;
  color: #1967d2;
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
}

.blue-container:hover button,
.blue-pill:hover,
#case:checked ~ #case-pill:hover {
  border: 1px solid #dfebfd;
  background-color: #dfebfd;
  -webkit-box-shadow: 0 1px 3px 1px rgba(66, 133, 244, 0.15);
  box-shadow: 0 1px 3px 1px rgba(66, 133, 244, 0.15);
}

.blue-pill:focus,
.blue-pill:focus-within,
#case:checked ~ #case-pill:focus-within,
#case:checked ~ #case-pill:focus {
  background-color: #dce8fc;
  border: 1px solid #dce8fc;
}

.blue-container:active button,
.blue-pill:active,
#case:checked ~ #case-pill:active {
  background-color: #d3e2fa;
  border: 1px solid #d3e2fa;
  -webkit-box-shadow: 0 1px 3px 1px rgba(66, 133, 244, 0.15);
  box-shadow: 0 1px 3px 1px rgba(66, 133, 244, 0.15);
}

.white-container:active button,
.white-pill:active {
  background-color: #fff;
  border: 1px solid #fff;
  color: #3c4043;
  -webkit-box-shadow: 0 2px 6px 2px rgba(60,64,67,0.15);
  box-shadow: 0 2px 6px 2px rgba(60,64,67,0.15);
}


.white-container:hover button,
.white-container:hover button,
.check-hidden:focus-within + #case-pill,
.check-hidden:focus + #case-pill,
.white-pill:focus-within,
.white-pill:focus,
.white-pill:hover {
  border: 1px solid #dfe1e5;
  background-color: #f8f8f8;
  color: #3c4043;
}

.blue-pill {
  font-family: 'Roboto', arial, sans-serif;
  font-weight: 500;
  color: #1565c0;
  background-color: #e8f0fe;
  border: 1px solid #e8f0fe;
}

.white-pill {
  background-color: #fff;
  border: 1px solid #dfe1e5;
  color: #3c4043;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
}


.search-in {
  color: #202124;
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  margin-left: 20px;
  text-align: left;
}

.books-table-overflow {
  overflow-x: auto;
}

#books-table {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #3c4043;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 1000px;
}

#books-table a {
  color: #3c4043;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 48px;
  text-decoration: none;
}

#books-table .book-row:last-child  {
  border-bottom: 0;
}

.book-row {
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
  display: inline-flex;
  height: 64px;
  width: 100%;
}

.book-cell {
  display: table-cell;
  vertical-align: middle;
}

.book-lang-cell {
  white-space: nowrap;
  margin-left: 12px;
  margin-right: 12px;
}

.book-pill {
  padding: 7px 15px;
}

.book-term {
  margin-left: 16px;
  margin-right: 8px;
}

.mwc-icon {
  vertical-align: middle;
}

.error-icon {
  color: #d32f2f;
  margin-right: 16px;
}

.info-icon {
  color: #;
  margin-right: 16px;
}

.button-container {
  position: relative;
}

#book-results {
  margin-left: 130px;
}

#chart {
  margin-top: 7px;
  margin-left: 130px;
}

.isDisabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a[aria-disabled='true'] {
  color: currentColor;
  pointer-events: none;
  text-decoration: none;
}


@media (max-width: 1024px) and (min-width: 640px) {
  .header {
    margin-left: 30px;
  }

  #chart {
    margin-left: 30px;
  }

  #query,
  #book-results {
    margin-left: 10px;
  }

  #input-flex,
  #search-field {
    width: 100%;
  }
}


/* Shrink the book search results table on screens smaller than 1200px wide */
@media (max-width: 1200px) {
  #books-table {
    border: 0;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
  }

  .book-row {
    white-space: nowrap;
  }

  .books-table-overflow {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
    -webkit-overflow-scrolling: touch;
  }
  ::-webkit-scrollbar {
    display: none;
  }
}

/* Add responsiveness - display the form controls vertically instead of
 * horizontally on screens that are less than 640px wide */
@media (max-width: 640px) {
  body {
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    overflow-y: auto;
  }

  #header-container {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
  }

  #overflow-container {
    margin-right: 0;
    margin-top: 0;
  }

  #book-results,
  #chart,
  #search-field {
    margin-left: 10px;
    margin-right: 10px;
  }

  .google-logo {
    height: 20px;
    width: 63px;
  }

  .ngrams-logo {
    font-size: 17px;
  }

  .header {
    margin-bottom: 0;
    margin-left: 14px;
    margin-top: 0;
    padding: 0;
  }

  .header a {
    display: block;
    padding-bottom: 14px;
    padding-top: 8px;
  }

  .custom-tweet-button {
    margin: 0;
  }

  #divider {
    margin: 0;
  }

  #linear-progress {
    margin: 0;
  }

  .info-icon,
  .error-icon {
    margin-right: 12px;
  }

  #warning-area {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
    width: unset;
  }

  .warning {
    padding-left: 6px;
  }

  .share-container {
    width: 80%;
  }

  #form-nav {
    margin-bottom: 0;
    margin-top: 5px;
    margin-left: 0;
    overflow-x: scroll;
    overflow-y: hidden;;
    padding-bottom: 2px;
    padding-left: 10px;
  }

  .button-container {
    position: unset;
    padding-bottom: 2px;
    padding-top: 4px;
  }

  #corpus-select,
  #samples,
  #smoothing-select,
  #year-select {
    bottom: 0;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
  }

  #smoothing-pill {
    margin-right: 16px;
  }

  li.mobile-only {
    display: list-item;
  }

  #first-checked-smoothing,
  #first-checked-lang {
    display: inline-block;
  }

  #query {
    margin: 4px 0 5px 0;
  }

  #social-media-section {
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 10px;
  }

  .field-wrap {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .field-wrap input {
    width: 100%;
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
  }

  .corpus-smooth {
    margin-left: 0;
  }

  .cs-label-input {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  .responsive-corpus-smooth {
    float:left;
    margin-right:5px;
    margin-top:5px;
  }

  #input-flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: flex-start;
    -ms-flex-pack: flex-start;
    justify-content: flex-start;
    position: relative;
  }

  .options {
    position: unset;
    top: 13px;
  }

  .bubble {
    left: -240px;
  }

  .bubble .pointer {
    left: 265px;
  }

  .submit {
    margin-left: 3px;
  }

  .help-tip {
    margin-top: -2px;
  }

  .footer-left,
  .footer-right {
    float: unset;
    margin: unset;
  }

  #about {
    font-size: 14px;
    line-height: 48px;
    margin: 0;
    padding-top: 2px;
    position: unset;
  }

  #about, #main-content:after {
    height: 96px;
  }

  .row-column-flex {
    -ms-flex-align: flex-start;
    -webkit-box-align: start;
    align-items: flex-start;
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -ms-flex-direction: column;
        flex-direction: column;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    margin-left: 0;
    margin-top: 0;
  }

  .row-column-flex-test {
    -moz-box-align: flex-start;
    -ms-flex-align: flex-start;
    -webkit-align-items: flex-start;
    -webkit-box-align: flex-start;
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-direction: column;
        flex-direction: column;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    margin-top: 6px;
  }

  .input-qm-checkbox {
    margin-bottom: 5px;
    margin-top: 5px;
  }

  .row-center.flex {
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  .row-center label {
    margin: .25rem;
    white-space: nowrap;
  }
}

/* Set the form to row wrap when on desktop */
@media (min-width: 640px) {
  .row-column-flex {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
  }
}
