/*

	Всплывающее окно

*/
.box {
  width: 90%;
  margin: 0 auto;
  background: rgba(255,255,255,0.2);
  padding: 35px;
  border: 2px solid #fff;
  border-radius: 20px 50px;
  background-clip: padding-box;
  text-align: center;
}
/* Old */
/*
.button {
  font-size: 1em;
  padding: 10px;
  color: #fff;
  border: 2px solid #06D85F;
  border-radius: 20px/50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-out;
}
.button:hover {
  background: #06D85F;
}
*/

.popup_button {
	color: #ffffff;
	text-decoration: none;
	border: none;
	transition: all 0.3s ease-out;
}
.popup_button:hover {
	color: #ffffff;
	cursor: pointer;
}
.popup_button a{
	text-decoration: none;
	border: none;
}
.overlay_wnd {
	/*
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(143, 37, 74, 0.7);
  transition: opacity 500ms;
  */
  /*
  transition: opacity 500ms;
  */
  width: 0;
  height: 0;
  max-width: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 500ms;
  background: transparent;
  visibility: hidden;
  
  display: none;
  
  opacity: 0;
  
}
/*
.overlay_wnd:target {
  visibility: visible;
  opacity: 1;
}
*/
.overlay_wnd_on {
	position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
	transition: opacity 500ms;
	background: rgba(0, 0, 0, 0.7);
  visibility: visible;
  
  display: block;
  
  opacity: 1;
}

.popup_wnd {
  margin: 38pt auto;
  padding: 24pt;
  background: #fff;
  border-radius: 3pt;
  width: 90%;
  min-width: 90%;
  height: 90%;
  min-height: 90%;
  position: relative;
  transition: all 5s ease-in-out;
  color: #555;
  box-shadow: 0 0 36pt 12pt rgba(143, 37, 74, .5);
  border: rgba(143, 37, 74, .9) 1px solid;
  
}

.popup_wnd h2 {
  margin-top: 0;
  color: #000;
  font-size: 24pt;
  text-align: left;
}
.popup_wnd .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 24pt;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  cursor: pointer;
}
.popup_wnd .close:hover {
  color: #aa0000;
}
.popup_wnd .content_wnd {
text-align: left;
	font-size: 11pt;
	/*
  max-height: 50%;
  overflow: auto;
  */
  padding: 0;
  margin: 0;
  width: 100%;
  min-width: 100%;
  height: calc( 100% - 36pt );
  min-height: calc( 100% - 36pt );
  overflow: auto;
  
  background: rgba(143, 37, 74, 0.3);
  
  background: transparent;
  
}

@media screen and (max-width: 700px){
  .box{
    width: 90%;
  }
  .popup_wnd{
    width: 90%;
  }
}
