/*
    Responsible for stuff like colors and borders. Stuff like spacing goes in layout.css
    and mobile.css
*/

* {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-touch-callout: none;
}

html {
    font-size: 100%; 
    -webkit-text-size-adjust: 100%; 
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -ms-touch-action: manipulation; /*remove 300ms touch delay windows phone */
    touch-action: manipulation;
}

body {
    position: absolute;
    height: 100%;
    width: 100%;
    margin: 0px;
    font-family: "Open Sans", "Helvetica Neue", "Arial", sans-serif;
    background: #f9f9f9;
    color: #5d5d5d;
}

h1 {
    font-size: xx-large;
    font-variant: small-caps;
}

h2 {
    font-size: 130%;
    font-weight: 700;
}

h3 {
    font-size: 120%;
    font-weight: 600;
}

p.subtitle {
    margin-top: -1em;
    margin-left: 0.5em;
}

ul.messages {
    padding: 0 1em;
    
}

ul.messages li {
    list-style: none;
    text-align: left;
}

.empty {
    color: grey;
    font-style: italic;
}

li.empty {
    list-style: none;
}

ul.unbulleted {
    padding: 0;
}

ul.unbulleted li {
    list-style: none;
}

.success {
    color: #1fab6e;
    border: 1px solid #1fab6e;
    background: rgba(31,171,110,0.1);
    padding: 10px 15px;
    border-radius: 10px;
    margin: 0 0 8px 0;
    font-weight: bold;

}
.error {
    color: #e93e3e;
    border: 1px solid #e93e3e;
    background: rgba(233,62,62,0.1);
    padding: 10px 15px;
    border-radius: 10px;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.info {
    color: #2DBAE2;
    border: 1px solid #2DBAE2;
    background: rgba(45,186,226,0.1);
    padding: 10px 15px;
    border-radius: 10px;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.action {
    cursor: pointer;
}

.big {
    font-size: large;
}

ul.big li {
    line-height: 180%;
    padding-left: 1em;
}

input[type=checkbox].big {
    height: 1.5em;
    width: 1.5em;
}

a {
    color:#2e9fff;
    text-decoration: none;
    border-bottom: 1px dotted;
}

a:hover, a:active {
    color: #316cb1;
}

div.included_overview {
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
}

div.included_overview td {
    word-wrap: break-word;
}

div.included_overview table.parameters th:nth-child(1) {
    width: 8em;
}

div.toprightbox {
    position: absolute;
    top: 50px;
    right: 0px;
    
    background: white;
    border: 1px solid black;
    max-width: 550px;
    padding: 5px 10px;
}

@media print {
    * {    
        background: white !important;    
        color: black !important;    
        text-shadow: none  !important;    
        -ms-filter: none !important;
        -webkit-filter: none !important;
        filter: none !important;    
        -ms-filter: none !important;
    }
    
    pre, blockquote {    
        border: 1px solid #999;    
        page-break-inside: avoid;
    }
    
    thead {
        display: table-header-group;
    }
    
    body > img#logo {
        display: none; 
    }

    /* css-discuss.incutio.com/wiki/Printing_Tables */
    tr, img {
        page-break-inside: avoid;
    }

    @page {
        margin: 0.5cm;
    }
    
    p, h2, h3 {
        orphans: 3;    
        widows: 3;
    }
    
    h2 {
        border: none;
    }
    
    h2, h3 {    
        page-break-after: avoid;
    }
  
    .hide-on-print {    
        display: none !important;
    }
  
    .show-on-print {    
        display: block !important;
    }
    
    .show-table-row-on-print {
        display: table-row !important;
    }
  
    nav#menu, body > button {
        display: none;
    }
    
    div#sidemenu {
        display: none;
    }
  
    #content {
        margin: 0 !important;
    }
}