/* ==========================================================================
   Remodal necessary styles
   ========================================================================== */

/* Hide scroll bar */

html.remodal-is-locked {
  overflow: hidden;
}

/* Anti FOUC */

.remodal,
[data-remodal-id] {
  visibility: hidden;
}

.remodal-overlay {
  position: fixed;
  z-index: 9999;
  top: -5000px;
  right: -5000px;
  bottom: -5000px;
  left: -5000px;
  display: none;
}

.remodal-wrapper {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.remodal-wrapper:after {
  display: inline-block;
  height: 100%;
  margin-left: -0.05em;
  content: "";
}

/* Fix iPad, iPhone glitches */
.remodal-overlay,
.remodal-wrapper {
  -webkit-transform: translateZ(0px);
}

.remodal {
  position: relative;
  display: inline-block;
}

/* ==========================================================================
   Remodal default theme
   ========================================================================== */

/* Default theme font */

.remodal,
.remodal * {}

/* Background for effects */

.remodal-bg {
  -webkit-transition: -webkit-filter 0.2s ease-out;
  -moz-transition: -moz-filter 0.2s ease-out;
  -o-transition: -o-filter 0.2s ease-out;
  transition: filter 0.2s ease-out;
}

body.remodal-is-active .remodal-bg {
  -webkit-filter: blur(3px);
  -ms-filter: blur(3px);
  filter: blur(3px);
  -moz-filter: blur(3px);
  -o-filter: blur(3px);
}

/* Default theme styles of the overlay */

.remodal-overlay {
  -webkit-transition: opacity 0.2s ease-out;
  -moz-transition: opacity 0.2s ease-out;
  -o-transition: opacity 0.2s ease-out;
  transition: opacity 0.2s ease-out;

  opacity: 0;
  background: #000;
  background: rgba(0, 0, 0, 0.8);
}

body.remodal-is-active .remodal-overlay {
  opacity: 1;
}

/* Default theme styles of the modal dialog */

.remodal {
  font-size: 20px;
  color: #000;

  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  padding: 100px 20px 40px;
	background: #f9f8e0 url(../images/dot/modal-header.jpg) no-repeat center top;
	background-size: 640px;
	background-clip: padding-box;

  -webkit-transition: -webkit-transform 0.2s ease-out, opacity 0.2s ease-out;
  -moz-transition: -moz-transform 0.2s ease-out, opacity 0.2s ease-out;
  -o-transition: -o-transform 0.2s ease-out, opacity 0.2s ease-out;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  -webkit-transform: scale(0.95);
  -moz-transform: scale(0.95);
  -ms-transform: scale(0.95);
  -o-transform: scale(0.95);
  transform: scale(0.95);

  opacity: 0;    
}

.remodal.cpp {
	text-align: left;
}

body.remodal-is-active .remodal {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);

  opacity: 1;
}

/* Icomoon icons */
.remodal-close:after,
.remodal.sendtomobile #handoff-button:before,
.step.check p.pub-info:before,
.step.confirm .info-box > p:before {
	font-family: 'icomoon';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	/* Better Font Rendering =========== */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Vertical align of the modal dialog */

.remodal,
.remodal-wrapper:after {
    vertical-align: middle;
}

/* Close button */

.remodal-close {
    position: absolute;
    top: 16px;
    right: 12px;
    width: 32px;
    height: 32px;

    -webkit-transition: background 0.2s ease-out;
    -moz-transition: background 0.2s ease-out;
    -o-transition: background 0.2s ease-out;
    transition: background 0.2s ease-out;
    text-decoration: none;
}

.remodal-close:after {
    display: inline-block;
    content: '\e603';
    cursor: pointer;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
	font-size: 24px;
    line-height: 24px;
	color: #f9f8e0;
    text-decoration: none;
}

.remodal-close:hover,
.remodal-close:active {}

.remodal-close:hover.remodal-close:after,
.remodal-close:active.remodal-close:after {

}

.remodal h3 {
	margin-bottom: 20px;
}
.remodal h3 + h5 {
	margin-top: -10px;
}
.remodal img.icon {
	max-width: 80px;
	margin-bottom: 20px;
}
.remodal hr {
	margin: 20px -30px 10px;
}
.remodal .footnote hr {
  margin-bottom: 20px;
}
.remodal hr.or {
	margin: 35px -30px 25px;
	overflow: visible;
}
.remodal hr.or:after {
	content: 'OR';
	display: inline-block;
	position: relative;
	top: -20px;
	font-family: 'HeadlineOne';
	font-size: 20px;
	line-height: 40px;
	width: 40px;
	height: 40px;
	background: #e5e1d6;
	-webkit-border-radius: 100%;
	border-radius: 100%;
}

.remodal a {
  color: #000;
  text-decoration: underline;
}
.remodal a.button {
  text-decoration: none;
}
.remodal a.button > span {
  display: block;
}

.remodal form input[type="text"],
.remodal form input[type="number"],
.remodal form input[type="email"],
.remodal form input[type="password"],
.remodal form select {
	display: inline-block;
	width: 100%;
  color: #000;
}
.remodal .field-wrapper {
	max-width: 300px;
	position: relative;
}
.field-wrapper.required:before {
	content: '*';
	position: absolute;
	top: 17px;
	left: -13px;
	font-size: 30px;
	line-height: 1;
}

.remodal .footnote {
	margin-top: 25px;
	font-size: 18px;
}

/* Register / Login forms */
#register-form,
#register-auth-form,
#login-form,
#login-auth-form {
	margin: 35px 0 25px;
}

