body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: "Book Antiqua", serif;
    background-image: url("/img/bg.JPG");
    background-attachment: fixed;
    background-color: #3c6cb6;
    color: #000000;
}

a {
    text-decoration: none;
    font-weight: bold;
}

a:link,
a:visited {
    color: #0000ff;
}

a:hover {
    color: #00dddd;
    text-decoration: underline;
}

p,
div,
ul {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input,
button,
form,
span,
a,
ul,
li {
    box-sizing: border-box;
}

.container {
    width: 1170px;
    margin: 0 auto;
}

.header {
    font: bold 32px "Book Antiqua";
    color: #eeeeff;
    margin: 10px auto;
    height: 60px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
}

.header-logo {
    width: 50px;
    height: 50px;
}

.header-title {
    line-height: 60px;
    text-align: left;
}

.login {
    width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    font-size: 16px;
    border: 1px solid #00ffff;
    padding: 8px;
}

.login div {
    margin: auto 0;
}

.menu-toggle {
    display: none;
}

.menu-toggle:active {
    background-color: #000000;
}

.menu-toggle-img {
    width: 30px;
    height: 30px;
}

.mobile-login {
    width: 220px;
    height: 30px;
    margin-top: 5px;
    color: #eeeeff;
    text-align: center;
    font-size: 16px;
    justify-content: center;
    display: none;
}

.mobile-login .login-logout {
    margin-left: 20px;
}

.nav-wrapper {
    width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.nav-wrapper li {
    list-style: none;
}

a.nav-link:link,
a.nav-link:visited,
a.login-link:link,
a.login-link:visited {
    color: #00ffff;
}

a.nav-link:hover,
a.login-link:hover {
    color: #0000ff;
    text-decoration: underline;
}

li.nav-group:hover > ul,
li.nav-group:active > ul {
    display: inherit;
    transition: all 1s ease-out 0.5s;
}

.nav-item {
    font-size: 24px;
    color: #ffffff;
    font-weight: bold;
    position: relative;
}

.nav--subnav {
    list-style: none;
    position: absolute;
    top: 28px;
    display: none;
    z-index: 10;
    background-color: #ccffff;
}

.nav--subnav--item {
    padding: 4px 6px;
    font-size: 16px;
    width: 200px;
}

.nav--subnav--item:hover {
    background-color: #00ffff;
}

.nav--subnav-link:any-link {
    color: #0000ff;
}

.nav--subnav-link:hover {
    text-decoration: none;
}

.mobile-menu {
    display: none;
    position: absolute;
    right: 10px;
    top: 40px;
    background: rgba(0, 0, 0, 0.7803921568627451);
    padding: 12px;
    text-align: left;
}

.mobile-nav-item {
    line-height: 36px;
    list-style: none;
}

li.mobile-nav-item:hover {
    background-color: #ffffff;
}

a.mobile-nav-link:hover {
    background-color: #ffffff;
    color: #0000ff;
    text-decoration: none;
}

.content{
    margin: 10px auto;
    vertical-align: top;
}

#content {
    min-height: 550px;
    font: 18px "Book Antiqua";
    text-indent: 26px;
    line-height: 27px;
    text-align: justify;
    background: #ffffff;
    padding: 20px 40px;
}

label {
    font-weight: bold;
}

form {
    text-indent: 0;
}

#sectsel form label {
    font: 20px "Georgia";
}

#sectsel form select {
    font: 18px Georgia;
}

#sectsel form button {
    font: 16px Georgia;
}

.login li {
    list-style: none;
    margin-right: 10px;
}

.login-name {
    font-weight: bold;
}

#login {
    font-size: 16px;
    border: 1px solid #00ffff;
    padding: 8px;
}

.lps {
    font: 14px Georgia;
    margin: 14px 0;
}

#lpcaption {
    font: bold 20px "Georgia";
}

#vis_line {
    padding: 5px 0;
}

