/* For white label portal */
@media only screen and (max-width: 1000px) {
  #add_app_modal .left,
  #add_app_modal .right {
    width: 100%;
  }
}

/*
_______________________________
Mobile version - preset code from cssgrid.net */
@media only screen and (min-width: 320px) {
  
  #hero-content {
    min-height: 356px;
  }
  
   #app-logos-container {
     padding-bottom: 40px;
   }
}

@media only screen and (min-width: 340px) {
  #video-carousel {
    width: 358px;
    height: 220px;
  }
  
  #video-carousel .slide .copy {
    font-size: 20px;
    margin-top: 30px;
  }
}

@media only screen and (min-width: 480px) {
  /* ============= */
  /* - HOME PAGE - */
  /* ============= */
  
  #hero-carousel {
    height: 400px;
  }
  
  #hero .image img {
    max-width: 847px;
    height: 400px;
  }
  
  #hero.has-promo #hero-carousel,
  #hero.has-promo .image img {
    height: 420px;
  }
  
  #hero-content.has-promo {
    padding-bottom: 20px; 
  }
  
  #hero-content {
    min-height: 400px;
  }
  
  #hero-content h1 {
    margin-top: 24px;
  }
  
  #special-promo #promo-copy {
    margin: 0 80px;
  }
  
  #hero-content.showing-promo #promo-content img {
    width: 190px;
  }
  
  #watch-demo {
    margin: 30px auto 0;
    display: block;
    width: 210px;
  }
  #next {
    right: 0;
  }
  #prev {
    left: 0;
  }
  #video-next {
    right: 30px;
  }
  #video-prev {
    left: 30px;
  }
  #carousel .slide .copy strong {
    display: inline;
  }

  .app-icon {
    margin: 9px;
  }
  
  #app-logos-container {
    width: 302px;
  }
  
  #main-nav a.free-trial {
    padding: 10px 25px;
  }

  #trial-landing #mr-brands div {
    background: url("/publicv2/images/pricing/trial-clients-480.png") center bottom no-repeat;
    height: 109px;
    width: 450px;
  }
  
  .latest .block {
    display: -webkit-flex;
    display: flex;
    margin-bottom: 20px;
  }
  
  .latest .block .thumb {
    display: inline;
    margin-right: 0;
  }
  
  .latest .block .copy {
    text-align: left;
  }

  /* ========== */
  /* - Footer - */
  /* ========== */
  footer#site ul:not(.footer_tweets) li {
    display: inline-block;
    width: 32%;
  }
  
  footer#site ul#lang-picker li {
    display: block;
    width: auto;
  }
}

