@font-face {
    font-family: 'Helvn';
    src: url('fonts/HelveticaNeue-CondensedBold.woff2') format('woff2'),
        url('fonts/HelveticaNeue-CondensedBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}


body {
	font-family: Helvetica, Arial, sans-serif;
	color:#444;
	background: url('images/4F_quornbg.jpg') no-repeat;
	background-size:cover;
	font-size:12px;
	min-width:320px;
}

body.modal-open {
    overflow: hidden;
}

/* Container */
.container{
    margin: 0 auto;
    width: 70%;
    padding: 0;
}

#main {
	width:100%;
	height:100vh;
}

/* Coupon Input */
#div_cpi {
    border: 1px solid gray;
    border-radius: 10px;
    width: 100%;
    height:80vh;
    max-width: 470px;
    max-height: 370px;
    box-shadow: 0px 2px 2px 0px grey;
    margin: 100px auto 0;
    background: url('images/4F_quorncouponbg.png') #ffffff bottom center;
    background-size:cover;
    text-align: center;
}

#div_cpi h1{
    margin-top: 0px;
    font-weight: normal;
    padding: 20px 10px 10px;
    font-family: "Helvn", Helvetica, Arial, sans-serif;
    text-transform: uppercase;
}

#div_cpi div{
    clear: both;
    margin-top: 10px;
    padding: 5px;
}

#div_cpi .textbox {
    width: 90%;
    padding: 7px;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
    border: 1px #cccccc solid;
    border-radius: 10px;
}

#div_cpi .textbox::placeholder {
    color: #dddddd;
}

#div_cpi input[type=submit]{
    font-family: "Helvn", Helvetica, Arial, sans-serif;
	padding: 7px;
    width: 100px;
    background-color: #EA7724;
    border: 0px;
    border-radius: 10px;
    text-transform: uppercase;
    color: white;
}

/* Response */
.response{
    padding: 6px;
    display: none;
    font-family: "Helvn", Helvetica, Arial, sans-serif;
    font-size:16px;
}

.exists{
    color: green;
}

.not-exists{
    color: red;
}

/* Modal */

#couponmodal {
    position: fixed;
    width: 100%;
    margin: 0 auto;
    right: 0;
    padding-left: 0;
    top: 0;
}

#couponmodal .modal-content {
    -webkit-box-shadow: none;
    box-shadow: none;
    border:none;
    overflow: hidden;
    background:none;
}



#couponmodal .modal-dialog {
    -webkit-transform: translate3d(0, -25%, 0);
    transform: translate3d(0, 0%, 0);
    
    margin: 0 auto;
    width: 375px;
    height: 90vh;
    background: url("images/4F_quorncoupon.jpg") transparent top center no-repeat;
    background-size: contain;
}

#couponmodal .couponmodal-body {
	text-align:center;
}

#couponmodal-content img {
    margin: 0 auto;
    max-height: 95vh;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #f6f6f6;
}

.modal-backdrop.in {
    filter: alpha(opacity=80);
    opacity: .8;
}


.display {
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
    position: fixed;
    border: none;
    margin-left: -25vw;
    top: 400px;
    left: 50%;
    width: 50vw;
    height: 30px;
    z-index: 360;
}

#redeemhere {
    background: url('images/4F_quorn_redeem.png') no-repeat;
    background-position: center;
    background-size: contain;
    position: fixed;
    border: none;
    margin-left: -25vw;
    top: 470px;
    left: 50%;
    width: 50vw;
    height: 10vh;
    min-width: 160px;
    min-height: 65px;
    z-index: 350;
    transition: all 0.5s ease;
}

#redeemhere.redeemed {
    background: url('images/4F_quorn_redeemed.png') no-repeat;
    background-position: center;
    background-size: contain;
}

#redeemhere.error {
    background: url('images/4F_quorn_error.png') no-repeat;
    background-position: center;
    background-size: contain;
}

#redeemhere.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;
	perspective: 1000px;
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

button.modal-closebtn {
    background: url(images/close.png) no-repeat;
    background-position: 0 0px;
    background-size: contain;
    position: fixed;
    border: none;
    margin: 0;
    top: 20px;
    right: 30px;
    width: 20px;
    height: 20px;
    z-index: 300;
    text-indent: 3000px;
}

body:not(.modal-open){
  padding-right: 0px !important;
}

	

/* Extra Small Devices, Phones */ 
@media only screen and (max-width : 320px) {
	#div_cpi {
		width: 300px;
		margin: 20px auto 0;
	}
	
	#div_cpi input[type=submit]{
		font-family: "Helvn", Helvetica, Arial, sans-serif;
		padding: 7px;
		width: 150px;
		font-size:20px;
		background-color: #EA7724;
		border: 0px;
		border-radius: 10px;
		text-transform: uppercase;
		color: white;
	}
	
	#couponmodal .modal-dialog {
		-webkit-transform: translate3d(0, -25%, 0);
		transform: translate3d(0, 0%, 0);
		margin-top: 0;
		width: 300px;
		height: 90vh;
		background: url(images/4F_quorncoupon.jpg) transparent top center no-repeat;
		background-size: 300px;
	}
	
	.display {
		font-family: "Courier New", Courier, monospace;
		font-weight: bold;
		font-size: 24px;
		text-align: center;
		text-transform: uppercase;
		position: fixed;
		border: none;
		margin-left: -25vw;
		top: 320px;
		left: 50%;
		width: 50vw;
		height: 30px;
		z-index: 360;
	}
	
	button.redeemhere {
		background: url(images/4F_quorn_redeem.png) no-repeat;
		background-position: center;
		background-size: contain;
		position: fixed;
		border: none;
		margin-left: -25vw;
		top: 375px;
		left: 50%;
		width: 50vw;
		height: 10vh;
		min-width: 160px;
		min-height: 65px;
		z-index: 350;
	}
}

textarea, select, input, button { outline: none; }

