@charset "utf-8";
/* CSS Document */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top:0px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow:scroll; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  margin-top: 25px;
  padding: 20px;
  border: 1px solid #888;
  width: 50%;
  -webkit-animation-name: animatetop;
  -webkit-animation-duration:.3s;
  animation-name: animatetop;
  animation-duration:.3s;
  transition-timing-function: cubic-bezier(0.1, 0.7, 1.0, 0.1);
}

/*title modal popup*/
.titleModalPopUp{
	font-size:24px;
	line-height: 1.5em;
	font-weight: bold;
	max-width: 800px;
	margin: 0 auto;
}

.textPlanePopUp{
	font-size:22px;
	line-height: 1.7em;
	max-width: 800px;
	margin: 0 auto;
	text-align: justify;
}

@media only screen and (max-width: 1440px) {
.modal-content {
  width: 80%;
}
}

@media only screen and (max-width: 768px) {
	/*title modal popup*/
.titleModalPopUp{
	font-size:20px;
	line-height: 1.5em;
	font-weight: bold;
	margin: 0 auto;
}

.textPlanePopUp{
	font-size:16px;
	margin: 0 auto;
	text-align:left;
}
	
}


/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300; opacity:0; width: 0; display: none;} 
  to {top:0; opacity:1; width: 50%; display: block;}
}

@keyframes animatetop {
   from {top:-300; opacity:0; width: 0; display: none;} 
  to {top:0; opacity:1; width: 50%; display: block;}
}


/* The Close Button */
.closeModalPopUp {
  color: #aaaaaa;
	display: block;
  font-size: 28px;
  font-weight: bold;
	width: 100%;
	text-align: right;
}

.closeModalPopUp:hover,
.closeModalPopUp:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}


@media only screen and (max-width: 768px) {
	.modal-content{
		width: 80%;
	}
	
	.modal-content {
	height: calc( 100% - 90px );
	overflow-y: scroll;
	}
}
