BODY {
    background-color: #999;
    color: #333333;
    font-family: Lucida Grande, Lucida Sans, Verdana, Arial, sans-serif;
    font-weight: normal;
    text-decoration: none;
    margin: 0px;
    padding: 0px;
    border: none;
    width: 100%;
}

@media screen and (max-width: 560px) {
    html {
        font-size: 1.5vw;
    }

    body {
        font-size: 12px;
        line-height: 1.2;
    }

    #home_logo,
    #std_title {
        display: none;
    }

    #home_text {
        display: block;
    }

    #main_block {
        margin-top: 17vw;
    }
}

@media screen and (min-width: 561px) {

    body {
        min-width: 1080px;
        font-size: 12px;
        line-height: 1.5;
    }

    #home_logo {
        display: block;
    }

    #home_text,
    #mobile_title {
        display: none;
    }

    #main_block {
        margin-top: 71px;
    }

    .u-text-right-lg {
        text-align: right !important;
    }
}

@media only screen and (min-width: 560px) {
    #mobile_nav {
        display: none;
    }
}

#frame {
    background-color: #f5f5f5;
    width: 100%;
    margin: 0;
    padding: 0;
}

#header {
    width: 100%;
    background-color: #222;
    overflow: hidden;
    padding: 0;
    margin: 0;
    top: 0;
}

@media screen and (max-width: 560px) {
    #header {
        height: 17vw;
        position: fixed;
        touch-action: none;
    }
}

@media screen and (min-width: 561px) {
    #header {
        height: 71px;
        position: fixed;
    }
}

#header2 {
    width: 1200px;
    padding: 0;
    top: 0;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 560px) {
    #header2 {
        height: 17vw;
        position: fixed;
    }
}

@media screen and (min-width: 561px) {
    #header2 {
        height: 71px;
    }
}

#header_logo,
#header_logo img {
    float: left;
    margin: 10px 0 0 0;
    padding: 0;
    border: 0;
    width: 200px;
}

@media screen and (max-width: 560px) {}

@media screen and (min-width: 561px) {}

#base {
    width: 100%;

    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: #aaa;
}

@media screen and (max-width: 560px) {
    #base {
        height: 17vh;
    }
}

@media screen and (min-width: 561px) {
    #base {
        height: 20vw;
    }
}

.base_center {
    width: 80vw;
    position: relative;
    height: 70%;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    margin-left: auto;
    margin-right: auto;
    border: none;
}

input[type=submit].base_button,
button.base_button {
    position: absolute;
    /*background-color: rgb(141, 187, 141);  Green */
    border: none;
    color: white;
    width: 100%;
    height: 100%;
    text-align: center;
    text-decoration: none;
    font-size: clamp(10vw, 10vw, 6rem);
    border-radius: 8px;
    background-color: #1EAEDB;
}

@media screen and (max-width: 560px) {}

@media screen and (min-width: 561px) {}

.colM {
    width: 50vw;
    margin-left: auto;
    margin-right: auto;
    padding: 5vw;
}

#changelist,
table {
    width: 100%;
}

#nav {
    padding: 0;

}

@media screen and (max-width: 560px) {
    #nav {
        display: none;
        top: 17vw;
        margin: 0;
        left: 50vw;
        position: fixed;
        background: #333;
        height: 100%;
    }
}

@media screen and (min-width: 561px) {
    #nav {
        display: block;
        float: left;
        margin: 0px 0 0 3.5em;
    }
}

#nav ul {

    margin: 0;
    padding: 0;
}

#nav .last {
    border-right: 1px dotted #666;
}

#nav li {
    text-align: center;
    margin: 0;
    border-left: 1px dotted #666;
    list-style-type: none;
}

@media screen and (max-width: 560px) {
    #nav li {

        width: 50vw;
    }
}

@media screen and (min-width: 561px) {
    #nav li {
        float: left;
        padding: 0 0 0 0;
        height: 71px;
        width: 10em;
    }
}

#nav li a:link,
#nav li a:visited {
    display: block;
    font-family: Lucida Grande, Lucida Sans, Verdana, Arial, sans-serif;
    font-size: 1.25em;
    font-weight: bold;
    color: #E5EDDC;
    text-decoration: none;

    padding: 0px 0 0 0;
    background-color: #333;
}

