/* arcore.css
 * This file contains styles specific to the ARCore DevSite pages.
 * Styles include overrides for the default DevSite styles.
 * Classnames for ARCore-specific items are always prefixed with `.arcore-`.
 */

.devsite-landing-row.devsite-background {
  padding-top: 72px;
  padding-bottom: 72px;
}

.devsite-footer-promo-icon {
  width: auto;
  height: 73px;
  font-size: 73px;
}

h1 {
 margin-top: 0;
}

/* =============================================================================
 * Utils
 * =============================================================================
 */

/* Simple flex columns */
.arcore-row {
  display: -ms-flex;
  display: flex;
  -ms-flex-direction: row;
  flex-direction: row;
}

.arcore-col {
  -ms-flex: 1 0;
  flex: 1 0;
}

.arcore-col:not(:first-child) {
  margin-left: 24px;
}

/* =============================================================================
 * Home page
 * =============================================================================
 */

.arcore-hero-wrapper {
  color: rgba(255,255,255,0.8);
  /* Contains absolute elements */
  position: relative;
}

.arcore-hero-background {
  background-color: #000;
  height: 600px;
  overflow: hidden;
  position: relative;
}

video.arcore-hero-video {
  object-fit: cover;
  display: block;
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  /* Setting width & height to auto prevents video from being squished. */
  width: auto;
  height: auto;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0);
}

.arcore-hero-content-wrapper {
  /* Matching DevSite css, we specify the -ms prefix as well as the standard,
   * for wider browser coverage.
   */
  background: rgba(0,0,0,0.4);
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 120px;
  /* For z-index. Needs to appear above background. */
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
}

.arcore-container {
  padding: 0 120px;
}

.arcore-hero {
  text-align: center;
  max-width: 780px;
}

.arcore-hero-title {
  color: #fff;
  font-size: 40px;
  line-height: 52px;
  margin-top: 0;
}

.arcore-hero-desc {
  font-size: 20px;
  line-height: 30px;
}

/* Landing page rows */
.devsite-landing-row:not(.devsite-background):not(.devsite-landing-row-cta):not(.devsite-landing-row-marquee) {
  margin: 62px 0 0;
  padding-top: 0;
}

.devsite-landing-row:not(.devsite-background):not(.devsite-landing-row-cta):not(.devsite-landing-row-marquee)+.devsite-landing-row.devsite-background,
.devsite-landing-row:not(.devsite-background):not(.devsite-landing-row-cta):not(.devsite-landing-row-marquee)+.devsite-landing-row-cta {
  margin-top: 64px;
}

.devsite-landing-row-header {
  margin-bottom: 40px;
}

/* Extra space below a section.
 * Selector chaining hack adds enough specificity to override the landing page
 * row styles above.
 */
.arcore-row-bspace.arcore-row-bspace.arcore-row-bspace.arcore-row-bspace {
  margin-bottom: 72px;
}

.devsite-landing-row-header-text > h2 {
  color: #4A4A4A;
  font-size: 32px;
  line-height: 36px;
  text-align: center;
  /* Override an overly-eager padding rule for the tablet breakpoint */
  padding: 0 !important;
}

.devsite-landing-row:not(.devsite-background):not(.devsite-landing-row-cta):not(.devsite-landing-row-marquee):not(:first-child) .devsite-landing-row-header-text > h2 {
  margin-top: 0;
}

.devsite-landing-row-description,
.devsite-background-grey .devsite-landing-row-description {
  color: #757575;
  text-align: center;
}

.devsite-landing-row-item-description > h3 {
  color: #4A4A4A;
}

/* Add vertical separators to columns for this row */
.arcore-row-vsep {
  /* Contains absolute pseudo-elements */
  position: relative;
}

.arcore-row-vsep .devsite-landing-row-item {
  position: relative;
  /* Must override standard devsite-landing-row-item styles to get 1000px
   * breakpoint to work with custom_html
   */
  -ms-flex: 1 0;
  flex: 1 0;
  -ms-flex-direction: column;
  flex-direction: column;
}

