body {margin:0; padding:0; background-color:#FFFFFF;}
form {margin:0; padding:0}

td, tr {font:11px/14px tahoma, arial, helvetica, sans-serif; color:#636363; vertical-align:top;  text-align:left;}

.end{ color:#B7D7F0; text-decoration:none; font-size:10px; font-weight:bold}
.end1{ color:#FFFFFF; text-decoration:none; font-size:9px; font-weight:normal}
.end a{ color:#B7D7F0; text-decoration:underline; font-size:10px; font-weight:bold}
.end a:hover{ color:#B7D7F0; text-decoration:none; font-size:10px; font-weight:bold}


a{ color:#007CC7; text-decoration:underline;}
a:hover{ color:#007CC7; text-decoration:none;}

.top td select{ width:111px; height:19px; font-size:11px; padding:0 0 1px 6px;}
.top td{ color:#FFFFFF; font-weight:bold;}

.top1 td input{ width:129px; height:17px; font-size:11px; padding:0 0 1px 6px;}
.top1 td{ color:#FFFFFF; font-weight:bold;}
.top2 a{ color:#FFFFFF; text-decoration:none; font-size:9px;}
.top2 a:hover{ color:#FFFFFF; text-decoration:underline; font-size:9px;}
.inp1 td input{ width:122px; height:18px; font-size:11px; padding:0 0 1px 6px;}



.r1 ul { margin:0; padding:0; list-style:none;}
.r1 li { background:url(images/ch_blu.jpg) center left no-repeat; margin:0 0 0 0; padding:0 0 0 9px;}
.r1 li a {line-height:20px; color:#007CC7; text-decoration:none; font-weight:400; background-position:left center;}
.r1 li a:hover { text-decoration:underline; color:#007CC7;}

.r2 ul { margin:0; padding:0; list-style:none;}
.r2 li { background:url(images/ch_blu.jpg) center left no-repeat; margin:0 0 0 0; padding:0 0 0 9px;}
.r2 li a {line-height:20px; color:#007CC7; text-decoration:none; font-weight:400; background-position:left center;}
.r2 li a:hover { text-decoration:underline; color:#007CC7;}
.r2 li b{ color:#636363; font-weight:normal;}


.txt1 td a{ color:#636363; text-decoration:none; font-weight:normal}
.txt1 td a:hover{ color:#636363; text-decoration:underline;  font-weight:normal;}


.form input{ width:178px; height:19px; border:1px solid #767676; font-size:11px; color:#636363; padding:1px 0 1px 6px;}
.form textarea{ width:178px; height:175px; border:1px solid #767676; overflow:auto; font-family:tahoma, arial, helvetica, sans-serif; font-size:11px; color:#636363; padding:1px 0 1px 6px;}

/**
 *
 *  Position and behavior between the differents elements
 *
 *  Here is the main page layout
 *    banner (phpGraphy logo)
 *    dirbar (Current path (left) and Links (right))
 *    welcome (.welcome file)
 *    dirlist (List of directories)
 *    dircontent (List of files/thumbs) or displaypicture (Lowres/Highres picture)
 *    pagenav (Page Naviguation, Prev/Next and page number )
 *    footer
**/

/* Global container */
#main {
  margin: 0 10%;
  }

/* Default phpGraphy banner */
#banner {
  display: block;
  border: none;
  margin-bottom: 3px;
  }

/* Directory information bar (current directory) - not used anymore, now using dirbarleft/right */
#dirbar {
  width: 100%;
  border: none;
}

/* .welcome (Only displayed on the first page when in thumbs mode) */
#welcome {
    clear: left;
    color: #883333;
    padding: 5px;
}

/* display the directory content (directories) */
#dirlist {
  float: left;
  clear: left;
}

/* display the directory content (files/thumbs) */
#dircontent {
  clear: left;
  width: 100%;
  margin: 15px 0 0 15px;
}

#dircontent td {
  vertical-align: top;
  padding-bottom: 1.5em;
}

/* Page naviguation (Previous/Next, Page number) */
 #pagenav {
  float: left;
  clear: left;
  width: 100%;
  text-align: center;
  margin: 10px;
}


#footer {
  clear: left;
  width: 100%;
  text-align: center;
}

#dirbarleft {
  float: left;
  text-align: left;
  width: 75%;
  }

#dirbarright {
  float: right;
  width: 25%;
  text-align: right;
  }


/* picture title (displayed when browsing lowres/highres pictures) - along with browse.tpl */
.title {
  font-family : tahoma,Arial,helvetica,sans-serif;
  text-decoration: underline;
  }

/* Lowres/Highres picture display area - along with display.tpl */
#pictitle {
    display: block;
    width: 100%;
    text-align: center;
}

#displaypicture {
  text-align: center;
  }

#picnav {
  margin: 0.2em;
  }

#picrating span  {
  display: block;
  margin: 0.2em;
  }

#currentrating {
  margin: 0.5em;
  }

#metadataicon {
  margin-left: 5px;
  }

/* Admin form to change picture's associated data */
.rotatebutton {
  background-color : transparent;
  border: 1px solid;
  color : #BDD77B;
}

/* exif metadata text */
.exifmetadata { 
  color: #646464;
  text-align: center;
  }

/* iptc metadata text */
.iptcmetadata {
  color: #a0a0a0;
  text-align: center;
  }

/* currently only used for the metadata table (hidden by default) */
.metadatatable { 
  background-color: #f5beb4;
  border: 1px solid;
  border-spacing: 0px;
  margin-left:auto;
  margin-right:auto;
  margin-top: 8px;
  }
.rowbgcolor1 { background-color: #f5beb4; }
.rowbgcolor2 { background-color: #ffe5e0; }

#commentstitle {
  float: left;
  text-decoration: underline;
  margin-bottom: 10px;
}

#addcomment {
  float: right;
}

.commentfrom {
    display: block;
    clear: left;
    width: 100%;
    text-align: left;
    margin-top: 12px;
}

.usercomment {
    display: block;
    clear: left;
    text-align: left;
    width: 100%;
}


/* thumbnails properties */
.thumbnail {
   border: 1px solid black;
}
.picthumbnail, .picinfo {
    float: left;
}
.picinfo a, .picinfo span {
    display: block;
    padding: .5em 1em 0 1em;
}
.picinfo span {
    font-size: 75%;
    padding-left: 2em;
}



/* directory thumbnail */

/* Folder Frame related (draw a nice frame around folder (thx to Jeff for the initial CSS code) */

.fftop         { background: url(images/border-top.gif) repeat-x; }
.fftop div     { background: url(images/corner-top-left.gif) no-repeat top left; }
.fftop div div { background: url(images/corner-top-right.gif) no-repeat top right; }

.ffbottom         { background: url(images/border-bottom.gif) repeat-x; }
.ffbottom div     { background: url(images/corner-bottom-left.gif) no-repeat top left; }
.ffbottom div div { background: url(images/corner-bottom-right.gif) no-repeat top right; }

.ffcontentwrap { background: url(images/border-left.gif) repeat-y; }
.ffcontent     { background: url(images/border-right.gif) repeat-y right; }

/* Hack to handle the gap below the border with FireFox (when XHTML doctype is enabled )  */
.ffcontent a { background-color: #ececec; }

.fftop div, .fftop, .ffbottom div, .ffbottom {
	/* width: 140px; <=  Not used to be relative - it's added within the code as style argument */
	height: 20px;
	font-size: 1px;
}

.ffcontent {
    text-align: center;
    /* width: 140px; <=  Not used to be relative - it's added within the code as style argument */
}

/* One div per directory, contains a dirframe and a dirtitle */
.direntry {
    float: left;
    margin: 0 15px 0 0;
    clear: left;
    width: 700px;
}

/*  Resides inside direntry, contains dirthumbnail and all the ff* (framefolder) entries) */
.dirframe {
    float: left;
}

/* Resides inside a dirframe */
.dirthumbnail {
    border: 1px solid #aaaaaa;
}


/* Used when $directory_display_mode = 'icon' */
.diricon {
    border: none;
    vertical-align: middle;
    margin: 1px 1px 1px 0.2em;
}

/* Used when $directory_display_mode = 'picture' */
.dirtitlepicture {
    float: left;
    margin: 15px 0 10px 10px;
    font-weight: bold;
    font-size: 120%;
}

.dirinfo {
    font-size: 80%;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
    color: #aaaaaa;
}

/* Used when $directory_display_mode = 'icon' */
.dirtitleicon {
    float: left;
    margin: 5px 0 5px 5px;
}

/* Used when $directory_display_mode = 'name' */
.dirtitlename {
    margin-left: -15px;
}



/* icons properties */
.icon { border: none }

/* lowres/highres picture properties */
.picture { 
  border: 1px solid black;
  }

.popup {
  position: fixed;
  left: 10px;
  top: 10px;
  }

#loginform table {
    margin: 5% auto;
    border: 1px solid #AAAAAA;
    padding: 50px;
}

/* login page */

#loginbox {
    position: relative;
    width: 300px;
    margin: 5% auto;
    border: 1px solid #AAAAAA;
    padding: 50px;
}

.margintop {
    margin-top: 5px;
}

.floatlabel {
    width: 4em;
    float: left;
    text-align: right;
    margin: 0 1em 10px 0;
    clear: both
}

#userscomments {

}

/* USER MANAGEMENT */

/* USER MANAGEMENT LIST */
table.um { border-collapse: collapse; border: 2px solid #999; margin: .5em auto; }
table.um th { font-weight: bold; color: #333; padding: .5em; background-color: #eee; }
table.um td { border: 1px solid #ddd; padding: .5em; text-align: center; }
table.um caption { padding: .5em; font-weight: bold; background-color: #eee; border: 2px solid #999; margin: 0 auto; }

/* USER MANAGEMENT EDIT USER INFO */
#user_management { width: 30em; margin: 1em auto; }
#bottomForm { text-align: right; font-weight:bold; }
#bodyForm { background-color: #eee; }
#bodyForm legend { font-weight: bold; }
#bodyForm fieldset label { float: left; width: 40%; text-align: right;  padding: 0 .5em 0 0; line-height: 1.8; }
#bodyForm .legend { font-style: italic; color: #666; }

/*  SLIDESHOW */

#slideshow {

    position: absolute;
    top: 0;
    left: 0;
}

#slideshow a {
    cursor: pointer;
z-index: 9;
}

#slideshow input {
    border: 0;
    margin: 0;
    padding: 0;
    text-align: right;
    width:1.5em;
}


#close-slideshow {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1.5em;
    font-weight: bold;
}

#spanControl {
    border: 3px solid #cacaca;
    background-color: black;
    color: white;
    padding: .5em;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 1em;
}

#spanControl a {
    margin: 0 .5em;
}

#spanControl input {
    color: white;
    background: black;
    font-weight: bold;
    font-size: 1em;
}

#slideshow-control {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align:center;
}

/* Show/Hide caption text within the remote control */
#hidecaptions, #showcaptions {
    font-size: 80%;
    font-weight: bold;
}

/* Where the picture's title get displayed */
#slideshow-captions {
    font-weight: bold;
    text-align: center;
    margin-bottom: 3px;
}



/* DEBUG messages BOX - Reserved for development purposes */
#debugbox {
    position: absolute;
    top: 2px;
    left: 2px;
    background-color: white;
    z-index: 1;
    border: solid 1px #ccc;
}

#debugmsgs {
    text-align: left;
    padding: 2px 5px;
}
