<style>
.modal1 {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  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 */
  -webkit-animation-name: fadeIn; /* Fade in the background */
  -webkit-animation-duration: 0.4s;
  animation-name: fadeIn;
  animation-duration: 0.4s
}

/* Modal Content */
.modal-content1 {
  display: none;
  position: fixed;
  bottom: -300px;
  background-color: #fefefe;
  width: 100%;
  -webkit-animation-name: slideIn;
  -webkit-animation-duration: 0.4s;
  animation-name: slideIn;
  animation-duration: 0.4s
}

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

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

.modal-header1 {
  padding: 2px 16px;
  //background-color: #585858;
  background-color: #000000;
  color: white;
  height:40px;
  line-height:40px;
  font-size:20px;
  text-transform:uppercase;
}

.modal-body1 {padding: 2px 16px;height:300px;display:none;}

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

@keyframes slideIn {
  from {bottom: -300px; opacity: 1}
  to {bottom: 0; opacity: 1}
}

@-webkit-keyframes fadeIn {
  from {opacity: 1} 
  to {opacity: 1}
}

@keyframes fadeIn {
  from {opacity: 1} 
  to {opacity: 1}
}
#modalTitle1{
  cursor:pointer;
}

@media screen and (max-width: 800px) {
  .modal-header1 {
    padding: 2px 16px;
    background-color: #000000;
    color: white;
    height:30px;
    line-height:30px;
    font-size:16px;
    text-transform:uppercase;
  }
}
@media screen and (max-width: 600px) {
  .modal-header1 {
    padding: 2px 16px;
    background-color: #000000;
    color: white;
    height:20px;
    line-height:20px;
    font-size:12px;
    text-transform:uppercase;
  }
}
@media screen and (max-width: 430px) {
  .modal-header1 {
    padding: 2px 16px;
    background-color: #000000;
    color: white;
    height:20px;
    line-height:20px;
    font-size:12px;
    text-transform:uppercase;
  }
}

  #login {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    //padding-top:150px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    //background: url("https://ccya.co.th/wp-content/uploads/tables/ILLUZION-LOGO-white.png") no-repeat;
    //background-position: 0px 0px; 
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    //background-color:white;
  }
  .login-content {
    position: absolute;
    top:50%;
    left:50%;
    background-color: #fefefe;
    margin-left:-188px;
    margin-top:-242px;
    padding: 0px;
    border: 1px solid #ddd;
    width: 375px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    //-webkit-animation-name: animatetop;
    //-webkit-animation-duration: 0.4s;
    //animation-name: animatetop;
    //animation-duration: 0.4s;
    border-radius: 6px;
    text-align:center;
  }
  .code{
    text-align:center;
    padding:20px auto;
    margin:20px auto;
    width:140px;
  }
  .code:after,.keyPad:after{
    content: "";
    display: table;
    clear: both;
  }
  
  .code .radio{
    width:25px;
    height:25px;
    border:1px solid #CCCCCC;
    border-radius:25px;
    float:left;
    margin:2px;
    padding:2px;
  }
  .code .radioChecked{
    width:17px;
    height:17px;
    line-height:25px;
    //border:1px solid #CCCCCC;
    border-radius:15px;
    float:left;
    margin:2px;
    padding:2px;
    background-color:#0075ff;
  }
  
  .keyPad{
    margin:0px -1px 0px 0px;
    //margin-bottom:10px;
    //border-radius: 6px;
    //border: 1px solid #ddd;
  }
  .keyPad .button{
    width:125px;
    height:70px;
    border:1px solid #CCCCCC;
    font-size:16px;
    color:#585858;
    background-color:#FFFFFF;
    text-align:center;
    cursor:pointer;
    margin:-1px;
    float:left;
    line-height:70px;
    z-index:-1;
  }
  .keyPad .button:hover{
    font-size:40px;
    background-color:#f2f0f1;
    color:#0075ff;
    font-weight:bold;
    //box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  }
  .keyPad .button:active{
    background-color:#f2f0f1;
    color:#0075ff;
    font-size:40px;
    font-weight:bold;
  }
  #loading{
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 150px; /* Location of the box */
    left: 0;
    top: 0;
    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.5); /* Black w/ opacity */
    text-align:center;
  }
  #loading .loading-content{
    position: absolute;
    top:50%;
    left:50%;
    padding: 0px;
    text-align:center;
    margin-top:-40px;
    margin-left:-40px;
  }
  #loading img{
    width:50px;
  }
</style>