/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
    background: url(/img/kindajean.png);
    background-attachment: fixed;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body{
    color: #303030;
}


/* menu::base */
nav {
    height:41px;
    background:#404040;  
    width: 80%;
    margin: 0 auto;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    float: left;
}
nav ul.menu {
    padding-left: 5px;
}

nav li {
    position: relative;
    z-index: 9;
    margin: 0;
    padding: 0 5px 0 0;
    display: block;
    float: left;
}
nav li:hover>ul {
    left: -2px;
}

nav a {
    position: relative;
    z-index: 10;
    height: 41px;
    display: block;
    float: left;
    line-height: 41px;
    text-decoration: none;
}
nav a:hover, nav a:hover span { color: #fff; }
nav li.active a {color: #fff;}

nav span {
    display: block;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: 95% 0;
}
nav ul ul a.parent span {
    background-position:95% 8px;
    background-image: url(navigation_images/item-pointer.gif);
}
nav ul ul a.parent:hover span {
    background-image: url(navigation_images/item-pointer-mover.gif);
}

/* menu::level1 */
nav a {
    padding: 0 10px 0 10px;
    line-height: 43px;
    color:#303030;
    text-shadow: -1px -1px 0px #101010, 1px 1px 0px #505050;
    font-size: 1.7em;
}
nav span {
    margin-top: 5px;
}/**@replace#1*/
nav li.last { background: none; }

/* menu::level2 */
nav ul ul li { background: none; }
nav ul ul {
    position: absolute;
    top: 38px;
    left: -999em;
    width: 163px;
    padding: 5px 0 0 0;
    background: #7DB9E8;
    margin-top:1px;
}
nav ul ul a {
    padding: 0 0 0 15px;
    height: auto;
    float: none;
    display: block;
    line-height: 24px;
}
nav ul ul span {
    margin-top: 0;
    padding-right: 15px;
    _padding-right: 20px;
    color: rgb(169,169,169);
}
nav ul ul a:hover span {
    color: #fff;
}
nav ul ul li.last { background: none; }
nav ul ul li {
    width: 100%;
}

nav li a img{
    height: 72%;
    margin-top: -9px;
}

nav form{
    float: right;
    margin-top: 8px;
    margin-right: 8px;
}

table.display thead tr th{
    background: #fff;
    border-right: solid 1px #000;
}

table.display thead tr th:last-child{
    border-right: none;
}

table.display tr:nth-child(even){
    background: #fff;
}

table.display tr:nth-child(odd){
    background: rgba(255,255,255,0.3);
}

table.display td{
    padding: 0 5px;
    vertical-align: top;
}
.display td:not(.cover){
    padding-top: 5%;
}



table.display .cover img,
table.display .info p,
table.display td.info{
    transition: width 1s;
    
    transition-property: all;
    -moz-transition-property: all; /* Firefox 4 */
    -webkit-transition-property: all; /* Safari and Chrome */
    -o-transition-property: all; /* Opera */
    
    transition-duration: 1s;
    -moz-transition-duration: 1s; /* Firefox 4 */
    -webkit-transition-duration: 1s; /* Safari and Chrome */
    -o-transition-duration: 1s; /* Opera */
    z-index: 0;
}
table.display td{
    position: relative;
}

table.display h3{
    margin: 0;
}

table.display .cover img{
    width: 100px;
    padding: 0 50px;
}
table.display td.cover{
    padding: 0;
}

table.display .cover a{
    position: relative;
}

table.display .cover:hover a img{
    -webkit-filter: grayscale(100%) contrast(120%);
}

table.display .cover svg{
    position: absolute !important;
    z-index: 1;
    margin: 38px 49px;
    display: block;
    opacity: 0;
    transition-property: all;
    -moz-transition-property: all; /* Firefox 4 */
    -webkit-transition-property: all; /* Safari and Chrome */
    -o-transition-property: all; /* Opera */
    
    transition-duration: 1s;
    -moz-transition-duration: 1s; /* Firefox 4 */
    -webkit-transition-duration: 1s; /* Safari and Chrome */
    -o-transition-duration: 1s; /* Opera */
}


table.display .cover:hover a svg{
    opacity: 1;
}

table.display tr:hover .cover a svg,
table.display tr.downloadsActive .cover a svg,
table.display tr.eventsActive .cover a svg{
    margin: 110px 49px;
}

table.display tr:hover .cover img,
table.display tr.downloadsActive .cover img,
table.display tr.eventsActive .cover img{
    width: 200px;
    padding: 0 0px;
}

table.display tr .info p{
    height: 0;
    overflow: hidden;
    margin: 0.2em 0 0 0;
}

table.display tr:hover .info p,
table.display tr.downloadsActive .info p,
table.display tr.eventsActive .info p{
    height: 200px;
    overflow: scroll;
}

table.display tr:hover td.info,
table.display tr.downloadsActive td.info,
table.display tr.eventsActive td.info{
    padding-top: 0%;
}

table.display span.genre{
    position: absolute;
    bottom: 7px;
    font-size: 80%;
}

.actions{
    line-height: 0px;
    width: 75px;
}

table.display a{
    text-decoration: none;
    color: #303030;
}
table.display a:hover{
    text-decoration: underline;
}

.actions img {
    padding: 5px;
    border: solid 2px grey;
    margin: 2px;
    border-radius: 7px;
    background: rgb(30,87,153); /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+CiAgICA8c3RvcCBvZmZzZXQ9IjAlIiBzdG9wLWNvbG9yPSIjMWU1Nzk5IiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNTAlIiBzdG9wLWNvbG9yPSIjMjk4OWQ4IiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iNTElIiBzdG9wLWNvbG9yPSIjMjA3Y2NhIiBzdG9wLW9wYWNpdHk9IjEiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iIzdkYjllOCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
background: -moz-linear-gradient(-45deg,  rgba(30,87,153,1) 0%, rgba(41,137,216,1) 50%, rgba(32,124,202,1) 51%, rgba(125,185,232,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(50%,rgba(41,137,216,1)), color-stop(51%,rgba(32,124,202,1)), color-stop(100%,rgba(125,185,232,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(-45deg,  rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(-45deg,  rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(-45deg,  rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* IE10+ */
background: linear-gradient(135deg,  rgba(30,87,153,1) 0%,rgba(41,137,216,1) 50%,rgba(32,124,202,1) 51%,rgba(125,185,232,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1e5799', endColorstr='#7db9e8',GradientType=1 ); /* IE6-8 fallback on horizontal gradient */

}


table.display .actions input,
table.display .status input{
    width: 100%;
    margin-top: 0px;
    transition-property: all;
    -moz-transition-property: all; /* Firefox 4 */
    -webkit-transition-property: all; /* Safari and Chrome */
    -o-transition-property: all; /* Opera */
    
    transition-duration: 1s;
    -moz-transition-duration: 1s; /* Firefox 4 */
    -webkit-transition-duration: 1s; /* Safari and Chrome */
    -o-transition-duration: 1s; /* Opera */
}

table.display .status select{
    width: 150px;
}

table.display tr:hover .actions input,
table.display tr.downloadsActive .actions input,
table.display tr.eventsActive .actions input,
table.display tr:hover .status input,
table.display tr.downloadsActive .status input,
table.display tr.eventsActive .status input{
    margin-top: 20px;
}
table.display tr:hover .actions input:first-child,
table.display tr.downloadsActive .actions input:first-child,,
table.display tr.eventsActive .actions input:first-child,
table.display tr.downloadsActive .events input:first-child,
table.display tr.eventsActive .events input:first-child{
    margin-top: 0;
}

table.display .downloads>td
table.display .events>td{
    padding: 0;
}

table.display .downloads>td table,
table.display .events>td table{
    width: 100%;
}

table.display .downloads>td table tr:nth-child(odd),
table.display .events>td table tr:nth-child(odd){
    background: rgba(0,0,0,0.3);
}


table.display .downloads *,
table.display .events *{
    transition-property: all;
    -moz-transition-property: all; /* Firefox 4 */
    -webkit-transition-property: all; /* Safari and Chrome */
    -o-transition-property: all; /* Opera */
    
    transition-duration: 1s;
    -moz-transition-duration: 1s; /* Firefox 4 */
    -webkit-transition-duration: 1s; /* Safari and Chrome */
    -o-transition-duration: 1s; /* Opera */
}

table.display .downloads>td,
table.display .downloads>td table td,
table.display .events>td,
table.display .events>td table td{
    padding: 0;
    height: 0;
    line-height: 0;
    overflow: hidden;
}

table.display .downloads>td table td,
table.display .events>td table td{
    padding: 0 4px;
}
table.display .downloadsActive.downloads,
table.display .downloadsActive.downloads>td table td{
    line-height: 25px;
}

table.display .eventsActive.events,
table.display .eventsActive.events>td table td{
    line-height: 25px;
}
table.display .downloadsActive.downloads>td table tr:last-child td{
    border-bottom: 1px solid;
}
table.display .eventsActive.events>td table tr:last-child td{
    border-bottom: 1px solid;
}
table.display .downloads form,
table.display .events form{
    height: 0;
    overflow: hidden;
    text-align: right;
}
table.display .downloadsActive.downloads form{
    height: 33px;
    padding-top: 8px;
}

#container {
    width: 800px;
    margin: 30px auto;
    padding: 0;
}
 
#container.settings li:nth-child(odd) label{
    background: #fff;
}
 
#container.settings input[type="number"],
#container.settings input[type="text"],
#container.settings input[type="password"],
#container.settings label{
    width: 300px;
    display: inline-block;
    padding-left: 3px;
}
#container.settings li.path input[type="text"]{
    width: 203px;
}

#container.settings li:not(.human) label{
    text-transform: capitalize;
}

#container.settings li{
    list-style-type: disc;
}


#container.settings .ui-widget-content{
    background: none;
}

#container.settings h2 span{
    font-size: 80%;
}

#container.settings h2 span.type{
    float: right;
    margin-top: 5px;
}

#container.settings h2 span.version{
    opacity: 0;
    transition-property: all;
    -moz-transition-property: all; /* Firefox 4 */
    -webkit-transition-property: all; /* Safari and Chrome */
    -o-transition-property: all; /* Opera */
    
    transition-duration: 0.5s;
    -moz-transition-duration: 0.5s; /* Firefox 4 */
    -webkit-transition-duration: 0.5s; /* Safari and Chrome */
    -o-transition-duration: 0.5s; /* Opera */
}

#container.settings h2.ui-accordion-header-active span.version{
    opacity: 1;
}

.browserDialog{
    position: fixed !important;
}

#fileBrowserDialog ul{
    list-style: none;
    padding: 0;
}
#fileBrowserDialog ul li a span.ui-icon {
    margin: 0 4px;
    float: left;
}
#fileBrowserDialog ul li a {
    display: block;
}
#fileBrowserDialog ul li a:hover {
    color: #000;
    background: none;
}

.setting-placeholder{
    height: 3px;
}

footer{
    margin-top: 30px;
}

footer a,
footer p{
    font-size: 90%;
    color: #000;
    text-decoration: none;
}
footer a:hover{
    text-decoration: underline;
}

.hint{
    color: #555;
    text-shadow: -1px -1px white, 1px 1px #333;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
