/* CSS Document */
@import url("//fonts.googleapis.com/earlyaccess/opensanshebrew.css");
section{
	display: block;
}
body{
	padding: 0;
	margin: 0;
	color: #29295b;
	font-family:'Open Sans Hebrew';
	font-size: 18px;
	line-height: 1.5;
	direction: rtl;
}
.clear {
	clear: both;
	display: block;
	overflow: hidden;
	visibility: hidden;
	width: 0;
	height: 0;
}
.wrapper{
	background: url(../images/bg.jpg) no-repeat center center;
	background-size: cover;
	width: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
}
.content{
	background: rgba(255,255,255,0.95);
	width: 520px;
	margin: 50px auto 0 auto;
	padding: 30px 50px 120px 50px;
	font-size: 26px;
	line-height: 1.3;
	position: relative;
}
.big-button{
	width: 254px;
	line-height: 244px;
	padding-bottom: 10px;
	color: #ffffff;
	font-size: 40px;
	font-weight: 600;
	background: url(../images/button-bg.png) no-repeat center center;
	position: absolute;
	bottom: -125px;
	right: calc(50% - 127px);
	text-align: center;
	cursor: pointer;
}
section#open,
section#quiz{
	padding-bottom: 130px;
}
section#open .content{
	text-align: center;
	
}
section#open h1{
	font-weight: 800;
	font-size: 50px;
	line-height: 54px;
	margin: 15px 0;
}
section#open .content p:first-child{
	font-size: 24px;
	font-weight: 600;
}

section#open .big-button{
	height: 180px;
	line-height: 42px;
	padding-top: 74px;
	padding-bottom: 0;
}
section#quiz{
	display: none;
}
section#quiz h2{
	font-size: 30px;
	margin-bottom: 40px;
}
section#quiz label{
	display: block;
	margin: 45px 0;
	font-size: 28px;
}

section#result .content{
	text-align: center;
	padding-bottom: 35px;
}
section#result h1{
	font-weight: 800;
	font-size: 60px;
	line-height: 60px;
	margin: 15px 0 30px 0;
}
section#result .content p:first-child{
	font-size: 26px;
	font-weight: normal;
	margin-bottom: 10px;
	margin-top: 10px;
	padding-right: 40px;
	padding-left: 40px;
}
section#result .content .share-quiz{
	display: inline-block;
	padding: 0 50px 0 20px;
	font-size: 23px;
	line-height: 40px;
	text-decoration: none;
	color: #29295b;
	border: solid 2px #29295b;
	border-radius: 3px;
	background: url(../images/share-arrow.png) no-repeat calc(100% - 10px) center;
}
section#result .content .link-description{
	margin: 40px -50px 30px -50px;
	padding: 20px 50px 0 50px;
	border-top: solid 1px #dddddd;
	font-weight: 600;
	font-size: 24px;
}
section#result .small-button{
	position: absolute;
	bottom: -53px;
	right: calc(50% - 53px);
	cursor: pointer;
}
section#form-wrapper{
	background: rgba(245,245,245,0.95);
	width: 100%;
	padding: 20px 0 1px 0;
	font-size: 20px;
	line-height: 1.3;
	position: absolute;
	bottom: 0;
	left: 0;
}
section#form-wrapper form{
	width: 860px;
	margin: 0 auto;
}
section#form-wrapper form p:first-child{
	font-weight: 600;
}
section#form-wrapper form div.field_wrapper{
	width: 73%;
	float: right;
}
section#form-wrapper form input[type=email]{
	width: calc(100% - 30px);
	font-size: 20px;
	font-family:'Open Sans Hebrew';
	color: #29295b;
	border: none;
	padding: 12px 15px 8px;
	direction: rtl;
	background: #dadfe0;
	margin-bottom: 0;
}
section#form-wrapper form input[type=submit]{
	display: block;
	padding: 1px 0 3px 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 40px;
	border: solid 2px #29295b;
	border-radius: 3px;
	background: transparent;
	font-family:'Open Sans Hebrew';
	color: #29295b;
	width: 25%;	
	margin: 0 auto;
	float: left;
}
form div.field_wrapper{
	position: relative;
	display: block;
}
form label.floating{
	position: absolute;
	top: 13px;
	right: 15px;
	font-size: 20px;
	line-height: 20px;
	transition:0.2s ease all; 
 	-moz-transition:0.2s ease all; 
  -webkit-transition:0.2s ease all;
	z-index: 5;
	color: #666666;
}
form input:focus + label.floating,
form input:valid + label.floating,
form input[type=email]:not(:placeholder-shown) + label.floating{
	font-size: 12px;
	top: 1px;
	color: #1268b3;
}
.response{
	margin: 0;
}
/* Customize the label (the container) */
.customlabel {
  display: block;
  position: relative;
  padding-right: 45px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 28px;
	line-height: 28px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* Hide the browser's default radio button */
.customlabel input {
  position: absolute;
  opacity: 0;
}
/* Create a custom radio button */
.checkmark {
  position: absolute;
  top: 0;
  right: 0;
  height: 25px;
  width: 25px;
	border: solid 2px #29295b;
  border-radius: 50%;
}
/* On mouse-over, add a grey background color */
.customlabel:hover input ~ .checkmark {
  background-color: #eee;
	
}
/* When the radio button is checked, add a blue background */
.customlabel input:checked ~ .checkmark {
  background-color: #29295b;
}

section#form-wrapper .customlabel{
	font-size: 20px;
	line-height: 20px;
	padding-right: 35px;
	display: inline-block;
}
section#form-wrapper .checkmark{
	border: solid 2px #cccccc;
	height: 20px;
  width: 20px;
	top: -2px;
}
section#form-wrapper .customlabel input:checked ~ .checkmark {
	background-color: transparent;
}
section#form-wrapper .customlabel input:checked ~ .checkmark::after{
	content: "";
	display: inline-block;
	width: 25px;
	height: 20px;
	position: absolute;
	right: -7px;
	top: -3px;
	background: url(../images/check.png) no-repeat center center;
}
.popup{
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0,0.39);
	display: none;
}
.popup-content{
	width: 500px;
	text-align: center;
	padding: 50px 30px;
	background-color: #ffffff;
	position: absolute;
	right: calc(50% - 280px);
	top: 100px;
}
.popup-content h2{
	font-weight: normal;
	margin-top: 0;
	margin-bottom: 25px;
}
.close{
	display: block;
	width: 25px;
	height: 25px;
	font-size: 25px;
	line-height: 25px;
	position: absolute;
	right: 5px;
	top: 5px;
	cursor: pointer;
}
.at-share-btn{
	margin: 15px!important;
}

