/*** Generic classes (body, a, p, h1, etc.) goes here ***/
body, html {
  margin: 0;
  font: 1em "Open Sans", sans-serif;
}

h1, p, tr {
  text-align: center;
}

h1, tr {
  font-size: 1.4em;
}

h1 {
  color: #484a48;
  margin-bottom: 0;
}

p {
  font-size: 2.2em;
}

/*** #header goes here ***/

/*** #nav-menu goes here ***/
.nav-main {
  width: 100%;
  background-color: #222;
  height: 70px;
  color: #fff;
}

.nav-main .logo {
  float: right;
  height: 40px;
  padding: 15px 30px;
}

/* Hide the mobile nav */
.mobile-nav {
  display: none;
  background-color: #222;
  /*overflow: hidden;*/
}

/* Set the icon on right hand side and hide it */
.mobile-nav .icon {
  float: right;
  height: 40px;
  padding: 5px 30px;
  font-size: 1.4em;
  line-height: 40px;
  display: none;
}

/* Style the links inside the mobile navigation bar */
.mobile-nav a {
  float: left;
  display: block;
  padding: 5px 10px;
  margin: 0;
  color: #fff;
  text-decoration: none;
  height: 40px;
  line-height: 40px;
}

/* Change the color of links on hover */
.mobile-nav a:hover {
  background-color: #444;
  text-decoration: underline;
}

/* Add an active class to highlight the current page */
.mobile-nav a.active {
  /*background-color: #4CAF50;*/
  background-color:  #444;
  color: white;
}

.nav-main > ul {
  margin: 0;
  padding: 0;
  float: left;
  list-style-type: none;
}

.nav-main > ul > li {
  float: left;
}

.nav-item {
  display: inline-block;
  padding: 15px 20px;
  height: 40px;
  line-height: 40px;
  color: #fff;
  text-decoration: none;
}

.nav-item:hover {
  background-color: #444;
}

.nav-content {
  position: absolute;
  top: 70px;
  overflow: hidden;
  background-color: #222;
  max-height: 0;
}

.nav-content a {
  color: #fff;
  text-decoration: none;
}

.nav-content a:hover {
  text-decoration: underline;
}

.nav-sub {
  padding: 20px;
}

.nav-sub ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.nav-sub ul li a {
  display: inline-block;
  padding: 5px 0;
}

.nav-item:focus {
  background-color: #444;
}

.nav-item:focus ~ .nav-content {
  max-height: 400px;
}

.nav-content:active {
  max-height: 400px;
}

/*** #main-content goes here ***/
.growing {
  color: #f70a2a;
}

.shrinking {
  color: #72bf1b;
}

.chart-container {
  margin-left:auto; 
  margin-right:auto;
  position: relative;
  width:80vw;
}

.button-container-div {
  text-align: center;
  margin-bottom: 2em;
}

.select-css {
  display: block;
  font-size: 1em;
  margin: auto;
  margin-top: 2%;
  font-family: sans-serif;
  font-weight: 700;
  color: #444;
  line-height: 1.3;
  padding: .6em 1.4em .5em .8em;
  box-sizing: border-box;
  border: 1px solid #aaa;
  box-shadow: 0 1px 0 1px rgba(0,0,0,.04);    
}

.small {
  font-size: 1.4em;
}

.very-small {
  font-size: 1.2em;
}

.bottomNav {
  overflow: hidden;
  margin-top: 2%;
  clear: both;
}

.bottomNav a {
  display: block;
  text-align: center;
  padding: 14px 16px;
  font-size: 0.8em;
}

.faq {
  margin: 1%;
}

.faq h2 {
  font-size: 1.4em;
  color: #484a48;
  margin-bottom: 2%;
  }
  
  .faq h3 {
  font-size: 1.2em;
  color: #484a48;
  margin-bottom: 0;
  }
  
  .faq p {
  text-align: left;
  font-size: 1em;
  }
  
  .faq ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: white;
  }
  
  .faq li {
  float: none;
  border-right: 0px;
  font-size: 1em;
  margin: 1%;
  }
  
  .faq a {
  display: inline;
  color: gray;
  text-align: left;
  text-decoration: underline;
  padding: 0px;
}

table.center {
  margin-left:auto; 
  margin-right:auto;
  margin-bottom:0.8em;
}

p.footer {
  font-size: 1em;
}

tr.ukCaseRateComparisonTable {
  font-size: 1.2em;
  margin-block-start: 0.1em;
  margin-block-end: 0.1em;
}

#paraPercentChange {
  text-align: center;
  font-size:1.6em;
}

#focusBtn {
  background-color: #4CAF50;
  color: #f2f2f2;
  font-size: 1em;
  display:inline-block;
  padding:0.2em 1.2em;
  margin:0 0.3em 0.3em 0;
  border-radius:0.2em;
  box-sizing: border-box;
  text-decoration:none;
  font-family:'Roboto',sans-serif;
  font-weight:400;
  box-shadow:inset 0 -0.6em 1em -0.35em rgba(0,0,0,0.17),inset 0 0.6em 2em -0.3em rgba(255,255,255,0.15),inset 0 0 0em 0.05em rgba(255,255,255,0.12);
  text-align:center;
  position:relative;
}