@media only screen and (min-width: 600px) {
  /* ============= */
  /* - HOME PAGE - */
  /* ============= */
  #prev, #next {
    top: 140px;
  }
  #feature-carousel {
    height: 475px;
  }
  #analytics-slide {
    margin-top: 54px;
  }
  #carousel-analytics {
    width: 440px;
    height: 255px;
    background: url('/publicv2/images/home/carousel-analytics-600.png') 0 0 no-repeat;
  }
  #cms-slide {
    margin-top: 56px;
  }
  #carousel-cms {
    width: 440px;
    height: 253px;
    background: url('/publicv2/images/home/carousel-cms-600.png') 0 0 no-repeat;
  }
  #location-slide {
    margin-top: 17px;
  }
  #carousel-location {
    width: 440px;
    height: 292px;
    background: url('/publicv2/images/home/carousel-location-600.png') 0 0 no-repeat;
  }
  #carousel-marketing{
    width: 404px;
    height: 333px;
    background: url('/publicv2/images/home/carousel-marketing.png') 0 0 no-repeat;
  }
  #push-slide {
    margin-top: 0px;
  }
  #carousel-push{
    width: 671px;
    height: 309px;
    background: url('/publicv2/images/home/carousel-push.png') 0 0 no-repeat;
  }
  #rewards-slide {
    margin-top: 58px;
  }
  #carousel-rewards{
    width: 440px;
    height: 251px;
    background: url('/publicv2/images/home/carousel-rewards-600.png') 0 0 no-repeat;
  }
  #marketing-slide {
    margin-top: -4px;
  }

  #video-carousel {
    width: 600px;
    height: 320px;
  }
  
  #video-carousel .slide .copy {
    margin-top: 50px;
  }
    
  #video-next {
    top: 100px;
    right: 0px;
  }
  #video-prev {
    top: 100px;
    left: 0px;
  }
  
  #special-promo #promo-copy {
   font-size: 22px;
   margin: 0 130px;
  }

  /* ========== */
  /* - Footer - */
  /* ========== */
}
@media only screen and (min-width: 767px) {
  body {
    min-width: auto;
  }

	/*.wrapper {*/
	.container {
	  width: 100%;
	  margin: auto 0;
	  padding: 0 20px;
	  -webkit-box-sizing: border-box;
	  -moz-box-sizing: border-box;
    box-sizing: border-box;
	}
  
  header#site.home-header {
    background: rgba(29, 29, 29, 0.85);
  }
  
  .home-header #main-nav #learn-more-dropdown ul {
    background: rgba(29, 29, 29, 0.95);
  }

  header#site h1 {
    margin: 10px 0 6px;
    margin-top: 10px;
    font-size: 36px;
  }

  header#site a {
    text-decoration: none;
  }

  header#site .tagline {
    color: #cfcfcf;
    font: italic 12px Georgia, serif;
    margin-left: 8px;
  }
	
	header#site .tagline {
	  display: inline;
	}
	
	#main-nav a.free-trial {
	  position: relative;
	  top: 0;
    left: auto;
    margin-left: auto;
	}
	
	#main-nav a.login {
    margin-left: 5px;
  }

  #main-nav #learn-more-dropdown {
    margin-right: 5px;
  }
  
	
	#main-nav #learn-more-dropdown ul {
	  width: 100px;
	  margin-top: -2px;
	}
	
	#main-nav #learn-more-dropdown li a {
	  font-size: 11px;
	}

	#hero {
	  margin-top: 0;
	}

  #hero .image img,
  #hero.has-promo .image img {
    max-width: 1440px;
    width: 1440px;
    height: 680px;
    margin: 0 auto;
    display: block;
  }
  
  #special-promo #promo-content {
    margin-top: 80px;
  }
  
  #hero-content.showing-promo #promo-copy {
    font-size: 24px;
    width: 48%;
    text-align: left;
    margin: 0;
  }
  
  #hero-content.showing-promo #promo-content img {
    width: 34%;
    max-width: none;
    margin-top: 0;
  }
  
  #trial-landing {
    margin-top: 195px;
  }

  #feature-carousel {
    height: 470px;
  }
  #prev {
    left: 40px;
  }
  #next {
    right: 40px;
  }
  
  #video-carousel {
    width: 760px;
    height: 380px;
  }
  
  #video-next {
    top: 130px;
    right: 50px;
  }
  #video-prev {
    top: 130px;
    left: 50px;
  }

  #analytics-slide {
    margin-top: 7px;
  }
  #carousel-analytics {
    width: 555px;
    height: 322px;
    background: url('/publicv2/images/home/carousel-analytics.png') 0 0 no-repeat;
  }
  #cms-slide {
    margin-top: 3px;
  }
  #carousel-cms {
    width: 568px;
    height: 326px;
    background: url('/publicv2/images/home/carousel-cms.png') 0 0 no-repeat;
  }
  #location-slide {
    margin-top: -1px;
  }
  #carousel-location {
    width: 496px;
    height: 329px;
    background: url('/publicv2/images/home/carousel-location.png') 0 0 no-repeat;
  }
  #rewards-slide {
    margin-top: 6px;
  }
  #carousel-rewards{
    width: 567px;
    height: 323px;
    background: url('/publicv2/images/home/carousel-rewards.png') 0 0 no-repeat;
  }
  #push-slide {
    margin-top: 20px;
  }
  #marketing-slide {
    margin-top: 16px;
  }
  .overview-subheader span:not(.mdash) {
    display: inline;
  }
  #app-icons-container {
    width: 451px;    
  }
  #app-logos-container {
    width: 451px;
  }
  #try-moro {
    width: auto;
    padding: 20px 0;
    margin-right: 20px;
  }
  #home-start-building {
    display: inline-block;
  }

  /* =========== */
  /* - Pricing - */
  /* =========== */
  #pricing-header {
    padding-top: 98px;
  }

  /* ======== */
  /* - Tour - */
  /* ======== */
  #tour-selector {
    top: 100px;
  }
  .tour-slide {
    margin-top: 100px;
    padding-top: 100px;
  }

  #top.shorty {
    height: 124px;
    margin: 0px 0 20px 0;
    padding-top: 72px;
  }
  #feature-list {
    margin-top: 194px;
  }
  
  
  #trial-landing article {
    padding: 45px 20px;
  }

  /* ================= */
  /* - APP DIRECTORY - */
  /* ================= */
  .app-directory {
    margin-top: 100px;
  }

  /* ================ */
  /* - SUPPORT TECH - */
  /* ================ */
  #supported_technologies {
    padding-top: 100px;
  }

  /* ======= */
  /* - API - */
  /* ======= */
  #api {
    margin-top: 100px;
  }
  #api .top {
    top: 100px;
  }

  /* ============== */
  /* - MISC PAGES - */
  /* ============== */
  #misc-page {
    margin-top: 0;
  }

  /* ========== */
  /* - Footer - */
  /* ========== */
  footer#site ul:not(.footer_tweets) li {
    margin: 1px;
    vertical-align: text-top;
    display: block;
    width: 100%;
  }
  footer#site ul li a {
    display: inline-block;
    width: 100%;
  }
  
  footer#site ul#lang-picker li {
    margin: 0;
  }

  /* ============= */
  /* - HOME PAGE - */
  /* ============= */
  #hero-carousel,
  #hero.has-promo #hero-carousel {
    height: 545px;
  }
  
  #hero-content {
    margin-top: 100px;
    min-height: 420px;
  }
  
  #hero-content h1 {
    text-align: left;
    width: 412px;
  }
  #hero-content h1 span {
    display: inline;
  }
  
  #watch-demo {
    margin-left: 20px;
  }
  #promo-wrapper {
    display: none;
  }

  /* ============== */
  /* - Free Trial - */
  /* ============== */

  #trial-landing {
    margin-top: 100px;
  }

  #trial-landing .top h1 {
    width: 300px;
    text-align: left;
  }

  #trial-landing .top p {
    max-width: 360px;
    text-align: left;
  }

  #tour_overview_video_flex {
    margin: 70px 0 0;
  }
  #tour_overview_video_flex img {
    max-width: 485px;
  }

  #trial-landing #no-promo .sign-up-button,
  #trial-landing .twitter-promo .sign-up-button {
    width: 122px;
    display: inline-block;
    margin-right: 10px;
  }
  
  #trial-landing #no-promo .contact-support {
    display: inline-block;
    margin-top: 14px;
  }
  
  #trial-landing .twitter-promo .contact-support {
    display: inline-block;
    margin-top: 0;
  }

  #trial-landing .top #top-copy {
    margin-left: 100px;
    margin-bottom: 30px;
    margin-top: 30px;
  }

  #trial-landing #mr-brands div {
    background: url("/publicv2/images/pricing/trial-clients-767.png") left bottom no-repeat;
    height: 44px;
    width: 767px;
  }

  article.vertical-article-header.responsive {
    padding-top: 10px;
  }

  .latest .block {
    display: block;
    margin-bottom: 20px;
  }
  .latest .block .thumb {
    width: 100%;
    margin-right: 10px;
  }
  article.vertical-article-header .block .title {
    display: block;
    margin-bottom: 5px;
  }
  article.vertical-article-header .block p {
    margin: 0;
  }
  article .category-description, .headline {
    lline-height: 50px;
  }

  #trial-form-container {
    margin-top: 0px;
    top: 100px;
    min-height: 400px;
    height: inherit;
  }

  #trial-form-container h1 {
    text-align: center;
  }
  .signup-disclaimer {
    margin-left: 0;
    text-align: center;
  }
  
  #trial-landing #no-promo .contact-support {
    margin-top: 0;
    margin-left: 24px;
  }
  
  #trial-landing .twitter-promo {
    width: 420px;
  }
  
  #trial-landing .twitter-promo .sign-up-button {
    margin-right: 18px;
    vertical-align: middle;
  }
  
  #trial-landing .twitter-promo  .the-thin-blue-line {
   display: none;
  }
  
  #trial-landing .twitter-promo .contact-support {
    vertical-align: middle;
    min-width: 200px;
  }
  
  #trial-landing .twitter-promo .contact-support {
    margin-top: -28px;
  }
  
  #trial-landing .top #top-copy {
    float: left;
    margin-left: 20px;
  }
}

