@media screen and (orientation: portrait){
	body{
		height: 100vh;
	}
}

@media screen and (max-width: 768px){
	.coupon-letter{
		width: 100%;
		height: 420px;
	}

	.coupon-title{
		font-size: 18px;
	}

	.coupon-comment{
		margin-bottom: 5px;
		font-size: 12px;
	}

	.coupon-button-group > div{
		height: 40px;
	}

	.input-coupon{
		margin-right: 5px;
	}
	
	.right-button{
		margin-left: 5px;
	}

    .coupon-button-group .top-button-group{
        margin-bottom: 5px
    }

	.coupon-button-group .top-button-group button, input{
		font-size: 16px;
	}
	
	.coupon-button-group .bottom-button-group button{
		text-align: right;
		font-size: 11px;
	}
}

@media screen and (min-width: 768px), screen and (orientation: landscape){
	.coupon-letter{
		width: 650px;
		height: 750px;
	}

	.coupon-title{
		font-size: 25px;
        margin-bottom: 15px;
        font-style: bold;
	}

	.coupon-comment{
		margin-bottom: 20px;
		font-size: 18px;
	}

	.coupon-button-group > div{
		height: 70px;
	}

	.input-coupon{
		margin-right: 5px;
	}
	
	.right-button{
		margin-left: 5px;
    }
    
    .coupon-button-group .top-button-group{
        margin-bottom: 5px
    }

	.coupon-button-group .top-button-group button, input{
		font-size: 25px;
	}
	
	.coupon-button-group .bottom-button-group button{
		text-align: right;
		font-size: 18px;
	}
}

body{
	text-align: center;
	font-size: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-image: url("./img/background.png");
    font-family: sans-serif;
    color: white;
}

.coupon-letter{
	background-image: url("./img/img_letter.png");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 100% 100%;
    display: flex;
    flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

.coupon-letter-header {
    width: 100%;
    height: 50%;
    display: flex;
    flex-direction: column;    
    align-items: center;
}

.coupon-letter-body{
    width: 100%;
    height: 50%;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-direction: column;
}

.coupon-title{
    padding-top: 17%;
	font-weight: normal;
}

.coupon-button-group{
	width: 70%;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.coupon-button-group > div{
	display: flex;
	margin-top: 4px;
}

.coupon-button-group button{
	width: 100%;
	background-color: transparent;
	border: 1px gray;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center center;
	color: white;
	text-shadow: 1px 1px black;
	font-weight: bolder;
}

#input-coupon-code{
    width: 100%;
    background-image: url("./img/coupon_blank.png");
    font-weight: bolder;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-color: transparent;
    border: transparent;
    padding: 10px;
}

#confirm-button{
    width: 30%;
	background-image: url("./img/btn_confirm.png");
}

#google-button{
	background-image: url("./img/btn_google.png");
}

#apple-button{
	background-image: url("./img/btn_ios.png");
}

@keyframes fadeIn{
	from{
		visibility: visible;
		opacity: 0;
	}

	to{
		visibility: visible;
		opacity: 1;
	}
}

@-webkit-keyframes fadeIn{
	from{
		visibility: visible;
		opacity: 0;
	}

	to{
		visibility: visible;
		opacity: 1;
	}
}