@import "common.css";

body {
    margin: 0;
    padding: 0;
}

#mainPageContainer {
    width: 940px;
    border: 1px solid #fff;
    border-top: none;
}

div.around {
    padding: 0 3px;
    margin: 1px;
}

div.bar {
    padding: 0;
    border: 1px solid #4682b4;
    border-width: 1px 4px 4px 1px;
    background: #ddd;
    color: #000;
    margin: 5px;
}

div.box {
    padding: 8px;
    border: 1px solid cornflowerblue;
    border-width: 1px 1px 1px 1px;
    background: #f0f8ff;
    margin: 4px;
}

div.orangeBox {
    padding: 3px;
    border: 1px solid darkorange;
    border-width: 1px 1px 1px 1px;
    margin: 2px;
}

div.transBox {
    padding: 3px 3px 0px 3px;
    margin: 2px 2px 0px 2px;
}

div.articleRow {
    padding: 10px 15px 20px 15px;
    /*margin: 3px;*/
    background-color: white;
    background-image: url(../image/articlerow-bg.png);
    background-repeat: repeat-x;
    background-position: bottom;
    border: 1px solid #999;
    zoom: 1;
}

.articleRow .buttons {
    border-top: 1px dotted #999;
    padding: 5px 0;
    height: 20px;
    margin: 15px 0 -15px 0;
}

.articleRow .buttons a {
    display: block;
    float: left;
    background-image: url(../image/button1bg.png);
    border: 1px solid #3470c7;
    margin-right: 5px;
    color: #fff;
    -moz-border-radius: 5px;
    height: 20px;
    line-height: 18px;
}

.lang-en .articleRow .buttons a {
    float: right;
}

.articleRow .buttons a:hover {
    background-position: 0 -20px;
    border: 1px solid #349bc7;
}

.articleRow .buttons a span {
    display: block;
    height: 20px;
    line-height: 18px;
    padding: 0 20px 0 5px;
    margin-right: 5px;
    cursor: pointer;
    background-position: right;
    background-repeat: no-repeat;
}

.lang-en .articleRow .buttons a span {
    background-position: left;
    padding: 0 5px 0 20px;
    margin-right: 0;
    margin-left: 5px;
}

.articleRow .buttons a.download span {
    background-image: url(../image/icon-download.png);
}

.articleRow .buttons a.data span {
    background-image: url(../image/icon-article2.png);
}

div.caption {
    text-align: right;
    margin-bottom: 1px;
    border: 1px solid #4f94cd;
    background: #eeeee0;
    border-width: 1px 6px 2px 1px;
    font-size: 12px;
    color: #104e8b;
    font-weight: bold;
    padding: 5px;
}

.logout {
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
}

.user {
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
}

.keyboard {
    background-image: url( "img/ico/keyboard.gif" );
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
}

.search {
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
}

td.caption {
    border: 1px solid #4f94cd;
    background: #eeeee0;
    border-width: 2px 4px 2px 1px;
    color: #104e8b;
    font-weight: bold;
}

.label {
    font-weight: bold;
    font-size: 9pt;
}

.data {
    font-weight: normal;
    white-space: normal;
}

div.menu {
    width: 150px;
    border: 1px solid silver;
    padding: 2px;
}

div.mi {
    border: 1px solid gray;
    margin: 3px;
}

div.menu a {
    padding: 2px;
    text-decoration: none;
    display: block;
    background-color: #f4f4f4;
}

div.menu a:hover {
    color: red;
    background-color: #fafafa;
}

.clear {
    clear: both;
}

#maincontent {
    background-image: url(../image/menubg-fa.png);
    background-repeat: repeat-y;
    background-position: right;
    background-color: #ededed;
    min-height: 420px;
    /*todo border: 1px solid #fff;*/
}

.lang-en #maincontent {
    background-image: url(../image/menubg-en.png);
    background-position: left;
}

.trail-menu {
    background-image: url(../image/menubg-en.png);
    background-repeat: repeat-y;
    background-position: right;
    background-color: #ededed;
    min-height: 420px;
}

.lang-en .trail-menu {
    background-image: url(../image/menubg-fa.png);
    background-position: left;
}

#maincontent .column {
    width: 185px;
    float: right;
    padding-bottom: 10px;
}

.lang-en #maincontent .column {
    float: left;
}

