/**
  *  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,
#course-view .section td,
#course-view .section .side,
#course-view .section .left,
#course-view .section .content {
    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;
}

/** 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,
.sideblock .header,
.forumpost,
.navbar {
    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,
#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,
.cal_popup_fg {
    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,
#course-view .section .content,
#grade-index .generaltableheader,
#grade-index .generalboxcontent,
#grade-exceptions .generaltableheader,
#grade-exceptions .generalboxcontent,
.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 {
    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 **/

#course-view .section .side,
.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 an standard border **/

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

