/*****************************************************************************
 **
 ** Gofr
 ** https://github.com/pokebyte/Gofr
 ** Copyright (C) 2013-2017 Akop Karapetyan
 **
 ** This program is free software; you can redistribute it and/or modify
 ** it under the terms of the GNU General Public License as published by
 ** the Free Software Foundation; either version 2 of the License, or
 ** (at your option) any later version.
 **
 ** This program is distributed in the hope that it will be useful,
 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 ** GNU General Public License for more details.
 **
 ** You should have received a copy of the GNU General Public License
 ** along with this program; if not, write to the Free Software
 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 **
 ******************************************************************************
 */

body {
	font-family: helvetica, arial, sans-serif;
	font-size: 10pt;
	color: #444;
	margin: 0;
	background-color: #fff;
}

ol, ul {
	list-style: none;
}

#header {
	border-bottom: solid 1px #ccc;
	background-color: #eee;
	padding: 0.5em 1em;
}

#header h1 {
	font-size: 24px;
	color: #222;
	text-shadow: 0px 1px 1px #fff;
	margin: 0.25em 0;
}

#reader {
	position: absolute;
	top: 105px;
	bottom: 30px;
	left: 0;
	right: 0;
	border-top: solid 1px #aaa;
}

#footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 22px;
	font-size: 12px;
	padding-top: 7px;
	border-top: solid 1px #ccc;
	background-color: #eee;
	text-align: center;
}

a {
	color: #0276FD;
	text-decoration: none;
}

#footer .bookmarklet {
	display: none; /* not ready */
	position: absolute;
	left: 1em;
}

#sign-out {
	display: none;
}

.houmu-rogo {
	margin: 3px;
}

.infobar a {
	font-size: 10pt;
	font-weight: bold;
	text-decoration: none;
}

.center-message {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 15pt;
	font-weight: bold;
	color: #777;
}

.center-message a {
	margin-top: 0.25em;
}

.feeds-container {
	position: absolute;
	width: 280px;
	top: 0;
	bottom: 0;
	overflow: auto;
	background-color: #fff;
}

.floated-sidebar .feeds-container {
	display: none;
	position: absolute;
	width: 280px;
	top: 0;
	bottom: 0;
	background-color: white;
	border: solid 1px #ccc;
	box-shadow: 2px 2px 5px #aaa;
}

.floated-sidebar.sidebar-hidden .feeds-container,
.floated-sidebar.sidebar-open .feeds-container {
	top: -106px;
	bottom: -30px;
	margin: 0;
	border: none;
	border-right: solid 1px #ccc;
	box-shadow: 2px 0 5px #aaa;
	display: block;
	z-index: 10000;
}

.floated-sidebar.sidebar-hidden .feeds-container {
	visibility: hidden;
}

#gofr-entries {
	margin-left: 0.25em;
	margin-right: 0.75em;
}

.gofr-entries-header {
	font-size: 10.5pt;
	font-weight: bold;
	padding: 0.5em;
	color: #444;
	white-space: nowrap;
	border-bottom: solid 1px #ccc;
}

.gofr-entries-header a {
	color: #444;
	text-decoration: none;
}

.gofr-entries-container {
	position: absolute;
	left: 280px;
	top: 0;
	bottom: 0;
	right: 0;
	overflow: auto;
}

.floated-sidebar .gofr-entries-container {
	left: 0;
}

.gofr-entry {
	cursor: pointer;
	clear: both;
	border-bottom: solid 1px #ccc;
	border-left: solid 1px transparent;
}

.gofr-entry.open {
	border-left-color: #4d90f0;
}

.gofr-entry-item,
.gofr-entry.selected.open .gofr-entry-item {
	padding-left: 0.5em;
	padding-right: 0.5em;
	height: 37px;
	background-color: #fff;
	line-height: 37px;
	position: relative;
}

.gofr-entry.read .gofr-entry-item,
.gofr-entry.read.open .gofr-entry-item {
	background-color: #eee;
}

.gofr-entry.selected .gofr-entry-item {
	background-color: #ffffcc;
}

.gofr-entry-source {
	overflow: hidden;
	white-space: nowrap;
	margin-left: 20px;
	width: 10em;
	display: block;
	position: absolute;
}

.gofr-entry-source-mobile {
	display: none;
}

.single-source .gofr-entry-source,
.single-source .gofr-entry-source-mobile {
	display: none;
}

