@font-face {
  font-family: myFont;
  src: url('BaiJamjuree-Regular.ttf');
}
#calendarBox,#calendarBox1{
	margin:0px auto;
	font-family:'myFont';
	padding: 8px 0px;
}
#calendarBox .ui-datepicker, #calendarBox1 .ui-datepicker{
	width: 99%;
	font-family:'myFont';
	padding: 0px;
	margin:0px auto;
}
#calendarBox .ui-datepicker td a, #calendarBox1 .ui-datepicker td a { display:block;height: 50px; font-family:'myFont';text-align: center;
	align-content:center;color:black;
}

/* The Modal (background) */
.modal {
	font-family:'myFont';
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 7; /* Sit on top */
  padding-top: 0px; /* Location of the box */
  right: 0px;
  top: 0px;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  align-content:center;
}
#overlay{
	z-index:10;
}
/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 0px auto;
  padding: 0;
  border: 1px solid #888;
  width:768px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  max-height:96%;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
  padding:2px 16px;
}

.close:hover,
.close:focus{
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px;
  background-color: #000000;
  color: white;
  font-size:20px;
  line-height:40px;
  text-transform:uppercase;
  font-weight:bold;
  height:40px;
  z-index:1;
  position:relative;
}
.modal-header:after {
  content: "";
  display: table;
  clear: both;
}

.modal-body {
	position:relative;
	padding:0px 10px;
	
	margin:5px auto;
	overflow:auto;
	display:block;
}
.modal-body:after {
	content: "";
	display: table;
	clear: both;	
}

.modal-footer {
  //background-color: #04AA6D;
  background-color:black;
  color: white;
  line-height:40px;
  position:relative;
  z-index:1;
}
.modal-footer a{
  float: none;  
  padding: 0px;
  text-decoration: none;
  display: block;
  text-align: center;
  font-size:16px;
  color: #FFFFFF;
  text-transform:uppercase;
}
.modal-footer a:hover{
  opacity:0.9;
}


#myCalendar{
	align-content:center;
	background-color: rgba(0,0,0,0.8);
}
#mycalendar .modal-content{
	width:330px;
	height:370px;
	align-content:center;
	padding:0px;
}
#myDialog .modal-content{
	width:330px;
	height:165px;
	align-content:center;
	padding:0px;
}
#calendarBody a{
	display:block;
	padding:0px;
}
#dialogBody button{
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  color:black;
  background-position: 5px 5px;
  background-size: 30px 30px;
  background-repeat: no-repeat;
  padding: 12px 0px 12px 0px;
  width:20%;
  margin:0px 20px;
  cursor:pointer;
}
#dialogBody button:hover{
	background-color: black;
	color:white;
}
#dialogBody,#calendarBody{
	position:relative;
	text-align:center;
	//align-content:center;
}

@media screen and (max-width: 800px) {
  
  .modal-header{
    font-size:20px;
  }
	
}
@media screen and (max-width: 600px) {

  .modal-header{
    font-size:20px;
	position:sticky;
	top:0px;
	display:block;
  }
  .modal-footer{
	position:sticky;
	bottom:0px;
	display:block;
  }
  .modal-content {
	  width:96%;
	  align-content:stretch;
  }
}
@media screen and (max-width: 430px) {

}