/*********************************************** 
  needPopup 
  - Version 1.0.0
  - Copyright 2015 Dzmitry Vasileuski
  - Licensed under MIT (http://opensource.org/licenses/MIT)
***********************************************/
/* Block page scroll
***********************************************/
.needpopup-opened,
.needpopup-opened body {
  overflow: hidden;
}
.needpopup-opened.needpopup-scrolled,
.needpopup-opened.needpopup-scrolled body {
  height: auto;
}
.needpopup-opened.needpopup-scrolled body {
  position: fixed;

  width: 100%;
}
/* Popup wrapper
***********************************************/
.needpopup_wrapper {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;

  visibility: hidden;
  overflow: auto;

  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 40px 0;

  -webkit-transition: opacity .3s ease;
          transition: opacity .3s ease;

  opacity: 0;
  background: #000;
  background: rgba(0, 0, 0, .8);
}
.needpopup-opened .needpopup_wrapper {
  visibility: visible;

  opacity: 1;
}
.needpopup-overflow .needpopup_wrapper {
  padding: 0px;
}
/* Popup appearence
***********************************************/
.needpopup {
  position: relative;
  z-index: 9999;
  top: 50%;
  left: 50%;

  display: none;

  width:600px;
  max-width: 100%;
  margin-left:-300px;
  padding: 0px;
  background:none;
  text-align:center;

  opacity: 0;
} 
.needpopup_big {
  width: 880px;
  margin-left:-440px;
}
.needpopup_1200 {
  width: 1200px;
  margin-left:-600px;
}
.needpopup.opened {

  opacity: 1;
}
.needpopup.stacked {
  top: 0 !important;

  margin-top: 0 !important;
}
.needpopup-overflow .needpopup {
  left: 0;

  width: auto;
  margin-left: 0;
}
/* Popup remover
***********************************************/
.needpopup_remover {
  position: fixed;
  z-index: 9999;
  top:15px;
  right: 20px;

  font-size: 30px;
  line-height: .5;
  color: #fff;

  text-decoration: none;
}
.needpopup_remover:hover {
  color: #fff;
}
.needpopup_remover:before {
  content: '×';
}
.needpopup .needpopup_remover {
  top: 15px;
  right: 20px;

  font-size: 30px;
  line-height: .5;
  color: #fff;
}
.needpopup .needpopup_remover:hover {
  color: #fff;
}

@media all and (max-width:1200px) {
	.needpopup.needpopup_1200 {top:0% !important;	}
}

@media all and (max-width:980px) {
	.needpopup_remover,
	.needpopup .needpopup_remover {top:13px; right:20px;font-size:27px;}
}