
/* general -------------------------------------------------------------------------------------- */

body
{
    font-family: "Arial", sans-serif;
    font-size: 10pt;
    background-color: white;
    padding: 0;
    margin: 0;
}
a { color: #2222ff; }

h1, h2, h3, h4, h5 { font-family: "Arial"; margin: 0; }

p, form { margin: 0; }

#mainContainer
{
    margin: 60px auto;
    width: 640px;
}

#log
{
    display: none;
    margin-top: 30px;
    height: 150px;
    overflow: auto;
}

#admin
{
    width: 30em;
    text-align: center;
    padding: 10px;
    color: white;
    margin: auto;
    background-color: #999;
    -moz-border-radius:    10px;
    -webkit-border-radius: 10px;
    -khtml-border-radius:  10px;
    border-radius:         10px;
}

#admin p { margin-bottom: 10px; }
#admin p.options { margin-bottom: 0px; }

#loginForm
{
    padding: 20px;
    background-color: #999;
    width: 20em;
    margin: 0 auto;
    color: white;
    -moz-border-radius:    10px;
    -webkit-border-radius: 10px;
    -khtml-border-radius:  10px;
    border-radius:         10px;
    text-align: center;
}

#loginForm p
{
    margin-bottom: 10px;
}

#logout
{
    padding: 5px;
    background-color: #999;
    width: 6em;
    text-align: center;
    -moz-border-radius:    5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius:  5px;
    border-radius:         5px;
}

#showVideoForm
{
    padding: 10px;
    background-color: #999;
    width: 20em;
    margin: 0 auto;
    color: white;
    -moz-border-radius:    10px;
    -webkit-border-radius: 10px;
    -khtml-border-radius:  10px;
    border-radius:         10px;
}

/* video player --------------------------------------------------------------------------------- */

#videoContainer
{
    position: absolute;
    top: -900px;
    background-color: purple;
    overflow: hidden;
}

.videoPlayer
{
    display: none;
    margin: 0 auto;
    position: relative;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
}

.videoPlayer .videoArea
{
    background-color: black;
}

.videoPlayer .videoNotes
{
    background-color: #999;
    margin-top: 10px;
    padding: 10px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
}

.videoPlayer .controlBar
{
    height: 25px;
    background-image: url('../images/control-bg.png');
    border-bottom: 1px solid #555;
    /* FIXME: add khtml prefix */
    -webkit-border-bottom-right-radius: 5px;
    -webkit-border-bottom-left-radius:  5px;
    -moz-border-radius-bottomright:     5px;
    -moz-border-radius-bottomleft:      5px;
    border-bottom-right-radius:         5px;
    border-bottom-left-radius:          5px;
    padding-top: 2px;
    padding-left: 5px;
    padding-right: 5px;
    color: white;
    position: relative;
}

.videoPlayer .controlBar .toggle { cursor: pointer; float: left; width: 20px; height: 24px; }
.videoPlayer .controlBar .pause  { background-image: url('../images/control-pause.png'); }
.videoPlayer .controlBar .play   { background-image: url('../images/control-play.png'); }

.videoPlayer .controlBar .stop
{
    cursor: pointer;
    float: left;
    width: 20px;
    height: 24px;
    background-image: url('../images/control-stop.png');
}

.videoPlayer .controlBar .toggleMute
{
    cursor: pointer;
    float: right;
    width: 22px;
    height: 24px;
    background-image: url('../images/control-volume.png');
}

.videoPlayer .progress
{
    position: absolute;
    left: 45px;
    right: 170px;
    top: 4px;
    cursor: pointer;
}

.videoPlayer .volume
{
    width: 65px;
    float: right;
    margin-top: 2px;
    cursor: pointer;
}

.videoPlayer .progress .wrapper,
.videoPlayer .volume .wrapper
{
    margin: 5px;
    height: 9px;
    background-color: #444444;
    border: 1px solid #606060;
    border-bottom-color: #e9e9e9;
    position: relative;
    overflow: hidden; /* prevents IE6 from ignoring height */
}

.videoPlayer .progress .downloaded
{
    height: 9px;
    width: 0%;
    background-image: url('../images/control-downloaded-bg.png');
}

.videoPlayer .progress .played
{
    height: 9px;
    width: 0%;
    position: absolute;
    top: 0;
    background-image: url('../images/control-played-bg.png');
}

.videoPlayer .volume .setting
{
    height: 9px;
    width: 100%;
    background-image: url('../images/control-played-bg.png');
}


.videoPlayer .controlBar .status
{
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0px 1px 1px #222;
    position: absolute;
    top: 7px;
    right: 92px;
    width: 80px;
    height: 15px;
    overflow: hidden;
}


/* video list ----------------------------------------------------------------------------------- */

#videoList
{
    margin-bottom: 20px;
    background-color: #999;
    zoom: 1; /* Fixes dissappearing bottom margin in IE6 */
}
#videoList.videoListSingle
{
    margin-top: 100px;
}

#videoList, #videoUpload
{
    padding: 20px;
    padding-bottom: 1px;
    border-radius: 15px;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    -khtml-border-radius: 15px;
}

#videoList .videoItem:hover
{
    background-color: #eee;
}

#videoList .videoItem
{
    margin-bottom: 20px;
    padding: 10px;
    background-color: #ccc;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -khtml-border-radius: 10px;
    zoom: 1; /* Fixes .videoItems not being rendered correctly in IE6 */
}

#videoList .videoItem h2 { font-size: 1.3em; }

#videoList .videoItem .admin
{
    float: right;
    padding-left: 0 !important;
    text-align: right;
    width: 18em;
}

#videoList .videoItem .date
{
    font-size: 0.8em;
    color: #555;
    margin-top: 5px;
}

#videoList .videoItem .converting
{
    font-size: 0.8em;
    font-style: italic;
    color: red;
}

#videoList .videoItem .error
{
    font-size: 0.8em;
    font-style: italic;
    color: red
}

#videoList .videoItem .contents h2,
#videoList .videoItem .contents p
{
    padding-left: 170px;
}

#videoList .videoItem hr
{
    clear: both;
    height: 0;
    width: 0;
    border: none;
    margin: 0;
    padding: 0;
}

.videoItem .thumbnail
{
    background-color: black;
    float: left;
    margin-right: 10px;
    border: 2px solid #888;
    border-top: none;
    border-left: none;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    cursor: pointer;
}

.videoItem .thumbnail .playButton
{
    width: 60px;
    height: 60px;
    background-image: url('../images/thumbnail-play-button.png');
    margin: 0px auto;
    margin-top: 15px;
}



/* upload status -------------------------------------------------------------------------------- */

#uploadFrame
{
    display: none;
}

#uploadStatus,
#uploadFinished
{
    display: none;
    padding: 0;
    margin: 0 auto;
    margin-bottom: 20px;
    width: 70%;
}

#uploadStatus .message,
#uploadFinished .message
{
    margin-bottom: 0.5em;
}

#uploadStatus .progress
{
    position: relative;
    border: 2px solid #999;
    background-color: #999;
    overflow: hidden;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    border-radius: 5px;
    margin-bottom: 10px;
}

#uploadStatus .fill
{
    height: 20px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -khtml-border-radius: 3px;
    border-radius: 3px;
    background-color: #eee;
    width: 30%;
}

#uploadStatus .label
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 0.15em;
    text-align: center;
}

