/**
 * UI style of Appnr
 *
 * AUTHOR: Akira Ohgaki <akiraohgaki@gmail.com>
 */

/**
 * Redefines
 */
body {
    font-size: 10pt;
    color: #404040;
    background-color: #ffffff;
}
a {
    color: #003464;
}
a:hover {
    color: #be2601;
}

/**
 * Layout
 *
 *        960
 * 200|15|530|15|200
 */
#container {
    width: 960px;
    margin: 0 auto;
}
    #header {
        clear: both;
    }
    #nav {
        clear: both;
        width: 200px;
        margin: 15px 15px 15px 0;
        float: left;
    }
    #article {
        width: 530px;
        margin: 15px 15px 15px 0;
        float: left;
    }
    #aside {
        width: 200px;
        margin-top: 15px;
        float: left;
    }
    #footer {
        clear: both;
        margin-bottom: 15px;
    }
#external {
    display: none;
}

/**
 * Section
 */
.section {
}

/**
 * Widget containers
 */
.widget {
    margin-bottom: 1em;
    border: 1px solid #dddddd;
}
.widget-header {
    background: #f5f5f5 url("shade-up.png") repeat-x left bottom;
    padding: 0.3em 1em;
}
    .widget-header * {
        font-size: 100%;
    }
.widget-content {
}
.widget-footer {
    background: #ffffff url("shade-down.png") repeat-x left top;
    padding: 0.3em 1em;
}

/**
 * Glay widget containers
 */
.widget-glay {
    color: #ffffff;
    margin-bottom: 1em;
}
    .widget-glay .widget-header {
        background: #c0c0c0;
    }
    .widget-glay .widget-content {
        background-color: #c0c0c0;
    }
        .widget-glay .widget-content a {
            color: #ffffff;
        }
        .widget-glay .widget-content a:hover {
            color: #ffffff;
            background-color: #808080;
        }
    .widget-glay .widget-footer {
        background: #c0c0c0;
    }

/**
 * Floating
 */
.float:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.float-left {
    float: left;
}
.float-right {
    float: right;
}
.clear {
    clear: both;
}

/**
 * Text alignment
 */
.align-left {
    text-align: left;
}
.align-center {
    text-align: center;
}
.align-right {
    text-align: right;
}
.align-top {
    vertical-align: text-top;
}
.align-middle {
    vertical-align: middle;
}
.align-bottom {
    vertical-align: text-bottom;
}

/**
 * Vertical links list for ul/ol element
 */
.links-list {
    list-style: none;
    margin: 0;
}
    .links-list li {
        border-top: 1px dotted #dddddd;
    }
        .links-list li a {
            display: block;
            color: #404040;
            padding: 0.3em 1em;
        }
        .links-list li a:hover {
            background-color: #f5f5f5;
        }

/**
 * Horizontal links list for ul/ol element
 */
.links-list-hr {
    list-style: none;
    margin: 0;
    padding: 0.2em;
}
    .links-list-hr li {
        display: inline;
        margin: 0 0.2em;
    }
        .links-list-hr li a {
            color: #404040;
            padding: 0.2em 0.3em;
        }
        .links-list-hr li a:hover {
            background-color: #f5f5f5;
        }

/**
 * Highlight
 */
.highlight {
    font-weight: bold;
    background-color: #ffff80;
}

/**
 * Buttons
 */
.button-green, 
.button-blue, 
.button-red, 
.button-orange {
    color: #ffffff;
    font-weight: bold;
    padding: 0.4em 1em;
}
.button-green {
    background: #339900 url("shade-up.png") repeat-x left bottom;
    border: 2px solid #267300;
}
.button-blue {
    background: #0169c9 url("shade-up.png") repeat-x left bottom;
    border: 2px solid #014f97;
}
.button-red {
    background: #fd3301 url("shade-up.png") repeat-x left bottom;
    border: 2px solid #be2601;
}
.button-orange {
    background: #fb8b00 url("shade-up.png") repeat-x left bottom;
    border: 2px solid #bc6800;
}
.button-green:hover, 
.button-blue:hover, 
.button-red:hover, 
.button-orange:hover {
    color: #ffffff;
    background: #0169c9 url("shade-down.png") repeat-x left top;
    border: 2px solid #014f97;
}

/**
 * Order icons
 */
.icon-order-asc, 
.icon-order-desc {
    font-weight: bold;
    padding-right: 1.2em;
}
.icon-order-asc {
    background: transparent url("order-asc.png") no-repeat right center;
}
.icon-order-desc {
    background: transparent url("order-desc.png") no-repeat right center;
}

