/**
  *  Adds all the nice finish to the standard theme
  *
  */

/** First of all, we reset some undesired styles from standard **/

.forumheaderlist .discussion .starter,
.forumpost .starter,
#grade-index table .generaltableheader,
#grade-index table .generalboxcontent,
#grade-exceptions table .generaltableheader,
#grade-exceptions table .generalboxcontent,
#mod-forum-view table.forumheaderlist td,
#mod-assignment-submissions table.submissions th,
#mod-assignment-submissions table.submissions td,
form.mform fieldset.hidden,
form.mform fieldset.hidden fieldset.fgroup,
ul.tabrow1 li a:link,
ul.tabrow1 li a:visited {
    border:none;
    background:none;
}

/** General HTML tags defined here **/

body {
    background-color:#CC9966;
    background-image:url(background.jpg);
}

table {
    border:none;
}

div {
    color:#330000;
}

hr {
    border-top:solid 1px #FFCC99;
    border-left:solid 1px #FFCC99;
    border-bottom:solid 1px #330000;
    border-right:solid 1px #330000;
    height: 0px;
}

div#footer {
    margin-top: 5px;
}

/** Links defined here **/

a:link,
a:visited {
    color:#990000;
}

a.autolink:link,
a.autolink:visited {
  background: #99FFCC;
}

/** All the tabs stuff starts here **/

.tabs .r0,
.tabs .r1 {
  background:none;
}

.tabs .side,
.tabrow0 a {
  border-color: #330000;
}

/* Links in tabs */
/* non-selected */
.tabrow0 a:link span,
.tabrow0 a:visited span,
.tabrow0 .here .tabrow1 a:link span,
.tabrow0 .here .tabrow1 a:visited span,
ul.tabrow1 li a:link,
ul.tabrow1 li a:visited {
  color: #990000;
}

/* selected */
.tabrow0 .here a:link span,
.tabrow0 .here a:visited span,
.tabrow0 .here .tabrow1 .here a:link span,
.tabrow0 .here .tabrow1 .here a:visited span,
ul.tabrow1 li.here a:link,
ul.tabrow1 li.here a:visited {
  color: #330000;
}

/* Normal tabs */
.tabrow0 a {
  background:url(pix/tab/left.gif) top left no-repeat;
}
.tabrow0 a span {
  background:url(pix/tab/right.gif) top right no-repeat;
}
/* This could be not needed. Leaving it for now, anyway. Used in case we want different last element. */
.tabrow0 .last a span {
  background: url(pix/tab/right_end.gif) top right no-repeat;
}

/* Normal tabs hover */
.tabrow0 a:hover {
  background-image:url(pix/tab/left_hover.gif);
}
.tabrow0 a:hover span {
  background-image:url(pix/tab/right_hover.gif);
}
/* This could be not needed. Leaving it for now, anyway. Used in case we want different last element. */
.tabrow0 .last a:hover span {
  background-image:url(pix/tab/right_hover.gif);
}

/* Selected tabs */
.tabrow0 .active a,
.tabrow0 .selected a {
  background:url(pix/tab/left_active.gif) top left no-repeat;
}
.tabrow0 .active a span,
.tabrow0 .selected a span {
  background:url(pix/tab/right_active.gif) top right no-repeat;
}
/* This could be not needed. Leaving it for now, anyway. Used in case we want different last element. */
.tabrow0 .last .active a span,
.tabrow0 .last .selected a span{
  background:url(pix/tab/right_active.gif) top left no-repeat;
}

/* Selected tabs hover */
.tabrow0 .active a:hover,
.tabrow0 .selected a:hover {
  background:url(pix/tab/left_active.gif) top left no-repeat;
}
.tabrow0 .active a:hover span,
.tabrow0 .selected a:hover span {
  background:url(pix/tab/right_active.gif) top right no-repeat;
}
/* This could be not needed. Leaving it for now, anyway. Used in case we want different last element. */
.tabrow0 .last .active a:hover span,
.tabrow0 .last .selected a:hover span{
  background:url(pix/tab/right_active.gif) top left no-repeat;
}

.tabrow1.empty {
  border-top:solid 1px #FFCC99;
  border-left:solid 1px #FFCC99;
  border-bottom:solid 1px #330000;
  border-right:solid 1px #330000;
  height: 0px;
}

.tabrow2.empty {
  border:none;
  height:0px;
}

.breadcrumb .sep {
    color:#330000;
}

/** Styles to have the blocks showed and hidden properly **/

#left-column .hidden .header,
#right-column .hidden .header
{
  border-bottom-color:#330000;
}

.sideblock .header .hide-show img.hide-show-image {
  background: url('pix/t/switch_minus.gif') no-repeat bottom;
}

.sideblock.hidden .header .hide-show img.hide-show-image {
  background: url('pix/t/switch_plus.gif') no-repeat bottom;
}

/** Places using the horizontal medium wood texture with borders **/

