/* YUI 3.5.0 reset.css (http://developer.yahoo.com/yui/3/cssreset/) - http://cssreset.com */
:root {
    --box_background:   #f2f2f2;  /* gray */
    --color1:           #0054a6;  /* very dark blue */
    --color2:           #007AF2;  /* dark blue */
    --color3:           #00bbff;  /* light blue */
}

html {
    color: #000;
    background: #FFF
}

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td {
    margin: 0;
    padding: 0
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

fieldset, img {
    border: 0
}

address, caption, cite, code, dfn, em, strong, th, var {
    font-style: normal;
    font-weight: normal
}

ol, ul {
    padding-left: 10px;
    list-style: none
}

nav ul {
    padding: 10px;
}

caption, th {
    text-align: left
}

h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-weight: normal
}

q:before, q:after {
    content: ''
}

abbr, acronym {
    border: 0;
    font-variant: normal
}

sup {
    vertical-align: text-top
}

sub {
    vertical-align: text-bottom
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit
}

input, textarea, select {
    *font-size: 100%
}

legend {
    color: #000
}

#yui3-css-stamp.cssreset {
    display: none
}
/**************************/
/***** BEGIN L4F CSS ******/
/**************************/

h1,h2,h3,h4,h5,h6,
nav,
header {
    font-family: "jaf-bernino-sans-condensed", Arial, sans-serif;
}

h1 {
    font-size: 2.2em;
}

h2 {
    font-size: 1.4em;
}

.puzzle_text h2, h3 {
    font-size: 2em;
    text-align: center;
}

a, a:link, a:visited {
    color: #0081ff;
    text-decoration: none;
}

strong {
    font-weight: 900;
}

em {
    font-style: italic;
}

a:hover {
    text-decoration: underline;
}

.clearfix {
    clear:both;
}

select {
   overflow: hidden;
   border: 1px solid #ccc;
   width: 268px;
   padding: 5px;
   background: #FFF;
   font-size: 16px;
   cursor:pointer;
}

/*#content a:visited {*/
    /*color: #9f9f9f;*/
/*}*/

p, #content {
    font-family:  "freight-sans-pro" , Georgia, serif;
}

em {
    font-style:italic;
}

body {
    font-size: 16px;
    font-weight: 100;
    margin: 0 auto;
}

#wrap, header, footer {
    margin: 0 auto;
    padding: 0 30px;
}


header {
    position: relative;
    background: none repeat scroll 0 0 var(--box_background);
    padding-bottom: 10px;
    margin-bottom: 20px;
    max-width: 100%;
    min-height: 75px;
}

#logo {
    font-family: "jaf-bernino-sans-condensed", Arial, sans-serif;
    font-size: 3.5em;
    font-weight: 100;
    color: var(--color1);
    float: left;
}

#logo span {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
}

#logo a {
    color: var(--color1);
    text-decoration: none;
}

#content {
    clear: left;
}

nav {
    float: left;
    margin-top: 15px;
    margin-bottom: 15px;
}

nav ul li {
    float: left;
    margin-left: 2em;
    font-size: 1.6em;
    font-weight: 100;
    text-transform: uppercase;
}

#content ul {
    list-style-type: square;
    list-style-position: inside;
}

#content ol {
    list-style-type: decimal;
    list-style-position: inside;
}

dt {
    font-weight: bold;
}

dd {
    margin-bottom:1em;
}

p {
    margin: 0.5em 0;
}

div.puzzle_text p {
    /*margin: 0;*/
}

pre {

    white-space: pre-wrap; /* css-3 */
    width: inherit;
}

table {
    margin: 1em auto;
    background: #fff;
}

#sudoku td {
    height: 30px;
    width: 30px;
    text-align: center;
    vertical-align: middle;
    padding: 0;
    border: 1px solid;
}

#sudoku table {
    border: 2px solid;
}
#sudoku td:nth-child(3n-2) {
    border-left: 2px solid;
}

