/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #000;
  font-size: 16px;
  line-height: 1.4;
  font-family: 'Manrope', sans-serif
}

body {
  background-color: #141B4D;
  margin: 0;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Custom styles
   ========================================================================== */
  
h1 {
  font-family: "Yeseva One", sans-serif;
  font-size: 40px;
  line-height: normal;
  margin-top: 0;
  margin-bottom: 0;
}

h2 {
  font-family: "Yeseva One", sans-serif;
  font-size: 52px;
  line-height: normal;
  margin-top: 0;
  margin-bottom: 20px;
}

dd{
  font-weight: 800;
}

#content-container {
  max-width: 1440px;
  background-color: #FFFBF8;
  margin: 0 auto;
}

header #nav-logo {
  padding: 30px 35px;
}

header #nav-logo a {
  width: 115px;
  display: block;
  background: 0 0 url(../assets/logo.png) no-repeat;
  background-size: contain;
  text-indent: -9999px;
}

#heading-container {
  position: relative;
}

#masthead-container {
  height: 586px;
  display: block;
  overflow: auto;
  background: 0 0 url(../assets/masthead.png) no-repeat;
}

#signup-content {
  width: 530px;
  height: 260px;
  background: rgb(255, 255, 255, 0.6);
  border-radius: 16px;
  margin: 110px 35px;
  padding: 35px;
  position:absolute;
  top: 0;
}


#signup-container {
  width: 520px;
  margin: 200px 60px;
}

label {
  width: 100%;
  margin-bottom: 10px;
  display: inline-block;
}

.input-container {
  width: 520px;
  height: 50px; 
}

.input-container input {
  width: 342px;
  height: 42px;
  padding-left: 15px;
  border: 0;
  border-radius: 12px;
  background-color: #fff;
  color: #979797;
}

input:focus {
  outline-width: 0;
}

.empty-feedback, .invalid-feedback {
  display: none;
}

.was-validated :placeholder-shown:invalid ~ .empty-feedback {
  display: block;
  margin-top: 5px;
  color: #f00
}

.was-validated :not(:placeholder-shown):invalid ~ .invalid-feedback {
  display: block;
  margin-top: 5px;
  color: #f00
}

#result1, #result2 {
  height: 20px;
}

button {
  width: 140px;
  height: 43px;
  margin-top: 5px;
  margin-left: 15px;
  font-size: 14px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background-color: #141B4D;
  cursor: pointer;
}


#stats-container {
  width: 1052px;
  height: 215px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 24px;
  filter: drop-shadow(1px 20px 15px #b3b3b3);
  position: relative;
  top: -20px;
}

#stats-container dl {
  width: 300px;
  margin-top: 30px;
  margin-left: 30px;
  text-align: center;
  float: left;
}

#stats-container dt {
  font-size: 80px;
  color: #EF8F34;
}

#stats-container dd {
  color: #212121;
  margin: 0;
}

#section-content {
  margin-top: 20px;
}

.section {
  width: 85%;
  margin: 0 auto;
  padding: 0 0 50px 0;
  text-align: center;
}

.steps-container {
  width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.section img {
  padding-bottom: 30px;
  max-inline-size: 100%;
  block-size: auto;
}

.steps-container img {
  float: left;
  margin-left: 20px;
}

#bottom-container {
  height:400px;
  clear: both;
  color: #fff;
  background-color: #141B4D;
}

#bottom-container button {
  border: 1px solid #fff;
}

#bottom-content {
  width: 600px;
  margin: 0 auto;
  padding-top: 65px;
  text-align: center;
}

#bottom-content form {
  height: 70px;
  margin-left: 40px;
}

footer {
  height: 50px;
  color: #141B4D;
  font-size: 13px;
  padding: 20px 0 15px 20px;
}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 320px ) and (max-width: 599px) {
  header #nav-logo a {
    width: 120px;
    height: 35px;
  }

  h1 {
    font-size: 2.5em !important;
  }
  
  h2 {
    font-size: 2.5em !important;
    margin-bottom: 50px; 
  }

  p, dd {
    font-size: 0.8em !important;
  }

  dt {
    font-size: 4.5em !important;
  }

  .input-container {
    width: 90%;
  }

  .input-container input {
    width: 100%;
    background-color: #EDEDED;
  }

  .input-container button {
    margin-top: 10px;
    margin-left: 0;
  }
  
  #masthead-container {
    height: 300px;
    background-position: center;
    background-size:cover;
  }

  #signup-content {
    width: 85%;
    height: 265px;
    margin: 0 0 20px 0;
    padding: 30px;
    background: none;
    position: static;
  }

  #stats-container {
    width: 90%;
    height: 450px;
    margin-top: 40px;
    margin-bottom: 60px;
    position: static;
  }

  #stats-container dl {
    float: none;
    margin: 10px auto;
    padding-top: 15px;
  }

  .section img {
    max-inline-size: 100%;
    block-size: auto;
  }

  .steps-container {
    overflow: hidden;
    width: 300px;
    margin: 0 auto;
  }

  .steps-container img {
    margin-left: 0;
  }

  #bottom-container {
    height: 350px;
  }

  #bottom-content {
    width: 100%;
    padding-top: 40px;
  }

  #bottom-content h2 {
    margin-bottom: 0;
    padding-bottom: 0; 
  }

  #bottom-content form {
    width: 300px;
    margin: 0 auto;
    padding-bottom: 45px;
    text-align: left;
  }

  #bottom-content .input-container {
    width: 300px;
  }

  #bottom-content input {
    background-color: #fff;
  }

  #result1, #result2 {
    margin-top: 55px;
  }

  footer {
    font-size: 1em;
    height: 40px;
    padding: 15px 0 20px 20px;
  }
}

@media only screen and (min-width: 600px) and (max-width: 1059px){
  h1 {
    font-size: 1.5em;
  }
  
  h2 {
    font-size: 2.5em !important;
    margin: 50px 10px;
  }

  p, dd {
    font-size: 0.8em !important;
  }

  dt {
    font-size: 4em !important;
  }

  .input-container {
    width: 300px;
  }

  .input-container button {
    margin-top: 10px;
    margin-left: 0;
  }
  
  #masthead-container {
    height: 400px;
    background-position: center;
    background-size:cover;
  }

  #signup-content {
    width: 275px;
    height: 255px;
    margin: 32px 15px;
    padding: 30px;
  }

  #stats-container {
    width: 97%;
    height: 175px;
  }

  #stats-container dl {
    width: 30%;
    margin-top: 25px;
    margin-left: 2%;
  }

  .section {
    width: 100%;
    padding: 0px 0 50px 0;
  }

  .section img {
    padding-bottom: 30px;
    max-inline-size: 100%;
    block-size: auto;
  }

  .steps-container {
    overflow: hidden;
    width: 320px;
    margin: 0 auto;
  }

  .steps-container img {
    margin-left: 0;
  }

  #bottom-content {
    padding-top: 80px;
  }

  #bottom-content h2 {
    margin: 0;
  }
  
  #bottom-content form {
    margin-left: 0;
  }

  .input-container {
    width: 100%;
  }
  
  .input-container input {
    width: 250px;
    margin-right: 20px;
  }

  #result1 {
    margin-top: 50px;
  }

  #result2 {
    margin-top: 20px;
  }

  footer {
    font-size: 1em;
    height: 40px;
    padding: 20px 0 20px 20px;
  }
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
