/*
Copyright 2022 Karl J. Obermeyer
*/

* {
  -ms-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif, monospace;
  /*font-family: "lucida console", monospace;*/
  /*font-family: "Arial, Helvetica", sans-serif;*/
  font-weight: 400;
  /*outline: 1px solid red !important;*/
}

/* Global dark-mode mode switch via adding class to outer html tag */
html.dark-mode {
  filter: invert(1);
}
.dark-mode img.dark-mode-immune,
.dark-mode video.dark-mode-immune {
  /* Counter-inversion for tagged images/videos */
  filter: invert(1);
}


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

a {
  color: rgb(1, 1, 156);
  text-decoration: none;
}

a:visited {
  color: rgb(133, 1, 133);
}

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

table {
  border-collapse: collapse;
}

body {
  background-color: white;
  margin: 3px auto 0 auto;
  padding: 0;
  max-width: 900px;
  min-width: 320px;
}

.negative-img {
  -webkit-filter: invert(1);
  filter: invert(1);
}

code, pre {
  background-color: #f2f2f2;
}

code {
  border-radius: 3px;
}

pre {
  background-color: #f2f2f2;
  padding: 3px;
  border-radius: 5px;
  white-space: pre-wrap;
}



/* --- Responsive Header --- */

header {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin: 0 auto -10px auto;
  padding: 0;
  width: 97%;
}

#name-div {
  margin: 0;
  padding: 0;
}

#name {
  line-height: 100%;
  margin: 0 0 -15px 0;
  padding: 0;
}

#title {
  line-height: 100%;
  margin-bottom: 12px;
}

.social {
  font-size: 15px;
}

.social-icon-div {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

/* Prevent Firefox and Safari from making zocial icons blue. */
.linkedin:link,
.googleplus:link,
.meetup:link {
  color: white;
  text-decoration: none;
}

.social-icon-img {
  background-color: #fff;
  border: 1px solid #888;
  border-radius: 5px;
  height: 33px;
  margin: 0;
  padding: 0;
  width: 34px;
}

.social-icon-img:hover {
  background-color: #ddd;
}

.social-icon-img:active {
  background-color: #ccc;
}

.dependency-tag-div {
  /* -webkit-filter: grayscale(100%); */
  /* filter: grayscale(100%); */
  margin: 7px 0 0 0;
}

.dependency-tag-img {
  background-color: #fff;
  border: 1px solid #888;
  border-radius: 5px;
  height: 27px;
  margin: 0;
  padding: 0;
}


@media only screen and (max-width: 509px) {
  #mugshot-div {
    display: none;
  }

  #mugshot {
    display: none;
  }

  #name-div {
    text-align: center;
    margin: 10px auto -8px auto;
  }

  .social {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  .social-div1 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 5px 0 0 0;
    padding: 0 0 0 0;
    text-align: center;
  }

  .social-div2 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 5px 0 0 0;
    padding: 0 0 0 0;
    text-align: center;
  }

  .social-icon-div {
    display: inline;
    margin: 0 7px 0 7px;
    padding: 0;
  }

  .social-icon-div:first-child {
    margin: 0 7px 0 7px;
    padding: 0;
  }

  .social-icon-div:last-child {
    margin: 0 7px 0 7px;
    padding: 0;
  }
}

@media only screen and (min-width: 510px) {
  #mugshot-div {
    display: block;
    /* This unusual use of margin to create space for the contained image is a
    hack to prevent Safari from distorting the image as the window becomes
    smaller (but before it goes into "drawer" mode). */
    height: 0;
    width: 0;
    margin: 5px 182px 210px 0;
    padding: 0;
    /* This is what you would think the CSS should be, i.e., before the Safari
    hack.*/
    /*height: 210px;
    margin: 10px 10px 0 0;
    min-width: 172px;
    padding: 0;
    width: 172px;*/
  }

  #mugshot {
    /* Actual image dimensions: 438 x 536 */
    display: block;
    /*filter: grayscale(100%);*/
    height: 210px;
    margin: 0;
    padding: 0;
    /*width: 172px;*/
  }

  #name-div {
    text-align: right;
  }

  #name {
    font-size: 30pt;
  }

  .social {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
  }

  .social-div1 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin: 5px 0 0 0;
    padding: 0;
  }

  .social-div2 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin: 5px 0 0 0;
    padding: 0;
  }

  .social-icon-div {
    display: inline;
    margin: 0 0 0 8px;
    padding: 0;
  }

  .social-div1 .social-icon-div:first-child {
    margin-left: 0;
  }
}