.cross {
    background: #ffffaa;
    border-left: 2px solid #0000ff;
    padding-left: 10px;
}

.cit {
    font-style: italic;
    font-family: "Book Antiqua";
    border-left: 2px solid #666666;
    color: #666666;
}

.appeal {
    text-decoration: underline;
    font-weight: bold;
    color: #00bbbb;
}

#smile_panel {
    border: 1px solid #00ffff;
    background-color: #ffffff;
    width: 880px;
}

#xtvi_panel tr td,
#smile_panel tr td {
    text-align: center;
    padding: 5px;
    text-indent: 0;
}

#loginform {
    text-align: center;
    width: 650px;
    margin: 0 auto;
    border: 2px solid #4475c1;
    padding: 5px;
}

.ftextfield {
    background: #ddffff;
    font: 16px "Lucida Console";
    color: #000000;
    width: 300px;
}

.ftextfield:focus {
    border: 2px solid #00ffff;
}

#succmsg {
    text-align: center;
    width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 2px solid #00ff00;
}

#failmsg {
    text-align: center;
    width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 2px solid #ff0000;
}

th {
    font-weight: bold;
    text-align: center;
    text-indent: 0;
    padding: 5px;
}

td {
    text-indent: 0;
    padding: 5px;
}

.centered {
    text-align: center;
    text-indent: 0px;
}

.gap {
    height: 10px;
}

#show_mode,
#ilhdr {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #000090;
}

#mainposthd {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #00bbbb;
}

.subhdr,
#conftxt {
    font-weight: bold;
    color: #00bbbb;
    text-align: center;
}

.plus {
    text-align: center;
}

.statcri {
    font-style: italic;
}

.statdt {
    font-weight: bold;
}

.pdate {
    text-align: right;
    font-weight: bold;
    width: 325px;
    margin-left: auto;
    border-bottom: 1px solid black;
}

.pheader {
    font-size: 20px;
    text-align: center;
}

.psection {
    font-size: 14px;
    color: #00bbbb;
    width: 160px;
    padding: 4px;
    text-align: center;
    border: 1px solid #00bbbb;
    position: relative;
    left: 26px;
    text-indent: 0;
    margin-top: 20px;
    margin-bottom: 10px;
}

#content > .psection{
    margin-top: 0;
}

.pcomnum {
    font: 16px Courier;
    font-weight: bold;
}

.divisor {
    color: #00bbbb;
    font-size: 26px;
    text-align: center;
    font-weight: bold;
}

.post-image:hover {
    cursor: zoom-in;
}

.imgw600 {
    width: 600px;
}

.imgh400 {
    height: 400px;
}

.imgorig {
    width: inherit;
    height: inherit;
}

.imgzoom {
    display: block;
    position: fixed;
    z-index: 10;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 99%;
    max-height: 99%;
    border: solid rgba(210, 210, 210, 0.4);
    border-width: 100vh 100vw;
    cursor: zoom-out;
}

.imgzoom:hover {
    cursor: zoom-out;
}

.comment {
    margin: 15px 0;
}

.comdate {
    font-weight: bold;
    border-bottom: 1px solid black;
    width: 250px;
}

.comauth {
    font-weight: bolder;
    font-family: "Bookman Old Style", serif;
}

.comtext {
    font-family: "Bookman Old Style", serif;
    font-size: 16px;
    text-indent: 27px;
}

.comm_alinks {
    font-size: 14px;
    line-height: 18px;
    border: 1px solid #000090;
    position: relative;
    text-indent: 0;
    left: 26px;
    padding: 6px;
    width: 50px;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

.post_alinks {
    font-size: 14px;
    line-height: 18px;
    border: 1px solid #000090;
    margin-left: auto;
    margin-top: 7px;
    text-indent: 0;
    right: 0;
    padding: 6px;
    width: 50px;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

#commtf,
#ta1,
#posttf {
    width: 100%;
    height: 200px;
    font: 16px "Lucida Console";
    line-height: 24px;
    background: #ddffff;
    color: #000000;
}

#commtf:focus,
#ta1:focus {
    border: 2px solid #00bbbb;
    background: #ffffff;
}