@media screen and (orientation:portrait) {
	.wrapper{
		background: url(../images/mobile-bg.jpg) no-repeat center center;
		background-size: cover;
	}
}

@media (max-height: 720px){
	.content{
		width: 480px;
		font-size: 22px;
		padding-bottom: 80px;
		margin-top: 15px;
	}
	section#open, section#quiz{
		padding-bottom: 80px;
	}
	section#open .content p:first-child{
		font-size: 20px;
	}
	section#open h1{
		font-size: 40px;
		line-height: 44px;
	}
	.big-button{
		width: 180px;
		line-height: 175px;
		padding-bottom: 5px;
		font-size: 30px;		
		bottom: -90px;
		right: calc(50% - 90px);
		background-size: cover;
	}
	section#quiz h2{
		font-size: 24px;
	}
	section#open .big-button{
		height: 130px;
		line-height: 32px;
		padding-top: 50px;
	}
	section#result .content p:first-child{
		font-size: 22px;
	}
	section#result h1{
		font-size: 50px;
		line-height: 50px;
	}
	section#result .content .link-description{
		font-size: 20px;
	}
}
@media (max-width: 920px){
	section#form-wrapper form{
		width: 96%;
	}
	section#form-wrapper{
		font-size: 18px;
	}
}
@media (max-width: 620px){
	.content{
		width: calc(90% - 60px);
		padding-top: 10px;
		padding-right: 30px;
		padding-left: 30px;
	}
	section#result .content p:first-child{
		font-size: 18px;
	}
	/*
	section#result .small-button {
		bottom: -3px;
		left: 5px;
		right: auto;
		width: 80px;
	}
	section#result .small-button img{
		width: 100%;
		height: auto;
	}
	section#result .content .link-description span{
		padding-left: 80px;
		display: block;
		text-align: right;
		font-size: 16px;
	}
	*/
	section#result .content .link-description span{
		text-align: right;
		font-size: 16px;
	}
	section#result .small-button {
		display: block;
		width: 60px;
		bottom: -40px;
    right: calc(50% - 30px);
	}
	section#result .small-button img{
		width: 100%;
		height: auto;
	}
	section#result .content{
		padding-bottom: 1px;
	}
	section#result .content .link-description {
    margin: 20px -30px 20px -30px;
    padding: 20px 30px 0 30px;
	}
	.popup-content{
		padding: 20px;
		width: calc(90% - 40px);
		right: 5%;
		top: 60px;
	}
}
@media (max-width: 405px){
	.content{
		font-size: 18px;
	}
	section#open .content p:first-child{
		font-size: 16px;
	}
	section#open h1{
		font-size: 26px;
		line-height: 32px;
	}
	section#quiz h2{
		font-size: 17px;
	}
	section#quiz label {
			display: block;
			margin: 35px 0;
			font-size: 22px;
	}
	section#result .content p:first-child{
		font-size: 18px;
		padding-right: 0;
		padding-left: 0;
	}
	section#result h1{
		font-size: 40px;
		line-height: 40px;
	}
	section#result .content .link-description{
		font-size: 16px;
	}
	section#form-wrapper{
		font-size: 14px;
		padding: 1px 0 1px 0
	}
	section#form-wrapper form input[type=submit]{
		font-size: 18px;
	}
	section#result .content .share-quiz{
		font-size:18px;
		line-height: 30px;
	}
}
@media (max-width: 340px){
	section#result h1{
		margin-bottom: 15px;
		margin-top: 8px;
	}
	section#result .content .link-description{
		padding: 15px 30px 0 30px;
	}
	section#result .content .link-description span{
		font-size: 14px;
	}
	section#form-wrapper form input[type=email]{
		font-size: 18px;
		padding: 11px 15px 3px;
		margin-bottom: 0;
		-webkit-appearance: none;
	}
	form label.floating{
		top: 8px;
	}
	section#form-wrapper form input[type=submit]{
		padding: 1px 0 3px 0;
		font-size: 18px;
		line-height: 30px;
		margin: 0 auto;
		-webkit-appearance: none;
	}
}