/*
Pure CSS modal box
Author: Jorge Chavez
Github: http://github.com/jorgechavz
*/


.modal .checkbox{
	display: none;
}

/* Gray background */
.modal-overlay{
	transition: all .3s;
	-webkit-transition: all .3s;
	width: 50%;
	position: absolute;
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: -100;
	visibility: hidden;
	opacity: 0;
	background: rgba(26, 88, 69, .9);
}

/* Box */
.modal .modal-wrap{
	width: 100%;
	max-width: 1000px;
	margin: 100px auto;
}
#gakuin-links {
	width: 50%;
	max-width: 50%;
	margin: 0 auto;
}

.modal .modal-wrap.small{
	width: 30%;
}
.modal .modal-wrap.full{
	width: 100%;
	height: 100%;
}

.modal .modal-wrap.a-center {
	align-self: center;
}
.modal .modal-wrap.from-left {
	transform: translateX(-100%);
}
.modal .modal-wrap.from-right {
	transform: translateX(100%);
}
.modal .modal-wrap.from-top {
	transform: translateY(-100%);
}
.modal .modal-wrap.from-bottom {
	transform: translateY(100%);
}

/* Close button */
.modal .modal-overlay .close{
	position: absolute;
	right: 0;
	top: 7px;
	width: 70px;
	height: 94px;
	padding: 13px 15px 15px;
	text-align: center;
	color: #fff;
}
.modal .modal-overlay .close small {
	display: block;
	text-align: center;
	padding: 56px 0 0;
	font:8px/1 'lato',sans-serif;
}
.modal .modal-overlay .close small:before,
.modal .modal-overlay .close small:after {
	content: '';
	width: 30px;
	height: 4px;
	visibility: visible;
	background: #fff;
	display: block;
	z-index: 301;
	position: absolute;
	right: 18px;
	transform-origin: 0 0;
	transition: all .5s ease;
}
.modal .modal-overlay .close small:before {
	transform: rotate(45deg) translate(2px,-3px);
	top: 27px;
}
.modal .modal-overlay .close small:after {
	transform: rotate(-45deg) translate(1px,2px);
	top: 47px;
}
.modal .modal-overlay .close:hover{
	cursor: pointer;
	color: rgba(255,255,255,.75);
}
.modal .o-close {
	width: 100%;
	height: 100%;
	position: fixed;
	left: 0;
	top: 0;
	z-index: -100;
}
.modal input:checked ~ .o-close {
	z-index: 9998;
}
.modal input:checked ~ .modal-overlay{
	z-index: 9997;
	overflow: auto;
	visibility: visible;
	opacity:1;
	transition: all .3s;
	-webkit-transition: all .3s;
	/*animation-duration: 0.5s;
	animation-name: fade-in;
	-moz-animation-duration: 0.5s;
	-moz-animation-name: fade-in;
	-webkit-animation-duration: 0.5s;
	-webkit-animation-name: fade-in;*/
}
.modal input:checked ~ .modal-overlay .modal-wrap {
	transform: translateY(0);
	z-index: 9999;
}/* Responsive Design */
/* Tablet size */
@media screen and (max-width:799px) {

	.modal input:checked ~ .modal-overlay {
		-webkit-overflow-scrolling: touch;
	}

	.modal .modal-wrap{
		border-bottom:none;
		margin-bottom: 0;
		-webkit-overflow-scrolling: touch;
	}

}

/* Fadein from display:none */
@keyframes fade-in {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: block;
    opacity: 0;
  }
  100% {
    display: block;
    opacity: 1;
  }
}

@-moz-keyframes fade-in {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: block;
    opacity: 0;
  }
  100% {
    display: block;
    opacity: 1;
  }
}

@-webkit-keyframes fade-in {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: block;
    opacity: 0;
  }
  100% {
    display: block;
    opacity: 1;
  }
}