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


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

/* Gray background */
.modal-popup .modal-popup-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-popup .modal-popup-overlay .container {
    color: #fff;
}

.modal-popup .modal-popup-overlay .container .petit-bandeau-blanc {
    position: relative;
    width: auto;
    padding: 4px;
    top: auto;
    display: inline-block;
    text-align: left;
    border: 1px solid #6d6d6d;
}

.modal-popup .modal-popup-overlay .container .img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 5px;
    width: 100%;
    border: 1px solid;
}

.modal-popup .modal-popup-overlay .container h6, .modal-popup .modal-popup-overlay .container .h6 {
    font-size: 15px;
    font-weight: bold!important;
    line-height: 1.0;
    margin: 0 0 5px;
    text-rendering: optimizespeed;
}

.modal-popup .modal-popup-overlay .container .petit-bandeau-blanc span {
    font-size: 25px;
    display: block;
    font-weight: normal;
    line-height: 1em;
}

.modal-popup .modal-popup-overlay .container a {
    display: inline-block;
    border: 3px solid #D5A012;
    padding: 8px;
    color: #fff;
    font-size: 21px;
    padding-right: 15px;
    padding-left: 15px;
    font-weight: bold;
}


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


.modal-popup .modal-popup-wrap.small{
  width: 80%;
}
.modal-popup .modal-popup-wrap.full{
  width: 100%;
  height: 100%;
}

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


/* Close button */
.modal-popup .modal-popup-overlay .close {
    position: absolute;
    right: 20px;
    top: 40px;
    font-size: 35px;
    width: 30px;
    font-weight: 300;
    height: 30px;
    color: #fff;
}

.modal-popup .modal-popup-overlay .close:hover {
    cursor: pointer;
    color: #ffffff;
}


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

.modal-popup input:checked ~ .o-close {
  z-index: 9998;
}
.modal-popup input:checked ~ .modal-popup-overlay{
  transform: scale(1);
  opacity:1;
  z-index: 9997;
}
.modal-popup input:checked ~ .modal-popup-overlay .modal-popup-wrap {
  transform: translateY(0);
  z-index: 9999;
}

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

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