@media screen and (max-width: 560px) {

    #nav li a:link,
    #nav li a:visited {
        line-height: 9vh;
    }
}

@media screen and (min-width: 561px) {

    #nav li a:link,
    #nav li a:visited {
        line-height: 71px;
    }
}

#nav li a:hover,
.nav_on a,
#header_logo a:hover img {
    color: #fff;
    background-color: #000;
}

#nav li a:active {
    background-color: #000;
}

#nav_button {
    position: absolute;
    color: #eee;
    left: 74vw;
    font-size: 2.5rem;
    padding: 2rem;
    top: 2.5vh;
    height: auto;
    border-radius: 8px;
}

#mobile_nav ul {
    margin: 0;
    padding: 0;
}

#mobile_nav ul li {
    list-style-type: none;
    float: left;
    margin-left: 2rem;
}

#mobile_nav img {
    padding: 1rem;

    width: 28vw;
}

@media screen and (max-width: 560px) {
    #mobile_nav {
        display: block;
    }
}

@media screen and (min-width: 561px) {
    #mobile_nav {
        display: none;
    }
}

#secondarynav {
    background: var(--breadcrumbs-bg);
    padding: 10px 40px;
    border: none;
    color: var(--breadcrumbs-fg);
    text-align: center;
    height: 50px;
    margin-bottom: 1rem;
}

#user-tools {
    position: absolute;

    padding: 0;

    text-align: center;
    color: #fff;
}

#user-tools a {
    color: #79aec8;
    padding: 0 1rem 0 1rem;
}

@media screen and (max-width: 560px) {
    #user-tools {
        top: 12vw;
        left: 4vw;
        font-size: 2.5vw;
    }
}

@media screen and (min-width: 561px) {
    #user-tools {
        top: 40px;
        right: 0;
        font-size: 11px;
    }
}

.page_picture {
    margin: 0 auto 0 auto;
    padding: 0;
    background-color: #000;
    width: 100%;
    height: 385px;
    background-position: center 0;
    background-repeat: no-repeat;
}

#black_bar {
    background-color: #000;
    height: 131px;
    text-align: center;
}

#black_bar h2 {
    font-family: Georgia, 'Times New Roman', Times;
    font-size: 3em;
    padding: 1em 0 0 0;
    margin: 0;
    color: #666;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 0 0 #000;
    -webkit-text-size-adjust: 100%;

}

#black_bar h3 {
    font-family: Georgia, 'Times New Roman', Times;
    font-weight: 300;
    font-size: 1.5em;
    padding: 2em 0 0 0;
    margin: 0;
    color: #666;
    text-shadow: 0 0 0 #000;
    -webkit-text-size-adjust: 100%;
}

.mainbar {
    margin: 60px 0 0 0;
    width: 480px;
    padding: 0;
}

.centerbar {
    margin: 60px auto 0 180px;
    width: 480px;
    padding: 0;
}

.fullbar {
    width: 980px;
    margin: 60px 0 0 0;
    padding: 0;
}

/*
.container {
    float:left;
    width:980px;
    margin:0;
    padding:0;
}*/
.post {
    margin: 0 auto;
    width: 480px;
}

#left_column {
    float: left;
    margin: 0;
    width: 400px;
    background-color: #EEEEEE;
    padding: 4em 4em 0 1em;
}

.sidebar {
    float: right;
    width: 400px;
    margin: 60px 0 0 0;
    padding: 0;

}

#home_page_main {
    margin: 0 auto 0 auto;
    padding: 1em 0 0 0;
    background-color: #EEEEEE;
    width: 760px;
    height: 336px;
}

img,
object,
embed,
tr,
td {
    border: 0;
    margin: 0;
    padding: .75rem;
    vertical-align: top;
}

#news_block {
    margin: 0 auto 0 auto;
    width: 750px;
    background-color: #EEEEEE;
    padding: 0;
}

#news_block H2 {
    color: #004157;
    border-bottom: 1px solid #004157;
    margin: 0;
    padding: 0;
}

