/*
Theme Name: Decree
Description: Adds support for languages written in a Right To Left (RTL) direction.
It's easy, just a matter of overwriting all the horizontal positioning attributes
of your CSS stylesheet in a separate stylesheet file named rtl.css.

See http://codex.wordpress.org/Right_to_Left_Language_Support
*/


body {
	direction: rtl;
	unicode-bidi: embed;
        overflow-x: hidden;
}
caption,
th,
td {
	text-align: right;
}

.decree-nav-menu ul li {
    text-align: right;
}
.entry-meta .posted-on,
.entry-meta .byline,
.entry-meta .comments-link,
.entry-meta .cat-links {
    margin-right: 0;
    margin-left: 10px
}
.entry-footer {
    display: inline-block;
}

blockquote:before {
    content: none;
}
blockquote {
    background-color: #eee;
    font-style: italic;
    padding: 20px 20px 1px;
}

/* =Repeatable patterns
-------------------------------------------------------------- */

/* Images */
.site-content .gallery-columns-4 .gallery-item {
	padding-left: 2%;
	padding-right: 0;
}
.site-content .gallery-columns-5 .gallery-item {
	padding-left: 2%;
	padding-right: 0;
}

/* Navigation */
.nav-previous,
.previous-image {
	float: right;
}
.nav-next,
.next-image {
	float: left;
	text-align: left;
}

/* Author profiles */
.author-avatar {
	float: right;
}
.author-description {
	float: right;
	margin-right: 15px;
	margin-right: 1.071428571rem;
	margin-left: auto;
}


/* =Main Content
----------------------------------------------- */

.comment-content ol,
.comment-content ul {
	margin: 0 24px 0 0;
	margin: 0 1.714285714rem 0 0;
}


/* =Basic post styling
-------------------------------------------------------------- */

.entry-content li,
.comment-content li {
	margin: 0 24px 0 0;
	margin: 0 1.714285714rem 0 0;
}


/* Aside posts */
article.format-aside .aside {
	border-right: 22px solid #a8bfe8;
	border-left: none;
}

/* Link posts */
article.format-link header {
	float: left;
}
article.format-link .entry-content {
	float: right;
}

/* Status posts */
.format-status .entry-header img {
	float: right;
	margin-left: 21px;
	margin-left: 1.5rem;
	margin-right: 0;
}


/* =Comment styling
-------------------------------------------------------------- */

.comments-area article header img {
	float: right;
}
.comments-area article header cite,
.comments-area article header time {
	margin-right: 85px;
	margin-right: 6.071428571rem;
	margin-left: auto;
}
.comments-area article header h4 {
	left: 0;
	right: auto;
}
.comments-area .bypostauthor cite span {
	margin-right: 5px;
	margin-right: 0.357142857rem;
	margin-left: auto;
}

/* Comment form */
#respond h3#reply-title #cancel-comment-reply-link {
	margin-right: 10px;
	margin-right: 0.714285714rem;
	margin-left: auto;
}
label ~ span.required {
	float: right;
	margin: -18px -16px 0 0;
	margin: -1.285714286rem -1.142857143rem 0 0;
}


/* =Front page template styling
-------------------------------------------------------------- */

.template-front-page .widget-area .widget_text img {
	float: right;
	margin: 8px 0 8px 24px;
	margin: 0.571428571rem 0 0.571428571rem 1.714285714rem;
}


/* =Widget styling
-------------------------------------------------------------- */

.widget-area .widget ul ul {
	margin-right: 12px;
	margin-right: 0.857142857rem;
	margin-left: auto;
}
.widget-area .textwidget li {
	margin-left: auto;
	margin-right: 36px;
	margin-right: 2.571428571rem;
}
.widget_recent_entries .post-date,
.widget_rss .rss-date {
	margin-right: 12px;
	margin-right: 0.857142857rem;
	margin-left: auto;
}
#wp-calendar th,
#wp-calendar td,
#wp-calendar caption {
	text-align: right;
}
#wp-calendar #next {
	padding-left: 24px;
	padding-left: 1.714285714rem;
	text-align: left;
	padding-right: 0;
}