.arcore-row-vsep .devsite-landing-row-item:not(:first-child) {
  margin-left: 100px;
}

.arcore-row-vsep .devsite-landing-row-item:not(:first-child)::after {
  background: rgba(155,155,155,0.32);
  content: "";
  height: 100%;
  width: 1px;
  position: absolute;
  top: 0;
  left: -50px;
}

/* Get Started section */

/* Toaster teasers for Android, Unity, Unreal */
.arcore-teaser-toaster {
  /* It's an <a> tag */
  display: block;
  position: relative;
}

.arcore-teaser-toaster:focus {
  text-decoration: none;
}

.arcore-teaser-toaster-header {
  text-align: center;
  margin-bottom: 22px;
}

.arcore-teaser-toaster .arcore-teaser-toaster-title {
  color: #4A4A4A;
  font-size: 20px;
  font-weight: normal;
  line-height: 26px;
  margin-bottom: 24px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.arcore-teaser-toaster .arcore-teaser-toaster-subtitle {
  text-wrap: nowrap;
}


.arcore-teaser-toaster-icon {
  position: absolute;
  left: 50%;
  top: 150px;
  transform: translate(-50%, -50%);
}

.arcore-teaser-toaster-slot {
  position: relative;
  /* This lets shadow overhang the bounds of the box. */
  height: 150px;
  margin: 0 -20px 28px;
  padding: 0 20px;
  /* Contains the shadow */
  overflow: hidden;
}

.arcore-teaser-toaster-slot::after {
  content: "";
  background: #fff;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.15);
  height: 10px;
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -10px;
}

.arcore-teaser-toaster-toast img {
  margin: 0 auto;
  display: block;
}

/* Stay Connected */

/* Match to .devsite-landing-row-description
 * for some reason the devsite template changes the markup for description
 * when a cta row is used, resulting in a different font size.
 */
.arcore-row-stay-connected .devsite-landing-row-item-description-content {
  font: 18px/24px Roboto,sans-serif;
}


/* =============================================================================
 * Media Queries
 * =============================================================================
 */
@media screen and (max-width: 1400px) {
  .arcore-teaser-toaster-slot {
    height: 110px;
  }

  .arcore-teaser-toaster-icon {
    top: 110px;
  }
}

@media screen and (max-width: 1230px) {
  .arcore-teaser-toaster-slot {
    padding: 0 8px;
    margin: 0 -8px 28px;
    height: 80px;
  }

  .arcore-teaser-toaster-icon {
    top: 80px;
  }

  .arcore-row-vsep .devsite-landing-row-item:not(:first-child) {
    margin-left: 40px;
  }

  .arcore-row-vsep .devsite-landing-row-item:not(:first-child)::after {
    left: -20px;
  }
}

@media screen and (max-width: 1000px) {
  .arcore-container {
    padding: 0 80px;
  }
}

@media screen and (max-width: 720px) {
  .arcore-container {
    padding: 0 16px;
  }

  .devsite-footer-promos-list {
    padding: 20px 16px;
    text-align: left;
  }
  .devsite-footer-promo {
    margin: 8px;
    width: calc((100% - 32px)/2);
  }
  .devsite-footer-promo-icon {
    float: left;
    height: 32px;
    margin-right: 16px;
    width: 32px;
  }
  .devsite-footer-promo-title {
    font-weight: normal;
    line-height: 32px;
  }
  .devsite-footer-promo-description {
    display: none;
  }

  .arcore-row-vsep .devsite-landing-row-item::after {
    display: none;
  }

  .arcore-teaser-toaster {
    box-sizing: border-box;
    margin: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .arcore-teaser-toaster-slot {
    padding: 0 16px;
    margin: 0 0 28px;
  }

  .arcore-teaser-toaster::after {
    left: 0;
    right: 0;
  }

  .arcore-teaser-toaster-slot {
    height: 148px;
  }

  .arcore-teaser-toaster-icon {
    top: 148px;
  }
}
