/* taginfo.css */

body {
    font-family: Arial,sans-serif;
    padding: 0;
    margin: 0;
    line-height: 130%;
}

html[dir="rtl"] body {
    font-family: 'Noto Sans Arabic UI', Tahoma, sans-serif;
}

@media print {
    .no-print {
        display: none !important;
    }
}

img {
    border: 0 none;
}

img.map {
    border: 1px solid #b8b8b0;
}

td img, span.button img {
    position: relative;
    top: 3px;
}

h1 {
    margin: 0 0 4px 0;
    font-size: 1.5rem;
}

h1.section {
    text-transform: uppercase;
}

h2 {
    margin-top: 20px;
    margin-bottom: 4px;
}

p {
    color: #404040;
    margin: 0 0 6px 0;
    max-width: 60em;
}

.emphasis {
    font-weight: bold;
    font-size: 1rem;
}

div#javascriptmsg {
    position: absolute;
    top: 0px;
    left: 380px;
    background-color: #f08080;
    padding: 10px;
    margin: 20px 40px;
}

html[dir="rtl"] div#javascriptmsg {
    left: auto;
    right: 380px;
}

/* ========== */

a {
    text-decoration: none;
    color: #083e76;
}

a:hover {
    text-decoration: underline;
}

span.badchar {
    color: #e00000;
}

span.whitespace {
    background-color: #e00000;
}

.empty {
    font-style: italic;
    color: #404040;
}

a.extlink:before {
    content: "\2192\2009";
}

html[dir="rtl"] a.extlink:before {
    content: "\1F517\00A0";
}

a.section {
    text-transform: uppercase;
    text-decoration: none;
}

div#pre-text {
    float: left;
    max-width: 60em;
    margin-bottom: 8px;
}

html[dir="rtl"] div#pre-text {
    float: right;
}

/* ==========  */

span.button {
    background-color: #f0f0f0;
    color: #303030;
    border: 1px solid #e8e8e8;
    padding: 2px 4px;
    border-radius: 4px;
}

span.button a.extlink:before {
    content: none;
}

span.disabled {
    color: #808080;
}

/* ========== */

.tipsy { font-size: 0.8rem; position: absolute; padding: 5px; z-index: 100000; }
.tipsy-inner { background-color: #000; color: #FFF; max-width: 220px; padding: 5px 8px 4px 8px; text-align: center; }

/* Rounded corners */
.tipsy-inner { border-radius: 4px; }

.tipsy-arrow { position: absolute; width: 0; height: 0; line-height: 0; border: 5px dashed #000; }

/* Rules to colour arrows */
.tipsy-arrow-n { border-bottom-color: #000; }
.tipsy-arrow-s { border-top-color: #000; }
.tipsy-arrow-e { border-left-color: #000; }
.tipsy-arrow-w { border-right-color: #000; }
.tipsy-n .tipsy-arrow { top: 0px; left: 50%; margin-left: -5px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
.tipsy-nw .tipsy-arrow { top: 0; left: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent;}
.tipsy-ne .tipsy-arrow { top: 0; right: 10px; border-bottom-style: solid; border-top: none;  border-left-color: transparent; border-right-color: transparent;}
.tipsy-s .tipsy-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-style: solid; border-bottom: none;  border-left-color: transparent; border-right-color: transparent; }
.tipsy-sw .tipsy-arrow { bottom: 0; left: 10px; border-top-style: solid; border-bottom: none;  border-left-color: transparent; border-right-color: transparent; }
.tipsy-se .tipsy-arrow { bottom: 0; right: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
.tipsy-e .tipsy-arrow { right: 0; top: 50%; margin-top: -5px; border-left-style: solid; border-right: none; border-top-color: transparent; border-bottom-color: transparent; }
.tipsy-w .tipsy-arrow { left: 0; top: 50%; margin-top: -5px; border-right-style: solid; border-left: none; border-top-color: transparent; border-bottom-color: transparent; }

/* ========== */

span.customSelect {
    margin: 0;
    padding: 1px 4px 0 4px;
    border: 1px solid #a0a0a0;
    background-color: #ffffff;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: left;
}

.customSelectInner {
    background: url(/https/taginfo.openstreetmap.in/img/arrow.png) no-repeat center right;
    background-size: 12px 12px;
}

/* ========== */

div#header {
    padding: 15px 20px 4px 20px;
}

@media screen and (max-width: 640px) {
    div#header {
        position: absolute;
        top: 20px;
    }
}

div#header_date {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 0.8rem;
    text-align: right;
    color: #808080;
}

html[dir="rtl"] div#header_date {
    right: auto;
    left: 20px;
    text-align: left;
}

div#header div#header_forms {
    position: absolute;
    right: 20px;
    top: 31px;
}

html[dir="rtl"] div#header div#header_forms {
    right: auto;
    left: 20px;
}

div#header div#header_forms form {
    float: left;
    padding-left: 22px;
}