#register-form button,
#register-auth-form button,
#login-form button,
#login-auth-form button {
  width: 100%;
  max-width: 300px;
}

#register-form #fr_prefix,
#login-form #fl_prefix {
  width: 33%;
  margin-right: 2%;
}
#register-form #fr_mobile,
#login-form #fl_mobile {
  width: 63%;
  margin-left: 2%;
}

#register-auth-form #fra_code,
#login-auth-form #fla_code {
  border-width: 3px;
  font-family: 'BrandonGrotW01-Medium';
  font-size: 40px;
  color: #a9a9a9;
  text-align: center;
  line-height: 1;
  height: auto;
  /*padding: 0;*/
  letter-spacing: 10px;
}

/* Redeem pint */
.remodal .step {
	max-width: 310px;
	margin: 0 auto;
}

.remodal .step button{
	min-width: 0;
}

.step .info-box {
	border: 2px solid #312f2c;
  max-width: 280px;
  margin: 0 auto 10px;
  padding: 10px 6px;
  font-size: 16px;
	text-align: left;
}
.step .info-box .pub-info {
	margin-bottom: 0;
  line-height: 1.3;
}

.step .pub-info:before {
	content: '\e609';
}

.step.check p.pub-info {
	position: relative;
  padding-left: 50px;
}
.step.check p.pub-info:before {
	position: absolute;
	top: 1px;
	left: 0;
	width: 44px;
	height: 44px;
	font-size: 44px;
}
.step.check .note-box {
  border: none;
	background-color: #c2002f;
	color: #f9f8e0;
  text-align: center;
  padding: 10px;
}
.step.check .note-box p {
  margin: 0;
}

.step.confirm .fox-wrapper {
	position: relative;
	margin: -20px 0 5px;
}
.step.confirm .fox-wrapper .countdown {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	font-size: 25px;
}
.step.confirm .info-box > p {
	position: relative;
	padding-left: 38px;
}
.step.confirm .pub-info:before {
	font-size: 30px;
	position: absolute;
	top: 3px;
	left: 3px;
}
.step.confirm .date-time:before {
	content: '\e610';
	font-size: 26px;
	position: absolute;
	top: 1px;
	left: 5px;
}
.step.done > img {
	margin: 5px 0 25px;
  max-width: 150px;
}

/* Media queries
   ========================================================================== */

@media only screen and (min-width: 640px) {
  .remodal {
    max-width: 620px;
    min-height: 0;
    margin: 20px auto;
    padding: 40px 30px;
    background: #f9f8e0;
    -webkit-border-radius: 6px;
    border-radius: 6px;
  }
	.remodal.no-close {
    max-width: 470px;
	}
	.remodal-close:after {
		color: #312f2c;
	}
  
  #register-auth-form #fra_code {
    font-size: 54px;
  }
}

@media only screen and (min-width: 768px) {
	.remodal {
		font-size: 22px;
	}
	.remodal h3 {
		font-size: 40px;
	}
	.remodal .footnote {
		font-size: 20px;
	}
	
	.remodal img.icon {
		max-width: none;
		margin: 5px 0 25px;
	}
	.remodal hr.or {
		margin-top: 50px;
		margin-bottom: 40px;
	}
	.remodal hr.or:after {
		top: -27px;
		font-size: 30px;
		line-height: 56px;
		width: 56px;
		height: 56px;
	}
	
	.remodal .step {
		max-width: 480px;
		margin: 0 auto;
	}
	
  .step .info-box {
		/*border-width: 3px;*/
    max-width: 320px;
    font-size: 18px;
	}
  
  .step.confirm .fox-wrapper {
    margin-bottom: 10px;
  }
  .step.confirm .fox-wrapper .countdown {
    bottom: -5px;
    font-size: 30px;
  }
  
  .step.done > img {
    max-width: none;
  }

}

/* IE8
   ========================================================================== */

.ie8 .remodal-overlay {
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#CC000000, endColorstr=#CC000000);
}

.ie8 .remodal {
    width: 700px;
    min-height: 0;
    margin: 20px auto;
}

.ie8 .remodal-close:after {
    margin: auto;
    text-align: center;
}

.ie8 .remodal-close:hover,
.ie8 .remodal-close:active {
    background: transparent;
}
