/* needed for old browsers */
dialog {
  display: block;
}
/* removes scroll when modal is opened */
.no-scroll {
  overflow: hidden;
}
/* overlay covers everything */
.simple-modal-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: #fff;
  opacity: .8;
  z-index: 666; /* satan inside */
  cursor: pointer;
}
/* modal */
.simple-modal {
  position: fixed;
  left: 15%;
  top: 5%;
  width: 70%;
  max-height: 98vh;
  right: auto;
  border: 2px solid #000; 
  background: #fff;
  z-index: 667;
  padding: 2em;
  overflow: auto;
}
.simple-modal-close {
  float: right;
  background: #933;
  border-radius: 1em;
  color: #fff;
  padding: .25em;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
}
.simple-modal-close:focus,
.simple-modal-close:hover,
.simple-modal-close:active {
  background: #882525;
}
.simple-modal-overlay[data-background-click="disabled"] {
  cursor: auto;
}

/* it can be easily adapted in media-queries for tablets/mobile */

/* for this example: tablets */
@media (max-width: 55.625em) {

  .simple-modal {
    left: 5%;
    top: 5%;
    bottom: 5%;
    width: 90%;
  }
  
}

/* for this example: mobile */
@media (max-width: 44.375em) {

  .simple-modal {
    left: 1%;
    top: 1%;
    max-width: 98%;
    bottom: 1%;
  }

}


/* another modal styling example */
/* tooltip modal for it’s easy button */
.simple-left-modal-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(0, 0, 0, .8);
  opacity: .8;
  z-index: 666;
  cursor: pointer;
}

.simple-left-modal {
  left: auto;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  z-index: 667;
  position: fixed;
  width: 40em;
  max-width: 100%;
  padding: 1em;
  font-size: 1em;
  border: 0;
  overflow: auto;
  background-color: #fff ;
  background-image:
      -webkit-linear-gradient(
        top,
        #882525 3em,
        #f7f7f7 3em
      );  background-image:
      linear-gradient(
        to bottom,
        #882525 3em,
        #f7f7f7 3em
      );
  background-attachment: local;
}
.simple-left-modal-close {
  position: absolute;
  top: .25em;
  right: 0;
  background: transparent;
  color: #fff;
}

.invisible {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px
}


/* MODIFICATIONS */

.simple-modal{
  width:30%;
  left: 0;
  right: 0;
  margin: auto auto;
  top: 25%;
  z-index: 1000;
  box-shadow: 0px 0px 100px;
  text-align: center;
  border: 2px solid #525252;
  border-radius: 5px;
}

.simple-modal-close{
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translate(-50%);
  background-color: #525252;
  border-style: hidden;
  margin-right: 10px;
  margin-bottom: 10px;
  border-radius: 2px;
  padding: 5px 25px;
}

.simple-modal-close:focus, .simple-modal-close:hover, .simple-modal-close:active{
  background-color: #222222;
}

.simple-modal__content{
  margin-bottom: 40px;
}

.simple-modal__content h2{
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #525252;
}

.simple-modal__content p{
  font-size: 1.3em;
}

.simple-modal a.lienSondage {
  background-color: #4B4279;
  color: white;
  padding: 8px 8px;
  margin-top: 20px;
  display: block;
  width: 50%;
  font-weight: bold;
  font-size: 16px;
  margin-right: auto;
  margin-left: auto;
}