/*! 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: 14.4px;
  line-height: 1.4;
  font-family: 'Open Sans', sans-serif;
  box-sizing: border-box; 
  scroll-behavior: smooth;
}

/*
 * 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;
}

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

/* ==========================================================================
   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: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@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;
  }
}

/*
 * General Purpose styles
 */ 

.layoutContainer {
  display: grid;
  grid-template-rows: 4em 1fr 10em;
  height: 100vh;
}

.mainHeader {
  grid-row: 1;
  background-color: hsl(204, 64%, 23%);
  height: 4em;
  width: 100vw;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
}

.mainNavigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4em;
  width: 100%;
  padding: 0 1.25em;
}

.mainNavigation-logo {
  max-height: 2em;
  opacity: 0.75;
}

.hamburger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 66%;
}

.hamburger .line {
  display: block;
  width: 2.5em;
  height: 0.33em;
  background-color: hsl(240, 11%, 98%, 0.8);
}

.mainNavigation-links {
  position: fixed;
  width: 100%;
  background-color: hsl(204, 64%, 23%);
  left: 0;
  top: 3rem;
  line-height: 4em;
  padding: 0;
}

.mainNavigation > .mainNavigation-link {
  justify-content: flex-start;
}

.mainNavigation-link {
  display: flex;
  align-items: center;
  line-height: 4;
  justify-content: center;

  color: hsl(240, 11%, 98%, 0.8);
  text-decoration: none;
  flex: 1;
  height: 100%;
  position: relative;
}

.mainNavigation-link:hover {
  text-decoration: underline;
  color: hsl(240, 11%, 98%, 1.0);
}

.mainNavigation-link a:visited {
  color: hsl(240, 11%, 65%, 1.0);
}

.mainNavigation-link > button {
  color: hsl(240, 11%, 98%, 0.8);
  cursor: pointer;
  line-height: 4;
  width: 100%;
}

.mainNavigation-link > button:hover {
  text-decoration: underline;
  color: hsl(240, 11%, 98%, 1.0);
}

.hide {
  display: none;
}