/**
 * Rating icons
 */
.icon-rating-0, 
.icon-rating-1, 
.icon-rating-2, 
.icon-rating-3, 
.icon-rating-4, 
.icon-rating-5 {
    font-size: 83%;
    padding-left: 7.5em;
}
.icon-rating-0 {
    background: transparent url("rating-0.png") no-repeat left center;
}
.icon-rating-1 {
    background: transparent url("rating-1.png") no-repeat left center;
}
.icon-rating-2 {
    background: transparent url("rating-2.png") no-repeat left center;
}
.icon-rating-3 {
    background: transparent url("rating-3.png") no-repeat left center;
}
.icon-rating-4 {
    background: transparent url("rating-4.png") no-repeat left center;
}
.icon-rating-5 {
    background: transparent url("rating-5.png") no-repeat left center;
}

/**
 * Messages
 */
.message-information, 
.message-important {
    color: #202020;
    padding: 1em 1em 1em 6em;
}
.message-information {
    background: transparent url("messages/information.png") no-repeat 1em center;
}
.message-important {
    background: transparent url("messages/important.png") no-repeat 1em center;
}
    .message-information p, 
    .message-important p {
        margin: 0.4em 0;
    }

/**
 * Global navigation
 */
#global-nav {
    background: #808080 url("shade-up.png") repeat-x left -25px;
    padding: 1em 2em;
}
    #global-nav h1 {
        width: 110px;
        height: 24px;
        margin-right: 130px;
    }
        #global-nav h1 a {
            display: block;
            background: transparent url("appnr.png") no-repeat center center;
            width: 110px;
            height: 24px;
        }
            #global-nav h1 a span {
                display: none;
            }
    #global-nav form {
        width: 400px;
        height: 24px;
    }
        #global-nav form legend {
            display: none;
        }
        #global-nav form p {
            background-color: #ffffff;
            width: 400px;
            height: 24px;
        }
            #global-nav form p input {
                font-size: 140%;
                font-weight: bold;
                width: 360px;
                height: 22px;
                margin: 1px 0 0 5px;
            }
            #global-nav form p button {
                background: transparent url("search.png") no-repeat center center;
                width: 22px;
                height: 22px;
                margin-top: 1px;
            }
                #global-nav form p button span {
                    display: none;
                }

/**
 * Preferences
 */
#preferences {
    display: none;
    background: #ffffff url("shade-up.png") repeat-x left -25px;
    margin: 0 12em;
    padding: 1em 2em;
    border: 4px solid #808080;
    border-top-width: 0;
}
    #preferences .float-left {
        margin-right: 4em;
    }
        #preferences select {
            border: 1px solid #cccccc;
        }
.preferences-toggler {
    font-size: 83%;
    font-weight: bold;
    color: #ffffff;
    background-color: #606060;
    padding: 0.4em 1em;
}
.preferences-toggler:hover {
    color: #ffffff;
    background-color: #202020;
}

/**
 * Categories
 */