#fordel {
    border: 2px solid #ff0000;
    padding: 10px;
}

#postsct {
    width: 200px;
    background: #ddffff;
    font: 16px "Lucida Console";
    height: 25px;
}

#posthd,
#uslg,
#usnm,
#usrl,
#saddnm {
    background: #ddffff;
    font: 16px "Lucida Console";
    width: 300px;
    height: 25px;
    padding: 3px;
    margin-bottom: 10px;
}

#postsct:focus,
#posthd:focus,
#posttf:focus,
#uslg:focus,
#usnm:focus,
#usrl:focus,
#saddnm:focus {
    border: 2px solid #00ffff;
}

#smile {
    font-size: 15px;
    font-weight: bold;
}

#smile a:link,
#smile a:visited {
    color: #0000bb;
}

#smile a:hover {
    color: #00bbbb;
}

#passtext {
    font-weight: bold;
}

#fwords {
    background: #ddffff;
    font: 16px "Lucida Console";
    color: #000000;
    width: 300px;
}

#fwords:focus {
    border: 2px solid #00ffff;
}

#fwbutt {
    font: 16px "Book Antiqua";
}

.aptab {
    margin: 0 auto;
}

.aptab th {
    border-bottom: 1px solid black;
}

#pagelinks {
    margin: 0 auto;
    text-align: center;
    font-size: 20px;
}

#pagelinks a:hover {
    text-decoration: none;
}

.section_list li {
    list-style: none;
    margin: 10px 0;
}

.comments-list-item{
    margin: 5px 0 10px 0;
}

.comments-list-newitem{
    background: #90e27b;
}

.search-highlight{
    background-color: #00ffff;
}

.b-calendar {
    width: 300px;
    border: 1px solid #000000;
    padding: 5px;
    margin: 10px auto;
    text-indent: 0;
}

.b-calendar__tb {
    margin: 0 auto;
}

.b-calendar__title {
    font-weight: bold;
    text-align: center;
}

.b-calendar__day {
    text-align: right;
}

.b-calendar__weekend {
    color: #ff0000;
}

.b-calendar a {
    font-weight: bold;
}

.b-calendar__day a:link,
.b-calendar__day a:visited {
    color: #000000;
    font-weight: bold;
    text-decoration: underline;
}

.b-calendar__day a:hover {
    color: #0000ff;
    font-weight: bold;
    text-decoration: underline;
}

.b-calendar__weekend a:link,
.b-calendar__weekend a:visited {
    color: #ff0000;
    font-weight: bold;
    text-decoration: underline;
}

.b-calendar__weekend a:hover {
    color: #0000ff;
    font-weight: bold;
    text-decoration: underline;
}

.month-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#uplink {
    text-align: center;
    width: 22px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ffffff;
    border: 1px solid #0000ff;
    font-size: 22px;
    padding: 5px;
    text-indent: 0;
}

#footer {
    text-align: center;
    vertical-align: middle;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
}

.show {
    display: block;
}

/* 993px - 1200px */
@media screen and (max-width: 1200px) {
    .container {
        width: 960px;
    }
    .aptab {
        font-size: 16px;
    }
}

/* 768px - 992px */
@media screen and (max-width: 992px) {
    .container {
        width: 720px;
    }
    img {
        max-width: 90%;
    }
    li.nav-group:hover > ul,
    li.nav-group:active > ul {
        display: none;
    }
    .header {
        font-size: 26px;
    }
    .login {
        width: 140px;
        font-size: 14px;
    }
    .nav-wrapper {
        width: 680px;
    }
    .nav-item {
        font-size: 20px;
    }
    .subhdr {
        font-size: 18px;
    }
    .pheader {
        margin-top: 6px;
    }
    .psection {
        margin-top: 10px;
    }
    .gap {
        height: 8px;
    }
    .aptab {
        font-size: 12px;
    }
    th,
    td {
        padding: 2px;
    }
    .b-calendar {
        width: 240px;
    }
    #uplink {
        right: 15px;
    }
}

