/*
Pure CSS modal box
Author: Jorge Chavez
Github: http://github.com/jorgechavz
*/

.modal .checkbox{
  display: none;
}

/* Gray background */
.modal .modal-overlay{
  opacity: 0;
  transition: all 0.3s ease;
  width: 50%;
  position: absolute;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -100;
  transform: scale(1);
  background-color: rgba(0,0,0,0.6);
}
@media screen and (max-width: 768px) {
	.modal .modal-overlay.spmodal{
		opacity: 1!important;
		z-index: 1 !important;
		transition:none!important;
		position: static!important;
		height: auto!important;
	}
}
/* Box */
.modal .modal-wrap{
	background-color: #ffffff;
	box-shadow: 3px 3px 3px rgba(0,0,0,0.2);
	padding: 40px 3% 70px;
	width: 95%;
	margin: 70px auto 50px;
	align-self: flex-start;
	transition: all 0.5s ease;
	max-width: 1200px;
}

.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{
	line-height: 1;
/*	font-size: 20px;
	background-color: #8c743f;
	padding: 13px 25px;
	color: #ffffff;
	text-align: center;*/
	/*margin: 40px auto 0;*/
	display: block;
	width: 46px;
	cursor: pointer;
	opacity: 1;
	transition: all 0.5s ease;
}

.modal .btnBox{
	position: absolute;
	top:-50px;
	right: 0px;
}
.modal .btnBoxB{
	position: absolute;
	bottom:-50px;
	left: 0px;
}

.modal .btnBox li .btnPrint:hover{
	opacity: 0.7;
}

@media screen and (max-width: 768px) {
.modal .modal-wrap{
	margin: 50px auto 60px;
	}
	.modal .modal-overlay .close{
			width: 100%;
	}
	.modal .btnBox{
	display: table;
	width: 20%;
	max-width: 40px;
	margin: 0 auto 0;
	position: absolute;
	top:-48px;
	right: 0px;
	}
 
 .modal .btnBoxB{
	display: table;
 vertical-align: bottom;
	width: 20%;
	max-width: 40px;
	margin: 0 auto 0;
	position: absolute;
	bottom:-48px;
	left: 0px;
	}
 
	.modal .btnBox li .btnPrint{
		display: none;
	}
	}
.modal .modal-overlay .close:hover{
	opacity: 0.7;
}

 .modal .o-close {
   width: 100%;
   height: 100%;
   position: fixed;
   left: 0;
   top: 0;
   z-index: -100;
		cursor: pointer;
 }

.modal input:checked ~ .o-close {
 z-index: 99999;
	opacity:0;
}
.modal input:checked ~ .modal-overlay{
  transform: scale(1);
  opacity:1;
  z-index:10002;
  overflow: auto;
  display: flex;
  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;
}

@media screen and (max-width: 640px) {
	.modal input:checked ~ .modal-overlay{
		padding: 0 20px;
	}
}
.modal input:checked ~ .modal-overlay .modal-wrap {
  transform: translateY(0);
  z-index: 9999;
}

/* Responsive Design */
/* Tablet size */
@media (max-width: 788px){
  .modal .modal-wrap {
    width: 90%;
    padding: 5% 3%;
  }
}

/* Fadein from display:none */
@keyframes fade-in {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: flex;
    opacity: 0;
  }
  100% {
    display: flex;
    opacity: 1;
  }
}

@-moz-keyframes fade-in {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: flex;
    opacity: 0;
  }
  100% {
    display: flex;
    opacity: 1;
  }
}

@-webkit-keyframes fade-in {
  0% {
    display: none;
    opacity: 0;
  }
  1% {
    display: flex;
    opacity: 0;
  }
  100% {
    display: flex;
    opacity: 1;
  }
}