.gofr-entry-excerpt {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-left: 12em;
	margin-right: 8em;
}

.single-source .gofr-entry-excerpt {
	margin-left: 20px;
}

.gofr-entry-link {
	display: block;
	width: 15px;
	height: 15px;
	position: absolute;
	right: 0;
	top: 50%;
	margin-top: -8px;
	margin-right: 8px;
	background-image: url(sprites.png);
	background-position: -210px -210px;
	white-space: nowrap;
}

.gofr-entry-pubDate {
	display: block;
	position: absolute;
	right: 32px;
	text-align: right;
	width: 6em;
}

.gofr-entry-title {
	color: black;
	font-weight: bold;
	font-size: 10pt;
	display: inline;
	margin: 0;
}

a.gofr-entry-title:hover {
	text-decoration: underline;
}

.gofr-entry.read .gofr-entry-title {
	font-weight: normal;
}

.gofr-article-title, 
.gofr-article-author a {
	color: rgb(17, 85, 204);
	text-decoration: none;
}

.gofr-article-pubDate {
	display: none;
}

.gofr-article-title h2 {
	font-size: 14pt;
	margin: 0 0 0.5em 0;
}

.gofr-article-body {
	margin: 0.7em 0;
}

.gofr-article-body a {
	color: #0000ff;
	text-decoration: underline;
}

.gofr-media-container {
	margin: 0.7em 0;
}

.gofr-embedded-media {
	width: 200px;
	height: 30px;
}

.gofr-entry-summary {
	color: #777;
}

.gofr-entry-content {
	display: block;
	cursor: auto;
}

.gofr-article {
	margin: 0.5em 1em;
}

.gofr-article img, 
.gofr-article video, 
.gofr-article object, 
.gofr-article iframe { 
	max-width: 100%; 
}

.gofr-entry-footer {
	padding: 0.5em 0.5em;
	border-top: solid 1px #ebebeb;
	background-color: #fafafa;
	clear: both;
}

.gofr-entry-action-group {
	margin-left: 3em;
	margin-right: 0.5em;
}

.gofr-entry-share,
.gofr-entry-action {
	background-repeat: no-repeat;
	padding-left: 20px;
	margin-left: 1em;
	cursor: pointer;
	display: inline-block;
	height: 15px;
}

.gofr-entry-share {
	margin-left: 0;
}

.action-unread {
	background-image: url(sprites.png);
	background-position: -15px -15px;
}

.action-tag {
	background-image: url(sprites.png);
	background-position: -120px -120px;
}

.action-tag.has-tags {
	background-position: -105px -105px;
}

.action-share-gplus {
	background-image: url(sprites.png);
	background-position: -195px -15px;
}

.action-share-fb {
	background-image: url(sprites.png);
	background-position: -180px 0;
}

.action-share-twitter {
	background-image: url(sprites.png);
	background-position: -210px -30px;
}

.gofr-entry.read .action-unread {
	background-position: 0 0;
}

.action-star {
	display: inline-block;
	width: 15px;
	height: 15px;
	background-image: url(sprites.png);
	background-position: -30px -30px;
	cursor: pointer;
}

.action-like {
	background-image: url(sprites.png);
	background-position: -60px -60px;
}

.star .action-star {
	background-position: -45px -45px;
}

.like .action-like {
	background-position: -75px -75px;
}

.gofr-entry-action .gofr-action-text {
	display: inline-block;
	max-width: 18em;
	vertical-align: middle;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-right: 0.35em;
}

.gofr-like-count.unliked {
	display: none;
}

.gofr-entry-footer .action-star {
	margin-right: 3em;
}

.gofr-entry-item .action-star {
	top: 50%;
	margin-top: -8px;
	white-space: nowrap;
	position: absolute;
}

.next-page {
	padding: 1em;
	text-align: center;
	cursor: pointer;
	font-size: 11pt;
}

ul#subscriptions,
#subscriptions ul {
	margin: 0;
	padding: 0;
}

.dest-subscription {
	background-color: #cedefa;
}

#subscriptions li {
	margin: 0;
}

.subscription-icon {
	width: 15px;
	height: 15px;
	float: left;
	margin-right: 5px;
}

.subscription-item {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	padding: 0.35em 1em 0.35em 25px;
	border: solid 1px transparent;
}