/* 576px - 768px */
@media screen and (max-width: 768px) {
    .container {
        width: 540px;
    }
    .header {
        font-size: 20px;
    }
    .header-logo {
        margin-top: 5px;
    }
    .login {
        width: 100px;
        font-size: 12px;
    }
    .login img {
        width: 10px;
    }
    .nav-wrapper {
        width: 520px;
    }
    .nav-item {
        font-size: 16px;
    }
    #content {
        min-height: 400px;
        padding: 16px;
        font-size: 16px;
    }
    #show_mode,
    #ilhdr {
        font-size: 20px;
    }
    .pdate {
        width: 290px;
    }
    .pheader {
        margin-top: 4px;
        font-size: 18px;
    }
    .psection {
        font-size: 12px;
        width: 140px;
        padding: 2px;
        margin-bottom: 6px;
    }
    .gap {
        height: 6px;
    }
    #mainposthd {
        font-size: 20px;
    }
    .cross {
        padding: 8px 8px 8px 20px;
    }
    .imgw600 {
        width: 450px;
    }
    .imgh400 {
        height: 250px;
    }
    .imgzoom {
        width: inherit;
        height: inherit;
    }
    .subhdr {
        font-size: 14px;
    }
    #loginform,
    #succmsg,
    #failmsg {
        width: 450px;
    }
    #loginform img {
        max-width: 400px;
    }
    #succmsg,
    #failmsg {
        padding: 8px;
    }
    .aptab {
        font-size: 9px;
    }
    th,
    td {
        padding: 2px;
    }
}

/* 320px - 576px */
@media screen and (max-width: 576px) {
    body{
        background: #3B6DB6;
    }
    .container {
        width: 300px;
    }
    .header {
        height: 40px;
    }
    .header-logo {
        display: block;
        width: 30px;
        height: 30px;
        margin-top: 0;
    }
    .header-title {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .login {
        display: none;
    }
    .mobile-login {
        display: flex;
    }
    .nav {
        display: none;
    }
    .content{
        margin: 0 auto;
    }
    #loginform,
    #succmsg,
    #failmsg {
        width: 250px;
    }
    #loginform img {
        max-width: 200px;
    }
    #succmsg,
    #failmsg {
        padding: 8px;
    }
    #loginf {
        width: 150px;
    }
    #passf {
        width: 150px;
    }
    #content {
        font-size: 14px;
        text-indent: 0;
        min-height: 450px;
    }
    #show_mode {
        margin-bottom: 10px;
    }
    .post {
        margin-bottom: 30px;
    }
    .pdate {
        width: 270px;
        margin: 0 auto;
        text-align: center;
    }
    #content > .pdate {
        border: none;
    }
    .psection {
        padding: 0;
        margin-bottom: 6px;
        margin-top: 2px;
        left: 0;
    }
    .ppar {
        margin-bottom: 12px;
    }
    .ppar:last-child{
        margin-bottom: 2px;
    }
    .divisor {
        display: none;
    }
    #vis_line {
        padding: 0;
    }
    .comtext{
        text-indent: 0;
        font-size: 14px;
    }
    .comm_alinks{
        left: 0;
    }
    #fwords{
        width: 250px;
    }
    input, select{
        max-width: 250px;
    }
    .aptab-users{
        font-size: 14px;
    }
    .aptab-users th{
        display: none;
    }
    .aptab-users tr{
        display: block;
        padding: 5px 20px;
        border: 1px solid black;
        margin-bottom: 10px;
    }
    .aptab-users tr:first-child{
        display: none;
    }
    td.aptab-users-item{
        display: list-item;
        text-align: left;
        list-style: none;
    }
}
