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


.pure-modal .checkbox{
  display: none;
}

/* Gray background */
.pure-modal .pure-modal-overlay{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Delay hiding (visibility) until the fade-out has finished */
  transition: opacity 0.3s ease, visibility 0s ease 0.3s;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -100;
  display: flex;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

/* Box */
.pure-modal .pure-modal-wrap{
  background: #fdfbfb;
  border-radius: 0.2em;
  box-shadow: 5px 5px 5px rgba(0,0,0,0.2);
  letter-spacing: 0.05em;
  line-height: 1.6;
  padding: 40px 65px;
  width: 60%;
  margin: 20px auto;
  align-self: flex-start;
  transition: all 0.5s ease;
}
.pure-modal .pure-modal-wrap.small{
  width: 30%;
}
.pure-modal .pure-modal-wrap.full{
  width: 100%;
  height: 100%;
}

.pure-modal .pure-modal-wrap.a-center {
  align-self: center;
}
.pure-modal .pure-modal-wrap.from-left {
  transform: translateX(-100vw);
}
.pure-modal .pure-modal-wrap.from-right {
  transform: translateX(100vw);
}
.pure-modal .pure-modal-wrap.from-top {
  transform: translateY(-100vh);
}
.pure-modal .pure-modal-wrap.from-bottom {
  transform: translateY(100vh);
}


/* Close button */
.pure-modal .pure-modal-overlay .close{
  display: flex;
  flex-direction: column;
  align-content: center;
  background: #282c34;
  border-radius: 50%;
  justify-content: center;
  position: absolute;
  right: -10px;
  top: -10px;
  font-size: 15px;
  width: 30px;
  height: 30px;
  color: #d1d1d1;
}

.pure-modal .pure-modal-overlay .close:hover{
  cursor: pointer;
  background-color: #d1d1d1;
  color: #4b5361;
  transition: all 0.3s ease;
}


 .pure-modal .o-close {
   width: 100%;
   height: 100%;
   position: fixed;
   left: 0;
   top: 0;
   z-index: -100;
 }

.pure-modal input:checked ~ .o-close {
  z-index: 9998;
}
.pure-modal input:checked ~ .pure-modal-overlay{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 9997;
  /* Become visible immediately, then fade in */
  transition: opacity 0.3s ease, visibility 0s ease 0s;
}
.pure-modal input:checked ~ .pure-modal-overlay .pure-modal-wrap {
  transform: translate(0, 0);
  z-index: 9999;
}

/* Responsive Design */
/* Tablet size */
@media (max-width: 800px){
  .pure-modal .pure-modal-wrap {
    width: 80%;
    padding: 20px;
  }
}

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