.subscription-item .chevron {
	width: 15px;
	height: 15px;
	visibility: hidden;
	background-image: url(sprites.png);
	background-position: -90px -90px;
	position: absolute;
	right: 5px;
}

.subscription-item:hover .chevron {
	visibility: visible;
}

.subscription-item .folder-toggle {
	width: 15px;
	height: 15px;
	background-image: url(sprites.png);
	background-position: -180px -180px;
	position: absolute;
	left: 5px;
}

.subscription-item .folder-toggle.folder-collapsed {
	background-position: -195px -195px;
}

.subscription.folder > ul > .leaf > .subscription-item {
	padding-left: 3em;
}

.subscription.first > .subscription-item {
	margin-top: 1em;
}

.subscription.root .subscription-icon {
	background-image: url(sprites.png);
	background-position: -165px -165px;
}

.subscription.sf-starred .subscription-icon {
	background-image: url(sprites.png);
	background-position: -45px -45px;
}

.subscription.sf-liked .subscription-icon {
	background-image: url(sprites.png);
	background-position: -75px -75px;
}

.subscription.folder > .subscription-item > .subscription-icon {
	background-image: url(sprites.png);
	background-position: -135px -135px;
}

.subscription.tag .subscription-icon {
	background-image: url(sprites.png);
	background-position: -225px -45px;
}

.subscription.leaf .subscription-icon {
	background-image: none;
}

.subscription.leaf .subscription-icon.no-favicon {
	background-image: url(sprites.png);
	background-position: -150px -150px;
}

.subscription-item:hover {
	background-color: #eee;
}

.subscription.selected > .subscription-item {
	background-color: #cedefa;
}

.subscription.dragging > .subscription-item {
	background-color: #fff79a;
}

.subscription.dragged > .subscription-item {
	opacity: 0.5;
	background-color: white;
}

.subscription.highlighted > .subscription-item {
	border: solid 1px #000;
}

.too-long {
	padding-right: 3.5em;
}

.too-long .subscription-unread-count {
	position: absolute;
	right: 25px;
}

.subscription-unread-count {
	color: #aaa;
	display: none;
	margin-left: 0.5em;
}

.has-unread .subscription-title {
	font-weight: bold;
}

.has-unread .subscription-unread-count {
	display: inline;
}

.hide-read-subs .subscription.leaf.no-unread {
	display: none;
}

.navbar {
	padding: 10px;
}

.infobar .right-aligned {
	position: absolute;
	top: 0;
	right: 1em;
	padding: 0 0 0.25em 0;
}

.navbar .right-aligned {
	position: absolute;
	right: 10px;
}

button {
	height: 30px;
	margin: 0 0.25em;
	padding: 0.5em 1.5em;
	background-color: #eee;
	border: solid 1px #aaa;
	border-radius: 3px;
	box-shadow: 1px 1px 1px #ddd;
	font-size: 8pt;
	font-weight: bold;
	color: #555;
}

button:active {
	box-shadow: none;
	color: #000;
}

button:hover {
	border-color: #777;
	color: #000;
}

button.dropdown {
	background: url(sprites.png) no-repeat right #eee;
	background-position: 100% -270px;
	padding: 0.5em 30px 0.5em 20px;
}

.infobar .dropdown {
	border: none;
	box-shadow: none;
	padding: 3px 25px 0.25em 1em;
	background-color: transparent;
	background-position: 100% -273px;
	cursor: pointer;
	font-weight: normal;
	font-size: 10pt;
	height: auto;
	color: #777;
}

.infobar .dropdown:hover {
	color: #000;
}

.navigate {
	width: 40px;
	display: none;
	background: url(sprites.png) no-repeat -115px -240px #eee;
}

.navigate:hover {
	background-position: -145px -240px;
}

.floated-sidebar .navigate {
	display: inline-block;
}

.select-article {
	width: 40px;
	padding: 0;
}

.select-article.up {
	margin-right: 0;
	box-shadow: 0 1px 1px #aaa;
	border-right: none;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	background: url(sprites.png) no-repeat -25px -240px #eee;
}

.select-article.down {
	margin-left: 0;
	box-shadow: 0 1px 1px #aaa;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	background: url(sprites.png) no-repeat 5px -240px #eee;
}

.select-article.up:hover, 
.select-article.up:active {
	background-position: -85px -240px;
}

