/* CSS accompanying ../visualize.html */

h1 {
    font-weight: normal;
    font-size: 20pt;
    font-family: georgia, serif;
    line-height: 1em; /* enforce single spacing so that Georgia works */

    margin-top: 0px;
    margin-bottom: 8px;
}

h2 {
    font-size: 12pt;
    font-weight: normal;
    font-family: georgia, serif;
    line-height: 1.1em; /* enforce single spacing so that Georgia works */

    margin-top: 2px;
    margin-bottom: 20px;
}

body {
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 10pt;
    background: #fafafa;
    margin: 0;
}
* {
    box-sizing: border-box;
}
*:focus {
    outline: none;
}
a,
a:visited,
a:hover {
    color: #3d58a2;
}

span {
    padding: 0px;
}

table#pyOutputPane {
    padding: 10px;
}

#topBar {
    height: 40px;
    padding: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    background: #ffffff;
}

#pyInputPane {
    max-width: 1440px;
    padding: 0 40px;
    margin: 0 auto;
    display: flex;
}

#left {
    flex-grow: 2;
    margin-right: 8px;
}
#right {
    flex-grow: 1;
    margin-left: 8px;
    display: flex;
    flex-direction: column;
}

.header {
    height: 33px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    display: flex;
    align-items: center;
    margin: 16px 0 4px;
}

.header img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

#pythonVersionSelector {
    margin-left: 12px;
    padding: 6px 16px;
    width: 290px;
    height: 33px;
    border-radius: 100px;
    border: none;
    background-color: #ffffff;
    -moz-appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

#pythonVersionSelector:focus {
    box-shadow: 0 0 0 1px #f8d57e;
}
#selectorArrow {
    border: solid black;
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
    /* 定位 */
    position: relative;
    left: -25px;
    top: -2px;
}
#loadingPane {
    margin-top: 10px;
    margin-bottom: 20px;

    max-width: 700px;
    /* center align */
    margin-left: auto;
    margin-right: auto;
}

#loadingPane {
    margin-bottom: 5px;
}

#codeInputPane {
    height: 600px;
    font-size: 12pt;
    border: 1px solid #eaeaea;
    border-radius: 4px;
}

#rawInputPane {
    height: 500px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 24px;
    resize: none;
}

#codeInputWarnings {
    margin-bottom: 8px;
}

button.smallBtn {
    font-size: 10pt;
    padding: 3px;
}

button.bigBtn {
    font-size: 14px;
    padding: 8px 16px;
    margin-top: 16px;
    border: none;
    min-width: 156px;
    background: #F8D57E;
    border-radius: 8px;
    align-self: flex-end;
    cursor: pointer;
}

button.surveyBtn {
    font-size: 8pt;
    margin-top: 8px;
}

#footer {
    color: #999;
    font-size: 9pt;
    border-top: 1px solid #bbbbbb;
    padding-top: 5px;
    margin-top: 5px;

    max-width: 700px;
    /* center align */
    margin-left: auto;
    margin-right: auto;
}

#frontendErrorOutput {
    color: #e93f34; /* should match brightRed JavaScript variable */
    font-size: 12pt;
    line-height: 1.5em;
    margin-top: 8px;
}

.togetherjsBtn {
    color: #b80000;
    font-size: 9pt;
    padding: 4px;
    margin-top: 3px;
}

#syncBtn {
    font-size: 8pt;
    margin-left: 10px;
}

#experimentalHeader {
}

#surveyHeader {
    margin-left: 100px;
}

.surveyQ {
    font-size: 9pt;
    padding: 2px;
}

/* necessary for CodeMirror error line highlighting to work! */
.CodeMirror .errorLine {
    background: #ffff3f !important;
}

/* from http://rog.ie/blog/css-star-rater */
.star-rating {
    font-size: 0;
    white-space: nowrap;
    display: inline-block;
    /* pgbovine - scale this appropriately with a 5:1 ratio */
    width: 100px;
    height: 20px;
    overflow: hidden;
    position: relative;
    background: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjREREREREIiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');
    background-size: contain;
}
.star-rating i {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 20%;
    z-index: 1;
    background: url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cG9seWdvbiBmaWxsPSIjRkZERjg4IiBwb2ludHM9IjEwLDAgMTMuMDksNi41ODMgMjAsNy42MzkgMTUsMTIuNzY0IDE2LjE4LDIwIDEwLDE2LjU4MyAzLjgyLDIwIDUsMTIuNzY0IDAsNy42MzkgNi45MSw2LjU4MyAiLz48L3N2Zz4=');
    background-size: contain;
}
.star-rating input {
    -moz-appearance: none;
    -webkit-appearance: none;
    opacity: 0;
    display: inline-block;
    width: 20%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 2;
    position: relative;
}
.star-rating input:hover + i,
.star-rating input:checked + i {
    opacity: 1;
}
.star-rating i ~ i {
    width: 40%;
}
.star-rating i ~ i ~ i {
    width: 60%;
}
.star-rating i ~ i ~ i ~ i {
    width: 80%;
}
.star-rating i ~ i ~ i ~ i ~ i {
    width: 100%;
}

#syntaxErrBubbleContents {
    font-size: 9pt;
    cursor: default;
}

#syntaxErrHeader {
    margin-bottom: 3pt;
}

#syntaxErrCodeDisplay {
    border: 1px solid #ddd;
}

#syntaxErrMsg {
    color: #e93f34; /* should match brightRed JavaScript variable */
    font-size: 10pt;
    margin-top: 3pt;
    margin-bottom: 2pt;
}

#syntaxErrQuestion {
    margin-top: 12px;
}

#syntaxErrTxtInput {
    margin-top: 3px;
    margin-bottom: 6px;
    padding: 2px;
}

#syntaxErrSubmitBtn,
#syntaxErrCloseBtn {
    margin-right: 8px;
}

#syntaxErrHideAllLink {
    font-size: 8pt;
}

#testCasesPane {
    margin-top: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}