/* -- Responsive Nav Bar -- */

#veil {
  background-color: black;
  display: none;
  height: 100%;
  left: 0;
  opacity: 0.0;
  pointer-events: none;
  position: fixed;
  top: 0;
  -webkit-transition: opacity 0.2s ease;
  -o-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
  width: 100%;
  z-index: 50;
}

nav {
  color: white;
  background-color: black;
  border: 1px solid black;
  display: none;
  font-size: 1.5em;
  margin: 0;
  padding: 0;
  z-index: 100;
}

.nav-item {
  color: white !important;
  margin: 2px 5px;
}

.nav-item:link {
  color: white !important;
  text-decoration: none;
}

.nav-item:hover {
  /*font-weight: 800;*/
  /* Use one of these instead of bold for viariable-space fonts */
  /*text-shadow: 0 0 1px black;*/
  text-decoration: underline;
}

/*.home-nav-item {
  font-weight: 800;
}*/

/* Drawer */
@media only screen and (max-width: 759px) {
  #veil.active {
    display: block;
    opacity: 0.4;
    pointer-events: fill;
  }

  header {
    margin-top: 35px;
  }

  #primary-nav {
    border-radius: 0 10px 10px 0;
    display: block;
    position: fixed;
    text-align: left;
    top: 35px;
    width: 200px;
    /* move drawer off canvas. */
    -webkit-transform: translate(-200px, 0);
    -ms-transform: translate(-200px, 0);
    transform: translate(-200px, 0);
    /* animate the drawer. */
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  }

  #primary-nav.open {
    left: 0;
    /* move drawer onto canvas. */
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0);
    /* animate the drawer. */
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  }

  #secondary-nav {
    display: none;
  }

  .nav-item {
    display: block;
    padding: 5px 0;
  }

  .nav-item-separator {
    display: none;
  }

  #hamburger-rule {
    -ms-flex-line-pack: center;
    align-content: center;
    background-color: black;
    border: 1px solid black;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 28px;
    height: 35px;
    left: 0;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    text-align: left;
    visibility: visible;
    width: 100%;
    z-index: 100;
  }

  #hamburger {
    color: white;
    display: inline-block;
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 0 5px;
  }

  #first-page-separator-div {
    display: block;
  }
}

/* No Drawer */
@media only screen and (min-width: 760px) {
  header {
    margin-top: 5px;
  }

  nav {
    -ms-flex-line-pack: center;
    align-content: center;
    border-radius: 0 0 8px 8px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    /* flex-start or center */
    max-width: 900px;
    min-width: 320px;
    width: 100%;
  }

  #primary-nav {
    margin: 1em 0 0.5em 0;
  }

  #secondary-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: fixed;
    top: 0;
    visibility: hidden;
    /* hidden or visible */
  }

  .nav-item {
    display: inline;
  }

  .nav-item-separator {
    display: inline;
  }

  #hamburger-rule {
    display: none;
  }

  #hamburger {
    display: none;
  }

  #first-page-separator-div {
    display: none;
  }
}



/* --- Main Content --- */

main {
  max-width: 900px;
  margin: 0 auto 0 auto;
  min-width: 320px;
  padding: 0;
}

.weak-page-separator-div {
  background-color: black;
  border: 1px solid black;
  border-radius: 1.5px;
  height: 3px;
  margin: 2em 3px 1em 3px;
}

.page-separator-div {
  background-color: black;
  border: 1px solid black;
  border-radius: 3px;
  height: 6px;
  margin: 2em 3px 1em 3px;
}

article {
  margin: 0 auto 0 auto;
  overflow-wrap: break-word;
  /* renamed property in CSS3 draft spec */
  width: 95%;
  word-wrap: break-word;
  /* all browsers since IE 5.5+ */
}