/** both journal and application home pages use this class */
.homePage {}

/** application home page uses this subclass */
.homePage.application {}

/** journal home page uses this subclass */
.homePage.journal { width:100%; }

.homePage div.journalLogo {
    padding-top: 25px;
    padding-bottom: 25px;
    border: 1px solid silver;
    margin: 5px;
}

.homePage div.journalInfo {
    margin: 5px;
    padding: 5px 10px;
    border: 1px solid silver;
}

.homePage div.newsList {
    margin:5px;
    border:1px solid silver;
    border-radius: 15px;
    padding: 0 5px; 
    /*padding-left:20px;*/
    /*padding-right:20px;*/
}

.homePage div.empty {
    border:none;
    background-color:transparent;
}

.homePage .newsItem {}
.homePage .newsItem a { font-weight:bold; }

/** @see net.itorbit.jour.biz.model.News.NewsStatus */
.homePage .newsItem.TOP a { color:red; }
.homePage .newsItem.NORMAL {}
.homePage .newsItem.INVISIBLE { visibility:hidden; }

.homePage .advertisement {}

.homePage .customPageContent {
    border: none;
    background-color: transparent;
    overflow: auto;
    min-height: 100px;
    padding: 10px;
}

.homePage .featuredJournal {}
.homePage .featuredJournal h5 { padding: 20px }

.homePage .popularArticles {}

#issueTree {
    border: 1px solid #cccccc;
}

#issueTree div.item {
    padding:2px;
    margin:3px;
    overflow:hidden;
}
#issueTree div.item:hover { overflow:visible; }

#issueTree .toggleButton {
    background-color: #f8f8f8;
    /*font-weight: bold;*/
    white-space:nowrap;
    cursor: pointer;
    padding:0;
}

#issueTree .toggleButton span {
    background-color: #f8f8f8;
    border: solid #f8f8f8;
    border-width: 0 1px;
    position: relative;
    *position: inherit; /* ie7 and below */
}

#issueTree .toggleButton span:hover {
    border:1px solid gray;
    background-color: #ffffcc;
}

#issueTree .toggleButton {
    background-color: #f8f8f8;
}

#issueTree .issueList {
}

.lang-fa #issueTree .issueList {
    border-right:1px solid #888888;
    margin-right:5px;
    padding-right:15px;
}

.lang-en #issueTree .issueList {
    border-left:1px solid #888888;
    margin-left:5px;
    padding-left:15px;
}

#issueTree .issueNumber {
    background-color: #f8f8f8;
    padding:2px;
    margin-top: 3px;
    margin-bottom: 3px;
}

#maincontent .opposColumn {
    min-width: 185px;
    /*float: left;*/
    padding-bottom: 10px;
}

.lang-en #maincontent .opposColumn {
    float: right;
}

.lang-fa #maincontent .content {
    margin-right: 190px;
    /*margin-left: 190px;*/
}

.lang-en #maincontent .content {
    /*margin-left: 190px;*/
    margin-left: 190px;
}

#maincontent .contentpad {
    padding: 10px 20px;
}

#mainmenu .menuItem {
    background-image: url(../image/menuitems-fa.png);
    width: 180px;
    height: 32px;
    padding: 0;
/*    margin: 0 3px;*/
}

.homePage.application .content {
    /*background: url("../image/homePage.application.content.png") no-repeat;*/
    /*min-height:504px;*/
}

.homePage.application .content a,
.homePage.application .content input,
.homePage.application .content span {
    font-size:11pt;
}

.homePage.application div.SearchBar {
    min-width:750px;    /* the same width as div.content */
    padding:6px 0;
    clear:both;         /* move div.SearchBar to the next line... */
    position:relative;  /* ... but do not stretch the containing div (div.divTopMenu) */
    text-align:center;  /* keep the contained table in the center (see the rule below) */
}

.homePage.application div.SearchBar table {
    /*display: inline-table;  /* make "text-align:center" applicable to the table */
}
.lang-fa .homePage.application div.SearchBar table { padding: 0 45px 0 0; }
.lang-en .homePage.application div.SearchBar table { padding: 0 0 0 45px; }

.lang-fa .homePage.application div.SearchBar td { text-align:right; }
.lang-en .homePage.application div.SearchBar td { text-align:left; }

