/*************************************
 * NOTE: uswds v2.6.0 must be included 
 * before this stylesheet 
 *************************************/

/*! Legacy styles from USWDS V1 */
.ruler-before::before {
  content: "";
  display: block;
  border-top: 4px solid #205493;
}
.ruler-after::after {
  content: "";
  display: block;
  border-bottom: 4px solid #205493;
}

/* Custom Component Styles */
/* --> Simple card with one button a title and summary */
.one-button-with-summary-card {
  text-align: center;
  border: 1px solid #212121;
  padding-top: 1.5em;
  padding-bottom:1.25em;
  margin-bottom: 1em;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.one-button-with-summary-card p {
  /* font-size: 20px; */
  text-align: left;
  flex-basis: 100%;
}

.one-button-with-summary-card .grid-row {
  flex-grow: 1;
}

.one-button-with-summary-card .usa-button {
  background-color: #0071bc;
  width: auto;
  -ms-flex-item-align: end;
  align-self: flex-end;
  margin: 0 auto;    
}

/* Title sizes */
.title{
  font-family: "Merriweather", serif;
  font-size: 25px;
}

@media(min-width: 993px){
  .title{
    font-size: 30px;
  }
}

/*Overwrite page specific USWDS rules*/
.usa-alert--error {
  /* background-image defined in /src/project/main/templates/main/static.html */
  background-repeat: no-repeat;
  background-color: #f4e3db;
}

.usa-alert--info {
  /* background-image defined in /src/project/main/templates/main/static.html */
  background-repeat: no-repeat;
  background-color: #e7f6f8;
}

.usa-link--external::after {
  /* background-image defined in /src/project/main/templates/main/static.html */
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 100%;
  content: "";
  display: inline-block;
  height: 1em;
  margin-bottom: -4px;
  margin-left: 0.25rem;
  width: 1em;
}

.usa-link--external:hover::after{
  /* background-image defined in /src/project/main/templates/main/static.html */  
  background-repeat:no-repeat;
}

/*! Content styles */
section.bg-primary-lighter-alt {
  background-color: rgba(0, 113, 188, 0.1)!important;
  position: relative;
}
section.bg-primary-lighter-alt::before, 
section.bg-primary-lighter-alt::after{
  content: "";
  position: absolute;
  background-color: rgba(0, 113, 188, 0.1)!important;  
  /* fill vertically */
  top: 0;
  bottom: 0;
  width: 100vw;
  right: 100%;
}
section.bg-primary-lighter-alt::after { 
  width: 100vw;
  left: 100%;
  /* not browswer prefixed */
}

main{
  overflow: hidden;
}
.bg-primary {
  background-color: #20558a;
}

h2 {
  font-size: 27px;
}

h3 {
  font-size: 17px;
}

p {
  font-size: 18px;
}

@media (max-width: 992px) {
  .mobile-hide {
    display: none;
  }
}

@media (min-width: 993px) {

  h2 {
    font-size: 30px;
  }

  .usa-section {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

.box-shadow {
  -webkit-box-shadow: 0px 4px 3px -1px rgba(0, 0, 0, 0.34);
  box-shadow: 0px 4px 3px -1px rgba(0, 0, 0, 0.34);
}

.section-with-margin {
  margin-right: 5px;
  margin-left: 5px;
}
@media (min-width: 768px) {
  .section-with-margin {
    margin-right: 0px;
    margin-left: 0px;
  }
}

.section-with-border {
  border: 3px solid #205493;  
}

section#literature_section_1 .usa-button,
section#resources_section_1 .usa-button,
section#resources_section_2 .usa-button {
  float: right;
  width: 210px;
}

@media (min-width: 640px) {
  section#literature_section_1 .usa-button,
  section#resources_section_1 .usa-button,
  section#resources_section_2 .usa-button {
    float: none;
    width: auto;
  }  
}

.usa-link--external::after {
  height: 1em;
  margin-bottom: -4px;
  width: 1em;
}

/* MAIN */
main#main_content .grid-container {
  padding-right: 0px;
  padding-left: 0px;
}

@media (min-width: 768px) {
  main#main_content .grid-container {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

/* HERO SECTION  */
section#hero .usa-alert {
  padding-top: 1.25rem;
}

section#hero .usa-alert.extra-top-padding {
  padding-top: 2.75em;
  background-position: 1.75rem 2.75rem;
}

section#hero .usa-alert.extra-top-padding .close-button-wrapper {
  top: 2.75rem;
}

section#hero .usa-alert.hidden {
  display: none;
}

section#hero .usa-alert .usa-alert__body {
  padding-right: 3.25rem;
}

section#hero .usa-alert .usa-alert__body.mobile-lg\:padding-x-0 {
  padding-left: 0;
  padding-right: 0;
}

section#hero .usa-alert .close-button-wrapper {
  position: absolute;
  top: 1rem;
  right: 20px;
}

section#hero .hero-inner-wrapper .stretch-container img {
  max-width: none;
}

@media (min-width: 1024px) {
  section#hero .hero-inner-wrapper .stretch-container img {
    max-width: 1166px;
  }
}

section#hero .h1-wrapper {
  display: flex;
  align-items: center;
  margin: auto 0;
}

section#hero .hero-inner-wrapper {
  display: flex;
  position: relative;
  height: 196px;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

section#hero .hero-inner-wrapper .stretch-container {
  position: absolute;
  right: -80px;
  z-index: -10;
}
section#hero .h1-wrapper h1 {
  font-size: 28px;
  margin: 0;
  font-family: "Merriweather", serif;
  font-weight: bold;
  color: #ffffff;
  padding: 0px 20px;
}

