/*
 * bresink.com Master CSS definitions
 * Responsive 2021 version - without variables
 * Last modification: 2021-07-23
 */

@media (prefers-color-scheme: light)
{
  body {
    color: #000;
    background-color: #fff;
  }

  h1, h2, h3, h4, h5, h6 {
    margin-top: 2em;
    color: #555;
  }
  
  hr {
    border: 1px dotted #ddd;
  }

  a:link {
    color: #0000ff;
  }

  a:visited {
    color: #0000AA;
  }
  
  kbd {
    border: 1px solid #222;
  }

  table, td, th {
    border: 1px solid #ddd;
  }

  th {
    color: #222;
  }

  tr.evenrow {
    background-color: #eee;
  }

  td.specialcell {
    background-color: #eee;
  }

  td.formintro {
    background-color: #ddd;
  }

  .note {
    border: 1px solid #ddd;
    background-color: #eee;
    color: #222;
  }

  .important-note {
    border: 1px solid #ddd;
    color: #222;
  }

  .warning {
    border: 1px solid #ddd;
    color: #222;
  }
  
  .blog-entry {
    border-bottom: 1px dotted #ddd;
  }

  article.screenshots {
    background-color: #eee;
  }

  nav.level2nav ul {
    background-color: #ddd;
     color: #555;
  }

  nav.level2nav ul li a {
    color: #000;
  }

  nav.level2nav a:hover, nav.level2nav a:link:hover, nav.level2nav a:visited:hover {
    background-color: #eee;
  }

  nav.level2nav ul li.activeitem {
    background-color: #ddd;
    color: #eee;
  }
}

@media (prefers-color-scheme: dark)
{
  body {
    color: #fff;
    background-color: #000;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #aaa;
  }

  hr {
    border: 1px dotted #999;
  }

  a:link {
    color: #6666FF;
  }

  a:visited {
    color: #6666AA;
  }

  kbd {
    border: 1px solid #ddd;
  }

  table, td, th {
    border: 1px solid #999;
  }

  th {
    color: #ddd;
  }

  tr.evenrow {
    background-color: #666;
  }

  td.specialcell {
    background-color: #666;
  }

  td.formintro {
    background-color: #999;
  }

  .note {
    border: 1px solid #999;
    background-color: #666;
    color: #ddd;
  }

  .important-note {
    border: 1px solid #999;
    color: #ddd;
  }

  .warning {
    border: 1px solid #999;
    color: #ddd;
  }

  .blog-entry {
    border-bottom: 1px dotted #999;
  }

  article.screenshots {
    background-color: #666;
  }

  nav.level2nav ul {
     color: #aaa;
    background-color: #999;
  }

  nav.level2nav ul li a {
    color: #fff;
  }

  nav.level2nav a:hover, nav.level2nav a:link:hover, nav.level2nav a:visited:hover {
    background-color: #666;
  }

  nav.level2nav ul li.activeitem {
    background-color: #999;
    color: #666;
  }
}

* {
  box-sizing: border-box;
  word-wrap: break-word;
}

body {
  font-family: "Avenir Next", AvenirNext, Verdana, sans-serif;
}

