/* modal
------------------------------------------------------------------- */
.modal{
	display: none;
	height: 100vh;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 15;
}

.modal__bg{
	background: rgba(0,0,0,0.8);
	height: 100vh;
	position: absolute;
	width: 100%;
}
.modal__content{
	background: #fff;
	left: 50%;
	padding: 20px;
	position: absolute;
	top: 50%;
	transform: translate(-50%,-50%);
	max-height:80%;
	width: 60%;
	overflow-y:scroll;
}

@media screen and (max-width: 768px) {
	.modal__content{
		max-height:90%;
		width: 80%;
	}
}

/* popup
------------------------------------------------------------------- */
.popup p.popuptext {
	font-size: 1.5rem;
}

@media screen and (max-width: 768px) {
	.popup p.popuptext {
		font-size: 2rem;
	}
}
.popup .button {
	text-align: center;
	margin-top: 15px;
}

.popup .button .closebutton {
	display: inline-block;
	margin-bottom: 10px;
	padding: 5px 32px;
	background: #8D8B8B;
	border-radius: 4px;
	color: #ffffff;
	text-decoration: none;
	font-size: 18px;
	font-weight: bold;
	line-heigt: 1.2em;
	-webkit-box-shadow: 0px 6px 3px -3px rgba(0,0,0,0.4);
	box-shadow: 0px 6px 3px -3px rgba(0,0,0,0.4);
	-webkit-transition: .12s;
	transition: .12s;
}

.popup .button .closebutton:hover {
	background: #ffffff;
	border: solid 1px #8D8B8B;
	color: #8D8B8B;
	opacity: 0.8;
}

.popup .popupimg img{
	margin : 0 auto;
	padding: 5px;
	border: 1px solid #E0E0E0;
	max-width: 300px;
	max-height: 300px;
}

@media screen and (max-width: 768px) {
	.popup .popupimg img{
		max-width: 90%;
		max-height: 90%;
	}
}

