html { width: 100%; height: 100%; padding: 0; margin: 0; }
body { background-color: #fff/*#e9ebee*/; /*background-image: url('/img/bg.jpg'); */font-family: Segoe UI, Helvetica; font-size: 1.5em; padding: 0; margin: 0; width: 100%; min-height: 100%; }

input[type="text"], input[type="password"], select, textarea { border: 1px solid #ccc; border-radius: 4px; background-color: #fff; padding: 6px 4px; font-size: 0.9rem; margin: 0; }
select { padding: 5px; }
div,input,select,button,td,textarea { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
button { border: 0; padding: 5px 10px; border-radius: 5px; color: #fff; background-color: #1d78f6; cursor: pointer;}
.fieldBlinkHl { background-color: #f4343b !important; color: #ffffff !important; }
a { color: #167ac6; text-decoration: none; }

#modalBg { opacity: 0.5; background-color: #000000; left: 0; top: 0; position: fixed; width: 100%; height: 100%; z-index: 10; display: none; }
.dialog { display: none; width: 400px; background-color: #fff; z-index: 11; position: fixed; left: 50%; top: 50%;
	transform: translate(-50%, -50%); border-radius: 7px; padding: 15px; font-size: 70%; }
.dialog-icon-close { position: absolute; top: 7px; right: 4px; color: #333; cursor: pointer; font-size: 150%}
.dialog-errors { margin: 0 0 15px 0; }
.dialog-messages { margin: 0 0 15px 0; color: green; font-weight: bold;}
.dialog-error { color: red; }
.dialog-title { margin: 0px 0 15px 0px; text-transform: uppercase; text-align: center; font-weight: bold }
.dialog-socials { text-align: center; margin: 5px 0 15px 0 }
.dialog-socials img { width: 60px; margin: 0 7px }
.dialog-field { margin-bottom: 20px; }
.dialog-field input[type="password"], .dialog-field input[type="text"] {
	border-top: 0 !important; border-left: 0 !important; border-right: 0 !important; border-radius: 0 !important;
	font-size: 100%
}
.dialog button { font-size: 120%; }
.dialog-form { padding: 15px; background-color: #eee; border-radius: 10px; }

h1 { font-size: 130%; }

.main-container { height: 100%; width: 100%; text-align: center; }
.feed { max-width: 800px; min-width: 600px; display: inline-block; margin: 0px 0 0px 0; font-size: 90%; }
.feed-header { position: relative; width: 100%; text-align: left; margin-bottom: 30px; vertical-align: top;}
.feed-header-categories { display: inline-block; width: 70%; vertical-align: top; }
.feed-header-categories div { display: inline-block; border-radius: 5px; background-color: #0071c5; padding: 7px 10px; font-size: 75%; margin: 15px 7px 0 7px; }
.feed-header-categories div a { color: #fff; font-weight: bold; }
.feed-header-categories div[selected] { background-color: #195988; }
.feed-header-feedback { background-color: #fbe64f !important; }
.feed-header-feedback a { color: #777 !important; }
.feed-header-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; border-radius: 10px; opacity: 0.75; }
.feed-header-bg img { width: 100%; height: 100%; }
.feed-header-logo { display: inline-block; width: 25%; padding-top: 5px;}
.feed-header-logo img { width: 100%; height: 100%; }
.feed-is-empty { padding: 20px 10px; }
.feed-record { clear: both; background-color: #fff; border-radius: 8px; text-align: left; margin-bottom: 30px }
.feed-record h1 { margin-left: 0px; margin-right: 10px; }
.feed-record-hidden { opacity: 0.5 }
.feed-record-image { width: 100%; border: 1px solid #eee; border-radius: 10px; }
.feed-record-info { font-size: 80%; color: #999; padding: 5px 0px; }
.feed-record-options { display: inline-block; float: right; }
.feed-record-option { margin-right: 15px; cursor: pointer }
.feed-record-title { margin: 15px 0px 10px 0px; font-weight: bold; font-size: 130%; }
.feed-record-title a { /*color: #000; */}
.feed-record-title a:hover { color: #167ac6}
.feed-record-content { margin: 5px 0px}
.feed-record-preview { cursor: pointer; }
.feed-record-preview a { color: #333 }
.feed-record-preview a:hover { color: #167ac6}
.feed-record-actions { border-top: 2px solid #eee; border-bottom: 2px solid #eee; margin-top: 5px; padding: 10px 0px 15px 0px; font-size: 120%; color: #aaa; vertical-align: middle; }
.feed-record-actions i[action="like"] { margin: 0 5px 0 15px; cursor: pointer; /*color: #98de98;*/ }
.feed-record-actions [sel="1"] { color: #065fd4; }
.feed-record-actions i[action="dislike"] { margin: 0 5px 0 25px; cursor: pointer; /*color: #ffbebe*/ }
.feed-record-actions i[action="dislike"][sel="1"] { color: #0562f9; }
.feed-record-actions i[action="comments"] { float: right; margin: 7px 7px 0 5px; display: none; }
.feed-record-actions-like-counter { margin-left: 5px; color: #ccc }
.feed-record-actions [action="share"] {color: #167ac6/*#a0a0a0*/;  display: inline-block; float: right; margin: 3px 0px 0 5px; vertical-align: middle; cursor: pointer }
.feed-record-actions [action="share"] span { margin-left: 7px; font-size: 80%; vertical-align: middle; font-weight: bold; }
.feed-record-tags { margin: 10px 0px 0 0px; padding: 0px 0; font-size: 80%; }
.feed-record-tags a { margin-right: 10px; color: #aaa; }
.feed-text { margin: 0 0 10px 0}
.feed-image { margin: 15px 0 15px 0; }
.feed-image img { width: 100%; border-radius: 10px; } 
.feed-image-description { font-size: 80%; text-align: center; }

.feed-preview { margin: 10px 10px 20px 10px; display: inline-block; width: 47%; vertical-align: top; text-align: center; }
.feed-preview img { width: 100%; height: 250px; border: 1px solid #eee; border-radius: 10px; }
.feed-preview-title { text-align: center; font-weight: bold; }
.feed-preview-title a { color: #333; }

.feed-editor { display: none; margin-bottom: 20px; }

.feed-panel-left { display: inline-block; vertical-align: top; margin-right: 10px; display: none;}
.feed-panel-left-logo { }
.feed-panel-left-logo span { font-weight: bold; color: #888; }
.feed-panel-left-logo div { font-size: 60%; color: #aaa; text-align: center;}
.feed-panel-left-categories {  }
.feed-panel-left-categories div { border-radius: 5px; background-color: #4bbdf3; padding: 5px 10px; font-size: 75%; margin: 10px 0 0 0; }
.feed-panel-left-categories div a { color: #fff; }
.feed-panel-left-categories div[selected] { background-color: #3c91b9; }
.feed-panel-left-links { margin-top: 10px; }
.feed-panel-left-links div { border-radius: 5px; background-color: #fbe64f; padding: 5px 10px; font-size: 75%; margin: 10px 0 0 0; }
.feed-panel-left-links div a { color: #777; }
.feed-panel-right { display: inline-block; vertical-align: top; margin-left: 10px; min-height: 2000px; }
.feed-panel-right-advert { width: 320px; min-height: 1000px; position: sticky; position: -webkit-sticky; top: 5px; }
.feed-panel { padding-top: 10px; width: 101%; margin: 0 0px 5px 0px; background-color: #fff; }
.feed-panel-area[full] { display: none; }
.feed-panel-area[short] { display: block; }
.feed-panel-area { padding: 15px 15px 5px 15px; background-color: #eee;  border-radius: 5px; /*border: 1px solid #ddd;*/ font-size: 150%; text-align: left;  }
.feed-panel-flow { bottom: 0px; position: sticky; position: -webkit-sticky; }
.feed-panel-noflow { position: static }
.feed-panel-area button { font-size: 80%; float: right; background: linear-gradient(to bottom,#f14c2e 0%,#d8452e 100%); color: #fff; border-radius: 5px; border: 1px solid #e0452f;}
.feed-panel-area[full] button { margin-top: 13px; }
.feed-panel-area[short] button { margin-top: 0px; }
.feed-panel i { font-size: 140%; cursor: pointer; color: #909090; }
.feed-panel div[action] { margin-right: 20px; display: inline-block; cursor: pointer; text-align: center; vertical-align: top}
.feed-panel div[action] div { font-size: 45%; }
.feed-panel [action="title"] { margin-top: 7px; font-size: 60%;}
.feed-panel [action="title"] a { color: #777; }
.feed-panel [action="logout"] { margin-left: 5px; }
.feed-panel [action="hide_seen"], .feed-panel [action="hide_seen"] i, .feed-panel [action="hide_all"], .feed-panel [action="hide_all"] i { color: #008000;}
.feed-panel [action="show_seen"], .feed-panel [action="show_seen"] i, .feed-panel [action="show_all"], .feed-panel [action="show_all"] i { color: #e74a2e;}

.dialog-share { min-width: 600px; text-align: center; }
.dialog-share-title { font-weight: bold; margin: 15px 0 15px 0; font-size: 130%; }
.dialog-share-element { width: 90px; display: inline-block; text-align: center; margin: 10px; cursor: pointer; opacity: 0.7}
.dialog-share-element img { width: 88px; height: 88px }
.dialog-share-element:hover { opacity: 1}
.dialog-share-element-title { margin-top: 5px; font-weight: bold;  }
.dialog-share-url { margin: 10px 0 10px 0; background-color: #eee; padding: 5px 5px }
.dialog-share-url input { width: 100%; font-size: 110%; border: 0; background-color: #eee; }
.dialog-share-url a { margin-left: 10px; font-size: 90%; font-weight: bold; }
.dialog-share-url-message { margin: 20px 0 10px 0; text-align: center;}
.dialog-share-close { text-align: center; margin: 20px 0 0px 0; text-transform: uppercase; }

.dialog-profile-panel { margin-top: 10px; }

.dialog-subscribe { min-width: 300px; padding: 30px 20px 20px 20px }
.dialog-subscribe-telegram { margin-top: 20px; }
.dialog-subscribe-telegram img { width: 48px; margin-right: 10px }
.dialog-subscribe [rclass="message"] p { margin-top: 0; margin-bottom: 20px; }
.dialog-subscribe [rclass="message"] { text-align: center;}
.dialog-subscribe [rclass="message"] div { text-align: left }

.unsubscribe-buttons { margin-top: 30px }
.unsubscribe-buttons a { padding: 10px 15px; background-color: green; color: #fff; font-weight: bold; border-radius: 10px; margin-left: 20px; }
.unsubscribe-link-cancel { background-color: #aaa;}

.advert { margin: 20px 0 20px 0; }
.advert[code="right"] { min-height: 1000px; min-width: 320px; }

@media (min-resolution: 1.5dppx), (max-width: 800px){
	body { font-size: 1.2em; padding-right: 0; margin: 0; }
	.dialog { width: 300px; padding: 10px; }
	.feed { min-width: 300px; }
	.dialog-form { padding: 10px; background-color: #eee; border-radius: 6px; }
	.dialog-field { margin-bottom: 10px; }
	.feed { min-width: 100%; }
	.feed-header { margin-bottom: 20px;}
	.feed-header-categories { padding: 2px 0 5px 0;}
	.feed-header-categories div { padding: 3px 5px; font-size: 65%; margin: 5px 3px 0 3px; }
	.feed-header-logo { }
	.feed-record { margin-bottom: 30px; margin-top: 10px; border-radius: 0; }
	.feed-record img { border-radius: 0; border-left: 0; border-right: 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee;}
	.feed-record h1 { margin-left: 5px; margin-right: 5px; }
	.feed-record-actions { padding-left: 5px; padding-right: 5px; }
	.feed-record-actions i[action="dislike"] { margin-left: 10px; }
	.feed-record-actions { padding-bottom: 10px; padding-left: 5px; vertical-align: top; }
	.feed-record-actions [action="share"] { margin-top: 1px}
	.feed-record-info { padding: 5px 5px; }
	.feed-record-tags { margin-left: 5px;  }
	.feed-record-tags a { margin-right: 5px; }
	.feed-record-title { margin: 10px 5px 10px 5px; }
	.feed-record-title a { font-size: 100% }
	.feed-record-content { margin-left: 5px; margin-right: 5px; }
	.feed-panel { padding: 5px 0 0 0; border-radius: 0; font-size: 100%;}
	.feed-panel [action="title"] { margin: -3px 0 0 10px; }
	.feed-panel [action="title"] a { font-size: 60%; }
	.feed-panel button { font-size: 80%; padding: 4px 10px; margin: 5px 5px 0 0;}
	.feed-panel div[action] { font-size: 110%; margin-right: 5px;}
	.feed-panel-area { padding: 7px 7px 5px 7px; }
	.feed-panel-left { display: none; }
	.feed-panel-right { display: none; }
	.feed-preview { margin: 5px 5px 10px 5px; width: 45%; }
	.feed-preview img { height: 125px; }
	.dialog-share { min-width: 340px; font-size: 90%;  }
	.dialog-share-title { margin: 0px 20px 10px 0; font-size: 90% }
	.dialog-share-element { width: 50px; margin: 5px; font-size: 60% }
	.dialog-share-element img { width: 48px; height: 48px; }
	.dialog-share-element-title { margin-top: 3px; }
	.dialog-share-url { padding-left: 0; }
	.dialog-share-url input { font-size: 90%; }
	.dialog-share-url a { margin-left: 5px; font-size: 70%; font-weight: bold;}
	.dialog-share-url-message { margin-top: 15px; margin-bottom: 5px; }
	/*.dialog-share-close { margin-bottom: 10px;}*/
	.dialog-share-icon-close { font-size: 130%; top: 5px; right: 3px;}
	.dialog-subscribe-telegram img { width: 38px; margin-right: 7px; }
}