#sevenDayCaseChange th, #sevenDayTestChange th, #nationalSevenDayCaseChange th {
  font-weight: 200;
  font-family: sans-serif, Impact, Charcoal;
  font-size: 0.6em;
  padding: 1%;
}

#focusBtn.disabled {
  background-color: #bfbdb6;
}

/* iPhone 6/7/8 plus landscape */
@media screen and (max-width: 813px){
  td.nationalCaseCount {
    font-size: 0.8em;
  }

  p.footer {
    font-size: 0.8em;
  }

  tr.ukCaseRateComparisonTable {
    font-size: 1.1em;
    margin-block-start: 0.1em;
    margin-block-end: 0.1em;
  }
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). 
Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .nav-main {
    display: none;
}

.mobile-nav {
    display: block;
    background-color: #333;
    overflow: hidden;
}

  .mobile-nav a {
      display: none;
  }

  .mobile-nav a.icon {
      float: right;
      display: block;
  }
}

/* The "responsive" class is added to the mobile-nav with JavaScript when the user clicks on the icon. 
This class makes the mobile-nav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 813px) {
  .mobile-nav.responsive {
      position: relative;
  }

  .mobile-nav.responsive a.icon {
      position: absolute;
      right: 0;
      top: 0;
  }
  
  .mobile-nav.responsive a {
      float: none;
      display: block;
      text-align: left;
  }
}

@media screen and (max-width: 600px) {
span {
  display: block;
  width: 50px;
  padding: 0 20px;
  margin: 0;
  word-break: keep-all;
  text-align: center;
}

.chart-container {
  margin-left:auto; 
  margin-right:auto;
  position: relative; 
  width:96vw;
}
.button-container-div {
  text-align: center;
  margin-bottom: auto;
}

.bottomNav {
  overflow: hidden;
  margin-top: 2%;
  clear: both;
}

.bottomNav a {
  display: block;
  text-align: center;
  padding: 14px 16px;
  font-size: 0.8em;
}

.faq {
  margin: 2%;
}

.faq h2 {
  font-size: 1em;
  color: #484a48;
  margin-bottom: 2%;
}

.faq h3 {
  font-size: 0.9em;
  color: #484a48;
  margin-bottom: 0;
}

.faq p {
  text-align: left;
  font-size: 0.8em;
}

.faq ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: white;
}

.faq li {
  float: none;
  border-right: 0px;
  font-size: 0.8em;
  margin: 1%;
}

.faq a {
  display: inline;
  color: gray;
  text-align: left;
  text-decoration: underline;
  padding: 0px;
}

#focusBtn {
  display:block;
  margin:0.4em auto;
  padding:0.1em 0.1em;
}

.select-css {
  display: block;
  font-size: 1em;
  margin: auto;
  margin-top: 6%;
  font-family: sans-serif;
  font-weight: 400;
  color: #444;
  line-height: 1.3;
  padding: .6em 0em .5em 0em;
  box-sizing: border-box;
  border: 1px solid #aaa;
  box-shadow: 0 1px 0 1px rgba(0,0,0,.04);    
}

.small {
  font-size: 1.4em;
}

.very-small {
  font-size: 1em;
}

.inline {
  display: inline;
  padding: 0 20px;
  margin: 0;
  word-break: keep-all;
  text-align: center;
}

td.nationalCaseCount {
  font-size: 0.6em;
}

p.footer {
  font-size: 0.6em;
}

tr.ukCaseRateComparisonTable {
  font-size: 1em;
  margin-block-start: 0.1em;
  margin-block-end: 0.1em;
}

#paraPercentChange {
  text-align: center;
  white-space: pre;
  margin-top: 8%;
  font-size:1em;
}

#sevenDayCaseChange th, #sevenDayTestChange th, #nationalSevenDayCaseChange th {
  font-weight: 200;
  font-family: sans-serif, Impact, Charcoal;
  font-size: 0.6em;
  padding: 1%;
}
}

/* iPhone 5/SE portrait */
@media screen and (max-width: 321px) {
table {
  margin-top: 0.8em;
}

tr.nationalTable {
  font-size: 1.3em;
  margin-block-start: 0.1em;
  margin-block-end: 0.1em;
}

tr.ukCaseRateComparisonTable {
  font-size: 0.9em;
  margin-block-start: 0.1em;
  margin-block-end: 0.1em;
}

td.nationalCaseCount {
  font-size: 0.5em;
}

#nationalSevenDayCaseChange th {
  font-weight: 200;
  font-family: sans-serif, Impact, Charcoal;
  font-size: 0.5em;
  padding: 0.8%;
}

}