header {
  text-align: right;
  border-top: solid 1px #ddd;
  border-bottom: solid 1px #ddd;
  background-image: linear-gradient(to bottom, #eee, #ccc);
}

footer {
  text-align: center;
  clear: both;
  padding: 2em;
  font-size: small;
}

strong {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

kbd {
  font-family: "Andale Mono", AndaleMono, Arial, sans-serif;
  font-weight: normal;
  padding: 1px 3px;
  margin: 1px;
}

a:link {
  text-decoration: none;
}
a:visited {
  text-decoration: none;
}
a:hover {
  color: darkorange;
  text-decoration: underline;
}
a:active {
  color: darkorange;
  text-decoration: underline;
}

table {
  border-collapse: collapse;
  margin: 1em;
}

th {
  background-color: steelblue;
  font-weight: 600;
}

table.special {
  margin: 5px;
}

table.spacious-cells td, table.spacious-cells th {
  padding: 5px 1em 5px 1em;
}

td.specialintro {
  background-color: #bbb;
  font-weight: 600;
}
td.formintro {
  font-weight: 600;
  text-align: right;
  vertical-align: top;
  width: 15em;
  min-width: 10em;
}

img.floating-left {
  float: left;
  margin: 10px;
}

img.floating-right {
  float: right;
  margin: 10px;
}

nav.topnav {
  background-color: #333;
  margin-top: 2px;
  margin-bottom: 2px;
  overflow: hidden;
}

nav.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

nav.topnav a:hover {
  background-color: #ddd;
  color: black;
  text-decoration: underline;
}

nav.topnav a.activeitem {
  background-color: #5555ee;
  color: white;
}
nav.topnav a.activeitem:hover {
  text-decoration: none;
}

nav.topnav .icon {
  display: none;
}

nav.level2nav img {
  margin: 0;
  vertical-align: bottom;
}

.inline-warning {
  color: red;
}

.note {
  margin-left: 3em;
  margin-right: 3em;
  padding: 1em;
}

.important-note {
  background-color: steelblue;
  margin-left: 3em;
  margin-right: 3em;
  padding: 1em;
}

.warning {
  background-color: crimson;
  margin-left: 3em;
  margin-right: 3em;
  padding: 1em;
}

input.accentedbutton  { 
  color: white;
  background: darkblue;
  font-size: large;
  font-weight: 600;
  height: 30px;
  padding-left: 1em;
  padding-right: 1em;
  border-radius: 5px;
  border: 1px solid navy;
}
input.accentedbutton:hover {
  background: royalblue;
}

article.screenshots section {
  background-color: white;
  border-radius: 25px;
  margin: 1em 2em 1em 2em;
  padding: 0.5em 1em 0.5em 1em;
}

article.screenshots h3,article.screenshots h4,article.screenshots h5,article.screenshots h6 {
  color: royalblue;
}

article.screenshots p {
  color: black;
  font-weight: 600;
}

article.screenshots img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 768px) {
  aside {
    border-top: 1px solid #888;
  }

  .topnav a:not(:first-child) {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
  .topnav.responsive {
    position: relative
  }
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

@media only screen and (min-width: 768px) {
  #page {
    width: 80%;
    margin: auto;
  }
  
  article {
    width: 75%;
     float: left;
  }

  aside {
    width: 25%;
     float: right;
    padding-left: 2em;
    font-size: smaller;
  }

  nav.level2nav ul {
    border-top: 2px solid #bbb;
    border-bottom: 2px solid #bbb;
    font-size: small;
    padding: 4px 4px;
  }
  nav.level2nav ul li {
    display: inline;
    margin: 5px;
  }
  nav.level2nav ul li a {
    padding: 8px 2px 4px 0px;
    text-decoration: none;
  }
  nav.level2nav ul li.activeitem {
    padding: 8px 4px 0px 0px;
  }
  
  .leftcolumn {
    padding: 0em 2em 0em 2em;
    float: left;
    width: 50%;
    border-right: 1px dotted #bbb;
  }
  .rightcolumn {
    padding: 0em 2em 0em 2em;
    float: right;
    width: 50%;
  }
  .columnlimiter {
    clear: both;
  }
  
  .blog-entry:after {
    content: "";
    display: table;
    clear: both;
  }
  .blog-icon {
    float: left;
    width: 25%;
    min-width: 155px;
    min-height: 155px;
    padding-top: 1em;
  }
  .blog-text {
    float: left;
    width: 75%;
    padding-top: 1em;
  }
  
  .service-entry:after {
    content: "";
    display: table;
    clear: both;
  }
  .service-icon {
    float: left;
    width: 15%;
    min-width: 80px;
    min-height: 80px;
  }
  .service-text {
    float: left;
    width: 85%;
    padding-top: 0;
  }
}
