body
{
    width: 100%;
    margin: 0;
    padding: 0;
    background: black url("img/kaleidologo.png") no-repeat top left;
    padding-top: 45px;
}

a img
{
    border: none;
}

#nav
{
    position: absolute;
    top: 10px;
    left: 300px;
    height: 41px;
    margin: 0;
    padding: 0;
    z-index: 10;
}

#nav li
{
    margin: 0 -2px 0 0;
    display: block;
    float: left;
    height: 33px;
    width: 110px;
    border: 2px solid white;
    
    -moz-border-radius-topleft: 10px;
    -webkit-border-top-left-radius: 10px;
    
    -moz-border-radius-topright: 10px;
    -webkit-border-top-right-radius: 10px;
    
    background: #555;
    
    overflow: hidden;
}

#nav li.active
{
    border-bottom: 2px solid black;
    background: black;
    overflow: visible;
}

#nav li a
{
    display: block;
    margin: 3px auto 0;
    
    width: 100px;
    height: 33px;
}

#content
{
    border-top: 2px solid white;
    background: black;
    width: 100%;
    position: relative;
}

#controls
{
    position: absolute;
    top: 5px;
    left: 520px;
    width: 280px;
}

#controls p
{
    margin: 0;
}

input.number
{
    width: 2em;
}

#color_controls
{
    margin-left: -5px;
    margin-right: -5px;
}

#pen_controls, #kaleidoscope_controls, #about, #layer_controls, #submit_form, #submitted, #login_form, #comments
{
    background: white;
    padding: 10px;
    margin: 5px;
    border: 8px double black;
    clear: both;
}

#about
{
    width: 480px;
    margin: 10px;
}

#tools
{
    width:100%;
    text-align: center;
}

#tools img
{
    vertical-align: middle;
}

#undo
{
    margin-left: 20px;
}

#color_preview
{
    cursor: pointer;
}

#save
{
    display:none;
    margin: .5em
}

#color_links, #tool_links
{
    padding: 0em;
    margin: 5px;
    width: 100%;
}

#color_links li, #tool_links li
{
    display: inline;
    display: inline-block;
    height: 25px;
    width: 25px;
    list-style-type: none;
    margin: 4px;
}

#color_links a
{
    text-decoration: none;
}

#color_links img
{
    border: 1px solid white;
}

#tool_links li
{
    border: 1px solid black;
    cursor: pointer;
}

#tool_links li.selected_tool
{
    border: 1px solid white;
}

a.fill
{
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

#canvas_container
{
    border: 8px double black;
    cursor: crosshair;
    background: white;
    margin: 10px;
    height: 500px;
    width: 500px;
    position: relative;
}

#canvas_container canvas
{
    position: absolute;
    top: 0;
    left: 0;
}

#layer_controls canvas
{
    vertical-align: middle;
    border: 3px double black;
}

#layers > li
{
    height: 56px;
    padding-bottom: 3px;
}

#guide_canvas
{
    z-index: 99999;
}

#flatten_canvas
{
    z-index: -100;
}

.submission
{
    margin: 0;
    position: relative;
}

.gallery_picture
{
    border: 8px double black;
    background: white;
    margin: 10px;
}

.gallery_info
{
    position: absolute;
    top: 10px;
    left: 530px;
    width: 280px;
    border: 8px double black;
    background: white;
}

.gallery_info p
{
    margin: 10px;
}

.gallery_info .title
{
    font-size: 120%;
    font-weight: bold;
}

.gallery_info p.creator
{
    margin-left: 25px;
}

.gallery_info .cc_license_icon
{
    margin-left: auto;
    margin-right: auto;
    width: 88px;
    display: block;
}

.pagination
{
    border: 8px double black;
    width: 500px;
    background: white;
    margin: 10px;
    font-size: 200%;
    text-align: center;
}

.pagination a, .pagination span
{
    margin: 0 5px;
}

#ads
{
    border: 8px double black;
    background: white;
    width: 468px;
    height: 80px;
    padding: 5px 16px;
    margin-left: 10px;
}

#modal {
    display: none;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
}

#modal_content
{
    width: 500px;
    margin: 10px 140px;
}

#submit_form, #submitted, #comments
{
    width: 480px;
    margin: 10px;
}

#submit_form ul
{
    padding: 0;
}

#submit_form li
{
    display: block;
}

#submit_form li label
{
    display: block;
}

#submit_form .cc_license_icon
{
    float: left;
    margin-right: 10px;
}

h2
{
    margin-top: 0;
}

.comment_count
{
    text-align: center;
}

.poster
{
    font-weight: bold;
}

.info
{
    font-size: 80%;
}

.errorlist li
{
    color: red;
    display: block;
}

.rating
{
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

.star
{
    width: 25px;
    height: 25px;
    border: none;
    color: rgba(0, 0, 0, 0.0);
}

.star.full
{
    background: url("img/star_full.png");
}

.star.half
{
    background: url("img/star_half.png");
}

.star.empty
{
    background: url("img/star_empty.png");
}

.rating .star.active
{
    background: url("img/star_full.png");
}

.rating .star.inactive
{
    background: url("img/star_empty.png");
}

.social
{
    padding: 0;
    text-align: center;
}

.social li
{
    display: inline;
    margin: 1px;
}
