/* Контейнер */
.modal {

/* Слой перекрытия */
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(206, 204, 204, 0.78);
z-index: 10000;

/* Трансформации прозрачности при открытии  */
/*-webkit-transition: opacity 500ms ease-in;
-moz-transition: opacity 500ms ease-in;
transition: opacity 500ms ease-in;
*/
/* Скрываем изначально */
opacity: 0;
pointer-events: none;

}

/* Показываем модальное окно */
.modal:target {
opacity: 1;
pointer-events: auto;
}

/* Содержание */
.modal > div {
/* width: 500px; */
/* background: #fff; */
/* position: relative; */
margin: auto;
/* -webkit-animation: minimise 500ms linear; */
/* padding: 22px; */
-moz-border-radius: 7px;
/* -webkit-box-shadow: 0 3px 20px rgba(0,0,0,0.9); */
-moz-box-shadow: 0 3px 20px rgba(0,0,0,0.9);
/* box-shadow: 0 3px 20px rgba(0,0,0,0.9); */
background: -moz-linear-gradient(#fff, #ccc);
/* background: -webkit-gradient(linear, right bottom, right top, color-stop(1, rgb(255,255,255)), color-stop(0.57, rgb(230,230,230))); */
/* text-shadow: 0 1px 0 #fff; */
position: relative;
display: block;
max-width: 800px;
background: rgb(226, 226, 226);
height: 500px;
border: 10px solid white;
/* border-radius: 10px; */
box-shadow: 0 0 20px 0 #222;
-webkit-box-shadow: 0 0 20px 0 #222;
-moz-box-shadow: 0 0 20px 0 #222;
min-width: 50px;
z-index: 1000;
width: 800px;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
margin: auto;
}
.mapike {
/* background: #767676; */
/* padding: 15px; */
color: rgba(240, 248, 255, 0);
}

/* Изменяем анимацию при открытии модального окна*/
.modal:target > div {
-webkit-animation-name: bounce;
}

.modal h2 {
font-size: 36px;
padding: 0 0 20px;
}

@-webkit-keyframes bounce {
  0% {
  	-webkit-transform: scale3d(0.1,0.1,1);
  	-webkit-box-shadow: 0 3px 20px rgba(0,0,0,0.9);
  }
  55% {
  	-webkit-transform: scale3d(1.08,1.08,1);
  	-webkit-box-shadow: 0 10px 20px rgba(0,0,0,0);
  }
  75% {
  	-webkit-transform: scale3d(0.95,0.95,1);
  	-webkit-box-shadow: 0 0 20px rgba(0,0,0,0.9);
  }
  100% {
  	-webkit-transform: scale3d(1,1,1);
  	-webkit-box-shadow: 0 3px 20px rgba(0,0,0,0.9);
  }
}

@-webkit-keyframes minimise {
  0% {
  	-webkit-transform: scale3d(1,1,1);
  }
  100% {
  	-webkit-transform: scale3d(0.1,0.1,1);
  }
}

/* Ссылка на кнопку Закрыть */
.modal a[href="#close"] {
position: absolute;
right: 0;
top: 0;
color: transparent;
}

/* Сбрасываем изменения */
.modal a[href="#close"]:focus {
outline: none;
}

/* Создаем кнопку Закрыть */
.modal a[href="#close"]:after {
content: 'X';
display: block;
position: absolute;
right: 0px;
top: 0px;
width: 1.5em;
padding: 1px 1px 1px 2px;
text-decoration: none;
text-shadow: none;
text-align: center;
height: 23px;
/* font-weight: bold; */
/* background: #000; */
/* color: #fff; */
/* border: 3px solid #fff; */
-moz-border-radius: 20px;
/* border-radius: 20px; */
/* -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5); */
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
/* box-shadow: 0 1px 3px rgba(0,0,0,0.5); */
background: url(../images/close-filter.png);
/* overflow: hidden; */
/* background: url(../img/close-filter.png); */
width: 24px;
height: 24px;
padding: 0;
/* margin: 0; */
text-indent: -9999px;
line-height: 33px;
z-index: 4;
webkit-transition: all 0.5s ease-out;
-moz-transition: all 0.5s ease-out;
-o-transition: all 0.5s ease-out;
transition: all 0.5s ease-out;
background-position: 28px 29px;
}

.modal a[href="#close"]:focus:after,
.modal a[href="#close"]:hover:after {
-webkit-transform: scale(1.1,1.1);
-moz-transform: scale(1.1,1.1);
}

.modal a[href="#close"]:focus:after {
/* outline: 1px solid #000; */
background: url(../images/hclose-filter.png);
content: 'X';
display: block;
position: absolute;
right: 0px;
top: 0px;
text-decoration: none;
text-shadow: none;
text-align: center;
height: 23px;
/* font-weight: bold; */
/* background: #000; */
width: 24px;
height: 24px;
padding: 0;
margin: 0;
text-indent: -9999px;
line-height: 33px;
z-index: 4;
webkit-transition: all 0.5s ease-out;
-moz-transition: all 0.5s ease-out;
-o-transition: all 0.5s ease-out;
transition: all 0.5s ease-out;
background-position: 28px 29px;
}
.modal a:after:hover{/* outline: 1px solid #000; */
background: url(../images/hclose-filter.png);
content: 'X';
display: block;
position: absolute;
right: 0px;
top: 0px;
text-decoration: none;
text-shadow: none;
text-align: center;
height: 23px;
/* font-weight: bold; */
/* background: #000; */
width: 24px;
height: 24px;
padding: 0;
margin: 0;
text-indent: -9999px;
line-height: 33px;
z-index: 4;
webkit-transition: all 0.5s ease-out;
-moz-transition: all 0.5s ease-out;
-o-transition: all 0.5s ease-out;
transition: all 0.5s ease-out;
background-position: 28px 29px;
}

/* Открываем модальное окно */
a.openModal {
/* display: block; */
width: 150px;
/* background: #898989; */
/* text-align: center; */
-moz-border-radius: 7px;
/* border-radius: 7px; */
color: rgb(0, 190, 242);
margin-left: 15px;
}

a.openModal:hover,
a.openModal:focus {
/*background: -moz-linear-gradient(#fff, #ccc);
background: -webkit-gradient(linear, right top, right bottom, from(rgb(255,255,255)), to(rgb(200,200,200)));
*/}