/* =Media queries
-------------------------------------------------------------- */
@media screen and (max-width: 990px) {
	#site-logo,
	#site-header {
		display: block;
	    float: none;
	}
}

@font-face {
    font-family: 'Yekan';
    src: url('fonts/WebYekan.eot');
    src: url('fonts/WebYekan.eot?#iefix') format('embedded-opentype'),
         url('fonts/WebYekan.woff') format('woff'),
         url('fonts/WebYekan.ttf') format('truetype'),
         url('fonts/WebYekan.svg#WebYekan') format('svg');
}
/*
@font-face {
  font-family: mitra;
  font-style: normal;
  font-weight: bold;
  src: url('fonts/BMitraBold.woff') format('woff');
}
@font-face {
  font-family: mitra;
  font-style: normal;
  font-weight: normal;
  src: url('fonts/BMitra.woff') format('woff');
}
*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
    border: 0;
    font-family: Yekan;
   font-size: 98%;
}
@media screen and (min-width: 768px) {
.active-header-right #site-branding, .active-header-right #site-logo, .active-header-right #site-header {
    display: inline-block;
    float: right;
    text-align: left;
}
.sidebar.sidebar-header-right {
    float: left;
}
.nav-primary ul.menu li,
.nav-secondary ul.menu li,
#colophon #access-footer ul.menu li {
	float: right;
}
#site-branding,
#site-logo,
#site-header,
.nav-primary.search-enabled .menu,
#promotion-message .left,
.entry-meta .posted-on,
.entry-meta .byline,
.entry-meta .comments-link,
.entry-meta .cat-links {
	float: right;
}
.nav-primary #search-toggle, .sidebar-header-right {
    float: left;
}
.sidebar-header-right .widget-wrap {
     text-align: right;
}
}
.header-right-social-icons {
    float: left;
}
.ctdate {
    float: right;
}
#search-toggle {
    left: 0;
    right: auto;
}
#hero-section {
    text-align: right;
}
h3, #promotion-message h2, #featured-content .featured-content-wrap .entry-title, #portfolios-content .portfolio-wrap .entry-title, #team-section .section-content-wrap .entry-title, #contact-info-section .contact-title {
    font-size: 18px;
}
h1, .entry-title, .page-title {
    font-size: 25px;
}
#call-to-action-widget .textwidget {
    font-size: 15px;
}
#hero-section .featured-image, #hero-section .entry-container {
    background: none;
    direction: rtl;
}
.menu-primary ul ul li, #site-secondary-menu ul ul li {
    text-align: right;
}
.blog .site-main .hentry {
    float: right;
}
body, button, input, select, textarea {
    color: #1a1a1a;
    font-family: Yekan;
}
.entry-meta span a::before {
    margin-right: 2px;
    margin-left: 5px;
}
#content {
    margin: 0px 0;
}
.comment-body .comment-author img {
    float: right;
    margin-right: 10px;
    padding: 0;
    margin-left: 10px;
}
.content-area {
    float: right;
}

#site-header-menu.toggled-on, #site-secondary-menu.toggled-on {
    text-align: right;
}
.dropdown-toggle {
    right: auto;
    left: 0;
}
.decree-nav-menu .menu-item-has-children > a, .decree-nav-menu .page_item_has_children > a {
    margin-right: 0;
}
.menu-toggle::before {
    content: "\f0c9";
    margin-right: 5px;
    margin-left: 10px;
}
@media screen and (min-width: 900px) {
.decree-nav-menu ul .menu-item-has-children > a:after, .decree-nav-menu ul .page_item_has_children > a:after {
    content: "\f104";
    font-size: 16px;
    left: 0.77em;
    right: auto;
    top: 0.875em;
}
.decree-nav-menu ul li:hover > ul, .decree-nav-menu ul li.focus > ul {
    right: 100%;
    left: auto;
    top: 20px;
}
.decree-nav-menu li:hover > ul, .decree-nav-menu li.focus > ul {
    right: 0;
    left: auto;
}
}
#site-generator {
    background-color: #fff;
    color: #1a1a1a;
    text-align: center;
    display: none;
}
