:root {
--base:#fff;
--accent:#000080; /* blue */
--accent-2:#339900; /* green */
--width: 900px;
}

body {
background: var(--base);
font-family: -apple-system,BlinkMacSystemFont,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol;
font-size: 130%;
margin: 0;
padding: 0;
line-height: 1.2;
}

:focus-visible {
outline: 3px solid black;
box-shadow: 0 0 0 6px white;
}

a { 
text-decoration: underline;
color: var(--accent);
}

a:hover, a:focus { 
color: var(--accent-2);
text-decoration: underline;
}

a:active { 
color: #000;
text-decoration: underline;
}

/* header and footer */

.content, .fullwidthinner, footer {
max-width: var(--width);
margin-left: auto;
margin-right: auto;
padding: 0 1em;
}

header {
background: var(--accent);
display: flex;
justify-content: space-between;
align-items: center;
text-align: center;
margin-bottom: 2em;
padding: 0 2em;
}

footer {
border-top: 1px solid var(--accent);
text-align: center;
margin-top: 6em;
padding: 1em;
font-size: 70%;
line-height: 1.8;
}

/* logo */

#logo a {
color: #fff;
background: url(../images/star.svg) no-repeat 0 50%;
background-size: auto 100%;
padding: .2em 0 .2em 1.5em;
text-decoration: none;
}

#logo a:hover, #logo a:focus {
text-decoration: underline;
}

/* navigation */

nav {
padding: .5em 0 .1em 0;
text-align: center;
}

nav ul {
margin: 0;
}

nav li {
text-align: left;
display: inline;
background: none;
margin: 0;
padding: 0;
}

nav li a {
color: #fff;
font-size: 60%; /* 85% */
text-decoration: none;
padding: 0 .7em;
line-height: 2em;
display: inline-block;
}

nav li a:hover, nav li a:focus {
color: #fff;
opacity: .8;
text-decoration: none;
}

nav a.active {
color: var(--accent);
}

nav a:before { 
display: block;
content: '';
background-size: 24px auto!important;
background-position: center bottom!important;
height: 24px;
}

.menu-read a:before { 
background: url(../images/read-white.svg) no-repeat; 
}
      
.menu-comic a:before { 
background: url(../images/comic-white.svg) no-repeat; 
}
       
.menu-bible a:before { 
background: url(../images/bible-white.svg) no-repeat; 
}

.menu-read.active a:before { 
background: url(../images/read-col.svg) no-repeat; 
}
          
.menu-comic.active a:before { 
background: url(../images/comic-col.svg) no-repeat; 
}
          
.menu-bible.active a:before { 
background: url(../images/bible-col.svg) no-repeat; 
}


/* general */

h1, h2, h3 {
font-weight: 400;
text-align: center;
}

body.privacypage h2, body.privacypage h3 {
text-align: left;
}

h1 {
font-size: 185%;
color: var(--accent);
margin-bottom: 1em;
}

h1 span {
color: var(--accent-2);
}

h2 {
margin-top: 1em;
font-size: 180%;
color: var(--accent);
}

h3 {
margin-top: 1.5em;
font-size: 150%;
color: var(--accent);
}

p {
margin: 1.2em 0;
}

.small {
font-size: 80%;
}

#back-to-top {
background: rgba(0,0,0,.6);
transition: all 200ms linear;
}

#back-to-top:hover, #back-to-top:focus {
background: rgba(0,0,0,9);
}

/* misc */

ul {
padding-left: 1em;
}

li {
margin-bottom: .5em; 
list-style: square;
}

p strong, li strong {
color: var(--accent-2);
}

main img {
display: block;
margin: 0 auto;
max-width: 100%;
height: auto;
}

main img.imgc {
display: block;
margin: auto;
}

blockquote {
background: #eee;
margin: 0;
padding: 0.1em 1em 1em 1em;
font-style: italic;
font-size: 120%;
}

blockquote cite {
font-size: 80%;
}

hr {
border: 0;
border-top: .1em solid var(--accent);
margin: 2em;
}

.ref {
font-style: italic;
}

