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

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

body {
  background-image: url("../img/bg_about.png");
  background-size: cover;
}

.swiper-container {
  width: 100vw;
  height: 100vh;
}

.index-container {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  color: #fff;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  width: 100%;
  padding: 1.2rem 2.2rem;
  box-sizing: border-box;
  margin: 0 auto;
  z-index: 1000;
}

 .header .logo {
  display: block;
  height: 3.5rem;
  -o-object-fit: cover;
  object-fit: cover;
}

.index-container .header .nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.index-container .header .nav .nav-item.active {
  color: white
}

.index-container .header .nav .nav-item {
  font-size: 1rem;
  letter-spacing: 0;
  text-align: center;
  margin-left: 4rem;
  color: rgba(255, 255, 255, 0.5);
}

.index-container .header .nav .nav-item img {
  height: 0.8rem;
}

.video-container {
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

#home-video {
  width: 100%;
  height: 640px;
  display: block;
  box-sizing: border-box;
  color: #fff;
  background-color: #000;
  position: relative;
  padding: 0;
  font-size: 10px;
  line-height: 1;
  font-weight: normal;
  font-style: normal;
  font-family: Arial, Helvetica, sans-serif;
  word-break: initial;
}

.preview-list {
  display: flex;
  flex-direction: row;
}

.two-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#swiper-container2 {
  width: 100%;
  max-width: 1440px;
  padding-left: 2.2rem;
  margin-bottom: 5rem;
  box-sizing: border-box;
}

.swiper2-item {
  width: 390px;
  padding-right: 3rem;
  box-sizing: border-box;
  cursor: pointer;
}

.play-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-preview .poster {
  height: 12rem;
}

.play-preview:hover .play-icon {
  display: block;
}

.play-preview .play-icon {
  position: absolute;
  display: none;
  width: 2rem;
  z-index: 3;
}

.play-preview:hover .shadow {
  transition: opacity ease-in;
  opacity: 1;
}

.play-preview .shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.424);
}

.swiper2-item:nth-child(even) {
  margin-top: 3rem;
}

.swiper2-item .title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.swiper2-item img {
  width: 100%;
}

.swiper2-item p {
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid white;
}

.cover-title {
  width: 100%;
  max-width: 1440px;
  padding: 4rem 2.2rem;
  box-sizing: border-box;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.cover-title .title {
  font-size: 1.5rem;
}

.cover-title img {
  height: 2.5rem;
}

.copyright {
  margin-top: 2rem;
}

.copyright,
.copyright2 {
  width: 100vw;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
}

.mobile-arrow-up {
  display: none;
}

.mobile-menu {
  display: none;
}

.mobile-menu-container {
  display: none;
}

.video-detail-container {
  max-width: 960px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-items: center;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.video-detail-container .video-content{
}

.video-detail-title {
  width: 100%;
  padding:2rem;
  box-sizing: border-box;
}

.video-introduction {
  padding:0 2rem;
  color: white;
}

.video-introduction .title {
  font-size: 1.2rem;
}

.video-detail-player {
  width: 100%;
  padding:0 2rem;
  box-sizing: border-box;
  background-color: black;
  min-height: 12rem;
}

.video-detail-player video {
  width: 100%;
}

.video-detail-container a {
  color: white;
  cursor: pointer;
  font-size: 1rem;
}

.detail-modal {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../img/bg_about.png");
  background-size: cover;
  z-index: 999;
}

@media (max-width: 820px) {
  .video-container {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .video-container {
    padding: 0;
  }

  .play-preview .play-icon {
    display: block;
    background-color: rgba(0, 0, 0, 0.464);
    border-radius: 50%;
    padding: 0.5rem;
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .index-container .nav {
    display: none !important;
  }

  #home-video {
    height: 100vw;
    background-color: transparent;
  }

  .copyright {
    position: absolute;
    bottom: 30vw;
    margin-top: 0;
  }

  .copyright2 {
    display: none;
  }

  .mobile-arrow-up {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    animation-duration: 3s;
    animation-fill-mode: forwards;
  }

  .mobile-arrow-up img {
    width: 1.3rem;
  }

  .cover-title {
    padding: 1.5rem;
  }

  .cover-title img {
    display: none;
  }

  #swiper-container2 {
    padding: 1.5rem;
    box-sizing: border-box;
  }

  #swiper-container2 .swiper2-item {
    padding-right: 0;
    width: 100%;
  }

  .preview-list {
    flex-direction: column;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu img,.mobile-menu-close img {
    height: 2.5rem;
  }

  .mobile-menu-container {
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: black;
  }

  .mobile-menu-container ul {
    width: 70vw;
    list-style: none;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .mobile-menu-container ul li {
    margin: 3rem 0;
  }

  .mobile-menu-container ul li a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .video-detail-title {
    padding:0;
    font-size: 1.2rem;
  }

  .video-detail-player {
    padding: 2rem 0;
  }

  .video-introduction {
    padding: 0;
  }
}
