/* --- UNIBOARD VAIO THEME ---
   Colours and background images inspired by lakiweb.net's VAIO theme.
   Theme is selected by data-theme on <html>. */

html { background: #222; }

body {
  background-image: url('/static/img/vaioday.png');
  color: #222;
  text-shadow: 0 0 1px rgba(255,255,255,.35);
}

#article, #bar {
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(0,0,0,.45);
  box-shadow: 3px 3px 0 rgba(0,0,0,.22);
}
#bar { border-left: none; border-top: none; }

hr { border-bottom: 2px ridge #000; }
#bar { border-right: 2px ridge #000; }
.li-aside { border-bottom: 2px ridge #000; }
th, td { border-color: #000; }
th { background: rgba(0,0,0,.07); }
.notice, .flash, .ticker, .add-box, details.module, .mini-stats, .course-card {
  border-color: #000;
}
a { color: #000; }
a:hover { color: #600; }
a.link { color: #005000; }

.badge { background: rgba(255,255,255,.45); }
.badge.open { background: #eee; }
.badge.submitted, .badge.graded { background: #d8efd8; }
.badge.overdue, .badge.missing { background: #ffd8d8; }
.badge.soon { background: #ffe9c4; }

.status-btn.s0 { background: #e2e2e2; }
.status-btn.s1 { background: #ffe9a8; }
.status-btn.s2 { background: #bfe6bf; }

.overdue, .due-overdue { color: #a00000; }
.soon, .due-soon { color: #8a4a00; }

/* ---- sunrise ---- */
html[data-theme="sunrise"] body {
  background-image: url('/static/img/vaiomorning.png');
  color: #333;
}
html[data-theme="sunrise"] a { color: #000; }
html[data-theme="sunrise"] a.link { color: #b00000; }
html[data-theme="sunrise"] .overdue { color: #900; }

/* ---- day ---- */
html[data-theme="day"] body {
  background-image: url('/static/img/vaioday.png');
  color: #222;
}
html[data-theme="day"] a.link { color: #6a00b0; }

/* ---- sunset ---- */
html[data-theme="sunset"] body {
  background-image: url('/static/img/vaiosunset.png');
  color: #2a1a10;
}
html[data-theme="sunset"] #article, html[data-theme="sunset"] #bar {
  background: rgba(255,246,235,.60);
}
html[data-theme="sunset"] a { color: #2a1a10; }
html[data-theme="sunset"] a.link { color: #900000; }

/* ---- night ---- */
html[data-theme="night"] body {
  background-image: url('/static/img/vaionight.png');
  color: #f2f2f2;
  text-shadow: 0 0 2px rgba(0,0,0,.9);
}
html[data-theme="night"] #article, html[data-theme="night"] #bar {
  background: rgba(0,0,0,.62);
  border-color: #ddd;
  box-shadow: 3px 3px 0 rgba(0,0,0,.5);
}
html[data-theme="night"] a { color: #fff; }
html[data-theme="night"] a.link { color: #66ff66; }
html[data-theme="night"] a:hover { color: #adff2f; }
html[data-theme="night"] hr { border-bottom: 2px ridge #fff; }
html[data-theme="night"] #bar,
html[data-theme="night"] .li-aside { border-color: #fff; }
html[data-theme="night"] th,
html[data-theme="night"] td { border-color: #ccc; }
html[data-theme="night"] th { background: rgba(255,255,255,.08); }
html[data-theme="night"] .notice,
html[data-theme="night"] .flash,
html[data-theme="night"] .ticker,
html[data-theme="night"] .add-box,
html[data-theme="night"] details.module,
html[data-theme="night"] .mini-stats,
html[data-theme="night"] .course-card { border-color: #ccc; }
html[data-theme="night"] .badge { background: rgba(0,0,0,.4); }
html[data-theme="night"] .badge.open { background: #333; }
html[data-theme="night"] .badge.submitted,
html[data-theme="night"] .badge.graded { background: #1c3a24; }
html[data-theme="night"] .badge.overdue,
html[data-theme="night"] .badge.missing { background: #4a1010; }
html[data-theme="night"] .badge.soon { background: #4a3500; }
html[data-theme="night"] .overdue,
html[data-theme="night"] .due-overdue { color: #ff8080; }
html[data-theme="night"] .soon,
html[data-theme="night"] .due-soon { color: #ffcc66; }
html[data-theme="night"] .muted { opacity: .75; }
html[data-theme="night"] .status-btn.s0 { background: #333; color: #eee; }
html[data-theme="night"] .status-btn.s1 { background: #6a5500; color: #fff; }
html[data-theme="night"] .status-btn.s2 { background: #1c5a2a; color: #fff; }

html[data-theme="night"] input[type=text],
html[data-theme="night"] input[type=password],
html[data-theme="night"] input[type=datetime-local],
html[data-theme="night"] input[type=date],
html[data-theme="night"] input[type=search],
html[data-theme="night"] select,
html[data-theme="night"] textarea {
  background: #111;
  color: #eee;
  border-color: #777;
}
html[data-theme="night"] button,
html[data-theme="night"] input[type=submit],
html[data-theme="night"] a.button {
  background: #333;
  color: #eee;
  border-color: #888;
}
html[data-theme="night"] .course-checks { border-color: #777; }
html[data-theme="night"] .canvas-page { color: #eee; }
html[data-theme="night"] .canvas-page a { color: #9ff; }

@media (max-width: 900px) {
  #article, #bar {
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
  #bar { border-top: none; }
}
