/* vim: set ts=4 sw=4 et: */

@import url(normalize.css);

@-webkit-keyframes fade {from {opacity: 0;} to { opacity: 1;}}
@-moz-keyframes    fade {from {opacity: 0;} to { opacity: 1;}}
@-ms-keyframes     fade {from {opacity: 0;} to { opacity: 1;}}
@-o-keyframes      fade {from {opacity: 0;} to { opacity: 1;}}
@keyframes         fade {from {opacity: 0;} to { opacity: 1;}}


body {
    font-family: "Lucida Grande", "Gargi_1.7", "Garuda", "Jamrul", "Loma", "Malayalam", "Mukti Narrow", sans-serif;
    font-size: 16px;
    line-height: 1.5em;
    color: #444;
    background-color: #FAFAFA;
    -webkit-animation: fade 600ms 1 ease-in-out;
    -moz-animation: fade 600ms 1 ease-in-out;
    -ms-animation: fade 600ms 1 ease-in-out;
    -o-animation: fade 600ms 1 ease-in-out;
    animation: fade 600ms 1 ease-in-out;
}

h1, h2, h3,
h4, h5, h6,
.meta {
    color: #222;
    font-family: "Century Schoolbook L", "Georgia", "Nimbus Roman No9 L", "Norasi", "Rekha", serif;
    line-height: 1.1em;
}

hr {
    visibility: hidden;
    padding-bottom: 1em;
}

hr:after,
#page-foot:before {
    visibility: visible;
    content: '\2042';
    display: block;
    text-align: center;
}

article {
    margin-bottom: 4em;
}

article header h1 {
    padding: .1em 0;
    margin: 0;
}

article header .meta {
    font-size: .9em;
}

article header .meta a { text-decoration: none; }

article:after {
    content: '\00A7';
    display: block;
    text-align: center;
    font-weight: lighter;
    font-size: 1.5em;
}

article:last-of-type:after {
    content: '';
}


#page-head {
    text-align: left;
    padding-top: 1em;
}

div.site-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.5em;
    font-weight: bold;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0.2em;
}

div.site-title a {
    color: #676767;
}

div.site-title a:hover {
    color: #323232;
    text-decoration: none;
}

div.site-subtitle {
    color: darkgray;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 0.5em;
}

#page-head table {
    width: 100%;
    border: none;
    border-bottom: 1px solid #676767;
    text-align: left;
}
#page-head tr td {
    border: none;
    padding-top: 0;
    padding-bottom: 0;
}

#page-body {
    padding-top: 0.5em;
}

#page-side {
    line-height: 1.2em;
}

#page-side ul {
    padding: 0 0 0 1.3em;
    margin: .4em 0 .6em .4em;
    list-style-type: square;
}

#page-side li a {
    color: #555;
}

#page-side li.active {
    color: firebrick;
}

#page-side li.active a {
    color: #222;
}

#page-foot {
    font-size: .8em;
    text-align: center;
}

#pagination {
    display: block;
    margin-bottom: 4em;
    text-align: center;
}

#tag-cloud li {
    margin: .2em 1em;
    transition: transform 200ms linear;
}

#tag-cloud li a {
    text-decoration: none;
    color: #222;
}

#tag-cloud li:hover {
    transform: rotate(0deg) scale(1.3, 1.3)!important;
}

#tag-cloud li:hover a {
    color: black;
}

h1.small-title {
    font-size: 1em;
    font-style: italic;
    font-weight: normal;
}

a, a:visited {
    color: #0000C0;
    text-decoration: none;
}

a:hover {
    border: none;
    text-decoration: underline;
}

a:active, a:focus {
    outline-width: 1px;
    outline-style: dotted;
}

h1 a, h1 a:visited,
h2 a, h2 a:visited,
h3 a, h3 a:visited,
h4 a, h4 a:visited,
h5 a, h5 a:visited,
h6 a, h6 a:visited {
    color: #444;
    text-decoration: none;
}

a.goto {
    font-size: .8em;
    color: #444;
    padding: 0;
    margin: 0em .2em;
}

code, pre {
    font-family: Consolas, monospace, Courier New !important;
    background-color: #f0f0f0;
}

p code {
    padding: 0.1em;
    font-size: 0.8em;
}

div.post-content {
    font-family: Georgia, 'Times New Roman', Times, serif !important;
    font-size: 1.2em;
}

.post-content p {
    text-align: justify;
}

pre {
    font-size: 0.8em;
    line-height: 1.15em;
    background-color: #f0f0f0 !important;
    margin: 1em auto;
    overflow-x: auto;
    text-indent: 0px;
    display: inline-block;
    padding: 0.5em;
    /*padding: 0.75em 1.5em;*/
    border: 1px solid #ddd;
    height: auto;
    width: 100%;
    max-height: 35em;
    overflow: auto;
    word-break: normal !important;
    word-wrap: normal !important;
    white-space: pre !important;
    max-width: 100%;
}

img.img-left {
    float: left;
    margin: 0px 15px 15px 0px;
}

img.img-right {
    float: right;
    margin: 0px 0px 15px 15px;
}


table td, table th {
    border: 1px solid silver;
    padding: .15em .3em;
}

figure * { border: none; margin: auto; padding: auto; }

@media screen and (max-width: 650px) {
    body {
        font-size: 15px;
    }
}

@media screen and (max-width: 500px) {
    body {
        font-size: 14px;
    }

    #page-head h1 {
        font-size: 2.5em;
    }
}

blockquote {
    background: #f9f9f9;
    border-left: 5px solid #ccc;
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    quotes: "\201C""\201D""\2018""\2019";
    font-style: italic !important;
}

div.post-content h1, h2, h3, h4, h5, h6 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color:#555;
}
div.post-content h1 {
    font-size: 1.6em;
}
div.post-content h2 {
    font-size: 1.4em;
}
div.post-content h3 {
    font-size: 1.2em;
}
div.post-content h4 {
    font-size: 1.1em;
}
div.post-content h5 {
    font-size: 1em;
}
div.post-content h6 {
    font-size: 0.9em;
}

header.post-header {
    padding-bottom: 0.5em;
    border-bottom-style: solid;
    border-bottom-color: #ccc;
    border-bottom-width: 1px;
}

pre .err {
    color: unset !important;
    background-color: unset !important;
}

pre .s, pre .se, pre .s1, pre .s2 {
    color: #8e5757 !important;
    background-color: unset !important;
}

/* Secondary menu */
div.secondary-menu a, div.secondary-menu a:visited {
    color: #323232;
    font-weight: bold;
    text-decoration: none;
}

div.secondary-menu a:hover {
    border: none;
    color: darkblue;
    text-decoration: none;
}