th.header,
td.header,
div.header,
h2.header,
.sideblock .header,
.forumpost,
.navbar,
table.files th,
#admin-index table.environmenttable th.header,
.tabrow0 ul,
legend,
#footer-bar {
    border-top:1px solid #FFCC99;
    border-left:1px solid #FFCC99;
    border-bottom:1px solid #330000;
    border-right:1px solid #330000;
    background-image:url(gradient1.jpg);     
    background-position:bottom;
    background-repeat:repeat;  
}

/** Places using the horizontal medium wood texture without borders **/

#mod-chat-gui_header_js-chatinput,
.forumpost .header,
#mod-forum-view table.forumheaderlist th,
.glossarypost .entryheader,
.glossarycomment .entryheader,
.glossarypost .entryattachment,
#grade-index .header,
#grade-exceptions .header,
#calendar .maincalendar .eventlist .event .topic {
    background-image:url(gradient1.jpg);
    background-position:bottom;
    background-repeat:repeat;
    border:none;
}

/** Places using the vertical white wood texture with borders **/

.results,
.sideblock .content,
.loginbox,
.generalboxcontent,
.informationboxcontent,
.noticeboxcontent,
.entryboxheader,
.entrybox,
.userinfobox,
.generaltable,
#course-user .section, 
#site-index .sitetopic .sitetopiccontent,
#calendar .maincalendar .filters table,
#calendar .sidecalendar,
#calendar .sidecalendar .filters table,
.block_calendar_month .filters table,
#calendar .maincalendar .minicalendar,
#calendar .sidecalendar .minicalendar,
.block_calendar_month .minicalendar,
#calendar .maincalendar .eventlist .event,
#calendar .maincalendar,
.coursebox,
.categorybox,
.cal_popup_fg,
#course-view .section td.content,
table.files,
#admin-index .generalbox,
.generalbox,
.admin .generalbox,
form.mform fieldset,
#adminsettings fieldset {
    border-top:1px solid #FFCC99;
    border-left:1px solid #FFCC99;
    border-bottom:1px solid #330000;
    border-right:1px solid #330000;
    background-image:url(gradient2.jpg);     
    background-position:bottom;
    background-repeat:repeat;
}


.loginbox.twocolumns .loginpanel {
    border-right:1px solid #330000;
}

.loginbox,
.loginbox .subcontent {
      border-top:1px solid #FFCC99;
}

/** Places using the vertical white wood texture without borders **/

#mod-chat-gui_header_js-users,
#admin-index .c1,
#admin-config .c1,
#grade-index .generaltableheader,
#grade-index .generalboxcontent,
#grade-exceptions .generaltableheader,
#grade-exceptions .generalboxcontent,
#admin-index table.environmenttable td,
.generaltable .cell,
.forumpost .left,
.sideblock .r1,
.r0 {
    background-image:url(gradient2.jpg);
    background-position:bottom;
    background-repeat:repeat;
    border:none;
}

/** Places using the vertical medium wood texture with borders **/

#notused,
#course-view .section td.side {
    border-top:1px solid #FFCC99;
    border-left:1px solid #FFCC99;
    border-bottom:1px solid #330000;
    border-right:1px solid #330000;
    background-image:url(gradient3.jpg);
    background-position:bottom;
    background-repeat:repeat;
}

/** Places using the vertical medium wood texture without borders **/

.glossarypost .left,
.glossarycomment .left,
#calendar .maincalendar .eventlist .event .picture,
#calendar .maincalendar .eventlist .event .side {
    background-image:url(gradient3.jpg);
    background-position:bottom;
    background-repeat:repeat;
    border:none;
}

/** Places using the horizontal dark wood texture with borders **/

.cal_popup_bg {
    border-top:1px solid #FFCC99;
    border-left:1px solid #FFCC99;
    border-bottom:1px solid #330000;
    border-right:1px solid #330000;
    background-image:url(background.jpg);
    background-position:bottom;
    background-repeat:repeat;
}

/** Places using the horizontal dark wood texture without borders **/

#admin-index .c0,
#admin-config .c0,
.glossarycategoryheader {
    background-image:url(background.jpg);
    background-position:bottom;
    background-repeat:repeat;
    border:none;
}

/** Places using a white background **/

#mod-survey-view table tr.r1,
.r1,
#calendar .maincalendar .eventlist .event .description,
.glossarypost .entry,
.glossarycomment .entry,
.glossarypost .entrylowersection {
    background-color:white;
    border:none;
}

/** Places using a green border **/

.unread {
    border-top:1px solid #99FF99;
    border-left:1px solid #99FF99;
    border-bottom:1px solid #99FF99;
    border-right:1px solid #99FF99;
    border-collapse: separate;
}

/** Places using just standard borders **/

.read,
.forumheaderlist,
.glossarypost,
.glossarycomment,
#mod-assignment-submissions .submissions,
#mod-forum-view .forumheaderlist {
    border-top:1px solid #FFCC99;
    border-left:1px solid #FFCC99;
    border-bottom:1px solid #330000;
    border-right:1px solid #330000;
    border-collapse: separate;
}

