/* General styles for the modal */

/* 
Styles for the html/body for special modal where we want 3d effects
Note that we need a container wrapping all content on the page for the 
perspective effects (not including the modals and the overlay).
*/
.container {
	background: #fff;
	min-height: 100%;
}

.md-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 50%;
	max-width: 800px;
	min-width: 320px;
	height: auto;
	z-index: 2000;
	visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform: translateX(-50%) translateY(-50%);
	-moz-transform: translateX(-50%) translateY(-50%);
	-ms-transform: translateX(-50%) translateY(-50%);
	transform: translateX(-50%) translateY(-50%);
}

.md-show {
	visibility: visible;
}

.md-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	visibility: hidden;
	top: 0;
	left: 0;
	z-index: 1000;
	opacity: 0;
	background: rgba(200,200,200,0.8);
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
}

.md-show ~ .md-overlay {
	opacity: 1;
	visibility: visible;
}

/* Content styles */
.md-content {
	color: #727171;
	background: #f7f7f7;
	position: relative;
	border-radius: 20px;
	margin: 0 auto;
}

.md-content h3 {
	margin: 0;
	padding: 0.8em;
	text-align: center;
    color: #fff;
    font-size: 3vw;/* IE8以下とAndroid4.3以下用フォールバック */
    font-size: calc(140% + ((1.4vw - 45%) * 0.9));/*親要素に対して改行させない*/
	font-weight: 300;
	opacity: 0.8;
	/*background: rgba(0,0,0,0.1);*/
	background: #a9a163;
    border-radius: 20px 20px 0 0;
}

.md-content h4 {
	margin: 0;
	padding: 0.8em;
	text-align: center;
	font-size: 2.8vw;/* IE8以下とAndroid4.3以下用フォールバック */
	font-size: calc(110% + ((1.4vw - 45%) * 0.9));/*親要素に対して改行させない*/
	font-weight: 300;
}

.md-content h5 {
	padding: 10px 0 0 0;
}


.md-content > div {
	padding: 6% 6% 3%;
	margin: 0;
	font-weight: 300;
	font-size: 1.15em;
}

.md-content > div p {
	margin: 0;
	padding: 10px 0;
}

.md-content > div ul {
	margin: 0;
	padding: 0 0 20px 10px;
}

.md-content > div ul li {
	padding: 5px 0;
}

.md-content  > .footer{
    width: 100%;
    padding: 4%;
}
.md-content button {
	display: block;
	margin: 0 auto ;
	font-size: 0.8em;
}

/* Individual modal styles with animations/transitions */

/* Effect 17:  Slide in from bottom with perspective on container */
.md-show.md-effect ~ .container {
	height: 100%;
	overflow: hidden;
	-webkit-transition: -webkit-transform 0.3s;
	-moz-transition: -moz-transform 0.3s;
	transition: transform 0.3s;
}	

.md-show.md-effect ~ .container,
.md-show.md-effect ~ .md-overlay  {
	-webkit-transform: rotateX(-2deg);
	-moz-transform: rotateX(-2deg);
	-ms-transform: rotateX(-2deg);
	transform: rotateX(-2deg);
	-webkit-transform-origin: 50% 0%;
	-moz-transform-origin: 50% 0%;
	transform-origin: 50% 0%;
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
}

.md-effect .md-content {
	opacity: 0;
	-webkit-transform: translateY(200%);
	-moz-transform: translateY(200%);
	-ms-transform: translateY(200%);
	transform: translateY(200%);
}

.md-show.md-effect .md-content {
	-webkit-transform: translateY(0);
	-moz-transform: translateY(0);
	-ms-transform: translateY(0);
	transform: translateY(0);
	opacity: 1;
	-webkit-transition: all 0.3s 0.2s;
	-moz-transition: all 0.3s 0.2s;
	transition: all 0.3s 0.2s;
}

