/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.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
 *
 * 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;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
  margin: 0;
  padding: 0;
  font-family: Roboto, sans-serif;
  min-width: 375px;
}

header {
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  height: 66vh;
}

header .video-container {
  position: fixed;
  width: 100%;
  height: 66vh;
  z-index: -1;
}

header video {
  position: absolute;
  transform: translateX(-50%) translateY(-50%);
  left: 50%;
  top: 50%;
  min-height: 100%;
  min-width: 100%;
  width: auto;
  height: auto;
  z-index: -1;
}

.video-overlay {
  height: 66vh;
  width: 100%;
  background: linear-gradient(0deg,rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 16%);
}

.header-push {
  width: 100%;
  height: 66vh;
}

/* highlights =================================== */
.highlight object {
  height: 35px;
  width: 35px;
  flex-shrink: 0;
  margin-right: 1rem;
}
.highlight-cost {
  text-align:right;
  line-height: normal;
}
.showcase-photos {
  height: 45vh;
  overflow-x: auto;
}

.showcase-photos .container {
  height: 100%;
  white-space: nowrap;
  max-width: fit-content;
  width: fit-content;
}

.showcase-photos img,
.showcase-photos .yt {
  height: 100%;
  width: auto;
  border-radius: 16px;
  display: inline-flex;
  vertical-align: middle;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.about summary::marker {
  content: "";
}
.about details[open] summary {
  display: none;
}

.amenities li {
  vertical-align: center;
}
.amenities object {
  height: 25px;
  width: 25px;
  flex-shrink: 0;
  margin-right: 1rem;
}
.amenities legend {
  float: none;
  padding: inherit;
  margin-bottom: 0;
}

/* Access =================================== */
.la-wrapper {
  box-shadow: inset 0 0 8px #999;
}

.access summary {
  vertical-align: center;
}
.access summary::marker {
  content: "";
}
.access summary object {
  height: 20px;
  width: 20px;
}
.access details[open] .closed {
  display: none;
}
.access details:not([open]) .opened {
  display: none;
}

.access-highlights object {
  height: 16px;
  margin: 0 6px 0 12px;
}

/* routes =================================== */
.route-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 1;
  text-align: center;
  line-height: 1;
}
.route-transit {
  flex-grow: 1;
  border-radius: 5px;
  margin-top: 24px;
  margin-right: 1rem;
  margin-left: 1rem;
}
.route-transit.kk {
  border-top: 5px solid #1C90BD;
}
.route-transit.jr {
  border-top: 5px solid #9ACD32;
}
.route-transit.shinkansen {
  border-top: 5px solid #060;
}
.route-transit.nex {
  border-top: 5px solid #f00;
}
.route-directions object {
  width: 24px;
  height: 24px;
  margin-right: 6px;
}
.route-directions ol {
  padding-left: 26px;  /* Object width + object margin-right - li padding-left */
}
.route-directions li {
  padding-left: 4px;
  padding-bottom: 4px;
}

.train {
  background: #FFF;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  padding: 4px;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid;
}
.train object {
  width: 48px;
  height: 48px;
}
.train:before {
  font-weight: normal;
  font-size: 12px;
  margin-bottom: -2px;
}
.train-kk {
  border-radius: 100%;
  border-color: #1C90BD;
}
.train-kk:before {
  content: "KK";
}
.train-jr {
  border-radius: 4px;
  border-color: #9ACD32;
}
.train-jr:before {
  content: "JY";
}

.location .map {
  max-width: 100%;
  max-height: 70vh;
}

.location .route-stop {
  width: 110px;
  flex-shrink: 0;
  justify-content: center;
}
.location .distance,
.location .home {
  display: flex;
  width: 100px;
  flex-shrink: 0;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  font-weight: bold;
  font-size: 24px;
  line-height: normal;
  background: var(--bs-secondary-bg);
  border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
}
.location .distance:after {
  content: "min";
  margin-top: -4px;
  font-size: 12px;
  font-weight: normal;
}
.location .home {
  background: var(--bs-white);
}
.location .home object {
  height: 36px;
  width: 36px;
  margin: 0 auto;
}
.location .station-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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


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

