.hidden { display: none }
.popup-header {
	font-size: 14pt;
	color: #fff;
	text-shadow: 1px 1px 2px #000;
	margin: 5px 0;
	display: inline-block;
	padding: 15px 25px 15px;
	text-transform: uppercase;
	text-align: left;
	font-weight: normal;
}

.popup-title {
	font-size: 11pt;
	color: #fbedd5;
	text-shadow: 1px 1px 2px #000;
	margin: 5px 0;
	display: inline-block;
	padding: 0px 15px 18px 15px;
}

.popup-text {
	font-size: 11pt;
	color: #edbe64;
	text-shadow: 1px 1px 2px #000;
	margin: 5px 0;
	/*display: inline-block;*/
	padding: 0px 0px 0px 30px;
}

.popup-text-b {
	font-size: 11pt;
	color: #7fff00;
	text-shadow: 1px 1px 2px #000;
	/*display: inline-block;*/
}

#popup_ok, #popup_cancel {
	position: relative;
	color: white;
	font-weight: bold;
	text-decoration: none;
	text-shadow: -1px -1px #000;
	user-select: none;
	outline: none;
	background-color: gold;
	background-image: linear-gradient(45deg, rgba(255,255,255,.0) 30%, rgba(255,255,255,.8), rgba(255,255,255,.0) 70%), radial-gradient(400% 100% at 50% 0%, rgba(255,255,255,.7) 0%, rgba(255,255,255,.5) 50%, rgba(0,0,0,0) 50%);
	background-repeat: no-repeat;
	background-size: 200% 100%, auto;
	background-position: 200% 0, 0 0;
	box-shadow: rgba(0,0,0,.3) 0 2px 5px;
	border-radius: 7px;
	width: 160px;
	height: 40px;
	border: 1px solid #444;
	margin: 0 20px 0px 20px;
	cursor: pointer;
}

#popup_cancel {
	background-color: red;
}

/**
* Восстановление пароля.
*/
#p_forgot {
	width: 465px;
	height: 265px;
	overflow: visible;
	padding: 0;
	margin: 0;
}

#p_forgot .popup-border {
	content: "";
	background: url(../../images/base/popup/popup-border128.png) no-repeat;
	width: 500px;
	height: 300px;
	background-size: contain;
	position: absolute;
	top: -18px;
	left: -18px;
}

#p_forgot .content {
    padding: 20px 20px 20px 20px;
}

/**
* Изменение пароля.
*/
#p_changepasswd {
	width: 465px;
	height: 364px;
	overflow: visible;
	padding: 0;
	margin: 0;
}

#p_changepasswd .popup-border {
	content: "";
	background: url(../../images/base/popup/popup-border144.png) no-repeat;
	width: 500px;
	height: 400px;
	background-size: contain;
	position: absolute;
	top: -18px;
	left: -18px;
}

#p_changepasswd .content {
    padding: 20px 20px 20px 20px;
}

/**
* Вход.
*/
#p_auth {
	width: 465px;
	height: 265px;
	overflow: visible;
	padding: 0;
	margin: 0;
}

#p_auth .popup-border {
	content: "";
	background: url(../../images/base/popup/popup-border128.png) no-repeat;
	width: 500px;
	height: 300px;
	background-size: contain;
	position: absolute;
	top: -18px;
	left: -18px;
}

#p_auth .content {
    padding: 20px 20px 20px 20px;
}

/**
* Регистрация.
*/
#p_reg {
	width: 465px;
	height: 364px;
	overflow: visible;
	padding: 0;
	margin: 0;
}

#p_reg .popup-border {
	content: "";
	background: url(../../images/base/popup/popup-border144.png) no-repeat;
	width: 500px;
	height: 400px;
	background-size: contain;
	position: absolute;
	top: -18px;
	left: -18px;
}

#p_reg .popup-border-left-top {
	content: "";
	background: url(../../images/base/popup/left_top_popup.png) no-repeat;
	width: 165px;
	height: 165px;
	background-size: contain;
	position: absolute;
}