#sudoku tr:nth-child(3n-3) {
    border-bottom: 2px solid;
}

table td {
    padding: 0.4em 0.6em;
    border: none;
}

#login-register {
    position: absolute;
    top: 0;
    right: 30px;
}

#login-register a {
    background: var(--color1);
    padding: 0.4em 0.6em;
    display: block;
    color: white;
    text-decoration: none;
}

.form-errors {
    color: #F00;
    display: inline-block;
    margin-left: 0.5em;
}

form div.input {
    margin: 1em 0;
}

form textarea, form input, form select, form button {
    border: 1px solid #ccc;
    padding: 0.3em;
}

.modelchoicefield {
    max-width: 181px;
    display: inline-block;
}

.modelchoicefield option {
    font-size: 0.7em;
}

.alone-button {
    cursor: pointer;
    background-color: var(--color2);
    border: none;
    color: white;
    margin: 10px;
    margin-top: 5px;
    padding: 5px;
}

form button, form input[type="submit"] {
    cursor: pointer;
    background-color: var(--color2);
    border: none;
    color: white;
    float: right;
}

.g-recaptcha {
    width: 304px;  /* actual width */
    margin: 10px auto;
}

label {
    display: inline-block;
    width: 100px;
    text-align: right;
}

form button:hover, form input[type="submit"]:hover {
    opacity: 0.6;
}

.puzzle_text,
#login,
#register,
code,
.l4f-box,
.log_list,
blockquote {
    padding: 25px 30px;
    margin: 30px;
    background-color: var(--box_background);
    display: block;
}

#login, #register {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 350px;
}

.feedback-report {
    display: flex;
    flex-direction: column;
    padding-top: 0px;
    padding-bottom: 0px;
}

footer {
    font-size:0.8em;
    clear:both;
    text-align: center;
    bottom: 30px;
    max-width: 1200px;
    padding: 30px 0;
}

footer p {
    margin: 0;
}

.chap-group {
    float: left;
    margin-bottom: 30px;
    margin-right: 30px;
}

.guide-chap-group {

}

/*.guide-chap-group p {*/
    /*margin: 0.2em 1em;*/
/*}*/

.chap-group h2 {
    text-transform: lowercase;
}

.solver-nav a {
    background-color: var(--color2);
    color: white;
    padding: 0.3em 0.6em;
    font-weight: 500;
    margin: 0;
}

.double-column-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 60px;
}

.l4f-left-wrapper {
    width: 45%;
    max-width: 800px;
}

.l4f-right-wrapper {
    width: 45%;
    max-width: 800px;
}

.l4f-header {
    width: 96%;
    font-size: 2.5em;
    padding: 0.2em 0.4em;
}

.l4f-header.left {
    color: #f7f7f7;
    background-color: var(--color2);
}

.l4f-header.right {
    color: #333333;
    background-color: var(--box_background);
}

.l4f-full-wrapper,
#wrap.puzzle-index,
#wrap.guide-index,
#wrap.help-index,
#wrap.static-page,
#wrap.home-page,
#wrap.user-page {
    max-width: 1000px;
    margin: 0 auto;
}

textarea#id_clauses {
    height: 500px;
}

textarea#id_sorts{
    height: 150px;
}

.invisible-radio {
    display: none;
}

.radio-label {
    display: initial;
    cursor: pointer;
    color: var(--color2);
    font-family: "freight-sans-pro" , Georgia, serif !important;
    font-size: 16px !important;
    font-weight: 100 !important;
}

.delete-label:hover {
    color: red;
}

.load-label:hover {
    color: var(--color1);
}

.inner-assignment-list {
    list-style-type: circle !important;
    margin-left: 10px;
}

.settings { /* settings for solver */
    display: flex;
    flex-direction: horizontal;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
}

#solver_input .settings label {
    font-family: "freight-sans-pro" , Georgia, serif;
    text-align: right;
    font-size: 16px;
    margin-right: 5px;
}

