html, body {
    width: 99%;
    height: 100%;
    font-family: 'segoe ui';
}

h2 {
    color: orange;
}
h3 {
    color: #565454;
}
article {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5em;
  text-decoration: none;
}

main {
    flex-grow: 1;
    padding:2em
}

@media all and (max-width: 700px){
    main {
    padding:0em;    
    }
}    


header, main, footer {
    flex-shrink: 0;
}

  footer {
  background-color: #efefef;
  text-align: center;
  text-decoration: none;
  font-size: 14px; 
   padding:0.5em
}


.optbox
{
    PADDING-RIGHT: 5px;
    PADDING-LEFT: 5px;
    padding-right: 5px;
    PADDING-BOTTOM: 5px;
    MARGIN-LEFT: 10%;
    TEXT-ALIGN: left
}


/* navigation bar css*/
#nav {
  position: relative;
}
#nav ul {
  display: none;
  width: 100%;
  list-style: none;
  margin: 0px;
  padding: 0px;
}
#nav ul li a {
  display: block;
  padding: 1em;
  background: #807F7E;
  color: white;
  text-decoration: none;
  border-right: 3px solid #ffffff;
  border-radius: 5px;
  white-space: nowrap;  /* to stop top menu two word item wrapping on collapse  */
}
#nav ul li a:hover {
  background: #565454;
}
#nav ul li:last-of-type a {
  border-right: 0px;
}
#nav ul li ul li a {
  padding-left: 1.5em;
}
#nav ul li ul li ul li a {
  padding-left: 3.125em;
}
#nav input.trigger {
  position: absolute;
  top: -9999px;
  left: -9999px;
}
#nav input.trigger:checked ~ ul, #nav input.trigger:checked ~ ul li ul {
  display: block !important;
}
@media (min-width: 600px) {
  #nav input.trigger:checked ~ ul, #nav input.trigger:checked ~ ul li ul {
    /* older flexbox */
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    box-orient: horizontal;
    /* newer flexbox */
    display: flex;
    flex-direction: row;
  }
}
#nav label {
  position: relative;
  display: block;
  min-height: 2em;
  padding: .45em;
  font-size: 1.1em;
  margin: 0;
  cursor: pointer;
  background: #807F7E;
  line-height: 2em;
  color: #ffffff;
    border-radius: 5px;
}
#nav label:after {
  position: absolute;
  right: 1em;
  top: .2em;
  content: "\2261";
  font-size: 1.8em;
  color: white;
}
@media (min-width: 65em) {
  #nav ul {
    /* older flexbox */
    display: -ms-flexbox;
    flex-direction: -ms-row;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    box-orient: horizontal;
    /* newer flexbox */
    display: flex;
    flex-direction: row;
  }
  #nav ul li {
    position: relative;
    text-align: center;
    /* older flexbox */
    -ms-flex: 1;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    box-flex: 1;
    /* newer flexbox */
    flex: 1;
  }
  #nav ul li ul {
    display: none !important;
    position: absolute;
    top: 3.0625em;
    left: 0;
    display: block;
    width: 12.5em;
    z-index: 200;
  }
  #nav ul li ul li {
    text-align: left;
  }
  #nav ul li ul li ul {
    z-index: 300;
    top: 0px;
    left: 12.4em;
  }
  #nav ul li ul li ul li a {
    padding-left: 30px !important;
  }
  #nav ul li:hover > ul {
    display: block !important;
  }
  #nav label {
    display: none;
  }
}
/* button stuff */

.buttonpanel{
  padding:10px;
  background:white;
  display: flex;
  justify-content:space-between;
  flex-wrap:wrap;
}
/* allow more button space for small screens */
@media all and (max-width: 700px) {
    .main, .optbox, .buttonpanel {
    padding:0px; 
    MARGIN-LEFT: 0em;      
    }
}

.flexButton{
  flex:1 1 0;
  border:2px solid orange;
  border-radius: 10px;      
  margin: 10px;
  text-align:center;
  font-size: 1.0em;
  color: white; /* new */
  font-weight: 700;
  text-decoration: none!important;
  padding:17px;
  min-width: 10rem;  /* new */
}
/* resize buttons for small screens */
@media all and (max-width: 700px) {
  .flexButton{
  font-size: 0.7em;
  color: black;
  padding:7px;
  border-radius: 6px;
  min-width: 8rem;    
}
}
/* give id tags to remove underlines */
#switch1, #switch2, #k2 {
text-decoration: none!important;
}

.flexButton:hover{
 color: white;
 background: #807F7E!important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;        
}

.flexButton:focus{
 color: white;
 outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;        
}

/*buttons for html index page href style */
.flexButton2{
  flex:1 1 0;
  border:2px solid orange;
  border-radius: 10px;      
  margin: 10px;
  text-align:center;
  font-size: 1.6em;
  color: orange; /* new */
  font-weight: 700;
  text-decoration: none!important;
  padding:17px;
  min-width: 10rem;  /* new */
}
/* resize buttons for small screens */
@media all and (max-width: 700px) {
  .flexButton2{
  font-size: 1.0em;
  color: black;
  padding:7px;
  border-radius: 6px;
  min-width: 10rem;    
}
}