html[dir="rtl"] div#header div#header_forms form {
    float: right;
    padding-left: 0;
    padding-right: 22px;
}

select#locale, select#lang {
    background-color: #ffffff;
    border: none;
    font-size: 0.9rem;
}

input#search {
    height: 18px;
    width: 228px;
    padding: 2px 4px;
    font-size: 0.9rem;
}

input#search, p.search {
    background-image: url('/https/taginfo.openstreetmap.in/css/flexigrid/images/magnifier.png');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: right center;
    background-color: #ffffff;
    border: 1px solid #a0a0a0;
    border-radius: 4px;
}

input:focus {
    background-color: #ffffe0 !important;
    outline: none;
}

@media screen and (max-width: 640px) {
    input#search {
        margin-top: -1px;
        height: 21px;
    }
}

/* ========== */


ul#menu {
    margin: 0px 0px 20px 0px;
    padding: 2px 20px;
    border-bottom: 1px solid #b8b8b0;
    background: linear-gradient(to bottom, #ffffff 0%, #e8e8e4 100%);
}

ul#menu li {
    margin: 0;
    padding: 0;
    text-indent: 0;
    text-transform: uppercase;
    font-weight: normal;
    display: inline;
}

@media print {
    ul#menu li {
        display: none !important;
    }
}

ul#menu li:after {
    content: " \00b7 ";
}

ul#menu li:last-child:after {
    content: "";
}

ul#menu a:hover {
    text-decoration: none;
    border-bottom: 3px solid #b8b8b0;
}

ul#menu a.selected {
    text-decoration: none;
    border-bottom: 3px solid #b8b8b0;
}

.slicknav_menu {
    display: none;
    padding: 0 0 1px 0 !important;
}

.slicknav_btn {
    margin: 10px 10px 6px 5px !important;
}

html[dir="rtl"] .slicknav_btn {
    margin: 10px 5px 6px 10px !important;
}

.slicknav_nav {
    background: linear-gradient(to bottom, #ffffff 0%, #e8e8e4 100%);
}

.slicknav_nav a {
    color: #202020 !important;
    text-align: right;
    font-size: 1.2rem;
}

html[dir="rtl"] .slicknav_nav a {
    text-align: left;
}

@media screen and (max-width: 640px) {
    ul#menu, #set_language, #header_date, #tools, #list-form, .pJSON, #osmlink {
        display: none;
    }

    .slicknav_menu {
        display: block;
        margin-bottom: 10px;
        background: #ffffff none repeat scroll 0 0 !important;
        border-bottom: 1px solid #b8b8b0;
    }

    div#header {
        top: 0;
    }

    div#header_logo {
        padding: 3px 10px 0;
        position: absolute;
        left: 4px;
        top: 1px;
        right: 30px;
        width: 136px;
    }

    html[dir="rtl"] div#header_logo {
        left: 30px;
        right: 4px;
    }

    div#header img {
        height: 36px;
        width: auto;
    }

    div#header div#header_forms form {
        position: absolute;
        top: -20px;
        left: 130px;
    }

    html[dir="rtl"] div#header div#header_forms form {
        left: auto;
        right: 130px;
    }

    #filter-form {
        margin-bottom: 10px;
    }

    .ui-tabs .ui-tabs-nav li a {
        padding: 1px 4px !important;
    }

}

@media screen and (max-width: 479px) {
    div#header div#header_forms form input {
        width: 120px;
    }
}

@media screen and (max-width: 359px) {
    div#header div#header_forms form {
        display: none;
    }
}

/* ========== */

div#main {
    margin-left: 20px;
    margin-right: 20px;
}

div.section_title {
    display: none;
}