@media only screen and (min-width: 992px) {
  /* ============= */
  /* - HOME PAGE - */
  /* ============= */
  #hero .image img,
  #hero.has-promo .image img {
    max-width: 1200px;
    width: 1200px;
    height: 567px;
  }
  
  #hero-content.showing-promo #promo-copy {
    font-size: 26px;
    width: 520px;
    padding-top: 40px;
    padding-top: 30px;
    vertical-align: top;
  }
  
  #hero-content.showing-promo #promo-content img {
    width: auto;
  }
    
  #video-prev, #prev {
    left: 120px; 
  }
  
  #video-next, #next {
    right: 120px;
  }
  
  #app-icons-container {
    width: 902px;    
  }

  #app-logos-container {
    width: 902px;
  }
  
  .app-logo-separator-right, .app-logo-separator-bottom {
    display: block;
  }

  /* ============== */
  /* - Free Trial - */
  /* ============== */

  #trial-landing .top #top-copy {
    margin-left: 100px;
  }

  #trial-landing #mr-brands div {
    background: url("/publicv2/images/pricing/trial-clients.png") left bottom no-repeat;
    width: 921px;
    height: 53px;
  }
}


@media only screen and (min-width: 1022px) {
  #trial-landing #no-promo .contact-support {
    margin-top: 10px;
  }
}

