/**
  *  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 {
    border:none;
    background:none;
}

/** General HTML tags defined here **/

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

table {
    border:none;
    collapse:separate;
}

div {
    color:#330000;
}

hr {
    border-top-color:#330000;
}

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

/** Links defined here **/

.tablink a:link,
.tablink a:visited,
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,
.tabrow td {
  border-color: #330000;
}
.tabrow td {
  background:url(pix/tab/left.gif) top left no-repeat;
}
.tabrow td .tablink {
  background:url(pix/tab/right.gif) top right no-repeat;
}
.tabrow td:hover {
  background-image:url(pix/tab/left_hover.gif);
}
.tabrow td:hover .tablink {
  background-image:url(pix/tab/right_hover.gif);
}
.tabrow .last {
  background: transparent url(pix/tab/right_end.gif) top right no-repeat;
}
.tabrow .selected {
  background:url(pix/tab/left_active.gif) top left no-repeat;
}
.tabrow .selected .tablink {
  background:url(pix/tab/right_active.gif) top right no-repeat;
}
.tabrow td.selected:hover {
  background-image:url(pix/tab/left_active_hover.gif);
}
.tabrow td.selected:hover .tablink {
  background-image:url(pix/tab/right_active_hover.gif);
}

/** 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,
#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-x repeat-y;  
}

/** 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,
.required {
    background-image:url(gradient1.jpg);
    background-position:bottom;
    background-repeat:repeat-x repeat-y;
    border:none;
}

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

.results,
.sideblock .content,
.loginbox .content,
.generalboxcontent,
.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,
.generalbox,
.courseboxcontent,
.categoryboxcontent,
.cal_popup_fg,
#course-view .section td.content {
    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-x repeat-y;
}

/** 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,
.generaltable .cell,
.forumpost .left,
.sideblock .r1,
.r0 {
    background-image:url(gradient2.jpg);
    background-position:bottom;
    background-repeat:repeat-x repeat-y;
    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-x repeat-y;
}

/** 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-x repeat-y;
    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-x repeat-y;
}

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

#admin-index .c0,
#admin-config .c0,
.categoryheader {
    background-image:url(background.jpg);
    background-position:bottom;
    background-repeat:repeat-x repeat-y;
    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;
}

