/*
Pure CSS modal box
Author: Jorge Chavez
Github: http://github.com/jorgechavz
*/
.checkbox {
  display: none;
}

.modal .checkbox {
  display: none;
}

.modal.first_splash .modal-overlay {
  background-color: rgba(0, 0, 0, 0);
}

.modal.first_splash .modal-wrap {
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0);
  padding: 0px 0px;
  width: 100%;
  margin: 0px auto;
}

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

.modal .modal-wrap {
  background-color: #fff;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
  padding: 40px 50px;
  width: 60%;
  margin: 20px auto;
  align-self: flex-start;
  border-radius: 2px;
  transition: all 0.5s ease;
}

.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-right-drawer {
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  margin: 0px 0px auto auto;
  -webkit-overflow-scrolling: touch;
  padding: 0px;
}

.modal .modal-wrap.from-top {
  transform: translateY(-100%);
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  margin: 0px 0px auto auto;
  -webkit-overflow-scrolling: touch;
  padding: 0px;
}

.modal .modal-wrap.from-bottom {
  transform: translateY(100%);
}

.modal-overlay .close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 40px;
  width: 30px;
  height: 30px;
  color: #282c34;
  z-index: 100;
}

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

.modal-overlay .close_splash {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 40px;
  width: 30px;
  height: 30px;
  color: #282c34;
  z-index: 100;
  display: none;
}

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

.o-close_splash, .o-close_menu {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: -100;
}

input#modal-trigger_splash:checked ~ .modal.first_splash .o-close_splash {
  z-index: 10001;
}

input#modal-trigger_splash:checked ~ .modal.first_splash .modal-overlay {
  transform: scale(1);
  opacity: 1;
  z-index: 10001;
  overflow: auto;
}

input#modal-trigger_splash:checked ~ .modal.first_splash .modal-overlay .modal-wrap {
  transform: translateY(0);
  z-index: 10002;
}

input#menu:checked ~ .modal.menu .o-close_menu {
  z-index: 9998;
}

input#menu:checked ~ .modal.menu .modal-overlay {
  transform: scale(1);
  opacity: 1;
  z-index: 9997;
  overflow: auto;
}

input#menu:checked ~ .modal.menu .modal-overlay .modal-wrap {
  transform: translateY(0);
  z-index: 9999;
}

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

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