/* --- Projects Signin --- */

#projects-sign-in {
  margin: 0 auto;
  text-align: center;
}

input[type="button"],
button {
  background-color: lightgrey;
  border: 1px solid black;
  border-radius: 10px;
  color: black;
  margin: 5px 2px;
  outline: none;
}

input[type="button"]:active,
button:active {
  background-color: black;
  border: 1px solid lightgrey;
  border-radius: 10px;
  color: white;
  outline: none;
}

input[type="button"]:hover,
button:hover {
  -webkit-box-shadow: 0 0 0 1px;
  box-shadow: 0 0 0 1px;
  font-weight: 800;
}

input[type="button"]:focus,
button:focus {
  outline: none;
}

input[type="checkbox"] {
  display: inline-block;
  -webkit-transform: scale(1.3);
  -ms-transform: scale(1.3);
  transform: scale(1.3);
}

input[type="text"],
input[type="password"] {
  border: 2px solid black;
  border-radius: 4px;
}

.input-bar {
  background-color: white;
  border: solid 1px;
  border-radius: 3px;
  display: block;
  margin: 3px auto;
  text-align: center;
  width: 15em;
}

/* form placeholder text */
input::-webkit-input-placeholder {
  color: #888;
  font-style: italic;
}

input::-moz-placeholder {
  color: #888;
  font-style: italic;
}

input:-ms-input-placeholder {
  color: #888;
  font-style: italic;
}

input:-moz-placeholder {
  color: #888;
  font-style: italic;
}



/* --- Recreation --- */

#recreation-imgs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  /*filter: grayscale(100%);*/
  height: 620px;
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
}

#hallett {
  background-clip: content-box;
  background-image: url("../images/recreation/kjo.hallett.jpg");
  background-position: 70% 100%;
  background-repeat: no-repeat;
  background-size: cover;
  height: 300px;
  margin: 0;
  padding: 0;
  width: 100%;
}

#dragons-tail {
  background-clip: content-box;
  background-image: url("../images/recreation/kjo.dragons_tail.jpg");
  background-position: center 10%;
  background-repeat: no-repeat;
  background-size: cover;
  height: 320px;
  margin: 0;
  padding: 0;
  width: 50%;
}

#pawnee {
  background-clip: content-box;
  background-image: url("../images/recreation/kjo.pawnee-2.jpg");
  background-position: 60% top;
  background-repeat: no-repeat;
  background-size: cover;
  height: 320px;
  margin: 0;
  padding: 0;
  width: 50%;
}

.audio-div {
  /*filter: grayscale(100%);*/
  text-align: center;
}

.audio-title {
  margin-bottom: 5px;
  padding: 0;
}



/* --- Footer --- */

footer {
  border-top: 1px solid black;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  text-align: center;
  margin: 3rem auto 5px auto;
  padding: 1rem 0 0 0;
}

.copyright {
  width: 100%;
}

.mystery-div {
  margin: 800em 0 0 0;
  padding: 0;
  width: 100%;
}

#easter-egg {
  /*border: 5px solid purple;*/
  text-align: center;
  margin: 10px auto 20px auto;
  opacity: 1;
  -webkit-transition: visibility 1.0s, opacity 1.0s linear;
  -o-transition: visibility 1.0s, opacity 1.0s linear;
  transition: visibility 1.0s, opacity 1.0s linear;
  visibility: visible;
  width: 100%;
}

#easter-egg.hidden {
  opacity: 0;
  -webkit-transition: visibility 0.5s, opacity 0.5s linear;
  -o-transition: visibility 0.5s, opacity 0.5s linear;
  transition: visibility 0.5s, opacity 0.5s linear;
  visibility: hidden;
}

#torus-attractors {
  width: 60%;
}

#artifacts-of-nature-div {
  margin: 0;
  padding: 0;
}

.artifact-of-nature {
  margin: 0;
  padding: 0;
}

#ferns {
  height: 90px;
  margin: 0;
  padding: 0;
}

#snail1 {
  height: 35px;
  margin-right: 8px;
}

#snail2 {
  height: 28px;
  margin-right: 8px;
}

#snail3 {
  height: 20px;
}
