/* CSS for codevent page parts. For both Drupal and Moodle.
   Bits copied from original codevent CSS (from /codevent/public/css/main.css)
   and adjusted for WPI display, bits wrote from start.

   All class/id names prefixed with codevent_, to avoid clashes.
*/

.codevent_action_list {
    margin: 1em 0;
    width: 100%;
}

.codevent_action_list td {
    padding: 0.5em;
    background: #F0F8FF;
    text-align: left;
}

.codevent_action_list td.points { text-align: center; }

.codevent_action_list td.dots { text-align: center; font-weight: bold; }

.codevent_action_list th {
    text-align: center;
    border-bottom:1px solid #CCCCCC;
}

.codevent_results { text-align: center !important; }

.codevent_results_acc { background-color: lightgreen !important; }
.codevent_results_tle { background-color: yellow !important; }
.codevent_results_wa { background-color: #dd7700 !important; }
.codevent_results_ce { background-color: magenta !important; }
.codevent_results_nc { background-color: lightgrey !important; }
.codevent_results_csuccess { background-color: #9aff9a !important; } /* lighter version of "lightgreen" */

form.codevent_submit { margin-top: 1em; }

td.codevent_label { padding-right: 1em; }

div.codevent_no_access {
  text-align: center;
  background: #F99;
  padding: 0.2em 1em;
  clear: both;
}

div.codevent_no_submissions {
  text-align: center;
  background: #99F;
  padding: 0.2em 1em;
}

div.codevent_no_problems {
  text-align: center;
  background: #99F;
  padding: 0.2em 1em;
}

textarea.codevent_source_code {
  width: 98%;
  height: 20ex;
}

td.codevent_cerr_details {
  background: #ffed7b !important;
}
td.codevent_cerr_details .codevent_cerr_details_real {
  font-family: monospace;
}

div.drucodevent_ranking_not_available {
  text-align: center;
  background: #F99;
  padding: 0.2em 1em;
}

div.codevent_admin_info {
  border:1px solid red;
}

/* This is for /user/%user/collectibles pages, generated by
   drucodevent.collectibles.inc */
table.drucodevent_collectibles { }
table.drucodevent_collectibles td { padding-left: 0.2em; padding-right: 1em; }
table.drucodevent_collectibles td.contest_name { text-align: center; border: thin solid #CCC; }

table.drucodevent_collectibles td.contest_odd { background: #f9f2ff; }
table.drucodevent_collectibles td.contest_even { background: #FFE; }

table.drucodevent_collectibles td.problem_odd { background: #f9f2ff; }
table.drucodevent_collectibles td.problem_even { background: #FFE; }

table.drucodevent_collectibles td.problem_name {
  border-left: thin solid #CCC;
  border-top: thin solid #CCC;
  border-bottom: thin solid #CCC;
}
table.drucodevent_collectibles td.problem_solved {
  border-right: thin solid #CCC;
  border-top: thin solid #CCC;
  border-bottom: thin solid #CCC;
}

table.drucodevent_collectibles .solved_cell { width: 32px; height: 32px; }

table.drucodevent_collectibles td.problem_name a { display: block; }
