body {
    background-color: #e6e6ff;
    font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
    margin-bottom: 34px;
    color: #222;
}

div {
    margin: 0;
    padding: 0;
}

#logout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
}

#logout a {
    text-decoration: underline;
    color: #6e6eff;
}

#logout p {
    margin: 3px 10px;
    text-align: right;
}

#bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #e6e6ff;
    padding-top: 3px;
}

#bottom img {
    height: 26px;
    margin: 5px;
}

#bottom p {
    font-size: 12px;
    color: #222;
}

#start-bgd, #test_bgd {
    background-color: transparent;
    margin: 0 auto;
    width: 1000px;
    margin-bottom: 75px;
}

#start-bgd {
    background: transparent url('pics/tytan_logo.png') top center no-repeat;
}

#test {
    margin: 0 auto;
    margin-top: 100px;
    width: 1000px;
    text-align: left;
}

#login, #menu {
    margin: 4px auto;
    padding-top: 260px;
    margin-top: 80px;
}

#login td {
    font-size: 16px;
    font-weight: bold;
}

#login input {
    margin-top: 5px;
}

input {
    border-radius: 10px;
    padding: 3px;
    margin-left: 5px;
    margin-right: 20px;
}

input[type=submit], div.button {
    text-transform: uppercase;
    border-width: 2px;
    background-color: #eee;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 7px;
}

input[type=submit]:hover, div.button:hover, a.onclick:hover {
    background-color: #fff;
    cursor: pointer;
}

input[name=delete] {
    background-color: #ffcccc;
}

input[name=save] {
    background-color: #99ff99;
}

.answer {
    background-color: rgba(255,255,255,0.7); 
    width: 1000px; 
    text-align: left; 
    padding: 5px; 
    color: #000;
    display: table-cell;
    vertical-align: middle;
}

.answer input {
    display: inline;
    width: 30px; 
    border: 0; 
    border-radius: 0; 
    font-size: 16px; 
    font-weight: bold;
}

#menu {
    text-align: center;
}

#menu h1 {
    font-size: 18px;
    font-weight: bold;
}

.menu-item {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    border-width: 2px;
    border-style: outset;
    border-color: buttonface;
    border-image: initial;
    background-color: #fff;
    display: inline-block;
    margin: 0 20px;
}

.menu-item:hover {
    background-color: #eee;
}

.menu-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #6e6eff;
    font-weight: bold;
}

.menu-item a:hover {
    color: #333;
}

.menu-item a img {
    height: 90px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.button-set {
    position: fixed;
    top: 145px;
    text-align: center;
}

.button-set a {
    color: #222;
    text-decoration: none;
    display: block;
    border: #222 solid 2px;
    border-radius: 10px;
    height: 30px;
    padding: 7px 15px;
    line-height: 28px;
    background-color: rgba(255,255,255,0.5);
    width: 100px;
    font-weight: bold;
}

.button-set a:hover {
    color: #222;
    background-color: rgba(255,255,255,0.8);
}

.left {
    left: -1.05%;
}

.right {
    right: -1.05%;
}

.sider {
    position: fixed;
    top: 20px;
}

.sider img {
    margin: 30px;
    height: 80px;
}

table#stats {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 80px;
}

table#stats td {
    text-align: center;
    font-weight: bold;
    min-width: 50px;
}

table#stats tr.bigger td {
    font-size: 22px;
}

#q-number {
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    color: #336699;
}

#q-number span {
    font-size: 24px;
}

#exam-menu {
    color: #fff; 
    position: fixed; 
    bottom: 40px; 
    left: 0; 
    background-color: #222;
    width: 100%;
    text-align: center;
}

#exam-menu p {
    padding: 5px;
    margin: 0;
}

#exam-menu a {
    padding: 2px;
    margin: 2px;
    display: inline-block;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

#exam-menu a:hover {
    background-color: rgba(255,255,255,0.4); 
}

#exam-menu input {
    margin: 8px;
}

#timer {
    border-bottom: 1px solid #fff;
}

#tutor-bgd {
    width: 80%;
    margin-top: 100px;
    padding: 0 10%;
    background-color: transparent;
}

