/* * To create a new theme copy this file and then adjust the campaign specifics accordingly */ @import "../variables"; $campaignfolder: 'moment-maker'; $brand_white: #fff; $brand_black: #1B1B1B; $overlay-black: #1B1B1B; $brand_background: #f1f1f1; $gyyo_darker_grey: #ababab; $gyyo_red: #e12b26; $brand_primary: ( 'main' : #C61017, 'alt' : #ED1C24, ); $border_radius: 0; $max-width: 1320px; $default-padding: ( 'desktop' : 50px, 'mobile' : 0px ); @font-face { font-family: 'nimbus_monoregular'; src: url('../../../fonts/nimbusmono-regular-webfont.woff') format('woff'); font-weight: normal; font-style: normal; } @font-face {font-family: 'AmericanTypewriterITCPro-Med';src: url('../../../fonts/AmericanTypewriter/354356_0_0.eot');src: url('../../../fonts/AmericanTypewriter/354356_0_0.eot?#iefix') format('embedded-opentype'),url('../../../fonts/AmericanTypewriter/354356_0_0.woff2') format('woff2'),url('../../../fonts/AmericanTypewriter/354356_0_0.woff') format('woff'),url('../../../fonts/AmericanTypewriter/354356_0_0.ttf') format('truetype');} $question-font: "AmericanTypewriterITCPro-Med", "nimbus_monoregular", "monospace"; .#{$campaignfolder} { background-color: $brand_background; min-height: 400px; min-height: 70vh; * { box-sizing: border-box; } &.loading { max-height: 400px; max-height: 70vh; overflow: hidden; .quiz__campaign__endpoint { visibility: hidden; } } .quiz__campaign-page { position: relative; } .quiz__campaign-button { background-color: map-get($brand_primary, 'main'); display: block; color: $brand_white; text-transform: uppercase; text-decoration: none; transition: .2s ease-out; padding: 18px; font-weight: 700; font-size: 14px; span, strong { color: $gyyo_red; font-size: 21px; text-transform: uppercase; font-weight: 400; } &:link, &:visited { color: $brand_white; } &:hover, &:active { background-color: map-get($brand_primary, 'alt'); } } .quiz__campaign__landing { flex-direction: column; align-items: center; justify-content: center; max-width: $max-width; margin: 0 auto 30px; text-align: center; position: relative; .quiz__campaign__landing-header-mobile-image { display: block; } .quiz__campaign__landing-header-image { display: none; } @media only screen and (min-width: 768px) { margin-top: map-get($default-padding, 'mobile'); } @media only screen and (min-width: 1024px) { margin-top: map-get($default-padding, 'desktop'); .quiz__campaign__landing-header-image { display: block; } .quiz__campaign__landing-header-mobile-image { display: none; } } &-no-image { background: $brand_white; height: calc(100vh - 100px); @media only screen and (min-width: 1024px) { min-height: 650px; } .quiz__campaign__landing-content { h1, p { color: $brand_black; position: relative; } } } &-header { padding: 0; position: relative; width: 100%; @media only screen and (min-width: 1024px) { min-height: 650px; position: absolute; z-index: 1; top: 0; left: 0; width: 100%; } // Assets uploaded with overlay already on &:before { content: ""; display: block; background: $overlay-black; opacity: 0.5; position: absolute; left: 0; right: 0; top: 0; bottom: 0; width: 100%; height: 100%; z-index: 2; } img { display: block; height: 280px; object-fit: cover; width: 100%; @media only screen and (min-width: 1024px) { height: auto; max-height: 650px; position: absolute; z-index: 1; } } } &-content-text { @media only screen and (min-width: 1024px){ min-height: 650px; width: 100%; position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; flex-direction: column; } } &-content { display: flex; justify-content: space-between; flex-direction: column; width: 100%; position: relative; z-index: 2; } &-decoration { max-width: 960px; margin: 0 auto; padding: 40px 0; img { width: 100%; margin: 5% 0; height: auto; display: block; } @media only screen and (min-width: 768px){ img { max-width: 48%; margin: 0 1%; height: auto; display: block; float: left; } } } &-text { font-family: $question-font; margin: 0 auto; padding: 0 15px; max-width: 400px; width: 100%; } .quiz__campaign-button { display: inline-block; margin: 0 15px; min-width: 130px; text-align: center; width: calc(100% - 30px); @media only screen and (min-width: 1024px) { margin: 0 auto; width: auto; } } h1, h2 { color: $brand_white; font-size: 23px; line-height: 30px; font-weight: 400; max-width: 260px; margin: 0 auto 15px; text-transform: none; letter-spacing: normal; } h1 { font-size: 38px; line-height: 35px; background-size: 185px; display: block; font-family: $question-font; font-weight: bold; margin-bottom: 0; padding: 0; text-align: center; @media only screen and (min-width: 768px) { font-size: 50px; line-height: 45px; } @media only screen and (max-width: 1023px) { display: flex; justify-content: center; align-items: center; position: absolute; top: -280px; left: 0; right: 0; max-width: 80%; height: 280px; } @media only screen and (min-width: 1024px) { background: url('/images/campaigns/moment-maker/logo-ribbon.svg') center bottom no-repeat; font-size: 65px; line-height: 60px; margin-bottom: 40px; max-width: 60%; margin: 0 20% 40px; padding: 0 0 40px; } } p { color: $brand_black; font-size: 17px; font-weight: bold; line-height: 26px; margin: 20px 10px 40px; text-transform: none; @media only screen and (min-width: 1024px) { color: $brand_white; margin: 0 20px 25px; } } @media only screen and (min-width: 768px) { margin-bottom: 30px; } } .quiz__campaign-question { display: none; overflow: hidden; opacity: 0; transition: 0.4s; width: 100%; &-active { display: flex; align-items: stretch; flex-direction: column; justify-content: center; transform: translateY(0); opacity: 1; transition: 0.4s; @media only screen and (min-width: 768px) { flex-direction: row; } } &-block { background: center center no-repeat; background-size: cover; position: relative; min-height: 600px; min-height: 45vw; width: 100%; img { object-fit: cover; position: absolute; top: 0; left: 0; margin: 0; width: 100%; height: 100%; z-index: 3; } @media only screen and (min-width: 1024px) { width: 50%; width: 50vw; } // &:before { // content: ""; // display: block; // background: $overlay-black; // opacity: 0.35; // position: absolute; // left: 0; // right: 0; // top: 0; // bottom: 0; // z-index: 4; // } } &-image { width: calc(100% - 20px); height: auto; margin: 0 10px 25px; } &-number { display: block; font-size: 14px; line-height: 18px; margin-bottom: 20px; } &-text { color: $brand_white; font-family: $question-font; font-size: 20px; line-height: 26px; font-weight: 700; text-align: center; margin: 0; padding: 0 30px; text-transform: none; position: absolute; top: 50%; transform: translateY(-50%); width: 100%; z-index: 5; @media only screen and (min-width: 768px) { font-size: 39px; line-height: 46px; padding: 0 25%; text-align: left; } } } .quiz__campaign-answers, .quiz__campaign_range-answers { box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 20px 135px; width: 100%; @media only screen and (min-width: 1024px) { width: 50%; width: 50vw; } } .quiz__campaign-answer { background: $brand_white center center no-repeat; color: $brand_black; margin: 0; width: 100%; @media only screen and (min-width: 768px) { width: 70%; } @media only screen and (min-width: 1024px) { width: 50%; } &+ .quiz__campaign-answer { margin-top: 20px; } &-active { background-image: url('/images/campaigns/moment-maker/answer-bg.jpg'); background-size: cover; color: $brand_white; span::after { background: url('/images/tick-red.svg') $brand_white center center no-repeat; background-size: 10px 8px; } .quiz__campaign-answer-text { background: transparent; } // .quiz__campaign-answer-text { // background: url('/images/campaigns/moment-maker/answer-bg.jpg') center center no-repeat; // background-size: cover; // color: $brand_white; // &::after { // background: url('/images/tick-red.svg') $brand_white center center no-repeat; // background-size: 10px 8px; // } // } } &-text { background-color: $brand_white; border-bottom-right-radius: $border_radius; border-bottom-left-radius: $border_radius; &::after { background-color: #f6f6f6; } } &-image { background-color: #d3d3d3; padding-top: calc(75% /2); } } .quiz__campaign-range-images { img { display: block; height: auto; margin: 0 auto; max-width: 80px; } } .quiz__campaign-range-area { position: relative; &:before { background: $brand_black; content: ""; display: block; height: 20px; position: absolute; left: 0; transform: translateX(50%); bottom: -30px; width: 1px; z-index: -50; } &:after { background: $brand_black; content: ""; display: block; height: 20px; position: absolute; right: 0; transform: translateX(50%); bottom: -30px; width: 1px; z-index: -50; } } .quiz__campaign-question-range-labels { span { position: relative; padding: 15px 0; width: 100%; &:before { background: $brand_black; content: ""; display: block; height: 20px; position: absolute; left: 50%; transform: translateX(50%); top: -15px; width: 1px; z-index: -50; } &:last-child, &:first-child { &:before { display: none; } } } } .quiz__campaign-next { background: map-get($brand_primary, 'main'); display: block; height: 50px; margin: 0; opacity: 0; padding: 0; position: absolute; right: 20px; bottom: 65px; width: 50px; text-indent: -9999px; transition: 0.4s; @media only screen and(min-width: 768px) { bottom: 50px; right: 110px; } &::after { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); background-image: url('../../../images/campaigns/get-your-you-on/arrow-right.svg'); background-position: center; background-repeat: no-repeat; content: ''; display: block; width: 15px; height: 12px; } &:hover, &:active { background-color: map-get($brand_primary, 'alt'); } &-active { opacity: 1; transition: 0.4s; } } .swiper-pagination { font-size: 0; &-bullet { background: none; border: 1px solid $brand_black; border-radius: 10px; height: 10px; margin: 0 5px; width: 10px; &-active { background: map-get( $brand_primary, 'main' ); border-color: map-get( $brand_primary, 'main' ); } } } .quiz__campaign__endpoint { @media only screen and (min-width: 768px) { padding-top: map-get($default-padding, 'mobile'); } @media only screen and (min-width: 1024px) { padding-top: map-get($default-padding, 'desktop'); } .quiz__campaign__endpoint-button { background-color: transparent; border: 3px solid $brand_white; border-radius: $border_radius; box-shadow: rgba(0, 0, 0, .25) 0 2px 4px 0; color: $brand_white; display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: 0.05em; margin: 0 5px; padding: 16px; text-transform: uppercase; text-decoration: none; text-align: center; transition: .2s ease-out; max-width: 100%; width: 100%; @media only screen and (min-width: 768px) { max-width: 225px; padding-left: 40px; padding-right: 40px; width: auto; } &:active, &:focus, &:hover { background-color: $brand_white; color: map-get($brand_primary, 'main'); } &-primary { background-color: map-get($brand_primary, 'main'); border-color: map-get($brand_primary, 'main'); &:active, &:focus, &:hover { background-color: map-get($brand_primary, 'alt'); border-color: map-get($brand_primary, 'alt'); color: $brand_white; } } } .quiz__campaign__endpoint-header-container { background: none; display: block; max-width: $max-width; margin: 0 auto 15px; position: relative; @media only screen and (max-width: 1023px) { display: flex; align-items: stretch; flex-direction: row; height: 100%; width: 100%; } @media only screen and (max-width: 767px) { flex-direction: column; } @media only screen and (min-width: 768px) { margin: 0 auto 50px; } .quiz__campaign__endpoint-header { display: flex; flex-direction: column; background: none; padding: 0; position: relative; @media only screen and (min-width: 768px) { display: block; float: left; width: 65%; } @media only screen and (min-width: 1024px) { float: none; padding-bottom: 5%; width: 75%; } &-image { order: 1; position: relative; @media only screen and (max-width: 1023px) { height: 100%; img { height: 100%; object-fit: cover; } } @media only screen and (max-width: 767px) { a.mobile-video-link { display: flex; justify-content: center; align-items: center; position: absolute; top: 0; right: 0; bottom: 0; left: 0; &:before { background-image: url('/images/campaigns/moment-maker/video-icon.svg'); content: ""; display: block; height: 37px; width: 46px; } } } } &-title { order: 2; @media only screen and (max-width: 767px) { background-image: url('/images/campaigns/moment-maker/answer-bg.jpg'); background-size: cover; padding: 30px 15%; h1 { font-size: 20px; line-height: 26px; text-align: center; } } @media only screen and (min-width: 768px) { max-width: 60%; position: absolute; bottom: 22%; left: 15%; z-index: 10; } h1 { color: $brand_white; font-family: $question-font; font-weight: 400; padding: 0; @media only screen and (min-width: 768px) { font-size: 30px; line-height: 36px; margin-bottom: 20px; max-width: 90%; } } a.video-link { color: $brand_white; display: flex; align-items: center; font-size: 12px; letter-spacing: 2px; line-height: 26px; text-decoration: none; text-transform: uppercase; @media only screen and (max-width: 767px) { display: none; } @media only screen and (min-width: 768px) { span { display: block; } } &:before { background-image: url('/images/campaigns/moment-maker/video-icon.svg'); content: ""; display: block; height: 37px; width: 46px; @media only screen and (min-width: 768px) { margin-right: 10px; } } } *:last-child { margin-bottom: 0; } } img { width: 100%; } } } .quiz__campaign__endpoint-primary-product { text-align: center; background-color: $brand_white; @media only screen and (max-width: 767px) { margin: 20px; } @media only screen and (min-width: 768px) { background-color: $brand_white; float: left; width: 35%; } @media only screen and (min-width: 1024px) { background-color: $brand_white; box-shadow: rgba(0, 0, 0, 0.06) 4px 10px 10px 1px; position: absolute; right: 5%; padding: 0; bottom: 0; width: 35%; } &-image-text { background-color: $brand_white; display: inline-block; width: 100%; @media only screen and (max-width: 767px) { padding: 20px 20px 0; } @media only screen and (min-width: 768px) { padding: 5% 10%; } } &-price { color: map-get($brand_primary, 'main'); font-size: 15px; font-weight: 700; line-height: 20px; } &-sku { color: #4A4A4A; font-size: 18px; font-weight: bold; line-height: 24px; } &-description { background-color: $brand_white; padding: 0 10% 5%; clear: left; @media only screen and (min-width: 768px) { padding: 5% 10%; } p { color: $brand_black; font-size: 14px; line-height: 22px; text-align: center; text-transform: none; margin: 10px 0; } .readmore { color: map-get($brand_primary, 'main'); &:active, &:hover, &:visited { color: map-get($brand_primary, 'alt'); text-transform: none; display: inline-block; } } } &-name { letter-spacing: normal; text-transform: uppercase; font-size: 14px; font-weight: 700; font-family: Helvetica, Arial, sans-serif; @media only screen and (min-width: 768px) { padding-right: 20px; } } &-text { &.side { h2 { display: none; } &.no-image { text-align: center; } } &.top { h2 { color: $brand_black; margin-bottom: 40px; padding: 0; text-align: center; } @media only screen and (max-width: 767px) { background: $brand_background; padding: 20px 0 0; h2 { display: inline-block; font-size: 18px; line-height: 24px; margin-bottom: 25px; padding-bottom: 0; } } } } &-image { padding-top: 30px; @media only screen and (min-width: 1024px) { padding: 0 20px; width: 60%; } img { max-height: 150px; max-width: 180px; } } @media only screen and (min-width: 768px) { padding: 20px 0 0; } @media only screen and (min-width: 1024px) { padding: 40px 0 0; max-width: 970px; margin: 0 auto; &-name { font-family: 'Arial'; font-size: 20px; line-height: 24px; } &-image-text { display: flex; flex-direction: row; align-items: center; justify-content: center; padding: 10%; } &-text { text-align: left; &.side { h2 { display: none; } } &.top { h2 { margin-bottom: 40px; padding: 0; text-align: center; } } } &-image { float: left; } } } .quiz__campaign__endpoint-product-actions { background-image: url('/images/campaigns/moment-maker/answer-bg.jpg'); background-size: cover; display: flex; justify-content: center; padding: 30px 10px; a { max-width: 130px; } } .quiz__campaign__endpoint-header-container-no-image { .quiz__campaign__endpoint-header { width: 100%; &-title { position: static; max-width: 100%; h1 { color: $brand_black; text-align: center; max-width: 100%; } } } .quiz__campaign__endpoint-primary-product { position: static; float: none; margin-bottom: 50px; } } .quiz__campaign__endpoint-title { color: $brand_black; font-size: 18px; line-height: 24px; margin-bottom: 20px; text-align: center; padding: 0; @media only screen and (min-width: 768px) { font-size: 22px; line-height: 28px; } } .quiz__campaign__endpoint-subtitle { color: map-get( $brand_primary, 'main' ); font-size: 12px; line-height: 16px; margin-bottom: 10px; padding: 0; text-transform: uppercase; } .quiz__campaign-endpoint-blocks { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; img { display: block; } @media only screen and (min-width: 768px) { padding: 0 0 80px; } > div { width: 100%; @media only screen and (max-width: 767px) { border-top: 1px solid #BCBCBC; } @media only screen and (min-width: 768px) { background: $brand_white; margin-bottom: 30px; } } .block { width: calc(100% - 40px); &-sizer { border: none; } @media only screen and (min-width: 768px) { width: calc(50% - 30px); margin: 15px; &-sizer { width: 50%; } } } .quiz__campaign__endpoint_products { text-transform: none; background: transparent; border-top: 0; max-width: 1070px; overflow: hidden; padding: 0; text-align: center; width: calc(100% - 40px); @media only screen and (min-width: 768px) { margin: 0 15px; width: calc(100% - 30px); } @media only screen { border-top: none; } .quiz__campaign__endpoint-title { margin-bottom: 25px; text-transform: uppercase; } .quiz__campaign__endpoint-related-carousel { margin: 30px 0 20px; padding: 0 0 30px; position: relative; overflow: hidden; @media only screen and (min-width: 768px) { margin-bottom: 40px; } &:before { background: $brand_white; content: ""; display: block; position: absolute; left: 0; top: 0; height: calc(100% - 165px); width: 2px; z-index: 10; } .carousel-item { background-color: $brand_white; text-align: center; .price { color: map-get( $brand_primary, 'main' ); font-weight: 700; margin: 0; } .product-model { display: none; font-size: 14px; margin-top: 0; } h3 { font-family: Helvetica, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 24px; letter-spacing: normal; margin: 0; } .product-image { height: 150px; width: 150px; background-color: #fff; background-size: contain; background-position: center; background-repeat: no-repeat; margin: 0 auto 15px; } img { display: none; margin: 0 auto; max-height: 150px; } .product-container { border-left: 1px solid #BCBCBC; padding: 10px 25px; margin: 25px 0; text-align: center; } } } } .quiz__campaign__endpoint_video { display: flex; flex-direction: column; padding: 30px 0 0; @media only screen and (min-width: 768px) { padding: 0 0 30px; .quiz__campaign__endpoint-title { margin: 0; } } @media only screen and (max-width: 767px) { .quiz__campaign__endpoint-video-wrap { order: 2; } } &-container { .quiz__campaign__endpoint-video-placeholder { &+ .quiz__campaign__endpoint-video-wrap { display: none; } } &.active { .quiz__campaign__endpoint-video-placeholder { display: none; } .quiz__campaign__endpoint-video-wrap { display: block; } } } &-content { padding: 30px; text-align: center; @media only screen and (max-width: 767px) { &.subtitle { order: 1; padding-bottom: 20px; } &.title { order: 3; } } @media only screen and (min-width: 768px) { &.subtitle { padding-bottom: 10px; &+ .title { padding-top: 0; } } } a { display: inline-block; } } } .quiz__campaign__endpoint_article { display: flex; flex-direction: column; > div { display: flex; justify-content: center; flex-direction: column; } @media only screen and (max-width: 767px) { .quiz__campaign__endpoint_article-top { display: flex; flex-direction: column; } .article-image-link { order: 2; } } &-content { padding: 30px 0; text-align: center; @media only screen and (max-width: 767px) { &.subtitle { order: 1; padding-bottom: 20px; } &.title { order: 3; } } @media only screen and (min-width: 768px) { padding: 30px; &.subtitle { padding-bottom: 10px; } &.title { padding-top: 0; } } *:last-child { margin: 0; } .quiz__campaign__endpoint-button { max-width: 100%; width: 100%; @media only screen and (min-width: 768px) { max-width: 225px; padding-left: 40px; padding-right: 40px; width: auto; } } } } .quiz__campaign__endpoint_spotify { background: transparent !important; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 30px 0; @media only screen and (min-width: 768px) { border: 2px solid #CBCBCB; padding: 40px 40px 70px; } .quiz__campaign__endpoint-campaign-title { margin-bottom: 40px; padding: 0; text-align: center; } &-actions { display: none; } &-player { margin-top: 40px; } .quiz__campaign__endpoint-share { display: none; } } .quiz__campaign__endpoint_startagain { .quiz__campaign__endpoint-startagain { background: $brand_white; border-top: none !important; padding: 40px 20px; text-align: center; @media only screen and (max-width: 767px) { margin: 0 -20px !important; width: auto !important; } @media only screen and (min-width: 768px) { padding: 70px 30px; .quiz__campaign__endpoint-title { margin-bottom: 40px; } } } .quiz__campaign__endpoint-title { margin-bottom: 20px; } .quiz__campaign__endpoint-button { margin: 0; img { display: none; } p { color: $brand_white; margin: 0; } } } .quiz__campaign__endpoint_share { background: url('/images/campaigns/moment-maker/answer-bg.jpg'); background-size: cover; border-top: 0; font-size: 0; padding: 40px; text-align: center; @media only screen and (max-width: 767px) { margin: 0 -20px 30px; width: 100vw; } @media only screen and (min-width: 768px) { padding: 70px; } .quiz__campaign__endpoint-title { margin-bottom: 20px; } * { color: $brand_white; } .social-share { display: inline-block; border: 1px solid $brand_white; border-radius: 50px; height: 50px; margin: 0 10px; width: 50px; i { display: block; font-size: 18px; line-height: 52px; span { display: none; } } } } .quiz__campaign__endpoint_images { display: flex; flex-direction: column; overflow: hidden; padding: 30px 0 0; .quiz__campaign__endpoint_article-content { padding-top: 0; } @media only screen and (min-width: 768px) { padding: 0 0 30px; } .swiper-container { max-width: 100%; padding: 0; @media only screen and (max-width: 767px) { order: 2; padding-top: 0; } } .swiper-slide { display: flex; align-items: center; justify-content: center; align-self: center; } .swiper-pagination { bottom: 0 !important; padding: 30px 20px; } } .quiz__campaign__endpoint_endpoint { > div { display: flex; justify-content: center; flex-direction: column; } @media only screen and (min-width: 768px) { background: $brand_white; } .swiper-container { max-width: 100%; padding: 20px 0; } @media only screen and (max-width: 767px) { .article-image-link { order: 2; } } &-content { padding: 30px 0; text-align: center; @media only screen and (max-width: 767px) { &.subtitle { order: 1; padding-bottom: 20px; } &.title { order: 3; } } @media only screen and (min-width: 768px) { padding: 30px; &.subtitle { padding-bottom: 10px; } &.title { padding-top: 0; } } *:last-child { margin: 0; } } .quiz__campaign__endpoint-button { max-width: 100%; width: 100%; @media only screen and (min-width: 768px) { max-width: 225px; width: auto; } } } } } } .takeover { display: none; position: fixed; background-color: $brand_white; width: 100%; height: 100%; top: 0; left: 0; z-index: 99999; &-active { display: block; } &-close { position: absolute; top: 0.25em; right: 0.5em; font-size: 3em; z-index: 1000000; cursor: pointer; } .responsive-video { position: absolute; left: 5%; width: 90%; padding-top: 56.25%; top: 5%; iframe { position: absolute; top: 0; left: 0; width: 100%; height: 90%; max-height: 90vh; } } } .loading-screen { background: $brand_background; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 400px; min-height: 70vh; z-index: 100; h2 { font-family: $question-font; font-size: 20px; font-weight: 700; line-height: 26px; margin: 20px 0; text-align: center; @media only screen and (min-width: 768px) { font-size: 39px; line-height: 46px; } } } @keyframes flickerAnimation { 0% { opacity: 0.7; } 50% { opacity: 0.5; } 100% { opacity: 0.7; } }