@media screen and (max-width: 640px) {
    div#main {
        margin-left: 10px;
        margin-right: 10px;
    }

    div.section_title {
        display: block;
        margin-bottom: 4px;
    }
}

/* ========== */

div#footer {
    clear: both;
    position: relative;
    font-size: 0.9rem;
    margin: 0 20px;
    padding: 4px 0;
    height: 20px;
}

div#footer_left {
    float: left;
}

html[dir="rtl"] div#footer_left {
    direction: ltr;
    float:right;
}

div#footer_right {
    float: right;
}

html[dir="rtl"] div#footer_right {
    float: left;
}

@media screen and (max-width: 640px) {
    div#footer {
        margin: 0 10px;
    }
}

/* ========== */

div.box {
    background-color: #ddddd4;
    padding: 20px;
    border-radius: 4px;
}

.resize, .ui-tabs-panel {
    overflow: hidden;
}

@media screen and (max-width: 640px) {
    .resize, .ui-tabs-panel {
        padding: 10px !important;
    }
}

/* ==========  */

div.boxes {
    width: 232px;
    float: right;
}

table.boxes {
    border-collapse: collapse;
}

.boxes h2 {
    text-transform: uppercase;
    font-weight: normal;
    margin: 16px 0 2px 0px;
}

.boxes h2 a {
    color: #000000;
    text-decoration: none;
}

.boxes h3 {
    margin: 12px 0 2px 0;
}

table.boxes td {
    vertical-align: bottom;
}

table.boxes td.box {
    vertical-align: top;
    font-size: 0.9rem;
    background-color: #ddddd4;
    padding: 8px;
    border-radius: 4px;
}

table.boxes td.box table {
    width: 100%;
}

/* ==========  */

div#tabs h2, div.box h2 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

div#tabs form {
    margin-bottom: 6px;
    font-size: 0.8rem;
}

/* ========== */

div#tools {
    clear: right;
    float: right;
    font-size: 0.8rem;
    margin-top: 4px;
}

html[dir="rtl"] div#tools {
    clear: left;
    float: left;
}

span.lang {
    position: relative;
    top: -1px;
    background-color: #f0e0f0;
    color: #202020;
    border: 1px solid #b8b8b0;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0 4px;
    border-radius: 4px;
}

.note {
    font-size: 0.8rem;
}

td.number {
    text-align: right;
    width: 8em;
}

span.char {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    padding: 0 2px;
    border-radius: 4px;
}

form#list-form {
    margin: 0 20px 0 0;
    float: right;
}

html[dir="rtl"] form#list-form {
    margin: 0 0 0 20px;
    float: left;
}

@media print {
    form#list-form {
        display: none;
    }
}

select#list {
    background-color: #ffffff;
    color: #083e76;
    font-size: 0.9rem;
}

form#filter-form {
    margin-top: 0px;
    float: right;
}

html[dir="rtl"] form#filter-form {
    float: left;
}

select#filter {
    min-width: 146px;
    background-color: #ffffff;
}

/* ========== */

div.value {
    width: 6em;
    float: left;
    padding: 0 !important;
    margin: 0 !important;
    text-align: right;
}

div.fraction {
    width: 5em;
    float: left;
    padding: 0 !important;
    margin: 0 !important;
    text-align: right;
}

div.bar {
    float: left;
    margin: 4px 0 0 6px !important;
    padding: 0 !important;
    height: 8px !important;
    background-color: #a0a098;
}

/* ========== */

span.overflow:hover {
    position: absolute;
    padding-right: 6px;
    background-color: #ffffff;
    z-index: 100;
}

/* ========== */

table.list {
    border-collapse: collapse;
    font-size: 0.8rem;
}

table.list th, table.list td {
    border-right: 1px solid #ddddd4;
    padding: 2px 6px;
}

table.list th {
    background-color: #b8b8b0;
    height: 28px;
    vertical-align: middle;
}

table.list td {
    background-color: #e8e8e4;
    height: 22px;
    vertical-align: top;
}

table.list td.even {
    background-color: #d0d0c8;
}

table.list th.tl, table.list td.tl {
    text-align: left;
}

html[dir="rtl"] table.list th.tl,
html[dir="rtl"] table.list td.tl {
    text-align: right;
}

table.list th.tc, table.list td.tc {
    text-align: center;
}