@media (min-width: 640px) {
  section#hero .usa-alert .usa-alert__body.mobile-lg\:padding-x-0 {
    padding-left: 3.25em;
    padding-right: 3.25em;
  }
}

@media (min-width: 640px) and (max-width: 991px) {
  section#hero .h1-wrapper h1 {
    font-size: 32px;
  }
}

@media (min-width: 992px) {
  section#hero .usa-alert {
    background-position: 1.75rem 1.25rem;
  }

  section#hero .usa-alert .close-button-wrapper {
    top: 1rem;
  }

  section#hero .hero-inner-wrapper .stretch-container {
    right: -40px;
  }
  section#hero .h1-wrapper h1 {
    font-size: 40px;
  }
}

/* Sequences section */
/* --> .link-to-form-container */
#sequences_section .link-to-form-container {
  border: 3px solid #205493;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#sequences_section .link-to-form-container .title {
  font-family: "Source Sans Pro","Helvetica Neue","Helvetica","Roboto","Arial",sans-serif;
  margin-top:0;
}

#sequences_section .link-to-form-container .usa-button {
  background-color: #0071bc;
  width: auto;
}

@media (min-width: 992px) {
  #sequences_section .link-to-form-container {
    height: 100%;
    margin-bottom: 0;
  }

  #sequences_section .link-to-form-container .title {
    font-size: 30px;
    margin-bottom: 0.25em;
  }
  #sequences_section .link-to-form-container p {
    margin-bottom: 1.25em;
  }
  /*#sequences_section .link-to-form-container .usa-button {
    margin-left: 41%;
  }*/
}

/*  ---> .covid19-sequences */
#sequences_section .covid19-sequences {
    text-align: center;
    height: 100%;
}
#sequences_section .covid19-sequences .title {
  font-family: "Merriweather", serif!important;
  margin-top: 0;
  margin-bottom: 20px;
  
}

#sequences_section .covid19-sequences .display-flex {
  justify-content: space-around; /* IE 11 */
  justify-content: space-evenly;
}

#sequences_section .covid19-sequences .statistics-numbers {
  font-size: 35px;
}

#sequences_section .covid19-sequences .statistics-1 a {
  display: inline-block;
  opacity: 0;
  font-weight: bold;
  color: #205493;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
  text-align: center;
  transition: opacity 0.15s ease-out;  
}

#sequences_section .covid19-sequences .statistics-1 {
  flex-basis: 100%;
  max-width: 49%;
}

@media (min-width: 860px) {

  #sequences_section .covid19-sequences .statistics-1 {
    flex-basis: 100%;
    max-width: 33%;
  }
}

/* Data submission section */
section#data_submission_section .title {
  font-family: "Source Sans Pro","Helvetica Neue","Helvetica","Roboto","Arial",sans-serif;
  margin-top:0;
}

/* SARS-CoV-2 Sequence Resources */
section#resources_section_1 h3.subtitle {
  font-size: 21px;
}
section#resources_section_1 h3.subtitle.no-top-margin {
  margin-top: 0px;
}

section#resources_section_1 .usa-alert--info .usa-alert__body.mobile-lg\:padding-x-0 {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 640px) {
  section#resources_section_1 .usa-alert--info .usa-alert__body.mobile-lg\:padding-x-0 {
    padding-left: 3.25em;
    padding-right: 3.25em;
  }
}

@media (min-width: 768px) {
  section#resources_section_1 h3.subtitle {
    font-size: 30px;
  }
}

/* COVID19 Literature Section */

/* Other Resources */

.other-resources-section a {
  display: block;
  margin-bottom: 1em;
  text-decoration: underline;
}

/* Temp css */

.hero-container + .usa-section{
  padding-top:0;
}


/* Feedback button */
.covid19-feedback-button {
  /* background-image defined in /src/project/main/templates/main/static.html */
  background-color: #2e8540;
  background-repeat: no-repeat;
  background-position-x: 20px;
  background-position-y: 14px;
  background-size: 20px auto;
  color: #fff;
  position: fixed;
  z-index: 99;
  bottom: 0;
  right: 0;
  margin: 0;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
  transition: background-color .15s, box-shadow .3s;
  font-size: 20px;
  height: 44px;
  line-height: 24px;
  border-radius: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-block;
  font-family: "Source Sans Pro","Helvetica Neue","Helvetica","Roboto","Arial",sans-serif;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  padding: 10px 10px 10px 46px;
  text-indent: -1000px;
  overflow: hidden;
  width: 44px;  
}

.covid19-feedback-button:hover {
  background-color: rgb(39, 114, 54);
}

@media (min-width: 601px) {
  .covid19-feedback-button {
    padding-right: 20px;
    text-indent: 0px;
    overflow: visible;
    width: auto; 
  }
}

/* Jump Links */
.jumplinks-container {
  display: none;
  width: auto;
  min-width: 300px;
}

@media (min-width: 860px) {
  .jumplinks-container {
    display: block;
  }
}
nav.nav-jumplinks {
  border: 1px solid #dfe1e2;
  border-bottom: none;
  color: #0071BC;
}

nav.nav-jumplinks h2 {
  color: #0071BC;
  background-color: #f0f0f0;
  border-left: 6px solid  #0271bf;
}
nav.nav-jumplinks .usa-sidenav {
  margin-left: 0rem;
  margin-right: 0rem;
}
nav.nav-jumplinks .usa-sidenav li a {
  color: #0071BC;
  padding-left: 30px;
  font-size: 18px;
}