#script {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}

.comicimg {
margin-bottom: 1.5em;
}

/* infobox */

.infobox {
display: flex;
flex-flow: row wrap;
margin-bottom: 2em;
padding: 1em;
border-radius: .5em;
position: relative;
}

.infoboxlink {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 100%;
}

.infobox:hover {
background: #efefef;
}

.imgarea {
flex: 3;
}

.imgarea.imgsml {
flex: 2;
}

.imgarea.imgxsml {
flex: 1;
}

.infoarea {
flex: 4;
margin: auto auto auto 2em;
}

.infoarea.infowide {
flex: 5;
}

.infoarea h2 {
text-align: left;
margin-top: 0;
font-size: 150%;
}

.infoarea h3 {
text-align: left;
margin-top: 0;
}

/* tables */

table {
width: 100%;
border-collapse: collapse;
border-width: 0px;
border-color: var(--accent);
border-style: solid;
}

table thead {
background-color: var(--accent);
color: var(--base);
text-align: left;
font-family: 'Montserrat Alternates', sans-serif;
font-weight: 600;
text-transform: uppercase;
}

table td, table th {
border-width: 0px;
border-color: var(--accent);
border-style: solid;
padding: .5rem;
}

tr:nth-child(even) {
background-color: #efefef;
}


/* form */

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

label {
margin:0 0 3px 0;
padding:0px;
display:block;
font-weight: bold!important;
color: var(--accent-2)!important;
}
input[type=text], 
input[type=date],
input[type=datetime],
input[type=number],
input[type=search],
input[type=time],
input[type=url],
input[type=email],
textarea, select{
box-sizing: border-box;
border: 0;
background: var(--base);
color: #111;
padding: 10px 15px;
margin:0px;
border: 1px solid var(--accent);
outline: none;	
font-size: inherit;
}
input[type=text]:focus, 
input[type=date]:focus,
input[type=datetime]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=email]:focus,
textarea:focus, 
select:focus{
border: 1px solid var(--accent-2);
}
input[type="checkbox"],input[type='radio'] {
width: 1.5em;
height: 1.5em;
margin-right: 0.5em;
vertical-align: text-top;
}
select{
width: 100%;
}
textarea{
min-height: 150px!important;
}
button, input[type=submit], input[type=button], .button{
background: var(--accent-2);
color: #fff;
padding: 12px 18px;
border: none;
font-size: inherit;
text-decoration: none;
border-radius: 5px;
}
button:hover, input[type=submit]:hover, input[type=button]:hover, .button:hover, button:focus, input[type=submit]:focus, input[type=button]:focus, .button:focus {
background: var(--accent);
color: #fff;
text-decoration: none;
}

a.button {
display: inline-block;
}

.cog-abuse {display: none;}
.cog-abuse li {
background: none;
padding: auto;
}


/* media queries */

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

.widewidth {
margin-left: 0;
margin-right: 0;
width: 100%;
}

}


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

.content {
max-width: 85%;
}

}

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

body {
font-size: 110%;
}

header {
margin-bottom: 1.5em;
padding: 0 1em;
}

footer {
margin-top: 4em;
}

h1 {
font-size: 200%;
}

h2 {
font-size: 150%;
}

h3 {
font-size: 120%;
}

.infobox {
padding-bottom: .1em;
}

.imgarea, .imgarea.imgsml, .imgarea.imgxsml {
flex: 1 100%;
}

.infoarea, .infoarea.infowide {
flex: 1 100%;
margin-top: 0;
margin-left: 0;
}

.infoarea h2, .infoarea h3 {
text-align: center;
margin-top: 1em;
font-size: 120%;
}

.infobox img {
max-width: 60%;
}

.blackpanel {
width: auto;
}

}


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

header {
margin-bottom: 1.25em;
padding: 0 .7em;
}

h1 {
font-size: 130%;
}

h2 {
text-align: left;
font-size: 120%;
}

h3 {
text-align: left;
font-size: 110%;
}

blockquote {
font-size: 100%;
}

nav li a {
padding: 0 .4em;
}

}


html {
scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}