.flexButton2:hover{
 color: white;
 background: #807F7E!important;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;        
}

.flexButton2:focus{
 color: white;
 outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;        
}

/* code location number to display on hover */
l3 {
  font-size: 0.7em;
  color: orange;
  display: inline;      
}

.flexLabel{
  flex:1 1 0;
  border:2px solid orange;
  border-radius: 10px;        
  margin: 20px;
  text-align:center;
  padding:20px;
}
/* for non mouse users */
function handleFirstTab(e) {
    if (e.keyCode === 9) { // the "I am a keyboard user" key
        document.body.classList.add('user-is-tabbing');
        window.removeEventListener('keydown', handleFirstTab);
    }
}

window.addEventListener('keydown', handleFirstTab);
body:not(.user-is-tabbing) button:focus,
body:not(.user-is-tabbing) input:focus,
body:not(.user-is-tabbing) select:focus,
body:not(.user-is-tabbing) textarea:focus {
  outline: none;
}

/* grid stuff */
.flex-grid {
  display: flex;
}
.flex-grid .col {
  flex: 1;
}
.flex-grid-thirds {
  display: flex;
  justify-content: space-between;
}
.flex-grid-thirds .col {
  width: 32%;
}

@media (max-width: 600px) {
  .flex-grid,
  .flex-grid-thirds {
    display: block;
    .col {
      width: 100%;
      margin: 0 0 10px 0;
    }
  }
}
/* tables */
 #wrapper {
   /*width:1024px;*/
   max-width:100%;
   min-height:200px;
   background:#fff;
   box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
   padding:0px;
   border-radius:3px
}

* {
  box-sizing: border-box;
  font-family: -apple-system, 
    BlinkMacSystemFont, 
    "Segoe UI", 
    Roboto, 
    Oxygen-Sans, 
    Ubuntu, 
    Cantarell, 
    "Helvetica Neue", 
    sans-serif;

}

.flex-container {
  display: flex;
  padding: .5em;
    flex-wrap: wrap
   
}

.flex-item {
  flex: 1;
  margin-right: 1em;
  width: 0;
  flex-grow: 1;

}

.flex-item:last-child {
  margin-right: 0;
}

.k2box {
    border: 1px solid #eee;
  list-style-type: none;
  margin: 0;
  padding: 0;
  transition: 0.25s;
min-width: 0;
      text-align: center;
}

.k2box3 {
    border: 1px solid #eee;
  list-style-type: none;
  margin: 0;
  padding: 0;
  transition: 0.25s;
  min-width: 0;
  text-align: center;
  flex-grow: 1
}

.k2box3:hover {
  box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.2);
  transform: none;
}

.k2box:hover {
  box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.2);
  transform: none;
}

.k2box .k2box-dark {
  background-color: #807F7E;
  color: #fff;
  font-size: 1.5em;
}

.k2box .highlight {
  background-color: #29b6f6;
}

/*
.k2box2 li {
  background-color: #fff;
  list-style-type: none;
  border-bottom: 1px solid #eee;
  padding: 1.2em;
  text-align: left;
}
*/

.k2box li {
  background-color: #fff;
  list-style-type: none;
  border-bottom: 1px solid #eee;
  padding: 1.2em;
  text-align: center;
}

.k2box .grey {
  background-color: #eee;
  font-size: 1.25em;
}

button {
  background-color: orange;
  border: none;
  border-radius: .15em;
  color: #fff;
  cursor: pointer;
  padding: .75em 1.5em;
  font-size: 1em;
}

@media only screen and (max-width: 700px) {
  button {
    padding: 0em;
  }
}

@media only screen and (max-width: 600px) {
  .flex-container {
    flex-wrap: wrap;
    padding: 0em;  
  }

  .flex-item {
    flex: 0 0 100%;
    margin-bottom: 1em;
    width: 100%;

  }

  .k2box:hover {
    box-shadow: none;
    transform: none;
  }

  button {
    padding: .75em .5em;
  }
}

#apdiv > * {
/  background-color: #ffa500;
  font-size: 1.0em;
  color: #0a0700;
/  display: inline;   
/  -ms-transform: scale(1.5); 
/ -webkit-transform: scale(1.5);
/  transform: scale(1.5);
}

#apdiv input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fffefd;
  border-radius: 20%;
  width: 30px;
  height: 30px;
  border: 2px solid #999;
  transition: 0.2s all linear;
  margin-right: 5px;
  position: relative;
  top: 4px;
/  display: inline;   
}

#apdiv input:checked {
  border: 2px solid #060606;
  background-color: #ffa500;
}

.icon {
	background-image: url("icons.png");
	background-color: transparent;
	width: 32px;
	height: 32px;
	display: inline-block;
}
.inputboxes {
  display: flex;
}
.inputbox {
  flex: 1;
  font-size: 1.0em;    
}
.buttons {
  font-size: 1.0em;   
}