#question-display {
    border: 1px solid #000;
}

#question-display p {
    padding: 0 10px;
}

#question-display hr {
    border: 0;
    height: 1px;
    background-color: #000;
}

iframe {
    width: 100%;
    height: 800px;
    overflow: scroll;
    border: 0;
}

ul#teacher-menu {
    padding: 0; 
}

#teacher-menu li {
    list-style: none;   
}

#teacher-menu li a, table.questions-list a, a.onclick {
    display: block;
    width: 90%;
    height: 100%;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    text-align: center;
    border-radius: 10px;
    border-width: 2px;
    border-style: outset;
    border-color: buttonface;
    margin-bottom: 10px;
    padding: 5px 0;
    background-color: #eee;
}

a.onclick {
    width: 70%;
}

#teacher-menu li a:hover, table.questions-list a:hover {
    background-color: #fff;
}

#live table td {
    min-width: 20px;
    margin: 2px 0;
}

#live table tr:nth-child(even), #results table tr:nth-child(even) {
    background-color: #fff;
    border: 1px solid #fff;
}

#live table th, #results table th {
    background-color: #666;
    color: #fff;
}

#results table th, #results table td {
    padding: 3px 6px;
    min-width: 24px;
}

th.link:hover {
    cursor: pointer;
}

table.questions-list {
    width: 100%;
    border-collapse: collapse;
    border-bottom: 3px solid #fff;
    margin-top: 10px;
    margin-bottom: 10px;
}

table.questions-list a {
    margin: 3px 10px;
}
    
table.questions-list a:hover {
    cursor: pointer;
}

table.questions-list th {
    background-color: #fff !important;
    padding: 5px 0;
}

table.questions-list td {
    padding-left: 8px;
}

table.questions-list tr:hover {
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#ffffff+0,ffffff+100&0.5+0,0.5+61,0+90,0+100,0+100 */
    background: -moz-linear-gradient(left, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.5) 61%, rgba(255,255,255,0) 90%, rgba(255,255,255,0) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0.5) 61%,rgba(255,255,255,0) 90%,rgba(255,255,255,0) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, rgba(255,255,255,0.5) 0%,rgba(255,255,255,0.5) 61%,rgba(255,255,255,0) 90%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80ffffff', endColorstr='#00ffffff',GradientType=1 ); /* IE6-9 */
}

table.questions-list th.table-choice {
    width: 28px;
}

table.questions-list td.full-question-link {
    background-color: transparent !important;
}

table.questions-list th.category-name {
    width: 360px;
}

#tutor-bgd h3 {
    margin-top: 30px;
}

.class-button {
    width: 130px;
    text-align: center;
    vertical-align: middle;
}

td.class-button form {
    margin: 5px 0 !important;
}

.editor a {
    border: 1px solid #666;
    background: buttonface;
    padding: 4px 8px;
    text-transform: uppercase;
    font-size: 14px;
}

.editor a:hover {
    background: buttonhighlight;
    cursor: pointer;
}

.message {
    position: fixed;
    left: 50%;
    margin-left: -250px;
    padding: 15px 20px;
    width: 460px;
    border: 2px solid orangered;
    background-color: orange;
    font-weight: bold;
    opacity: 0;
    animation: fadeIn 4s ease;
    text-align: center;
    height: 0;
}

#message-failed {
    border-color: darkred;
    background-color: lightcoral;
    animation: fadeIn 6s ease;
}

#message-success {
    border-color: darkgreen;
    background-color: lightgreen;
}

.js-link {
    font-size: 11px;
    margin-right: 20px;
    text-decoration: underline;
    color: blue;
    line-height: 25px;
}

.js-link:hover {
    color: navy;
    cursor: pointer;
}

@keyframes fadeIn{
  0%{
    opacity: 1;
    height: auto;
    top: 200px;
  }
  75%{
    opacity: 1;
    height: auto;
    top: 200px;
  }
  99%{
    opacity: 0;
    height: auto;
    top: 200px;
  }100%{
    opacity: 0;
    height: 0;
    top: 0;
  }
}