img {
  width: 100%;
  max-width: 500px;
}

.imgsmall {
  width: auto;
  height: auto;
}

.imgwrapper {
  width: 100%;
}



button {
  width: auto;
  min-height: 30px;
  border-radius: 5px;
  background-color: steelblue;
  color: white;
  text-decoration: none;
}

header {
  width: 100%;
  background-color: steelblue;
  color: white;
  font-size: 2.0em;
  text-align: center;
  font-family: sans-serif;
  font-variant: small-caps;
  padding: 5px;
}

nav {
  background-color: steelblue;
  font-size: 0.9em;
  float: left;
  min-width: 150px;
  max-width: 150px;
}

#body {
  margin-left: 150px;
  padding: 10px;
}

body {
  background-color: lightsteelblue;
}

#nav-note {
  display: none;
}

nav > ul {
  list-style-type: none;
  margin: 5px;
  padding: 5px;
}

nav > ul > li > a > button {
  width: 100%;
  background-color: lightsteelblue;
  color: #315b7d; /* dark steel blue */
}
nav > ul > li.selected > a > button
{
  background-color: #b47846;
  color: white;
}

.navhead {
  text-align: center;
  color: lightsteelblue;
}

table {
  text-align: center;
  vertical-align: middle;
  border-collapse: collapse;
  width: 100%;
}

td {
  border: solid #9eb0c7;
  padding: 5px;
}

footer {
  font-size: 0.8em;
  background-color: lightsteelblue;
  color: #315b7d; /* dark steel blue */
  text-align: center;
  clear: both;
  border: solid 1px lightsteelblue;
}

.highlight {
  background-color: yellow;
  color: black;
}

.header {
  background-color: darkblue;
  color: white;
  text-align: center;
}

#calculator {
  background-color: navy;
  color: white;
  width: 100%;
  min-height: 300px;
}

.hide {
  color: white;
  background-color: white;
}

.hide:hover, .show {
  color: black;
  background-color: transparent;
}

@media print {
  /*****   Styles for print   ******/


  h1, h2, h3, * {
    color: black;
  }

  nav, nav#nav, nav#navList, #periodictable {
    height: 0;
    display: none;
  }

  body {
    font-size: 12pt;
  }

  #body {
    margin-left: 0;
    padding: 10px;
  }

  body div#periodictable {
    font-size: 0.7em;
    max-width: 90%
  }
}

/* smaller screen */
@media screen and (max-width: 500px) {

  #body {
    margin-left: 0;
    padding: 10px;
  }

  nav {
    float: none;
    max-width:100%;
    width: 100%;
  }

  #nav-note {
    display: block;
    font-size: 0.8em;
    background-color: lightsteelblue;
    color:black;
    text-align: center;
  }

  header {
    font-size: 1.5em;
  }

  .small-hide {
    display: none;
  }
  .small-show {
    display: block;
  }
}
.small-hide {
  display: block;
}
.small-show {
  display: none;
}
/*rainbow*/
.r {
  color: white;
  background-color: red;
}

.o {
  color: white;
  background-color: orange;
}

.g {
  color: white;
  background-color: green;
}

.b {
  color: white;
  background-color: blue;
}

.i {
  color: white;
  background-color: indigo;
}

.v {
  color: white;
  background-color: violet;
}

.c {
  color: black;
  background-color: cyan;
}

.m {
  color: white;
  background-color: magenta;
}

.y {
  color: black;
  background-color: yellow;
}

.w {
  color: black;
  background-color: white;
}

.k {
  color: white;
  background-color: black;
}

/*periodic table*/
.me {
  color: white;
}

.nm {
  color: darkgray;
}

.sm {
  color: dimgray
}

.am {
  background-color: darkred;
}

.ae {
  background-color: darkorange;
}

.tm {
  background-color: goldenrod;
}

.no {
  background-color: darkgreen;
}

.ha {
  background-color: dodgerblue;
}

.ng {
  background-color: blueviolet;
}

.keyword {
  color: orangered
}

.function {
  color: darkgoldenrod
}

.property {
  color: green
}

.comment {
  color: darkgray
}


/*flex box controllers*/


.img-control {
  width: 100%;
  max-width: 200px;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.flex-child {
  text-align: center;
  margin: 5px;
}

.no-underline {
  text-decoration: none;
}

.smaller {
  font-size: x-small;
}

.bold {
  font-weight: bold;
}

.framed {
  border: 7px royalblue inset;
}

figure {
  margin: auto;
}

.verdana
{
  font-family: "Ink Free", Verdana, sans-serif;
}
.color1 {
  color: yellow;
}
.color2 {
  color: darkorange;
}

kbd.key {
  border-radius: 3px;
  padding: 1px 2px 0;
  border: 1px solid black;
  background-color: cornsilk;
  color: black;
  text-transform: uppercase;
}

#insert-calculator
{
  /*width: 265px;*/
  /*height: 424px;*/
  margin: auto;
}


/*div arrows*/
.arrow-up {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 20px solid black;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid black;
}

.arrow-right {
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 20px solid black;
}

.arrow-left {
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;

  border-right:20px solid black;
}