.form-invalid {
    color: #f50000;
    font-size: 17px;
    padding-left: 12px;
}

.input-invalid {
    border: 1px solid #f50000 !important;
}

#container {
	position: relative;
}

.success_message {
	/*配置系*/
	display: inline-block;
	position  : absolute;
	top       : 90%;
	left      : 50%;
	transform : translate(-50%, -50%);
	z-index: 99;
	font-size: 17px;

	/*要素の装飾系*/
	width: 100%;
	text-align: center;
	padding: 0.5em 1em;
    margin: 2em 0;
    color: #2b961f;
    background: #fff;
    border-top: solid 5px #b7d5ac;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);

	/*アニメーション系*/
	-moz-animation: cssAnimation 0s ease-in 5s forwards;
    /* Firefox */
    -webkit-animation: cssAnimation 0s ease-in 5s forwards;
    /* Safari and Chrome */
    -o-animation: cssAnimation 0s ease-in 5s forwards;
    /* Opera */
    animation: cssAnimation 0s ease-in 5s forwards;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;

}

/*==================================================

  Animation for Flash message.

====================================================*/

@keyframes cssAnimation {
    to {
        width:0;
		height:0;
		margin: 0;
		border: 0;
		padding: 0;
		visibility: hidden;
		overflow:hidden;
		display: none;
		color: transparent;
    }
}
@-webkit-keyframes cssAnimation {
    to {
        width:0;
		height:0;
		margin: 0;
		border: 0;
		padding: 0;
		visibility: hidden;
		overflow:hidden;
		display: none;
		color: transparent;
    }
}

/*==================================================

  Media Queries for window size under 1400px

====================================================*/
@media screen and (max-width: 1400px) {
	.form-invalid {
		font-size: calc(17 / 1400 * (100vw - 17px));
	}

	.success_message {
		font-size: calc(17 / 1400 * (100vw - 17px));
	}
}


/*==================================================

  Media Queries for window size under 768px

====================================================*/
@media screen and (max-width: 768px) {
	.form-invalid {
		font-size: calc(26 / 768 * 100vw);
	}

	.success_message {
		font-size: calc(26 / 768 * 100vw);
	}
}