.homePage.application div.SearchBar label {
    display:block;
    font-size:11pt;
}

.homePage.application div.SearchBar label.searchLabel {
    font-weight:bold;
    padding:10px;
}

.homePage.application div.SearchBar div.searchText {
    background: url("../image/homePage.application.searchText.png") no-repeat center;
    height:50px;
    width:430px;
    text-align:center;
}

.homePage.application div.SearchBar input[type="text"],
.homePage.application div.SearchBar input[type="text"]:focus {
    margin:8px;
    height:20px;
    width:385px;
    font-size:12pt;
    border-width:0;
    outline-width:0;
}

.homePage.application div.SearchBar select,
.homePage.application div.SearchBar select option {
    font-size:11pt;
}

.bigSearchButton,
.homePage.application div.SearchBar .searchButton {
    cursor:pointer;
    font-size: 1px;
    color: gray;
    background-image: url("../image/big-search.png");
    width: 40px;
    height: 38px;
    border: 0px;
    margin: 0 20px;
}

.homePage.application .links {
    position: relative;
    background: url("../image/homePage.application.links.png") no-repeat center;
    height:280px;
    min-width: 656px;

    text-align:center;
    *top: 110px;
}

.homePage.application .links table {
    padding: 50px 20px;
}

.lang-fa .homePage.application .links { clear:left; }
.lang-en .homePage.application .links { clear:right; }

.homePage.application .links td {
    padding:30px;
    white-space:nowrap;
    background-repeat:no-repeat;
}
.lang-fa .homePage.application .links td { padding-right:60px; background-position:right; text-align:right; }
.lang-en .homePage.application .links td { padding-left:60px; background-position:left; text-align:left; }

.homePage.application .links td.newUserGuide { background-image: url("../image/links.newUserGuide.jpg"); }
.homePage.application .links td.authorGuide { background-image: url("../image/links.authorGuide.jpg"); }
.homePage.application .links td.allJournals { background-image: url("../image/links.allJournals.jpg"); }
.homePage.application .links td.top10 { background-image: url("../image/links.top10.jpg"); }

table.bodyTab .menuCell {
    border-left: 1px dashed silver;
}

.lang-en table.bodyTab .menuCell {
    border-right: 1px solid silver;
}


.lang-en #mainmenu .menuItem {
    background-image: url(../image/menuitems-en.png);
    margin: 0;
}

#mainmenu .menuItem:hover, #mainmenu .menuItem.current {
    background-position: 0 -32px;
}

#mainmenu .menuItem a {
    display: block;
    height: 32px;
    line-height: 30px;
    color: #444;
    padding-right: 40px;
    background-position: 94% center;
    background-repeat: no-repeat;
}

.lang-en #mainmenu .menuItem a {
    padding-right: 0;
    padding-left: 40px;
    background-position: 6% center;
}

#mainmenu .homepage a {
    background-image: url(../image/icon-home.png);
}

#mainmenu .search a {
    background-image: url(../image/icon-search.png);
}

#mainmenu .contact a {
    background-image: url(../image/icon-mailto.gif);
}

#mainmenu .control a {
    background-image: url(../image/icon-settings.gif);
}

#mainmenu .journals a {
    background-image: url(../image/icon-document.png);
}

#mainmenu .contributors a {
    background-image: url(../image/icon-contributors.gif);
}

#mainmenu .jour-files a {
    background-image: url(../image/icon-jour-files.png);
}

#mainmenu .subscription a {
    background-image: url(../image/icon-mailto.gif);
}

#mainmenu .signup a {
    background-image: url(../image/icon-signup.gif);
}

#HeaderImage {
    padding-top: 20px;
    padding-bottom: 15px;
    height: 114px;
}

.lang-fa #HeaderImage {
    background-image: url(../image/chista-header-bg-fa.jpg);
    background-position: left;
    padding-left: 20px;
}

.lang-en #HeaderImage {
    background-image: url(../image/chista-header-bg-en.jpg);
    background-position: right;
    padding-right: 20px;
}

#HeaderImage img.topLogo {
    margin-right: 20px;
    margin-left: 20px;
}

#HeaderImage table {
    width:100%;
}