#solver_input label, .solver-output-heading {
    font-family: "jaf-bernino-sans-condensed", Arial, sans-serif;
    text-align: left;
    font-size: 1.6em;
    width: 100%
}

.difficulty {
    display: inline-block;
    float: right;
    font-size: 0.5em;
    font-weight: 100;
    margin-top: 10px;
    text-align: right;
    text-transform: capitalize;
    background-color: var(--color2);
    padding: 0.2em 0.4em;
}

.pager a {
    padding: 0.2em 0.4em;
    color: white;
    display:block;
}

.pager a:hover {
    text-decoration: none;
    opacity: 0.6;
}

.pager .prev {
    float:left;
    background: #666;
    color: white;
}

.pager .next {
    float:right;
    background-color: var(--color2);
}

a.admin-link {
    padding: 0.2em 0.4em;
    color: white;
    background-color: red;
    clear:both;
    display:block;
    width: 100px;
    margin: 0 0 15px;
    text-align: center;
}

.form-row {
    margin: 1em 0;
}

img,
.charts {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    width: auto\9; /* ie8 */
}

.guideImg {
    padding: 25px 30px;
    margin: 30px;
    background-color: var(--box_background);
}


#solver_output {
    clear:both;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 30px 20px 30px;
    background-color: var(--box_background);
    display:block;
    min-height: 60px;
}

.solver-output-heading {
    clear:both;
    font-weight: 100;
}

#solver_input button,
#syntax_button {
    margin: 0 5px;
    padding: 0.3em;
    font-family:  "freight-sans-pro" , Georgia, serif;
    font-size: 1em;
    background-color: var(--box_background);
    color: #333;
}

#solver_input button:hover,
#syntax_button:hover {
    background-color: var(--color2);
    color: white;
    opacity: 1;
}

.send-buttons {
    float: right;
    margin-bottom: 1em;
}

.send-buttons-v {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.send-buttons-v > button {
    width: 50%;
    display: block;
}

#toolbar {
    position: relative;
    float: left;
    margin : 0 0 0.8em;
}

#toolbar button {
    width: 30px;
    height: 30px;
    padding: 5px;
    margin: 0 5px 0 0;
    background-color: var(--box_background);
    border: none;
    font-size: 0.8em;
    display: block;
    float:left;
    cursor: pointer;
    vertical-align: middle;

}

#toolbar button:hover {
    background-color: var(--color2);
    color: white;
}

.explain {
    float: left;
    margin: 0 10px 0 0;
    line-height: 2em;
}

.float-right {
    float:right !important;
    margin-right: 0 !important;
}

.float-left {
    float:left !important;
}

.column1.right {
    float:right;
    width: 30%;
}

.column1 {
    width: 30%;
}
.column3.left {
    float:left;
    width: 66%;
}

a.register_button {
    background-color: var(--color1);
    display:block;
    clear:right;
    float:right;
    color: white;
    padding: 0.3em;
    margin-top: 1em;
}

.sub-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.sub-nav a {
    background-color: var(--color2);
    padding: 0.5em 1em;
    color: white;
    line-height: 1.5em;
    display: inline-block;
    margin-bottom: 8px;
    width: 250px;
}

.log_list{
    height: 300px;
    padding: 0px 0px;
    text-align: center;
    overflow-y: auto;
}

.log_list li{
    list-style-type: none;
}

.table-load {
    width: 100%;
}

.table-load tr:last-child {
    border-bottom: 1px solid black;
}

.savework,
.loadwork,
.classwork {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top: 50px;
}

.settingswork {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#savetext,
#loadSel {
    flex-grow: 1;
}

#savebtn {
    margin-left: 10px;
}

#solver_submission_form .input label {
    font-family: "jaf-bernino-sans-condensed", Arial, sans-serif;
    display: block;
    font-size: 2em;
    text-align: right;
    width: 98%;
}