#categories ul li a[href] {
    font-weight: bold;
    padding: 0.5em 0 0.5em 3.5em;
    background: transparent url("../css-special/categories/all.png") no-repeat 1em center;
}
#categories ul li a[href*="category/net"] {
    background: transparent url("categories/net.png") no-repeat 1em center;
}
#categories ul li a[href*="category/p2p"] {
    background: transparent url("categories/p2p.png") no-repeat 1em center;
}
#categories ul li a[href*="category/game"] {
    background: transparent url("categories/game.png") no-repeat 1em center;
}
#categories ul li a[href*="category/audiovideo"] {
    background: transparent url("categories/audiovideo.png") no-repeat 1em center;
}
#categories ul li a[href*="category/player"] {
    background: transparent url("categories/player.png") no-repeat 1em center;
}
#categories ul li a[href*="category/graphic"] {
    background: transparent url("categories/graphic.png") no-repeat 1em center;
}
#categories ul li a[href*="category/office"] {
    background: transparent url("categories/office.png") no-repeat 1em center;
}
#categories ul li a[href*="category/editor"] {
    background: transparent url("categories/editor.png") no-repeat 1em center;
}
#categories ul li a[href*="category/devel"] {
    background: transparent url("categories/devel.png") no-repeat 1em center;
}
#categories ul li a[href*="category/util"] {
    background: transparent url("categories/util.png") no-repeat 1em center;
}
#categories ul li a[href*="category/emulator"] {
    background: transparent url("categories/emulator.png") no-repeat 1em center;
}
#categories ul li a[href*="category/admin"] {
    background: transparent url("categories/admin.png") no-repeat 1em center;
}
#categories ul li a[href*="category/desktop"] {
    background: transparent url("categories/desktop.png") no-repeat 1em center;
}
#categories ul li a[href*="category/education"] {
    background: transparent url("categories/education.png") no-repeat 1em center;
}
#categories ul li a[href*="category/science"] {
    background: transparent url("categories/science.png") no-repeat 1em center;
}
#categories ul li a[href*="category/accessibility"] {
    background: transparent url("categories/accessibility.png") no-repeat 1em center;
}
#categories ul li a[href*="category/third-party"] {
    background: transparent url("categories/third-party.png") no-repeat 1em center;
}
#categories ul li a[href*="category/additional"] {
    background: transparent url("categories/additional.png") no-repeat 1em center;
}
#categories ul li a[href*="category/codec"] {
    background: transparent url("categories/codec.png") no-repeat 1em center;
}
#categories ul li a[href*="category/xul-extension"] {
    background: transparent url("../css-special/categories/xul-extension.png") no-repeat 1em center;
}
#categories ul li a[href*="category/gnome"] {
    background: transparent url("../css-special/categories/gnome.png") no-repeat 1em center;
}
#categories ul li a[href*="category/kde"] {
    background: transparent url("../css-special/categories/kde.png") no-repeat 1em center;
}
#categories ul li a[href*="category/xfce"] {
    background: transparent url("../css-special/categories/xfce.png") no-repeat 1em center;
}
#categories ul li a[href]:hover {
    background-color: #f5f5f5;
}

/**
 * Packages list
 */
.packages-list {
    min-height: 3.5em;
    padding: 1em;
    border-top: 1px dotted #dddddd;
}
.packages-list:hover {
    background-color: #f5f5f5;
}
.packages-list-main {
    width: 75%;
}
    .packages-list-main h3 img {
        margin-right: 0.4em;
    }
    .packages-list-main h3 strong {
        font-size: 83%;
    }
    .packages-list-main p {
        margin-left: 2.5em;
    }
.packages-list-sub {
    width: 20%;
}
    .packages-list-sub .toggleable-content1 {
        display: block;
        margin-top: 0.2em;
    }
    .packages-list:hover .toggleable-content1 {
        display: none;
    }
    .packages-list-sub .toggleable-content2 {
        display: none;
    }
    .packages-list:hover .toggleable-content2 {
        display: block;
        margin-top: 1em;
    }

/**
 * Package description
 */
.package-description {
    padding: 1em;
}
    .package-description h3 {
        margin-bottom: 1em;
    }
        .package-description h3 img {
            margin-right: 0.4em;
        }
.package-description-highlight {
    background-color: #bfd9f1;
}
.package-description-screenshot {
    font-size: 83%;
    margin: 1.5em;
}
.package-description-menu {
    margin: 5em 1.5em 1em 1em;
}
.package-description-main {
    margin: 1em 0;
}
    .package-description-main h4 {
        margin-bottom: 1em;
    }
.package-description-sub {
    color: #403323;
    background-color: #dfd9d1;
    margin: 1em 0;
    padding: 1em;
}
    .package-description-sub dl {
        margin: 0;
    }
        .package-description-sub dl dt {
            width: 20%;
        }
        .package-description-sub dl dd {
            width: 75%;
        }

/**
 * *************************************
 * Advanced style
 * *************************************
 */

/**
 * Header always on top
 */
#header {
    width: 960px;
    position: fixed;
    left: auto;
    top: 0;
    z-index: 200;
}
#nav, #article, #aside {
    margin-top: 65px;
}

/**
 * Corner radius
 */
.radius {
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
}
.radius-top {
    -moz-border-radius-topleft: 7px;
    -moz-border-radius-topright: 7px;
    -webkit-border-top-left-radius: 7px;
    -webkit-border-top-right-radius: 7px;
}
.radius-bottom {
    -moz-border-radius-bottomleft: 7px;
    -moz-border-radius-bottomright: 7px;
    -webkit-border-bottom-left-radius: 7px;
    -webkit-border-bottom-right-radius: 7px;
}

/**
 * *************************************
 * Fix for IE
 * *************************************
 */

/**
 * Auto margin fix
 */
body {
    text-align: center;
}
#container {
    text-align: left;
}

/**
 * Clear fix
 */
.float {
    zoom: 100%;
}