#news1,
#news2 {
    float: left;
    width: 340px;
    margin: 1em 0 1em 15px;
    padding: 0 0 0 1em;
}

#news2 {
    border-left: 1px dotted #004157;
}

#news_more {
    clear: both;
    text-align: right;
    margin: 0 0 1em 0;
    padding: 0 2em 0 0;
    border-top: 1px dotted #004157;
}

.underline {
    border-bottom: 3px solid #004157;
}

#footer {
    clear: both;
    background-color: #000;
    width: 100%;
    height: 81px;
    margin: 0;
    padding: 2em 0 0 0;
    text-align: center;
    font-size: .8em;
    color: #999;
}

#footer a:link {
    color: #999;
}


.side {
    float: right;
    background-color: #fff;
    width: 240px;
    margin: 1em 3em 0 1em;
}

.profile {
    float: left;
    width: 280px;
    height: 140px;
    margin: 0 50px 20px 0;
}

.right {
    margin-right: 0;
}

.profile img {
    float: left;
    margin-right: 20px;
}

.profile h4 {
    font-size: 1.3em;
    margin: 0 0 6px 140px;
    -webkit-text-size-adjust: 100%;
}

.profile p {
    margin: 0 0 0 140px;
    width: 175px;
}

.caption {
    font-size: .8em;
}

/*mobile skeleton corrections*/
@media screen and (max-width: 560px) {
    h1 {
        font-size: 3.6rem;
        line-height: 1.2;
        letter-spacing: -0.1rem;
    }

    h2 {
        font-size: 3.3rem;
        line-height: 1.25;
        letter-spacing: -0.1rem;
    }

    h3 {
        font-size: 3.0rem;
        line-height: 1.3;
        letter-spacing: -0.1rem;
    }

    h4 {
        font-size: 2.8rem;
        line-height: 1.35;
        letter-spacing: -0.08rem;
    }

    h5 {
        font-size: 2.6rem;
        line-height: 1.5;
        letter-spacing: -0.05rem;
    }

    h6 {
        font-size: 2.4rem;
        line-height: 1.6;
        letter-spacing: 0;
    }
}

/*skeleton corrections*/
@media (min-width: 561px) {
    h1 {
        font-size: 2.9rem;
    }

    h2 {
        font-size: 2.4rem;
    }

    h3 {
        font-size: 1.9rem;
    }

    h4 {
        font-size: 1.4rem;
    }

    h5 {
        font-size: 1.rem;
    }

    h6 {
        font-size: .8rem;
    }
}

dt {
    font-size: 1.1em;
    margin: 1em 0 .25em 0;
}

.print {
    font-family: Lucida Grande, Lucida Sans, Verdana, Arial, sans-serif;
}

a,
h2 a:hover,
h3 a:hover {
    color: #06c;
    text-decoration: none;
}

a:hover {
    color: #147;
    text-decoration: underline;
}

a:hover {
    color: #004157;
}

a:visited {
    color: #0033FF;
}

object,
embed {
    border: 0;
    margin: 0;
    padding: 0;
}

img {
    margin: 0;
    padding: 0;
    border: 0;
}

.thumbnail {
    width: 125px;
    height: 125px;
    border: 1px solid #999;
    float: left;
    background: white no-repeat center center;
}

/* BUTTONS */

.buttons a,
.buttons button {

    float: left;
    font-size: 100%;
    padding: 0 1rem 0 1rem;

}

/*
. skeleton mobile button corrections
*/
@media screen and (max-width: 560px) {

    .button,
    button,
    input[type="submit"],
    input[type="reset"],
    input[type="button"] {
        height: auto;
        padding: 1rem;
        font-size: 1.7rem;
        line-height: 2.5rem;
        letter-spacing: 0.1rem;
    }

    .pagination {
        text-align: center;
        margin-bottom: 3em;
        border: 1px solid #333;
    }

    .current_week {
        background-color: #F0FFF0;
        border: 2px solid #333;
    }
}

/* django comments hide */
#id_honeypot {
    display: none;
}

/* override skeleton */
.card {
    background-color: #fff;
}