.mainBody {
  grid-row: 2;
  height: 100%;
  background: linear-gradient(180deg, #EEEEEE, #bfe2fc);
  display: flex;
  justify-content: center;
}

.mainBody-container {
  max-width: 1200px;
  width: 95vw;
  background-color: hsl(60, 25%, 98%);
  padding-bottom: 5em;
}

.mainBody-content {
  max-width: 1024px;
  margin: 1em auto;
}

.mainFooter {
  grid-row: 3;
  background-color: hsl(204, 64%, 23%);
  color: hsl(240, 1%, 87%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 1em 0;
  line-height: 1;
  text-align: center;
}

.mainFooter-slogan {
  font-size: 1.4em;
  text-transform: uppercase;
  margin: 0;
}

.mainFooter-links a {
  color: hsl(240, 11%, 98%);
  text-decoration: none;
  font-weight: bold;
  color: #FAFAFA;
  margin: 0;
}

.mainFooter-links a::after {
  content: "\2219";
  padding: 0 0.4rem 0 0.8rem;
}
.mainFooter-links a:last-child::after {
  content: "";
  padding: 0 0.4rem 0 0.8rem;
}

.mainFooter-address,
.mainFooter-copyright {
  font-size: 0.75em;
  margin: 0;
}

.mainBody-subheader {
  height: 4em;
  max-width: 1024px;
  margin: 1em auto;
  border-bottom: 1px solid #cccccc;
  display: flex;
  align-items: center;
}

.mainBody-subheader h1 {
  font-size: 1.125em;
  font-family: 'Hind', sans-serif;
}

.twoColumn {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr 2fr;
}

/*
 * Page specifc styles
 */

.logoContainer {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logoContainer img {
  max-width: 500px;
  width: 100%;
}

.splashContainer {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.splashContainer img {
  max-width: 330px;
  margin: 1em;
  box-shadow: 2px 2px 6px #999;
}

.mainBody-contactItem {
  padding: 1em 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.1);
  line-height: 1.5;
}

.mainBody-contactItem header {
  font-weight: 700;
  margin-bottom: 0.5em;
}

.mainBody-videoDirections {
  justify-self: end;
}

.mainBody-locationMap {
  display: flex;
  justify-content: center;
}

.mainBody-sidebarLinks {
  padding: 0;
}

.mainBody-sidebarLinks a {
  color: #1565c0;
  text-decoration: none;
  transition: color 150ms ease;
}

.mainBody-sidebarLinks a:hover {
  color: #104c90;
}

.mainBody-sidebarLinks li {
  list-style: none;
}

.mainBody-demoVideos iframe {
  margin-bottom: 0.5em;
}

.instrumentTable,
.accessoryTable {
  display: none;
}

.instrumentTable.active,
.accessoryTable.active {
  width: 100%;
  display: grid;

  grid-template-columns: 1fr;
  grid-auto-rows: minmax(2.8em, auto);
}

.dataTable-row {
  display: flex;
  border-bottom: 1px solid #ddd;
}

.dataTable .dataTable-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.dataTable .dataTable-item:first-child {
  padding-left: 1em;
}

.dataTable .dataTable-item.dataTable-item-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.dataTable .dataTable-item.dataTable-item-list > li {
  display: list-item;
  padding-left: 0;
}

.instrumentTable .dataTable-header {
  width: 100%;
}

.dataTable-header {
  font-size: 1.1em;

  display: flex;
  align-items: center;

  color: white;
  padding-left: 1em;

  background-color: hsl(204, 64%, 23%);
  width: 100%;
}

.dataTable-subHeader {
  display: flex;
  align-items: center;
  background-color: hsl(206, 100%, 89%);
  width: 100%;
}

.accessoryTable-brandSubheader {
  grid-column: 1/4;
  padding-left: 1em;
  background-color: hsl(205, 100%, 94%);
}

.dataTable-subheaderPrice,
.dataTable-subheaderName {
  font-weight: 600;
}

.dataTable-subheaderName,
.dataTable-item {
  padding-left: 1em;
}

.dataTable-selectors {
  line-height: 3em;
  display: flex;
  border-bottom: 1px solid #ccc;
  margin-bottom: 0.25em;
}

.dataTable-selector {
  padding: 0 1em;
  height: 100%;
  display: inline-block;
  cursor: pointer;
  border-top-left-radius:  0.25em;
  border-top-right-radius: 0.25em;
}

.dataTable-selector.active {
  border-bottom: 2px solid hsl(204, 64%, 23%);;
}

.rentalInfoLink {
  padding: 0.75rem 1rem;
  border-radius: 3px;
  background: #17496B;
  color: #FAFAFA;
  display: inline-block;
  margin: 1rem 0;
  text-decoration: none;
}

.infoBlock {
  background-color: #f7f7f7;
  border-radius: 3px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px #e6e6e6;
  position: relative;
}

.infoBlock-header {
  border-bottom: 1px solid #ddd;
  border-radius: 3px 3px 0 0;
  font-weight: bold;
  line-height: 1.5em;
  padding: 0.45em 0.675em;
}

.infoBlock-body {
  font-size: 0.9em;
  line-height: 1.5em;
  /* padding: 0.675em 0.675em; */
  padding: 0.75rem 1.5rem;
}

.infoBlock-body p {
  margin: 0;
}

.mainBody-sidebar .infoBlock {
  margin-right: 2em;
  margin-bottom: 1em;
}

.rentalStep {
  display: block;
  height: 1.5em;
  margin-bottom: 0.675em;
}

.rentalInfoTable {
  width: 90%;
  margin: 0 auto 1.5em;
}

.rentalInfoTable-header {
  line-height: 1.5em;
}

.rentalInfoTable-header th {
  border-bottom: 1px solid #a6a6a6;
  font-weight: 600;
  padding: 0.675em 0;
  text-align: left;
}

.rentalInfoTable-body td {
  border-bottom: 1px solid #ddd;
  padding: 0.675em 0;
}

.rentalInfoTable-body td:nth-child(1) {
  font-style: italic;
}

.rentalInfo-address {
  margin: 0.8em;
}

.rentalInfo-address span {
  font-style: italic;
  display: block;
}

.formDetails {
  display: flex;
  justify-content: space-between;
}

.formDetails-venmo {
  width: 12em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.formDetails-venmo span {
  margin-bottom: 0.25em;
}

.formDetails-venmo img {
  box-shadow: 1px 1px 4px #c0c0c0;
}

.formDetails-text {
  flex-basis: 65%;
}

.dropdownMenu-trigger {
  background: none;
  border: none;
  height: 100%;
  padding: 0;
}

.dropdownMenu-closed {
  display: none;
}

.dropdownMenu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}

.dropdownMenu-item {
  background-color: #154260;
  text-align: left;
  padding: 0 1em;
}

.dropdownMenu-item:hover {
  text-decoration: underline;
  color: hsl(240, 11%, 98%, 1.0);
}

.dropdownMenu-item > a {
  color: hsl(240, 11%, 98%, 0.8);
  padding: 20px;
  text-decoration: none;
}

.dropdownMenu-item > a:hover {
  color: hsl(240, 11%, 98%, 1.0);
  text-decoration: underline;
}

@media screen and (min-width: 640px) {
  .mainHeader {
    justify-content: center;
  }

  .mainNavigation {
    width: 45.7em;
  }

  .mainFooter {
    font-size: 16px;
  }

  .splashContainer {
    flex-direction: row;
  }

  .mainNavigation-links {
    display: flex;
    position: static;
    width: 100%;
    height: 100%;
    margin-right: auto;
    background: none;
    list-style: none;
  }

  .hamburger {
    display: none;
  }
}
