/*! HTML5 Boilerplate v7.2.0 | MIT License | https://html5boilerplate.com/ */
/* main.css 2.0.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: 1em;
  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: 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;
}
/* ==========================================================================
     Browser Upgrade Prompt
     ========================================================================== */
.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}
/* ==========================================================================
     Author's custom styles
     ========================================================================== */
.hide {
  display: none;
}
html {
  font-family: "Roboto Mono", monospace;
}
header {
  background-color: #545250;
  color: #f2f1ef;
  margin-bottom: 3rem;
}
body {
  background-color: #f2f1ef;
}
.error {
  color: red;
}
main {
  max-width: 1100px;
  margin: 0 auto;
}
.container{
  max-width:1170px;
  margin:0 auto;
  padding:0px 10px;
}
form {
  padding: 2rem;
  border-radius: 5px;
  background-color: #545250;
}

form > label {
  display: block;
  padding-bottom: 0.5rem;
  color: #f2f1ef;
}
form > input {
  line-height: 2.3rem;
  margin-bottom:10px;
  width:97%;
}
form > button{
 width:100%;
}
@media screen and (min-width: 768px) {
  .container{
    padding:0px 30px;
  }
}
@media screen and (min-width: 600px){
  form > input {
    width: 52%;
  }
  form > button{
    margin-left: 1rem;
    width:40%
  }
}
form > button {
  padding: 10px 40px;
 
  border: 1px solid #f2f1ef;
  border-radius: 5px;
  background-color: #f2f1ef;
  transform: translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
  transition-duration: 0.3s;
  transition-property: transform;
}
form > button:hover {
  transform: scale(1.1);
}
h1 {
  margin: 0;
  padding: 50px 10px;
  font-size: 42px;
}
.flex {
  margin: 5rem 0;
}
@media screen and (min-width: 960px) {
  .flex {
    display: flex;
    justify-content: space-between;
  }
  form {
    padding: 2rem 3rem;
  }
}
.flex > .displayStock {
  border: 1px solid #545250;
  box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  padding: 1.5rem;
  background-color: white;
}
@media screen and (min-width: 960px) {
  .flex > .displayStock {
    width: 60%;
  }
}
.flex > .displayStock > h2 {
  border-bottom: 1px solid #545250;
  padding-bottom: 15px;
}
.flex > .displayStock > .details {
  color: #545250;
  background-color: white;
  font-weight: bold;
  line-height: 2.5rem;
}
.flex > .displayStock > .details > span {
  font-weight: normal;
}
.flex > .displayStock > .details > .stock-symbol {
  font-size: 2rem;
  color: #cc2a36;
}
.flex > div {
  /* width: 25%; */
  align-self: center;
}
.flex > div > button {
  padding: 30px 60px;
  background-color: #545250;
  color: #f2f1ef;
  border-radius: 5px;
  margin-top: 1.5rem;
  box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.flex > div > button:hover {
  background-color: #f2f1ef;
  color: #545250;
}
.displayHistory {
  /* ==========================================================================
     Helper classes
     ========================================================================== */
  /*
   * Hide visually and from screen readers
   */
  /*
  * 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
  */
  /*
  * Extends the .sr-only class to allow the element
  * to be focusable when navigated to via the keyboard:
  * https://www.drupal.org/node/897638
  */
  /*
  * Hide visually and from screen readers, but maintain layout
  */
  /*
  * 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.
  */
  /* ==========================================================================
     EXAMPLE Media Queries for Responsive Design.
     These examples override the primary ('mobile first') styles.
     Modify as content requires.
     ========================================================================== */
  /* ==========================================================================
     Print styles.
     Inlined to avoid the additional HTTP request:
     https://www.phpied.com/delay-loading-your-print-css/
     ========================================================================== */
}
@media screen and (min-width: 960px) {
  .displayHistory {
    width: 65%;
  }
}
.displayHistory > table {
  background-color: #f2f1ef;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 4rem;
}
.displayHistory > table > thead {
  background-color: #545250;
  color: #f2f1ef;
}
.displayHistory > table > tbody > tr:nth-child(odd) {
  background-color: white;
}
.displayHistory > table tr {
  line-height: 2.5rem;
}
.displayHistory > table tr > td {
  padding-left: 1rem;
}
.displayHistory .hidden {
  display: none !important;
}
.displayHistory .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 */
}
.displayHistory .sr-only.focusable:active,
.displayHistory .sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}
.displayHistory .invisible {
  visibility: hidden;
}
.displayHistory .clearfix:before,
.displayHistory .clearfix:after {
  content: " ";
  /* 1 */
  display: table;
  /* 2 */
}
.displayHistory .clearfix:after {
  clear: both;
}
@media only screen and (min-width: 35em) {
  .displayHistory {
    /* Style adjustments for viewports that meet the condition */
  }
}
@media print, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 1.25dppx), (min-resolution: 120dpi) {
  .displayHistory {
    /* Style adjustments for high resolution devices */
  }
}
@media print {
  .displayHistory {
    /*
       * Don't show links that are fragment identifiers,
       * or use the `javascript:` pseudo protocol
       */
    /*
       * Printing Tables:
       * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
       */
  }
  .displayHistory *,
  .displayHistory *:before,
  .displayHistory *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster */
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .displayHistory a,
  .displayHistory a:visited {
    text-decoration: underline;
  }
  .displayHistory a[href]:after {
    content: " (" attr(href) ")";
  }
  .displayHistory abbr[title]:after {
    content: " (" attr(title) ")";
  }
  .displayHistory a[href^="#"]:after,
  .displayHistory a[href^="javascript:"]:after {
    content: "";
  }
  .displayHistory pre {
    white-space: pre-wrap !important;
  }
  .displayHistory pre,
  .displayHistory blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  .displayHistory thead {
    display: table-header-group;
  }
  .displayHistory tr,
  .displayHistory img {
    page-break-inside: avoid;
  }
  .displayHistory p,
  .displayHistory h2,
  .displayHistory h3 {
    orphans: 3;
    widows: 3;
  }
  .displayHistory h2,
  .displayHistory h3 {
    page-break-after: avoid;
  }
}
