x/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

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

html {
  color: #222;
  font-size: 1rem;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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: 1rem 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;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

  body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 1.02rem;
    line-height: 1.6;
  }

/* header image OpMEskyline.png is original volunteer artwork created for OpenMaine */
  header {
    background-attachment: scroll, scroll, scroll, fixed;
    background-image: url('../img/OpMEskyline.png');
    background-position: bottom left, bottom right, top left, top center;
    background-repeat: no-repeat, no-repeat, repeat, no-repeat;
		background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3% 0px 2% 0px;
  }

      header .content-wrapper {
        width: 80%;
        align-self: center;
      }
  
      header h1 {
        text-align: center;
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.2;
        margin: 1.7rem 0 0 0;
        color: #fff;
        text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
      }

  main .content-wrapper {
    margin: 15px;
  }

  p {
    padding: 0 5px;
  }

  a {
    font-weight: 600;
    text-decoration: none;
    color: #1a346f;
  }

      a:hover {
        font-weight: bolder;
      }

      a:visited {
        color: #8192AF
      }

  
  .intro {
    padding-bottom: 20px;
    margin: 30px 0 40px 0;
    border-bottom: .5px solid #1a346f;
  }

  .blue-text {
    color:#1a346f;
  }

  .flex-column {
    display: flex;
    flex-direction: column;
  }
      .flex-column>div {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
      }
  .row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    margin-top: 20px;
  }

  #notElig, #calculator{
    display: none;
  }

  #landlordElig, #tenantElig, #sharedElements, #outputDiv {
    display: none;
  }
  #landP1, #tenP1, #tenAddAmts, #landAddAmts {
    display: none;
  }

  /* #noAmtError {
    display: none;
    width: fit-content;
    background-color: rgba(240, 152, 152, 0.623);
    border-radius: 3px;
    padding: 2px 7px;
  } */

  
      h3 {
        font-weight: 700;
      }

      .tab h3 {
        text-align: center;
        padding: 0 10%;
        margin: 10px 0px;
      }

      ul {
        padding-left: 8%;
        margin-left: 5px;
      }
    
      li{
        list-style-type:disc;
        padding-right: 5%;
        margin-bottom: 1%;
      }

  .help-text {
    background-color: #e8f0f0;
    border-radius: 7px;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.3;
    padding: 10px;
  }

      .help-text.notice {
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.6;
        padding: 5px 10px;
        margin-bottom: 10px;
      }
    
/* ------------------styles for calculator--------------------- */

  .calculator {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    background: #fff;
    border-radius: 7px;
    margin: 5% 0px 0px 0px;
    padding: 0px 4%;
  }

      .calculator h3 {
        padding: 0px;
        margin: 15px 0px 10px 0px;
        padding-left: 0px;
      }

      .calculator h4 {
        margin: 10px 0px;
      }

      .calculator h5 {
        font-size: 1.4rem;
        font-weight: 600;
        line-height: 1.15;
        text-align: center;
        margin: 10px 7px;
      }
          .calculator h5.blue-text{
            margin-top: 50px;
          }

      .calculator label {
        font-size: 1.5rem;
        font-weight: bold;
      }

      .calculator > .content-wrapper {
        display: flex;
        justify-content: center;
      }
    
      .currency-input {
        width: 5rem;
        font-size: 1.5rem;
        align-self: center;
        border: none;
        border-radius: 10px;
        box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease 0s;
        cursor: pointer;
        outline: none;
        padding: 7px 7px;
        margin: 0 2px;
      }
    
          input::-webkit-inner-spin-button, input::-webkit-outer-spin-button{
            -webkit-appearance: none;
          }


  #increaseOutput, #newTotal, #maxIncAmt, #landAddAmtsTotal {
    display: inline-block;
    text-align: center;
    min-width: 110px;
    font-size: 1.5rem;
    border-bottom: .5px solid #b7b7b7;
    margin: 0px 0px 0px 10px;
  }
    #increaseOutput {
      min-width: 90px;
    }

  #landAddAmts .content-wrapper {
    margin: 10px 10%;
  }
    #landAddAmts label {
      font-size: 1rem;
    }
    #landAddAmts .currency-input {
      width: 5rem;
      font-size: 1.4rem;
      padding: 4px 7px;
      margin: 4px 2px;
    }

  #yesButton{
    background-color: #ddd8ee;
  }

  #calculateButton {
    font-size: 1.3rem;
    font-weight: 600;
    color:#000;
    background-color: #C5D4EB;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
    padding: 7px 30px;
    margin: 15px 10px;
  }


/* ------footer------- */

  footer {
    background-color: #b7b7b7;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 10px 0px;
    margin-top: 60px;
  }

      footer .content-wrapper {
        display: flex;
        flex-flow: column wrap;
      }

      footer .social {
        display: flex;
        justify-content: center;
        flex-flow: row;
      }

      footer p {
        margin: 0;
      }

      footer a img {
        height: 40px;
        width: 40px;
        padding: 15px;
      }