table.list th.tr, table.list td.tr {
    text-align: right;
}

table.list td.nowrap {
    white-space: nowrap;
}

table.list .warn {
    color: #e00000;
}

/* ==========  */

table.desc {
    background-color: #ddddd4;
    border-radius: 4px;
    padding: 6px;
    width: 100%;
}

table.desc > tbody > tr > th {
    text-align: left;
    vertical-align: top;
    font-weight: normal;
    width: 8em;
    padding: 2px;
}

table.desc > tbody > tr > td {
    vertical-align: top;
    background-color: #f8f8f8;
    padding: 2px 4px;
    border-radius: 1px;
}

table.apiresults td {
    font-size: 0.8rem;
    padding: 2px 4px;
    line-height: 100%;
}

/* ==========  */

ul.reportlist {
    padding-left: 16px;
}

/* ==========  */

div.hDiv table th span {
    display: block;
}

/* ==========  */

.good {
    color: #00a000;
}

.bad {
    color: #ff0000;
}

/* ==========  */

div#help {
    display: none;
}

table.help_table {
    width: 100%;
    border-collapse: collapse;
}

table.help_table td {
    vertical-align: top;
    padding: 2px 6px 2px 0;
}

html[dir="rtl"] table.help_table td {
    padding: 2px 0 2px 6px;
}

table.help_table th {
    padding-bottom: 10px;
    text-align: left;
}

html[dir="rtl"] table.help_table th {
    text-align: right;
}

span.key {
    position: relative;
    top: -1px;
    border: 1px solid #e8e8e8;
    padding: 1px 4px;
    border-radius: 4px;
    background-color: #f0f0f0;
    font-family: monospace;
}

p.search {
    margin: 0 0 16px 0;
}

/* ==========  */

div.wiki_image {
    float: right;
}

div.wiki_image img {
    border: 1px solid #a0a0a0;
    border-radius: 4px;
    padding: 1px;
}

div.img_popup {
    background-image: url(/https/taginfo.openstreetmap.in/img/indicator.gif);
    background-position: center center;
    background-repeat: no-repeat;
}

/* ==========  */

@media screen and (max-width: 1023px) {
    .cloudcontainer {
        display: none;
    }
}

div#tagcloud a:hover {
    text-decoration: none;
}

/* ==========  */

.canvas svg text {
    font: 12px Arial,sans-serif;
}

html[dir="rtl"] .canvas svg text {
    font: 12px 'Noto Sans Arabic UI', Tahoma, sans-serif;
}

.canvas .axis line {
    fill: none;
    stroke: #000;
    shape-rendering: crispEdges;
}

.canvas .axis path {
    display: none;
}

/**** additions ****/

html[dir="rtl"] .flexigrid,
html[dir="rtl"] input#search,
html[dir="rtl"] p.search,
html[dir="rtl"] #key_list,
html[dir="rtl"] #tag_list,
html[dir="rtl"] #relation_list,
html[dir="rtl"] .number,
html[dir="rtl"] .canvas,
html[dir="rtl"] .wiki-images,
html[dir="rtl"] #overview {
    direction: ltr;
}

html[dir="rtl"] #overview p,
html[dir="rtl"] .tipsy {
    direction: rtl;
}

html[dir="rtl"] #overview p {
    text-align: left;
}

html[dir="rtl"] #map div {
    position: absolute;
}

/* overwrites inline style="margin: 0 0 0 18px; padding: 0;" */
html[dir="rtl"] td ul {
    margin: 0 18px 0 0!important;
}

/* jquery-ui-1.8.10.custom-minified.css */
html[dir="rtl"] .ui-tabs .ui-tabs-nav li {
    float: right;
    margin: 0 0 0 .2em;
}

html[dir="rtl"] .ui-dialog .ui-dialog-titlebar-close {
    right: auto;
    left: 0.3em;
}

html[dir="rtl"] .ui-dialog .ui-dialog-title {
    float: right;
    margin: .1em 0 .1em 16px;
}

/* slicknav.min.css */
html[dir="rtl"] .slicknav_btn {
    float: left;
}

/* comparison page */
html[dir="rtl"] table.comparison a.close {
    float: left;
}

html[dir="rtl"] table.compstat td {
    direction: ltr;
}

html[dir="rtl"] table.compstat th {
    text-align: right;
}

