/*
 *  This file is part of "Ménapien !",
 *  a web-based self-learning applications framework.
 *
 *  Copyright (C) 2007-2008 Olivier Jacquemin.
 *
 *  "Ménapien !" is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  "Ménapien !" is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program: see the file COPYING.txt.  If not, see
 *  http://www.gnu.org/licenses/.
 */

/* BEGIN - General look & feel */

/* Reset default browser values */
body, form, div, p, a, img { margin: 0;
                             padding: 0; }

img { border-width: 0; }

body { background-color: #ADD8E6;
       color: black; }

#container { margin: 10px 20px 10px 20px;
             border-color: gray;
             border-style: solid;
             border-width: 1px 2px 2px 1px;
             background-image: url("WhiteSquare.gif"); }

#subContainer { padding: 5px 5px 5px 5px;
                margin-left: 4em;
                border-left: 2px solid red; }

#footer { margin-top: 5px;
          padding-top: 5px;
          height: 31px;
          border-top: 2px solid red;
          text-align: right; }

span { padding: 0 0.5em 0 0.5em }

/* END - General look & feel */


/* BEGIN - Parameters and question */

#testTitle, #questionDiv, #score, #answer, #correctionDiv { font-size: 20pt; }

#test, #score, button, input { text-align: center; }

#titleDiv { margin: 1em 0 1em 0;
            padding-top: 5px;
            border-top: 2px solid red; }

input { width: 2em; }

#table { margin-right: 1em; }

#start { margin-left: 1em; }

#correctionDiv { margin-top: 0.5em; }

#correctAnswer { border: 2px solid red;
		 background-color: #99FF99; }

/* END - Parameters and question */


/* BEGIN - Score */

#score { border: 1px solid black;
         width: 6em;
         margin: 1em auto 0 auto; }

.zeroFault { background-color: #99FF99;
             color: black; }
.oneFault { background-color: #FF6600;
            color: white; }
.manyFaults { background-color: #E80000;
              color: white; }

/* END - Score */


/* BEGIN - Review table */

#review { margin: 1em auto 0 auto;
          text-align: center }

th, td { padding: 2px 2px 2px 2px; }
td { border-top: 1px solid black; }

.wrong { color: red;
         font-weight: bold; }
.wrong .answered { text-decoration: line-through;
                   font-weight: normal; }
.wrong .duration { font-weight: normal; }

.late { color: #993300;
        font-weight: normal; }
.late .duration { font-weight: bold; }

.correct { color: black;
           font-weight: normal; }

/* END - Review table */


/* BEGIN - Dynamic style */

/* Simple way of hiding an element */
.hidden { display: none; }

/* Manage visibility of divisions in each possible UI state */
.config #titleDiv,
.config #score,
.config #review,
.config #questionDiv,
.exam #score,
.exam #review,
.exam .params,
.result #questionDiv { display: none; }

.result #titleDiv { border-top: 2px solid red; }

/* END - Dynamic style */