/* -------------CSS for form wizard ------------------ */

/* parent div for form elements */
.formWizard {
  display: flexbox;
  background-color: #e8f0f0;
  border-radius: 7px;
  padding: 30px 0px 0px 0px;
}

/* hide all form steps by default: */
  .tab {
    display:none;
    padding: 0px 2%;
  }
  
  /* circles to indicate the steps of the form: */
  .circleDiv {
    text-align: center;
    margin-top: 10px;
  }

  .step {
    height: 25px;
    width: 25px;
    margin: 0 2px;
    background-color: #1a346f;
    border: none;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.5;
  }
  
  /* Mark the active step: */
  .step.active {
    opacity: 1;
  }
  
  /* interior divs to hide/display depending on JS click event */
  #selectUser {
    display:flex;
    align-content: center;
    justify-content: center;
  }

      #selectUser label {
        font-size: 1.2rem;
        font-weight: 600;
        padding-right: 10px;;
      }

      #selectUser select {
        font-weight: 500;
        padding: 5px 15px;
        border: .5px solid #a9a9a9;
        box-shadow: 0 1px 0 1px rgba(0,0,0,.04);
	      border-radius: .5em;
      }

      .expl-elig {
        display: flex;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        padding-left: 5%;
        padding-right: 5%;
      }


  /* wrapper div for form buttons */
  .form-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 20px;
  }

      button {
        width: 100%;
        font-size: 1.2rem;
        font-weight: 600;
        color:#000;
        background-color: #C5D4EB;
        border: none;
        border-radius: 10px;
        box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease 0s;
        cursor: pointer;
        outline: none;
        padding: 10px 0px;
        margin: 2% 0px;
      }

      .start-over {
        margin-right:auto;
      }

/* -----------tool tips-------------- */
.tool-tip {
  width:fit-content;
  height:min-content;
  background: none;
  padding: 0;
  margin: 0 .2rem;
  box-shadow: none;
}

.tippy-box{
  font-size: 1rem;
  font-weight: normal;
}

    .tippy-box a {
      color: #C5D4EB;
      font-weight: bold;
    }

    .tippy-box a:visited {
      color: #a9a9a9;
    }

.fa-question-circle {
  color: #a9a9a9;
  vertical-align:top;
  margin: 0 5px;
}

.fa-exclamation-circle {
  color: #df8291;
  vertical-align:center;
  margin: 0 10px;
}





/* ==========================================================================
   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
 */

.sr-only {
  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 .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.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
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. 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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 768px) {
  main {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
      main .content-wrapper {
        max-width: 70%;
      }
  .form-buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
  }

  button {
    width: fit-content;
    font-size: 1rem;
    font-weight: 600;
    padding: 6px 20px;
    margin: 15px 10px;
  }  

  #landAddAmts .content-wrapper {
    margin: 10px 20%;
  }
      #landAddAmts label {
        font-size: 1.1rem;
      }

  footer .content-wrapper {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
  }

      footer .page-author, .social, .contact {
        margin: 0 20px;
      }

      footer a img {
        height: 40px;
        width: 40px;
        padding: 15px;
      }
}

  h5 {
    font-size: 1.8rem;
    font-weight: 600;
  }


@media only screen and (min-width: 1200px) {
  /* Style adjustments for viewports that meet the condition */
  
  header h1 {
    font-size: 3rem;
    padding: 0 5%;
  }

  main {
    font-size: 1.3rem;
    line-height: 1.3;
  }
    main .content-wrapper {
      margin: 15px 22%;
    }

  h5 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 70px;
  }
  button {
    font-size: 1.2rem;
    padding: 7px 35px;
    margin: 15px 10px;
  }

  .help-text {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.3;
    padding: 30px 50px 30px 60px;
  }

      .help-text.notice {
        font-size: 1.3rem;
      }

  .formWizard {
  min-height: 300px;
}
  .calculator-section {
    padding-top: 0px;
  }
      .calculator-section h2 {
        font-size: 2.3rem;
        padding: 5px 0px;
      }

      .calculator-section h5 {
        font-size: 1.3rem;
        margin: 30px 0px 25px 0px;
      }
  
  .calculator {
    min-height: 300px;
    flex-flow: row wrap;
    align-content: center;
    justify-content: space-evenly;
    margin-top: 30px;
  }

      .calculator h3 {
        padding: 0px 7%; 
      }

  .tab #selectUser{
    display: flex;
    align-items: center;
  }
  #selectUser {
    min-height: 240px;
  }

  footer {
    height: 130px;
    padding-left: 3%;
    padding-right: 3%;
  }

      footer p {
        font-size: 1.2rem;
        padding: 0px 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;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

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

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

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