#uploadStatus .stats
{
    text-align: center;
    margin-bottom: 0.5em;
}


/* upload form ---------------------------------------------------------------------------------- */

#showVideoForm
{
    text-align: center;
}

#showVideoForm,
#videoUpload,
#videoUpload form
{
    margin-bottom: 20px;
}

#videoUpload
{
    background-color: #ccc;
}

#videoUpload .validation
{
    font-weight: bold;
}

#videoUpload .field
{
    clear: both;
    padding: 5px;
}

#videoUpload .field label
{
    font-weight: bold;
    color: #333;
    float: left;
    width: 140px;
    text-align: right;
    padding-right: 10px;
}

#videoUpload .field label.invalid
{
    color: red;
}

#videoUpload .field input,
#videoUpload .field textarea
{
    font-family: "Arial", sans-serif;
    font-size: 1em;
    width: 300px;
}
#videoUpload .field input.datePicker
{
    width: 5.5em;
}

#videoUpload .field textarea
{
    width: 410px;
    height: 90px;
}

.videoFormAlwaysVisible #videoUpload #hideVideoForm,
.videoFormAlwaysVisible #showVideoForm
{
    display: none;
}

#videoSubmit, #hideVideoForm
{
    width: 8em;
    margin-right: 10px;
}

#videoUpload .buttons
{
    clear: both;
    padding-left: 155px;
    margin: 5px 0px;
    margin-bottom: 10px;
}


/* JQuery UI datepicker styling */
    .ui-datepicker-next,
    .ui-datepicker-prev
    {
        float: right;
        cursor: pointer;
    }

    .ui-datepicker-prev
    {
        float: left;
    }

    .ui-datepicker-title
    {
        text-align: center;
    }

    #ui-datepicker-div
    {
        display: none;
        padding: 5px;
        background-color: #1f1c17;
        border: 2px solid #736954;
        background-color: #eee;
        border: 2px solid #999;
        font-size: 0.9em;

        border-radius: 4px;
        -moz-border-radius: 4px;
        -webkit-border-radius: 4px;
        -khtml-border-radius: 4px;

    }

    table.ui-datepicker-calendar td
    {
        text-align: center;
    }

    table.ui-datepicker-calendar
    {
        width: 14em;
    }

/* end datepicker styling */