@media only screen and (min-width: 1024px) {
  /* ============= */
  /* - HOME PAGE - */
  /* ============= */
  #prev {
    left: 140px; 
  }
  #next {
    right: 140px;
  }
  .try-moro-gray-lines {
    display: inline-block;
  }
  /* ============== */
  /* - Free Trial - */
  /* ============== */

  #tour_overview_video_flex {
    margin-right: 0;
  }
}

@media only screen and (min-width: 1065px) {
  #trial-landing .the-thin-blue-line {
    display: inline-block;
  }
  
  #trial-landing #no-promo .contact-support {
    margin-left: 0;
  }
}

@media only screen and (min-width: 1200px) {
  #hero .image img,
  #hero.has-promo .image img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  #prev {
    left: 160px; 
  }
  #next {
    right: 160px;
  }
}


/*
_______________________________
Provide higher res assets for iPhone 4 - preset code from cssgrid.net */

@media (min--moz-device-pixel-ratio: 1.5),
       (-o-min-device-pixel-ratio: 3/2),
       (-webkit-min-device-pixel-ratio: 1.5),
       (min-device-pixel-ratio: 1.5),
       (min-resolution: 1.5dppx) {

	header#site h1 {
    background: url('/publicv2/images/header/logo@2x.png') no-repeat;
    background-size: 271px 28px;
  }
  
  #hide-promo.special-promo-button span {
    background: url('/publicv2/images/home/x@2x.png') left top no-repeat;
    background-size: 11px 11px;
  }
}