#HeaderImage a {
    font-family: B Nazanin, Nazanin, Mitra, Nazli, XB Zar, sans-serif;
    color: white;
}
body.lang-en #HeaderImage a {
    font-family: Georgia, serif;
}
#HeaderImage .title, #HeaderImage .code {
    text-shadow: -1px 2px 10px #CCC;
    white-space: nowrap;
    font-size: 260%;
}
body.lang-en #HeaderImage .title, #HeaderImage .code {
    font-size: 200%;
}
.lang-en #HeaderImage .title, .lang-en #HeaderImage .code {
    text-shadow: 2px 3px 4px gray;
}

#HeaderImage .subtitle {
    /*text-shadow: -2px 3px 2px gray;*/
    font-size: 160%;
    text-decoration:overline;
}

.lang-en #HeaderImage .subtitle {
    /*text-shadow: 2px 3px 2px gray;*/
    font-size: 130%;
}

#stripe {
    background-image: url(../image/bluestripe.png);
    height: 5px;
    border-top: 1px solid #fff;
}

fieldset {
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    border-color: #eee;
}

fieldset .buttons {
    background-color: #bbb;
    margin: 10px -7px -7px -7px;
    text-align: left;
    padding: 5px 12px;
    zoom: 1;
}

.lang-en fieldset .buttons {
    text-align: right;
}

.contentTitle {
    background-image: url(../image/title-bg.png);
    height: 48px;
    line-height: 40px;
    padding: 0 20px;
    color: #fff;
    margin: 0;
    overflow: visible;
    text-shadow: -2px 2px 1px #777;
    font-size: 1.69em;
}

.journal .contentTitle {
    overflow: auto;
}

.title2 {
    border: 1px solid #666;
    background-image: url(../image/title2-gradient.png);
    padding: 5px 10px;
    margin: 10px 5px;
    -moz-border-radius: 5px;
}

.searchSubmit {
    background-image: url(../image/icon-search.png);
    background-position: 95% center;
    background-repeat: no-repeat;
}

.lang-en .searchSubmit {
    background-position: 5% center;
}

.homebox1 {
    width: 172px;
}

.lang-en .homebox1 {
    margin-left: 0;
    margin-right: 7px;
}

.homebox2 {
    width: 351px;
}

.homebox1,.homebox2 {
    margin-bottom: 10px;
    margin-left: 7px;
}

.homebox1 h4,.homebox2 h4 {
    margin: 0;
    padding: 5px 10px;
    font-size: 11px;
}

.homebox1 h4 {
    background-image: url(../image/homebox1-top.png);
}

.homebox2 h4 {
    background-image: url(../image/homebox2-top.png);
}

.homebox1 .bottom,.homebox2 .bottom {
    background-position: bottom;
    padding: 10px;
}

.homebox1 .bottom {
    background-image: url(../image/homebox1-bottom.png);
}

.homebox2 .bottom {
    background-image: url(../image/homebox2-bottom.png);
}

.categListUl {
    margin: 0;
    padding: 5px 15px;
}

.list-message {
    text-align: center;
    color: gray;
    font-weight: bold;
}

.short-help {
    color: #665566;
    font-size: 9.5px
}

table.menu-bg {
    margin-right: 160px;
    width: 480px;
    height: 55px;
}

.lang-en table.menu-bg {
    margin-left: 160px;
}

.dropdown-menu {
/*
    float: right;
    list-style-type: none;
    width: 100px;
    padding: 10px;
    border-left: solid 1px #cdebf8;
*/
    /*
    position: absolute;
    right: 12.9%;
    top: 189px
    */
}

.lang-en .dropdown-menu {
    /*
    left: 30%;
    right: auto;
    */
}

.round-corner {
    border-radius: 15px;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
}

.lite-round {
    border-radius: 7px;
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
}

.adsBox {
    width: 153px;
    height: 140px;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    margin:5px;
    padding: 5px 10px;
    border: 1px solid silver;
}

/* Some ad-hoc variations based on entity ID. This is going to be a temporary solution */

/* 'ARABIC LETTER TEH MARBUTA' problem in Persian fonts */
.lang-fa.journal-64 #HeaderImage a.title { font-family: Andalus,sans-serif; }

/* Journal name too long */
.lang-en.journal-64 #HeaderImage a.title,
.lang-en.journal-68 #HeaderImage a.title,
        .journal-72 #HeaderImage a.title { font-size:2.5em; }

.article-abstract {
    line-height: 150%;
    text-indent: 10px;
}