.select-article.down:hover, 
.select-article.down:active {
	background-position: -55px -240px;
}

.refresh {
	width: 60px;
	background: url(sprites.png) no-repeat 0 -270px #eee;
}

.refresh:hover, 
.refresh:active {
	background-position: -60px -270px;
}

.settings.dropdown {
	width: 65px;
	padding: 0;
	background: url(sprites.png) no-repeat 0 -210px #eee;
}

.settings.dropdown:hover, 
.settings.dropdown:active {
	background-position: -60px -210px;
}

button.solid-color {
	border-color: #D14836;
	color: white;
	text-transform: uppercase;
	font-weight: bold;
	margin: 1em 20px;
}

button.subscribe {
	background-color: #D14836;
}

.navbar .spacer {
	margin-left: 20px;
}

#toast {
	display: none;
	position: absolute;
	top: 1em;
	left: 0;
	right: 0;
	text-align: center;
}

#toast span {
	border-style: solid;
	border-width: 2px;
	border-radius: 3px;
	padding: 0.5em 2em;
	box-shadow: 1px 1px 1px #aaa;
	font-size: 9pt;
	color: #000;
}

#toast.info span {
	border-color: #FDC68A;
	background-color: #FFF79A;
}

#toast.error span {
	border-color: red;
	background-color: #ffaaaa;
}

.spinner {
	margin: 5px auto;
}

ul.menu {
	position: absolute;
	display: none;
	margin: 0;
	padding-left: 0;
	background-color: #fff;
	list-style-type: none;
	border: solid 1px #ccc;
	border-radius: 2px;
	box-shadow: 2px 2px 2px #ddd;
	min-width: 13em;
}

.menu li {
	color: #555;
	padding: 0.5em 1em;
}

.menu li:hover,
.menu li.hovered {
	cursor: pointer;
	background-color: #ccc;
}

.menu li.divider,
.menu li.divider:hover {
	cursor: default;
	height: 1px;
	padding: 0;
	background-color: #ccc;
}

.menu li.selected-menu-item span {
	background: url(sprites.png) no-repeat -225px -225px;
}

.menu li span {
	padding-left: 20px;
	white-space: nowrap;
}

.menu li.checked span {
	background: url(sprites.png) no-repeat -225px -225px;
}

.shortcuts {
	position: absolute;
	top: 2em;
	right: 2em;
	bottom: 2em;
	left: 2em;
	background-color: #888;
	border-radius: 1em;
	display: none;
	overflow: auto;
}

.shortcuts table {
	margin: auto;
	color: #fff;
	font-size: 15pt;
}

.shortcuts th {
	color: yellow;
	padding: 1em 0 0.3em 0;
}

.shortcuts .sh-keys {
	text-align: right;
	white-space: nowrap;
	font-size: 11pt;
}

.shortcuts .sh-action {
	text-align: left;
	padding-right: 2em;
	font-size: 11pt;
}

.key {
	display: inline-block;
	color: #000;
	padding: 0.1em 0.66em;
	margin: 0 0.5em;
	border: solid 3px #fff;
	border-radius: 3px;
	background-color: #fffacd;
	font-size: 11pt;
	font-weight: normal;
	text-align: center;
	min-width: 1.05em;
}

.modal-blocker {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	opacity: 0.6;
	background-color: #fff;
	display: none;
}

.modal-open .modal-blocker {
	display: block;
}

.modal {
	position: absolute;
	left: 50%;
	top: 50%;
}

.modal-inner {
	position: relative;
	left: -50%;
	padding: 2em 2em;
	border: solid 1px #bbb;
	border-radius: 3px;
	background-color: #fff;
	box-shadow: 0.5em 0.5em 0.5em #888;
}

.modal h1 {
	font-size: 14pt;
	margin: 0 0 1em 0;
}

.modal .buttons {
	margin-top: 2em;
	text-align: center;
}

#about p {
	font-size: 12pt;
	line-height: 1.5;
}

/*** Desktop ****/

.unavailable {
	display: none;
}

.view-button {
	display: none;
}

@media only screen and (max-width: 1000px) {
	.gofr-entry-action .gofr-action-text {
		max-width: 8em;
	}
}