hr {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
select:not([size]),
textarea:not([rows]) {
    height: unset;
}

li,
form,
input,
select,
textarea {
    margin-bottom: .2rem;
}

p {
    margin-bottom: 1rem;
}

/* django comments */
#id_comment {
    width: 100% !important;
    height: 5.5rem !important;
}

@media screen and (max-width: 560px) {
    #id_comment {
        height: 5.5em !important;
    }

    /* mobile hide */
    .mobile_hide {
        display: none;
    }
}

#messages {
    height: 60px;
    display: block;
    margin: 0;
    padding: 0;
}

ul.messagelist li {
    padding: 1rem;
}

ul.messagelist li {
    display: block;
    background: var(--message-success-bg) url(/admin/img/icon-yes.svg) 40px 12px no-repeat;
    color: var(--body-fg);
}

ul.messagelist li.warning {
    background: var(--message-warning-bg) url(/admin/img/icon-alert.svg) 40px 14px no-repeat;
}

ul.messagelist li.error {
    background: var(--message-error-bg) url(/admin/img/icon-no.svg) 40px 12px no-repeat;
}

.frem1 {
    font-size: 3rem;
    line-height: 1.2;
}

.frem2 {
    font-size: 1.8rem;
    line-height: 1.25;
}

.frem3 {
    font-size: 1.1rem;
    line-height: 1.3;
}

.frem4 {
    font-size: .9rem;
    line-height: 1.35;
}

.frem5 {
    font-size: .77rem;
    line-height: 1.2;
}

.frem6 {
    font-size: .6rem;
    line-height: 1.5;
}

.fvw1 {
    min-height: 0.000001vw;
    /*safari hack fix */
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.25;
}

.fvw2 {
    min-height: 0.000001vw;
    /*safari hack fix */
    font-size: clamp(1.8rem, 4.25vw, 4rem);
    line-height: 1.25;
}

.fvw3 {
    min-height: 0.000001vw;
    /*safari hack fix */
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    line-height: 1.2;
}

.fvw4 {
    min-height: 0.000001vw;
    /*safari hack fix */
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    line-height: 1.2;
}

.fvw5 {
    min-height: 0.000001vw;
    /*safari hack fix */
    font-size: clamp(.8rem, 2vw, 1.5rem);
    line-height: 1.1;
}

.fvw6 {
    min-height: 0.000001vw;
    /*safari hack fix */
    font-size: clamp(.65rem, .85vw, .9rem);
    line-height: 1.2;
}

tr:nth-child(odd),
.row-form-errors {
    background: var(--body-bg);
}

tr:nth-child(even),
tr:nth-child(even) .errorlist,
tr:nth-child(odd)+.row-form-errors,
tr:nth-child(odd)+.row-form-errors .errorlist {
    background: var(--darkened-bg);
}

/* schedule stuff */
.month {
    table-layout: auto;
    overflow: scroll;
}

.month td {
    padding: 0 0 2rem 0;
    line-height: 1.4;
    margin-bottom: 1rem;
    border-right: 1px dotted rgb(170, 170, 170);
}

.month td select {
    display: block;
    width: 7em;
}

.calendar_delete {
    float: right;
    padding-right: 2rem;
}

.calendar_daynum {
    display: inline-block;
    border-right: 1px solid rgb(170, 170, 170);
    border-bottom: 1px solid rgb(170, 170, 170);
    background-color: #eee;
    padding: 4px;
}

td.calendar_day_filled {
    vertical-align: top;
    width: auto;
}

td.calendar_day_empty {
    vertical-align: top;
    width: 4%;
}

.calendar_day_filled a {
    display: block;
    padding-left: .1rem;
}

.calendar_buttons,
.calendar_empty {
    width: 5%;
}

#fancybox-content form,
#fancybox-content p {
    margin: 0;
}

#fancybox-content label {
    margin: 0;
    display: inline;
    vertical-align: top;
}

.deletelink {
    padding-left: 16px;
    background: url(../admin/img/icon-deletelink.svg) 0 1px no-repeat;
}

a.deletelink:link,
a.deletelink:visited {
    color: #CC3434;
}

/* admin login override */
.login #header {
    padding: unset !important;
}