#p_reg .popup-border-center-top {
	content: "";
	background: url(../../images/base/popup/center_top_popup.png) no-repeat;
	width: 91px;
	height: 7px;
	background-size: contain;
	position: absolute;
}

#p_reg .popup-border-right-top {
	content: "";
	background: url(../../images/base/popup/right_top_popup.png) no-repeat;
	width: 91px;
	height: 7px;
	background-size: contain;
	position: absolute;
}

#p_reg .content {
    padding: 20px 20px 20px 20px;
}

#p_reg #popup_ok {
    width: 195px;
}

/**
* Подверждение E-mail.
*/
#p_changeemail {
	width: 465px;
	height: 265px;
	overflow: visible;
	padding: 0;
	margin: 0;
}

#p_changeemail .popup-border {
	content: "";
	background: url(../../images/base/popup/popup-border128.png) no-repeat;
	width: 500px;
	height: 300px;
	background-size: contain;
	position: absolute;
	top: -18px;
	left: -18px;
}

#p_changeemail .content {
    padding: 20px 20px 20px 20px;
}

/**
* Регистрация наказания.
*/
#s_reg {
	width: 710px;
	height: 670px;
	overflow: visible;
	padding: 0;
	margin: 0 auto;
}

#s_reg .popup-border {
	content: "";
	background: url(../../images/base/popup/popup-border256.png) no-repeat;
	width: 710px;
	height: 670px;
	background-size: contain;
	position: absolute;
}

#s_reg .popup-border-left-top {
	content: "";
	background: url(../../images/base/popup/left_top_popup.png) no-repeat;
	width: 165px;
	height: 165px;
	background-size: contain;
	position: absolute;
}

#s_reg .popup-border-center-top {
	content: "";
	background: url(../../images/base/popup/center_top_popup.png) no-repeat;
	width: 91px;
	height: 7px;
	background-size: contain;
	position: absolute;
}

#s_reg .popup-border-right-top {
	content: "";
	background: url(../../images/base/popup/right_top_popup.png) no-repeat;
	width: 91px;
	height: 7px;
	background-size: contain;
	position: absolute;
}

#s_reg .content {
    padding: 20px 20px 20px 20px;
}

#s_reg #popup_ok {
    width: 195px;
}

/**
* Добавление новости.
*/
#p_news {
	width: 710px;
	height: 670px;
	overflow: visible;
	padding: 0;
	margin: 0 auto;
}

#p_news .popup-border {
	content: "";
	background: url(../../images/base/popup/popup-border256.png) no-repeat;
	width: 710px;
	height: 670px;
	background-size: contain;
	position: absolute;
}

#p_news .popup-border-left-top {
	content: "";
	background: url(../../images/base/popup/left_top_popup.png) no-repeat;
	width: 165px;
	height: 165px;
	background-size: contain;
	position: absolute;
}

#p_news .popup-border-center-top {
	content: "";
	background: url(../../images/base/popup/center_top_popup.png) no-repeat;
	width: 91px;
	height: 7px;
	background-size: contain;
	position: absolute;
}

#p_news .popup-border-right-top {
	content: "";
	background: url(../../images/base/popup/right_top_popup.png) no-repeat;
	width: 91px;
	height: 7px;
	background-size: contain;
	position: absolute;
}

#p_news .content {
    padding: 20px 20px 20px 20px;
}

#p_news #popup_ok {
    width: 195px;
}

/* Стили для вывода превью */
#p_news .img-item {
	display: inline-block;
	margin: 0 20px 20px 0;
	position: relative;
	user-select: none;
}
#p_news .img-item img {
	border: 1px solid #767676;
}
#p_news .img-item a {
	display: inline-block;
	background: url(/remove.png) 0 0 no-repeat;
	position: absolute;
	top: -5px;
	right: -9px;
	width: 20px;
	height: 20px;
	cursor: pointer;
}