* { margin: 0; padding: 0; }

body { 
    width: 900px;
    margin: 0 auto;
    font-size: 12px;
    font-family: "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Helvetica, sans-serif;
    color: #333;
}
ul { list-style-type: none; }

a { text-decoration: none; color: #27c; outline: none; }
a:hover { color: #1b3; }

li:after { 
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
li div { 
    width: 390px;
    padding: 20px;
}

.corner-0 { 
    float: left;
    padding-right: 40px;
}
.corner-1 { 
    float: right;
    padding-left: 40px;
}

h1 { 
    font-weight: normal;
    font-size: 22px;
    margin-bottom: 5px;
    line-height: 30px;
}
h2 { 
    font-weight: normal;
    font-size: 18px;
    margin-bottom: 6px;
    line-height: 25px;
}
p { margin-bottom: 5px; }

header h1 { 
    width: 960px;
    margin-left: -30px;
    height: 135px;
    text-indent: -9999px;
    line-height: 0px;
}
header a {
    text-indent: -9999px;
    float: left;
    height: 135px;
    width: 480px;
    background: url("img/header.png") no-repeat;
}
header a.arxiv { background-position: left top; }
header a.snarxiv { background-position: -480px top; }
header a.arxiv:hover { background-position: left -135px; }
header a.snarxiv:hover { background-position: -480px -135px; }

#score {
    padding: 20px;
    font-size: 32px;
    color: #666;
    font-weight: bold;
    line-height: 40px;
    padding-bottom: 5px;
}
#score #correct,
#score #guesses { background: url("img/score-sprites.png") no-repeat; }
#score #correct { 
    padding: 10px 180px 10px 0;
    background-position: right -1px;
}
#score #guesses { 
    padding: 10px 120px 10px 3px;
    background-position: right -68px;
}
#score #feedback { font-size: 22px; }


form { 
    padding-left: 20px;
    margin-bottom: 50px;
}
form,
form input { 
    font-size: 22px;
    font-weight: bold;
    color: #555;
    line-height: 24px;
}
form #name {
    color: #666;
    margin-left: 5px;
    border: none;
    border-bottom: 2px dotted #ccc;
}
form.done #name { 
    color: #aaa;
}
input[type="submit"] { 
    border: 1px solid #ccc;
    text-shadow: rgb(255, 255, 255) 0px 1px 0px;
    background: white;
    padding: 5px 7px 4px 7px;
    font-size: 18px;
    font-weight: normal;
    outline: none;
    cursor: pointer;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
    box-shadow: 0 1px 2px rgba(0,0,0,.2);
    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ededed));
    background: -moz-linear-gradient(top,  #fff,  #ededed);
    filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ededed');
}

input[type="submit"]:hover {  
    text-decoration: none;
    background: #ededed;
    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#dcdcdc));
    background: -moz-linear-gradient(top,  #fff,  #dcdcdc);
    filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
}
 
form.done input[type="submit"],
input[type="submit"]:active {  
    color: #999;
    background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#fff));
    background: -moz-linear-gradient(top,  #ededed,  #fff);
    filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#ffffff');
}

.id { margin-bottom: 10px; }
.id, .id a { 
    color: #aaa;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comments { 
    color: #aaa;
    font-size: 11px;
    font-style: italic;
    line-height: 18px;
}
.stats { 
    color: #aaa;
    font-weight: bold;
    font-size: 12px;
    margin-top: 15px;
}
.stats i { 
    color: #666;
    font-style: normal;
    font-size: 16px;
}

#ring { 
    margin-top: 90px;
    margin-bottom: 30px;
}
#ring li div { 
    width: 450px;
    padding-left: 0;
    padding-right: 0;
}
#ring a { 
    display: block;
    padding: 20px;
    padding-bottom: 55px;
    min-height: 130px;
    overflow: hidden;
    position: relative;
}
#ring a { 
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
}
#ring .corner-0 a { 
    padding-right: 40px;
    border-right: 1px solid white;
    -webkit-border-top-right-radius: 0;
    -moz-border-radius-topright: 0;
    border-top-right-radius: 0;
    -webkit-border-bottom-right-radius: 0;
    -moz-border-radius-bottomright: 0;
    border-bottom-right-radius: 0;
}
#ring .corner-1 a { 
    padding-left: 40px;
    border-left: 1px solid white;
    -webkit-border-top-left-radius: 0;
    -moz-border-radius-topleft: 0;
    border-top-left-radius: 0;
    -webkit-border-bottom-left-radius: 0;
    -moz-border-radius-bottomleft: 0;
    border-bottom-left-radius: 0;
}
#ring a:hover,
#ring .right a:hover,
#ring .wrong a:hover { 
    background-color: #f8f8f8;
    border-color: #ccc;
}
#ring a .question { 
    position: absolute;
    font-size: 14px;
    font-weight: bold;
    display: none;
    bottom: 20px;
}
#ring .corner-0 a .question { right: 40px; }
#ring .corner-1 a .question { left: 40px; }
#ring a:hover .question { 
    display: inline;
    color: #aaa;
}
#ring .right a { background: url("img/rightwrongscript.png") 50px 40px no-repeat; }
#ring .wrong a { background: url("img/rightwrongscript.png") -430px 40px no-repeat; }

#previous-rounds .question { display: none; }

#previous-rounds .right { 
    background-image: url("img/right.gif");
    background-repeat: no-repeat;
}
#previous-rounds .wrong { 
    background-image: url("img/wrong.gif");
    background-repeat: no-repeat;
}
#previous-rounds .corner-0.right,
#previous-rounds .corner-0.wrong { 
    background-position: left 35px;
    padding-left: 60px;
    margin-left: -40px;
}
#previous-rounds .corner-1.right,
#previous-rounds .corner-1.wrong { 
    background-position: right 35px;
    padding-right: 60px;
    margin-right: -40px;
}

.highscores { 
    color: #666;
    font-size: 18px;
}

footer { 
    width: 860px;
    display: block;
    margin: 50px auto;
    padding: 20px;
    font-weight: bold;
}
footer li {
    float: left;
    width: 280px;
    text-align: center;
    color: #aaa;
}
footer a { 
    color: #888;
}
footer li:last-child { text-align: right; }
footer li:first-child { text-align: left; }