/**
 * phpMyFAQ 2.7 default layout
 *
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific language governing rights and limitations
 * under the License.
 *
 * @category  phpMyFAQ
 * @package   Layout
 * @author    Thorsten Rinne <thorsten@phpmyfaq.de>
 * @copyright 2010-2012 phpMyFAQ Team
 * @license   http://www.mozilla.org/MPL/MPL-1.1.html Mozilla Public License Version 1.1
 * @link      http://www.phpmyfaq.de
 * @since     2010-01-17
 */

/* extended HTML5 reset */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,small, strong, sub, sup, 
var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, 
table, caption, tbody, tfoot, thead, tr, th, td, 
article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, 
section, summary, time, mark, audio, video {
    margin: 0; padding: 0; border: 0; outline:0; font-size:100%; vertical-align: baseline;
    background: transparent;
}                  

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { 
    display: block;
}

nav ul { 
    list-style: none; }
blockquote, q { 
    quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { 
    content: ''; content: none; }
a { 
    margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
ins { 
    background-color: #ff9; color: #000; text-decoration: none; }
mark { 
    background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
del { 
    text-decoration: line-through; }
abbr[title], dfn[title] { 
    border-bottom: 1px dotted; cursor: help; }
table { 
    border-collapse: collapse; border-spacing: 0; }
hr { 
    display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
input, select { 
    vertical-align: middle; }
/* end of reset part */

/* basic styles */
body {  
    font: 13px/1.231 sans-serif; *font-size: small; }
select, input, textarea, button {  
    font: 99% sans-serif; }
pre, code, kbd, samp {  
    font-family: monospace, sans-serif; }
body, select, input, textarea {  
    color: #444; }
h1,h2,h3,h4,h5,h6 {  
    font-weight: bold; }
h1 {  
    font-size: 3.571em; }
h2 {  
    font-size: 1.571em; }
h3 {  
    font-size: 1.429em; }
h4 {  
    font-size: 1.286em; }
h5 {  
    font-size: 1.143em; }
h6 {  
    font-size: 1em; }
html {  
    overflow-y: scroll; }
ul, ol {  
    margin-left: 1.8em; }
ol {  
    list-style-type: decimal; }
small {  
    font-size: 85%; }
strong, th { font-weight: bold; }
td, td img {  
    vertical-align: top; } 
sub {  
    vertical-align: sub; font-size: smaller; }
sup {  
    vertical-align: super; font-size: smaller; }
textarea {
    overflow: auto; }
.ie6 legend, .ie7 legend {  
    margin-left: -7px; }
input[type="radio"] {  
    vertical-align: text-bottom; }
input[type="checkbox"] {  
    vertical-align: bottom; }
.ie7 input[type="checkbox"] {  
    vertical-align: baseline; }
.ie6 input {  
    vertical-align: text-bottom; }
label, input[type=button], input[type=submit], button {  
    cursor: pointer; }
button, input, select, textarea {  
    margin: 0; }
input:valid, textarea:valid {  }
input:invalid, textarea:invalid { 
      border-radius: 1px;
    -moz-box-shadow: 0px 0px 5px red; 
 -webkit-box-shadow: 0px 0px 5px red; 
         box-shadow: 0px 0px 5px red;
}
.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { 
    background-color: #f0dddd; }
::-moz-selection{ 
    background: #F67600; color: #fff; text-shadow: none; }
::selection { 
    background: #F67600; color: #fff; text-shadow: none; }
a:link { 
    -webkit-tap-highlight-color: #F67600; }
button { 
    width: auto; overflow: visible; }
.ie7 img { 
    -ms-interpolation-mode: bicubic; }
.ir { 
    display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
.hidden { 
    display: none; visibility: hidden; } 
.visuallyhidden { 
    position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px); }
.invisible { 
    visibility: hidden; }
.clearfix:after  { 
    content: "\0020"; display: block; height: 0; clear: both; visibility: hidden; }
.clearfix { 
    zoom: 1; }
.highlight {
    text-decoration: dotted; background-color: orange; color: #000000; padding: 1px; }

/* phpMyFAQ layout */
body {
    margin: 0 auto; font: 13px/22px Helvetica, Arial, sans-serif; }

#solution_id {
    display: none;
}

/* print styles */
@media print {
  * { background: transparent !important; color: #444 !important; text-shadow: none !important; }
  a, a:visited { color: #444 !important; text-decoration: underline; }
  a:after { content: " (" attr(href) ")"; } 
  abbr:after { content: " (" attr(title) ")"; }
  ir a:after { content: ""; }
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; }
  tr, img { page-break-inside: avoid; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3{ page-break-after: avoid; }
  #leftContent, #faqTabs, aside section, header, footer, nav { display: none; }
}

@media all and (orientation:portrait) { 
    #header, #footer, nav, #searchBox, #newsRSS, #breadcrumbs, #faqTabs, #comments, #tag_cloud {
        display: none;
    }


	 html {
	 	background-color:#F2E7BD;
       /* background-color: #77556D;
        background-image: url('../images/fond.jpg');
        background-repeat: no-repeat;
        background-position: center -20px;*/
    }

    body {
        width: 100%;
    }

    a {
        text-decoration: none;
        font-weight: bold;
    }

    #categories ul {
        list-style-type: none;
        height: 30px;
        margin: 0;
        border-bottom: 1px solid black;
    }
    #categories ul li {
        float: left;

        display: block;
        padding: 4px 10px;
    }

    #mainContent {
        padding: 10px;
    }
    #mainContent header h2 {
        margin-bottom: 10px;
        font-size: 18px;
    }
    #mainContent ul {
        list-style-type: none;
        margin: 0 10px;
    }
    #mainContent ul li {
        padding: 5px;
        border-bottom: 1px dashed gray;
        line-height: 1.1em;
    }
    #mainContent ul li:last-child {
        border-bottom: none;
    }
    #mainContent article {
        line-height: 1.25em;
        margin-bottom: 10px;
    }
    #mainContent img {
        max-width: 100%;
    }
    
	nav ul li a, nav ul li a:visited {
        display: block; font: 14px Helvetica, Arial, sans-serif; text-align: center;
        text-decoration: none; color: white;
        padding: 9px 30px;
        text-shadow: 0 2px 3px black;
        font-weight: bold;
    }
}

@media all and (orientation:landscape) {
    #leftContent, #newsRSS, #breadcrumbs, #faqTabs, #comments, #tag_cloud {
        display: none;
    }

    html {
        background-color: #77556D;
        background-image: url('../images/fond.jpg');
        background-repeat: no-repeat;
        background-position: center -20px;
    }

    body {
        width: 790px;
        margin: 0 auto;
    }

    /* Header */
    #header {
        width: 790px; height: 145px; margin: 0 auto; padding: 2.5em 0 0 0;

        background-image: url('../images/logo.png');
        background-repeat: no-repeat;
        background-position: 150px -20px;
    }
    #header h1 {
        font-size: 48px; padding-top: 5px; line-height: .6; }
    #header h1 a:link, header h1 a:visited {
        color: #444; display: block; margin: 0; text-decoration: none; }
    #header h1 a:hover, header h1 a:active {
        background: none; text-shadow: none; }
    #header #loginBox {
        float: right; top: 0; width: 185px; margin-top: -2.5em; background: #F67600; color: #fff;
        border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px; -webkit-border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px; -moz-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; }
    #header #loginSelection {
        text-align: center; padding: 5px; }
    #header #loginSelection a:link, #header #loginSelection a:visited {
        color: #fff; }
    #header #loginForm {
        position: fixed; width: 175px; z-index: 50; background: #F67600; padding: 5px; margin-top: -5px; border-radius: 5px;
        -moz-border-radius: 5px; -webkit-border-radius: 5px; }
    #header #loginForm form input[type="text"], #header #loginForm form input[type="password"] {
        display: table-cell; height: 14px; border: 1px solid #d7d7d7; font-size: 14px; border-radius: 3px;
        -moz-border-radius: 3px; -webkit-border-radius: 3px; }
    #header #loginForm .error {
        color: #8b0000; padding: 2px; background-color: #d3d3d3; border-radius: 3px; -moz-border-radius: 3px;
        -webkit-border-radius: 3px; font-weight: bold; }

    /* Categories */
    #categories {
        width: 180px; background: #f0f0f0 url(../images/category_background.png) repeat-x; margin-bottom: 15px;
        border: 1px solid #d7d7d7; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }
    #categories ul {
        margin: 0 1px 0 1px; list-style: none outside none; padding: 0; }
    #categories ul li {
        }
    #categories ul li a {
        padding-left: 5px; line-height: 30px; text-decoration: none; display: block; color: #222; }
    #categories ul li a:hover {
        color: #F67600; }
    #categories a.active {
        background-color: #fff; font-weight: bold; }
    #categories .subcat li a {
        padding-left: 10px; background: #f5f5f5; }
    #categories .subcat li li a {
        padding-left: 15px; background: #ffffff; }
    #categories .subcat .active {
        }

    /* Navigation */
    nav {
        height: 30px; width: 788px; background-color: #77556D; border-radius: 3px;
        border: 1px solid #d1afa5;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) inset;
    }
    nav ul {
        margin: 0 15px; width: 100%; list-style: none; }
    nav ul li {
        float: left; }
    nav ul li a, nav ul li a:visited {
        display: block; font: 14px Helvetica, Arial, sans-serif; text-align: center;
        text-decoration: none; color: white;
        padding: 9px 30px;
        text-shadow: 0 2px 3px black;
        font-weight: bold;
    }
    nav ul li a:hover {
        text-decoration: underline;
    }
    
    /* Content */
    .internet-explorer-error {
        margin: auto; padding: 10px; background-color: #f97c7c; color: #222; font-size: 1.571em; text-align: center; }
    #content {
        margin: 15px 0;

        background-color: rgb(244, 234, 191);
        background-color: rgba(244, 234, 191, 0.9);
        border: 2px solid #d1afa5;
        border-radius: 8px;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.75);
        
        width: 784px;
    }
    #leftContent {
        padding-top: 11px; }
    #mainContent {
        padding: 22px; }
    #mainContent h2 {
        padding-bottom: 22px; }
    #mainContent h3 {
        font-size: 16px; }
    #mainContent h3 a {
        text-decoration: none; }
    #mainContent p {
        padding-bottom: 11px; }
    #mainContent p.comment { 
        padding: 5px; background-color: #fff; border: 1px solid #d7d7d7; border-radius: 5px; 
        -moz-border-radius: 5px; -webkit-border-radius: 5px; margin: 5px 0; }
    #mainContent p.comment img {
        float: right; }
    #mainContent p.error { 
        margin: 10px auto; padding: 10px; background-color: #f97c7c; color: #222; border-radius: 5px; 
        -moz-border-radius: 5px; -webkit-border-radius: 5px; }
    #mainContent p.success { 
        margin: 10px auto; padding: 10px; background-color: #7dfd77; color: #222; border-radius: 5px; 
        -moz-border-radius: 5px; -webkit-border-radius: 5px; }
    #mainContent .date { margin-bottom: 11px; font-size: 11px; }
    #mainContent .syntaxhighlighter { padding: 5px; border: 1px dashed black; }
    #mainContent ul li a {
        font-weight: bold;
        text-decoration: none;
        color: #5B4154;
    }
    #mainContent ul li a:hover {
        text-decoration: underline;
    }

    /* phpMyFAQ forms */
    #mainContent form p {
        display: table; margin-bottom: 11px; padding: 0 11px; }
    #mainContent form label {
        display: table-cell; width: 150px; padding-right: 10px; text-align: right; font-weight: bold; vertical-align: top; }
    #mainContent form input[type="text"], #mainContent form input[type="email"], #mainContent form input[type="url"],
    #mainContent form input[type="search"], #mainContent form input[type="password"] {
        display: table-cell; width: 300px; height: 20px; border: 1px solid #d7d7d7; font-size: 14px; border-radius: 5px;
        -moz-border-radius: 5px; -webkit-border-radius: 5px; }
    #mainContent form textarea {
        display: table-cell; width: 300px; border: 1px solid #d7d7d7; font-size: 14px; border-radius: 5px;
        -moz-border-radius: 5px; -webkit-border-radius: 5px; }
    #mainContent form input[type="submit"] {
        }
    #mainContent form input[type="submit"].submit, #mainContent form input[type="submit"].reset  {
        margin-left: 160px; }

    /* FAQs */
    #breadcrumbs span[itemtype] {
        display: -moz-inline-stack; display: inline-block; margin: 0 0 5px; zoom: 1; *display: inline; font-size: 15px; 
        font-weight: bold; }
    #solution_id {
        float: right; padding: 2px; background-color: #fff; border: 1px solid #d7d7d7; border-radius: 5px; 
        -moz-border-radius: 5px; -webkit-border-radius: 5px; }
    #social {
        margin: 0 auto; }
    #social a:link {
        text-decoration: none; }
    #faqTabs {
        width: 100%; margin-bottom: 11px; margin-top: 11px; }
    #faqTabs ul.faqTabNav {
        list-style-type: none; margin: 0; padding: 0; width: 456px; overflow: hidden; border-bottom: 2px solid #d7d7d7; }
    #faqTabs ul.faqTabNav a {
        display: block; width: 100%; margin-right: 5px; font-size: 12px; text-decoration: none; color: #333; }
    #faqTabs ul.faqTabNav li {
        float: left; margin: 0 4px 0 0; padding: 1px; text-align: center; background-color: #fff; 
        border-top: 1px solid #d7d7d7; border-left: 1px solid #d7d7d7; border-right: 1px solid #d7d7d7; 
        border-top-left-radius: 3px; -moz-border-radius-topleft: 3px; border-top-right-radius: 3px; 
        -moz-border-radius-topright: 3px; }
    #faqTabs ul.faqTabNav li:hover {
        background: #d7d7d7; }
    .faqTabContent {
        position: absolute; display: none; z-index: 100; background-color: #fff; padding: 5px; width: 444px;
        opacity:0.9; color: #222; border: 1px solid transparent;
        border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px; border-bottom-right-radius: 5px; 
        -moz-border-radius-bottomright: 5px; }
    div.rating-cancel, div.star-rating {
        float: left; width: 17px; height: 15px; text-indent: -999em; cursor: pointer; display: block;
        background: transparent; overflow: hidden }
    div.rating-cancel, div.rating-cancel a {
        background: url(../../../images/delete.gif) no-repeat 0 -16px }
    div.star-rating, div.star-rating a {
        background: url(../../../images/star.gif) no-repeat 0 0px }
    div.rating-cancel a, div.star-rating a {
        display:block; width:16px; height:100%; background-position:0 0px; border:0 }
    div.star-rating-on a {
        background-position:0 -16px !important }
    div.star-rating-hover a {
        background-position:0 -32px }
    #votingstars {
        margin: auto; }
    #votingstars span {
        padding-left: 11px; }
    #tagcloud-content .relevance1 { font-size: 80%; }
    #tagcloud-content .relevance2 { font-size: 100%; }
    #tagcloud-content .relevance3 { font-size: 120%; }
    #tagcloud-content .relevance4 { font-size: 140%; }
    #tagcloud-content .relevance5 { font-size: 160%; }

    /* Tables */
    table.openquestions {
        border-collapse: collapse; margin-bottom: 22px; }
    table.openquestions td {
        padding: 4px; border-top: 1px solid transparent; border-bottom: 1px solid #333; }

    /* Right panel */
    aside {
        display: table-cell; width: 300px; padding-top: 5px; }
    aside section {
        margin: 5px 0 0 5px; padding: 5px 11px; background: url(../images/search_background.png) repeat-x;
        border: 1px solid #d7d7d7; border-radius: 11px; -moz-border-radius: 11px; -webkit-border-radius: 11px; }
    aside section h3 {
        font-size: 16px; }
    aside section ul li a, aside section ul li a:visited {
        display: block; }
    aside section ul li a:hover {
        text-decoration: underline; }
    aside section #social {
        width: 250px; }

    #searchBox {
        background: url(../images/search_background.png) repeat-x; overflow: hidden; padding: 20px; margin-bottom: 22px;
        width: 416px; color: #222; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; }
    #searchBox input[type=search] {
        width: 300px; height: 1.66em; font-size: 1.33em; margin-bottom: 5px; margin-right: 10px;
        border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }
    #searchBox a {
        clear: both; color: #222; text-decoration: none; }
    #searchBox a.help {
        margin-right: 10px; padding: 0 12px 0 0; background: url(../images/arrow.gif) no-repeat scroll right 55% transparent; }
    #searchBox a.help:hover {
        text-decoration: underline; }

    #mainContent form .captchaImage, #mainContent form .captchaInfo {
        margin-left: 170px; position: relative; }
    #mainContent form .captchaRefresh {
        position: absolute; width: 100px; height: 20px; bottom: 5px; z-index: 2; opacity: 0.8;
        background-color: #eeeeee; text-align: center; line-height: 20px; display: none; cursor: pointer; }
    #mainContent form .captchaImage:hover .captchaRefresh {
        display: block; }
    #mainContent form .captchaRefresh a {
        text-decoration: none; color: #000000; }
    #mainContent form input.captcha {
        vertical-align: top; height: 40px; width: 120px; text-valign: middle; font-size: 30px; float: right; }
    #debug_main {
        margin: auto; width: 720px; background-color: #fff; padding: 150px 10px 10px; }

    /* Footer */
    footer {
        width: 790px; background-color: #77556D; border-radius: 3px;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }
    footer div {
        margin: 0 auto; padding: 11px; color: #777; }
    #copyrightnote {
        color: #fff; margin: auto; text-align: right; padding-right: 10px; }
    #copyrightnote a:link, #copyrightnote a:visited {
        color: #F67600; }
    #copyrightnote a:hover {
        color: #fff; }
}