@keyframes icon-spin {
    0%   { transform: rotateY(90deg); animation-timing-function:ease-in;  }
    30%  { transform: rotateY(0deg); animation-timing-function:ease-out; }
    60%  { transform: rotateY(180deg); animation-timing-function:ease-out; }
    100% { transform: rotateY(0deg); }
}

#happiness-scene {
    background: #f5a533; /* Old browsers */
    background: -moz-linear-gradient(top,  #f5a533 0%, #fdcd31 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #f5a533 0%,#fdcd31 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #f5a533 0%,#fdcd31 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f5a533', endColorstr='#fdcd31',GradientType=0 ); /* IE6-9 */
}

#happiness-scene .text-box {
    margin-left: 40%;
	margin-right: 24px;
}

#happiness-gauge-text, #happiness-gauge-pin{
    font-family: arial;
   /* font-weight: bold;*/
}

#happiness-scene .text-box h2 {
    color: #1b79a4;
	margin-bottom: 30px;
}

#happiness-scene .text-box p {
    color: #ffffff;
}

#happiness-scene .parallax-frame.transition-to .text-box {
    transform: translate(0, 100px);
    opacity: 0;
}

#happiness-scene .parallax-frame.transition-from .text-box {
    transform: translate(0, 100px);
    opacity: 0;
}

#happiness-scene .image-box {
    margin-left: 20%;
    margin-right: 40%;
    text-align: center;
}

#happiness-scene .parallax-frame.transition-to .image-box {
    transform: translate(0, 100px);
    opacity: 0;
}

#happiness-scene .parallax-frame.transition-from .image-box {
    transform: translate(0, 100px);
    opacity: 0;
}

#happiness-scene .image-box svg {
    width: 100%;
}

/* IE 10 and 11 Only */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	#happiness-scene .image-box svg {
       width: 320px;
       height: 397px;
	}
}

/* iPad (Landscape) */
@media (max-width: 1024px) and (orientation: landscape) {
}

/* iPad (Portrait) */
@media (max-width: 768px) and (orientation: portrait) {
    #happiness-scene .text-box {
        margin: 20% 10% 0px 10%;
        text-align: center;
    }

    #happiness-scene .image-box {
        margin: 0% 30%;
		    position: absolute;
		    bottom: 48px;
		    left: 0px;
		    right: 0px;
    }
}

/* iPhone (Landscape) */
@media (max-width: 736px) and (orientation: landscape) {
    #happiness-scene .text-box {
        margin: 10% 10% 10% 20%;
        text-align: center;
    }

    #happiness-scene .image-box {
        margin: 10% 20% 10% 10%;
        padding: 5%;
        text-align: center;
    }
}

/* iPhone (Portrait) */
@media (max-width: 414px) and (orientation: portrait) {
}


/* Frame Start */


/* iPhone (Landscape) */
@media (max-width: 736px) and (orientation: landscape) {
}

/* iPhone (Portrait) */
@media (max-width: 414px) and (orientation: portrait) {
    #happiness-frame-start .image-box {
        margin: 0% 30%;
        text-align: center;
    }
}


/* Frame A */


/* Frame B */
#happiness-frame-b .image-box {
    transform-origin: center center;
}

#happiness-frame-b.transition-to .image-box {
    transform: rotateY(90deg);
}

#happiness-frame-b.transition .image-box {
    -moz-animation: icon-spin 1s;
    -webkit-animation: icon-spin 1s;
    animation: icon-spin 1s;
}

/* Frame C */
/*
#happiness-frame-c .image-box {
    margin-right: 26%;
}
*/
#happiness-scene #happiness-frame-c .image-box {
    margin-left: 8%;
}

/* Frame End */

#happiness-frame-end .image-box {
    margin-left: 18px;
    margin-right: 96px;
	margin-top: 78px;
}

#watch-video-button {
    margin-top: 48px;
    float: left;
}

#happiness-video-panel {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    background-color: rgba(0, 0, 0, .9);
    align-content: center;
    align-items: center;
}

#happiness-video-panel video {
    width: 60%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}


/* iPad (Landscape) */
@media (max-width: 1024px) and (orientation: landscape) {
}

/* iPad (Portrait) */
@media (max-width: 768px) and (orientation: portrait) {
    #watch-video-button {
        float: none;
		width: 120px;
    }

    #happiness-frame-end .image-box {
        margin: 0% 20%;
        text-align: center;
    }

    #happiness-video-panel video {
        width: 80%;
    }
}

/* iPhone (Landscape) */
@media (max-width: 736px) and (orientation: landscape) {
    #watch-video-button {
        float: none;
    }
}

/* iPhone (Portrait) */
@media (max-width: 414px) and (orientation: portrait) {
    #watch-video-button {
        float: none;
		width: 120px;
    }

    #happiness-frame-end .image-box {
        margin: 0% 20%;
        text-align: center;
    }

    #happiness-video-panel video {
        width: 80%;
    }
	#happiness-scene .text-box h2 {
    color: #005b7b;
    font-size: 36px;
    line-height: 36px;
	}
}

@media (max-width: 320px) and (orientation: portrait) {
    #happiness-scene .image-box {
        margin: 0% 32%;
    }
	#happiness-frame-end .text-box h2 {
    color: #005b7b !important;
    font-size: 31pt;
}
}

.takeLook-Text.color-yellow{
	padding-right:5px;
}

@media (max-width: 640px){
	#happiness-scene .text-box h2 {
		color: #005a7c;
		font-size: 36px;
		line-height: 37px;
		margin-bottom: 3%;
	}
	.image-box.ease-out-back > img {
		height: 50%;
		width: 100%;
	}
	
}

@media (max-width: 360px){
#happiness-scene #happiness-frame-c .image-box {
    margin-left: 18%;
}
}

