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



.modal .modal-wrap{
  background-color: #ffffff;
  box-shadow: 3px 3px 3px rgba(0,0,0,0.2);
  padding: 0px !important;
  margin-left: auto;
  margin-right: auto;
  align-self: flex-start;
  border-radius: 10px !important;
  transition: all 0.5s ease;
}

.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);
  display: none;
  background-color: rgba(0,0,0,0.7);
}

/* Box */
.modal-header{
  background-color: #f8f9fc;
  width: 100%;
  height: 15%;
  border-radius: 10px;
}
.form-title{
  font-size: 32px;
  text-align: center;
  line-height: 3;
}
.border{
  padding-top: 0px;
  width: 100%;
  border-bottom: 1px dashed #4C4C4C;
  box-sizing: border-box;
}
.close{
  padding-top: 15px;
  padding-right: 30px;
}
.form-contents{
  margin-left: auto;
  margin-right: auto;
  width: 800px;
  padding-bottom: 20px;
  padding-left: 30px;
  padding-right: 30px;
  box-sizing: border-box;
}
.form-contents p {
  color: #414347;
  font-size: 14px;
	margin-top: 1.5em;
}

.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: 10px;
  top: 10px;
  font-size: 40px;
  width: 30px;
  height: 30px;
  color: #282c34;
}

.modal .modal-overlay .close:hover{
  cursor: pointer;
  color: #4b5361;
}


.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{
  transform: scale(1);
  opacity:1;
  z-index: 9997;
  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;
}
.modal input:checked ~ .modal-overlay .modal-wrap {
  transform: translateY(0);
  z-index: 9999;
}

#info-name{
  height: 18px;
}
#info-comment{
  margin-top: 0px !important;
  width: 90%;
  height: 180px;
}


#info-submit{
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 20px;
  padding: 5px 32px;
  font-size: 16px;
  background: #000033;
  color: #fff;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}
#info-submit:hover {
	background: #0099cc;
}
/* Responsive Design */
/* Tablet size */
/*@media (max-width: 800px){
  .modal .modal-wrap {
  width: 80%;
    padding: 20px;
  }
  #contents{
    width: 90%;
    height: 100px;
  }
}

/* Phone size */
/*@media (max-width: 500px){
  .modal .modal-wrap {
    width: 90%;
  }
}*/

/* 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;
  }
}