p.help_text {
    font-size: 0.9em;
    margin-top: 3px;
    text-align: left;
}

#solver_submission_form .input textarea {
    margin-left: 0;
    width: 98%;
}

#solver_submission_form .class_submit {
    margin: 0 0 0 5px;
    padding: 0.3em;
    font-family:  "freight-sans-pro" , Georgia, serif;
    font-size: 1em;
    color: #fff;
    float:none;

}

#solver_submission_form .send-buttons {
    margin: 0;
}

#solver_submission_form .settings {
    display: none;
}

p.submission_data {
    font-family: monospace;
}

@media only screen and (max-width: 480px) {

    .puzzle_text, #login, #register, code, .l4f-box, blockquote {
        margin: 0;
    }

}

@media only screen and (max-width: 1000px) {

    .double-column-container {
        flex-direction: column;
    }

    .l4f-left-wrapper, .l4f-right-wrapper {
        float:none;
        width: 100%;
        clear:both;
    }

    .l4f-right-wrapper {
    }

    .l4f-header {
        width: auto;
    }

    .column1.right {
        float:right;
        width: 100%;
    }
    .column3.left {
        float:left;
        width: 100%;
    }
}

@media only screen and (max-width: 1000px) {

    body {
        min-width: 300px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.1em
    }

    nav ul li {
        float: none;
        font-weight: 100;
        text-transform: uppercase;
        text-align: center;
        display:inline-block;
        margin: 0px 3px;
        font-size: 1.2em;
        background-color: var(--box_background);
        padding: 0.3em 0.6em;
    }

    header {
        padding-bottom: 0px;
        margin-bottom: 0px;
    }

    nav ul {
        text-align: center;
    }

    .solver-nav {
        background-color: var(--color2);
    }

    nav ul li:last-child {
        margin-right: 0;
    }

    #login-register {
        position: absolute;
        top: 0;
        left: 50%;
        width: 150px;
        clear:both;
        margin-left: -75px;
    }

    #login-register a {

        text-align: center;
    }

    nav {
        position: relative;
        top: 0;
        left: 0;
        margin: 0 auto;
        width: 100%;
    }

    #logo {
        float:none;
        text-align: center;
    }

    span.difficulty {
        background-color: transparent;
        display: block;
        float: none;
        text-align: left;
        padding: 0;
        margin: 0;
        width: auto;
        font-size: 0.4em;
    }
}

@media only screen and (max-width: 500px) {
    nav ul li {
        font-size: 1em;
        padding-left: 3px;
        padding-right: 3px;
        margin-left: 3px;
        margin-right: 3px;
        margin-top: 3px;
    }

    body {
        font-size: 13px;
        font-weight: 100;
        margin: 0 auto;
    }
}


/* FEEDBACK/BUG REPORT STYLING */


#feedback-div,
#bugreport-div {
    padding-bottom: 75px;
    display: none;
}

#feedback-div input,
#bugreport-div input {
    display:block;
}

#feedback-form textarea,
#bugreport-form textarea,
#feedback-form input,
#bugreport-form input,
#feedback-form select,
#bugreport-form select {
    width: 100%;
    position: relative;
    margin: 0 auto;
    margin-bottom: 10px;
    padding: 0;
    padding-bottom: 10px;
}

#feedback-div input[type="submit"],
#bugreport-div input[type="submit"] {
    width:150px;
    padding: 0.5em;
}

#feedback-div label,
#bugreport-div label {
    display: block;
    width: 100%;
    text-align: left;
    font-family: "jaf-bernino-sans-condensed", Arial, sans-serif;
    font-size: 1.6em;
    width: 100%;
}


#feedbackTitle:hover, #bugTitle:hover {
    cursor: pointer;
    text-decoration:underline;
    color: #0081ff;
}

.errorlist {
    color: #F00;
    margin-left: 0.5em;
    padding: 0;
    margin-top: 0;
    margin-bottom: 30px;
}