/*** Smaller size window ***/
@media only screen and (max-width: 900px) {
	.menu li.hovered {
		cursor: default;
		background-color: inherit;
	}

	.feeds-container {
		display: none;
		position: absolute;
		top: 0;
		bottom: 0;
		background-color: white;
		border: solid 1px #ccc;
		box-shadow: 2px 2px 5px #aaa;
	}

	.sidebar-hidden .feeds-container,
	.sidebar-open .feeds-container {
		top: -106px;
		bottom: -30px;
		margin: 0;
		border: none;
		border-right: solid 1px #ccc;
		box-shadow: 2px 0 5px #aaa;
		display: block;
		z-index: 10000;
	}

	.sidebar-hidden .feeds-container {
		visibility: hidden;
	}

	.navigate {
		display: inline-block;
	}

	.gofr-entries-container {
		left: 0;
	}

	.menu-show-sidebar {
		display: none;
	}
}

/*** Mobile ***/
@media only screen and (max-width: 660px) {
	.view-button {
		display: inline;
	}

	.view-button.unavailable {
		display: none;
	}

	.settings {
		display: none;
	}

	.filter.dropdown {
		display: none;
	}

	.mark-all-as-read {
		display: none;
	}

	.gofr-entry-action {
		margin-left: 0.5em;
	}

	.gofr-entry-action-group {
		margin-left: 1em;
	}

	.gofr-action-text,
	.gofr-entry-action .gofr-action-text {
		display: none;
	}

	.gofr-entry-share {
		padding-left: 0.75em;
		padding-right: 0.75em;
	}

	.gofr-entry-action {
		margin-left: 0.5em;
	}

	.gofr-entry-item,
	.gofr-entry.selected.open .gofr-entry-item {
		padding-top: 0.25em;
		padding-bottom: 0.25em;
		height: auto;
		line-height: normal;
	}

	.gofr-entry-excerpt {
		margin-left: 15px;
		margin-right: 0;
		padding-left: 0.5em;
	}

	.gofr-entry-pubDate {
		display: none;
	}

	.gofr-entry-title {
		overflow: visible;
		white-space: normal;
	}

	.gofr-entry-link {
		display: none;
	}

	.gofr-entry-source {
		display: none;
	}

	.gofr-entry-spacer {
		display: none;
	}

	.gofr-entry-summary {
		display: block;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.gofr-article-pubDate {
		display: block;
	}

	.gofr-entry-source-mobile {
		display: inline;
		color: #777;
	}

	#gofr-entries {
		margin-left: 0;
		margin-right: 0;
	}

	.gofr-article-title h2 {
		font-size: 12pt;
	}

	#footer {
		display: none;
	}

	#reader {
		bottom: 0;
	}

	.subscription-item {
		padding: 0.35em 1em;
	}

	.subscription.folder > ul > .leaf > .subscription-item {
		padding-left: 2em;
	}
	
	.subscription-item .folder-toggle {
		display: none;
	}

	.too-long {
		padding-right: 3.5em;
	}
}

/** High dpi **/
@media only screen and (min--moz-device-pixel-ratio: 2), 
only screen and (-o-min-device-pixel-ratio: 2/1), 
only screen and (-webkit-min-device-pixel-ratio: 2), 
only screen and (min-device-pixel-ratio: 2) {
	button.dropdown,

	.subscription-item .folder-toggle,
	.subscription-item .chevron,

	.menu li.selected-menu-item span,
	.menu li.checked span,

	.navigate,
	.navigate:hover,

	.action-tag,
	.action-tag.has-tags,

	.action-like,
	.like .action-like,
	.action-star,
	.star .action-star,
	.action-unread,
	.gofr-entry.read .action-unread,

	.action-share-gplus,
	.action-share-fb,
	.action-share-twitter,

	.gofr-entry-link,

	.subscription.root .subscription-icon,
	.subscription.sf-starred .subscription-icon,
	.subscription.sf-liked .subscription-icon,
	.subscription.tag .subscription-icon,
	.subscription.folder > .subscription-item > .subscription-icon,
	.subscription.leaf .subscription-icon.no-favicon,

	.refresh,
	.refresh:hover, 
	.refresh:active,

	.settings.dropdown,
	.settings.dropdown:hover, 
	.settings.dropdown:active,

	.select-article.down,
	.select-article.down:hover, 
	.select-article.down:active,
	.select-article.up,
	.select-article.up:hover, 
	.select-article.up:active {
		background-image: url(sprites@2x.png);
		background-size: 300px 300px;
	}
}
