* {
  box-sizing: border-box; 
}

body {
  background-color: #101010;
  color:  #e0e0e0;
  font-family: Helvetica;
  font-size: 105%;  
  font-weight: 200;
  line-height: 1.2;

  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;  
  cursor: default;
}

h1 {
  color: #f0c000;
  font-size: 150%;
}

h2 {
  color: #f0c000;
  font-size: 125%;
}

h3 {
  color: #f0c000;
  font-size: 115%;
}

a:link {
  /*color:  #d0a030;*/
  color:  #e0e0e0;
}

a:visited {
  /*color:  #d0a030;*/
  color:  #e0e0e0;
}

a:hover {
  color:  #f0c000;
}

a:active {
  color:  #f0c000;
}



.outerrows {
  width: 100%;
  box-sizing: border-box; 
  align-self: center;
  /*padding: 3%; */
  padding-top: 10px;
  padding-right: 3%;
  padding-bottom: 3%;
  padding-left: 3%;  
}

label {
}

.required {
  color:red;
}

input[type=text], input[type=password], input[type=email] {
  width: 100%;
  padding: 12px 12px;
  margin: 8px 0px;
  box-sizing: border-box;
  border: 2px solid #000000;
  border-radius: 4px;  
  background-color: #303030;
  color: #d0d0d0;
  font-family: Helvetica;
  font-size: 105%; 
}

input[type=text]:focus, input[type=password]:focus, input[type=password]:focus {
  background-color: #606060;
  color:  #f0f0f0;
  border: 2px solid #c0b0b0;
}


input[type=text]:disabled, input[type=password]:disabled, input[type=password]:disabled {
  background-color: #606060;
  color:  #b0b0b0;
}


textarea {
  width: 100%;
  /* height: 150px; */
  padding: 12px 12px;
  margin: 8px 0px;
  box-sizing: border-box;
  border: 2px solid #000000;
  border-radius: 4px;
  background-color: #303030;
  color: #d0d0d0;
  /* resize: none; */
  font-family: Helvetica;
  font-size: 105%; 
}

textarea:focus {
  background-color: #606060;
  color:  #f0f0f0;
  border: 2px solid #c0b0b0;
}

input[type=number] {
  width: 100%;
  padding: 12px 12px;
  margin: 8px 0px;
  box-sizing: border-box;
  border: 2px solid #000000;
  border-radius: 4px;  
  background-color: #303030;
  color: #d0d0d0;
  font-family: Helvetica;
  font-size: 105%; 
}

input[type=number]:focus {
  background-color: #606060;
  color:  #f0f0f0;
  border: 2px solid #c0b0b0;
}

input[type=date] {
  width: auto;
  height: auto;
  padding: 12px 12px;
  margin: 8px 0px;
  box-sizing: border-box;
  border: 2px solid #000000;
  border-radius: 4px;  
  background-color: #303030;
  color: #d0d0d0;
  font-family: Helvetica;
  font-size: 105%; 
}



input[type=file] {
  /*background-color: #e0a000;*/
  background-color: #606060;
  border: 2px dashed #e0e0e0;
  color: #000000;
  padding: 8px 16px;
  text-decoration: none;
  margin: 8px 2px;
  width: 100%;
  height: 10em;
  cursor: pointer;
  font-family: Helvetica;
  font-size: 105%; 
}

input[type=file]:hover {
  border: 2px solid #e0e0e0;
}


select {
  /*-webkit-appearance: menulist-button;*/
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 12px 12px;
  margin: 8px 0px;
  box-sizing: border-box;
  border: 2px solid #000000;
  border-radius: 4px;  
  /*background-color: #303030;*/
  color: #d0d0d0;
  font-family: Helvetica;
  font-size: 105%; 
  background: url("images/iconMenuitem.png") 96% / 5% no-repeat #303030;  
  background-size: 25px 25px;
}

select:focus {
  background-color: #606060;
  color:  #f0f0f0;
  border: 2px solid #c0b0b0;
}


input[type=button], input[type=submit], input[type=reset] {
  background-color: #e0a000;
  border: none;
  color: #000000;
  padding: 16px 32px;
  text-decoration: none;
  margin: 8px 2px;
  cursor: pointer;
  font-weight: bold;  
  font-size: 110%;
}

.blinking {
  animation: opacity 2s ease-in-out infinite;
  opacity: 1;
}

@keyframes opacity {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.blinkingYellow {
  color: #f0c000;
  animation: opacity 5s ease-in-out infinite;
  opacity: 1;
}


/* Create two unequal columns that floats next to each other */
.column {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;  /* x center */
  align-items: flex-start;      /* y center */
  padding: 5px;
}

.flex50 {
  /*width: 49%;*/
  flex: 1 0 50%;
}


.pad2 {
  flex: 0 1 2%;
}


.flex32 {
  flex: 1 0 32%;
}

.flex24 {
  flex: 1 0 24%;
}

.flex74 {
  flex: 1 0 74%;
}

.row {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;  /* x center */
  align-items: flex-end;      /* y center */
}



img {
  max-width: 100%;
  height:  auto;
}



/*
 * Actual HTML header top
 */

.topbar {
  width:  100%;
  /*height: 100px;*/
  display: flex;
  flex-direction: column;
  justify-content: center;  /* x center */
  align-items: center;      /* y center */
  background: #101010;
}

.topbar > img {
  max-width: 100%;
  max-height: 14vh;
  height:  auto;
  margin: 0px;
}


.topbar > a > img {
  max-width: 100%;
  max-height: 14vh;
  height:  auto;
  margin: 0px;
}


/*
 * Main Menu
 */
.menurow {
  display: flex;
  flex-direction: row;
  flex: 0;
  justify-content: center;  /* x center */
  align-items: center;      /* y center */
  /*background: red;*/
  flex-wrap: wrap;
}

.submenurow {
  display: flex;
  flex-direction: row;
  flex: 0;
  justify-content: center;  /* x center */
  align-items: center;      /* y center */
  /*background: red;*/
}

.submenurowright {
  display: flex;
  flex-direction: row;
  flex: 0;
  justify-content: flex-end;  /* x center */
  align-items: center;      /* y center */
  /*background: red;*/
}


.menuitem {
  flex: 0 0 auto;
  max-width: 40%;
  border-left: 1px solid #101010;
  border-right: 1px solid #101010;
  margin: 3px;
  /*background: green;  */
}

/* unvisited link */
/* visited link */
.menuitem a:link, .menuitem a:visited {
  color: #e0e0e0;
  background:  #505050;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  padding: 8px 8px;
  transition: 0.3s;  
  border-radius: 8px;  
}

/* mouse over link */
.menuitem a:hover {
  color: #101010;
  background:  #e0a000;
}

/* selected link */
.menuitem a:active {
  color: #ffffff;
}




.menurow form {
  display: flex;
  flex: 1;
  max-width: 20em;
  flex-direction: row;
  justify-content: center;  /* x center */
  align-items: center;      /* y center */
  /*background: yellow;*/
}

.menurow input[type=text] {
  width: 100%;
  padding: 12px 12px;
  box-sizing: border-box;
  border: 2px solid #000000; 
  border-radius: 4px;  
  background-color: #303030;
  color: #e0e0e0;
  font-family: Helvetica;  
  font-size: 105%; 
}

.menurow input[type=button], input[type=submit], input[type=reset] {
  flex: 0 0 auto;
  background-color: #505050;
  border-left: 1px solid #101010;
  border-right: 1px solid #101010;
  color: #e0e0e0;
  padding: 12px 12px;
  text-decoration: none;
  cursor: pointer;
  font-weight: normal;
  transition: 0.3s;
  border-radius: 12px;    
}

.menurow input[type=button]:hover, input[type=submit]:hover, input[type=reset]:hover {
  color: #101010;
  background:  #e0a000;
}


/*
 * Data top line
 */

.dataheaderrow {
  display: flex;
  flex-direction: row;
  flex: 0;
  justify-content: center;  /* x center */
  align-items: center;      /* y center */
  position: relative;
  flex-wrap: wrap;
  /*background: gray;*/
}

.dataheaderrow > img {
  max-width: 100%;
  max-height: 15em;
  height:  auto;
  flex-grow: 2 1 50%;
  border-radius: 8px;  
  cursor: pointer;
  transition: 0.3s;
}

.dataheaderrow > img:hover {
  opacity: 0.7;
}


.dataheaderrow > a > img {
  max-width: 100%;
  max-height: 15em;
  height:  auto;
  flex-grow: 2 1 50%;
  border-radius: 8px;  
  cursor: pointer;
  transition: 0.3s; 
}

.dataheaderrow > a > img:hover {
  opacity: 0.7;
}


.dataheaderrowtablegroup {
  flex: 0 1 50%;
  position: relative;
  padding: 5px;
}

.dataheaderrowtable {
  flex: 1 0 auto;
  width: 100%;
  border: 1px solid #aaaaaa;
  border-spacing: 5px;
  border-radius: 8px;  
  padding: 8px 8px;
  background: #303030;  
}

.dataheaderrowtablekey {
  text-align:right;
  border: 0px;
  vertical-align:top;
  padding: 2px 2px;
  margin: 2px;
}

.dataheaderrowtablevalue {
  text-align:left;
  border: 0px;
  vertical-align:top;
  padding: 2px 2px;
  margin: 2px;
}


.dataheaderrow > thinspacer {
  flex: 0 1 auto;
  width: 2em;
}



.datamodifiedrow {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 2em;
  flex: 1 1 auto;
  padding: 0px 32px;
  justify-content: space-between;
  align-items: flex-start;      /* y center */
  font-size: smaller;
  position: relative;
  color:  #a0a0a0;
  /*
  background: #303030;  
  border-radius: 4px;
  border: 1px solid #505050;
  */
}

.datamodifieddate {
  flex: 1 1 auto;
  display: block;
  min-width: 50%;
  padding: 0 0.5em;
  position: relative;
  top: -0.5em;
  /*background-color: red;*/
}

.datamodifieduser {
  flex: 1 1 auto;
  min-width: 20%;
  display: block;
  padding: 0 0.5em;
  position: relative;
  top: -0.5em;
  text-align: right;
  /*background-color: green;*/
}



/*
 * GENERIC row styles
 */

.genericrow {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex: 1;
  justify-content: center;  /* x center */
  align-items: center;      /* y center */
  position: relative;
  /*background: gray;*/
  flex-wrap: wrap;
}

.genericrowLeft {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;  /* x left */
  align-items: center;      /* y center */
  position: relative;
  text-align: left;
  /*background: gray;*/
  flex-wrap: wrap;
}


.genericrowTop {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex: 1;
  justify-content: center;  /* x center */
  align-items: flex-start;  /* y top */
  position: relative;
  /*background: gray;*/
  flex-wrap: wrap;
}



.genericcol20 {
  flex: 0 1 auto;
  position: relative;
  width: 20%;
  padding: 20px;
  /*background: gray;*/
}

.genericcolcenter20 {
  flex: 0 1 auto;
  position: relative;
  width: 20%;
  padding: 20px;
  /*background: gray;*/

  display: flex;
  flex-direction: column;
  justify-content: center;  
  align-items: center;  
}


.genericcol30 {
  flex: 0 1 auto;
  position: relative;
  width: 30%;
  padding: 20px;
  /*background: gray;*/
}

.genericcolcenter30 {
  flex: 0 1 auto;
  position: relative;
  width: 30%;
  padding: 20px;
  /*background: gray;*/

  display: flex;
  flex-direction: column;
  justify-content: center;  
  align-items: center;  
}

.genericcol40 {
  flex: 0 1 auto;
  position: relative;
  width: 40%;
  padding: 20px;
  /*background: gray;*/
}

.genericcolcenter40 {
  flex: 0 1 auto;
  position: relative;
  width: 40%;
  padding: 20px;
  /*background: gray;*/

  display: flex;
  flex-direction: column;
  justify-content: center;  
  align-items: center;  
}

.genericcol50 {
  flex: 0 1 auto;
  position: relative;
  width: 45%;
  padding: 20px;
}

.genericcolcenter50 {
  flex: 0 1 auto;
  position: relative;
  width: 45%;
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;  /* x center */
  align-items: center;      /* y center */
  /*background: gray;*/
}

.genericcolcenter50expand {
  flex: 0 1 auto;
  position: relative;
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;  /* x center */
  align-items: center;      /* y center */
  /*background: gray;*/
  flex-wrap: wrap;
}


.genericcol60 {
  flex: 0 1 auto;
  position: relative;
  width: 60%;
  padding: 20px;
  /*background: gray;*/
}

.genericcolcenter60 {
  flex: 0 1 auto;
  position: relative;
  width: 60%;
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;  /* x center */
  align-items: center;      /* y center */
  /*background: gray;*/
}

.genericcol80 {
  flex: 0 1 auto;
  position: relative;
  width: 80%;
  padding: 20px;
  /*background: gray;*/
}

.genericcol80Left {
  flex: 1 1 auto;
  /*
  display: flex;
  flex-direction: column;
  justify-content: flex-start;  
  align-items: center;  
  */
  position: relative;
  width: 80%;
  padding: 20px;
  /*background: gray;*/
}

.genericcolcenter80 {
  flex: 0 1 auto;
  position: relative;
  width: 80%;
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;  /* x center */
  align-items: center;      /* y center */
  /*background: gray;*/
}

.tinyfont {
  font-size: smaller;
  font-weight: lighter;
  text-align: center;
}


.piecanvas {
  width: 400px;
  height: 400px;
  flex: 0 0 400px;
}



/*
 * Entry row styles
 */


.entryheaderrow {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex: 1;
  justify-content: center;  /* x center */
  align-items: center;      /* y center */
  position: relative;
  /*background: gray;*/
}


.entryheadercol {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  justify-content: center;  /* x center */
  align-items: center;      /* y center */
  position: relative;
  /*background: gray;*/
}


.entryheaderrow > thinspacer {
  flex: 0 1 auto;
  width: 2em;
}

.entry {
  display: flex;
  flex-direction: row;
  /*flex-grow: 4;*/
  min-width: 80%;
  flex:  1 1 auto;
  justify-content: space-between;  /* x center */
  align-items: flex-start;      /* y center */

  border: 1px solid #505050;
  border-spacing: 5px;
  border-radius: 15px;
  padding: 12px 12px;
}


.entryimagegrid {
  display: flex;
  flex-direction: col;
  flex-wrap: wrap;
  width: 100%;
  flex: 1 1 auto;
  /*justify-content: flex-start;*/
  justify-content: center;
  align-items: center;      /* y center */
}

.entryimagewrapper {
  position: relative;
  /*max-width: 30%;    /* 23 or 30 */
  flex: 0 1 auto;
  background-color: #202020;
  border-radius: 14px;
  border: 1px solid #303030;
  margin: 6px 6px;
  justify-content: center;
  align-items: center;      /* y center */
}



.modal-srcimg {
  /*
  max-width: 22%;
  max-height: 25em;
  height:  auto;
  */
  max-height: 15em;
  width: auto;
  /*
  max-height: 15em;
  width: auto;
  */
  position: relative;
  max-width: 98%;
  flex: 1 1 auto;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  margin: 4px 4px;
}

.modal-srcimg:hover {
  opacity: 0.7;
}


.entryimagegrid > img {
  /*
  max-width: 22%;
  max-height: 25em;
  height:  auto;
  */
  max-height: 15em;
  width: auto;
  flex: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  margin: 12px 12px;
}

.entryimagegrid > img:hover {
  opacity: 0.7;
}

/*
.entry > img {
  max-width: 40%;
  max-height: 25em;
  height:  auto;
  flex: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.entry > img:hover {
  opacity: 0.7;
}
*/

.entrydata {
  display: flex;
  flex-direction: column;
  max-width: 100%; /* was 60% */
  flex: 1 1 auto;
  justify-content: flex-start;
  align-items: flex-start;
  /*background-color: purple;*/
  padding: 2px 2px;
}

.entrydatalocrow {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex: 1 1 auto;
  padding: 0px 32px;
  justify-content: space-around;
  align-items: flex-start;      /* y center */
  background: #303030;  
  border-radius: 8px;
}

.editemloc {
  flex: 1 1 auto;
  display: block;
  min-width: 50%;
  padding: 0 0.5em;
  font-weight: bold;
  /*background-color: red;*/
}

.editemdate {
  flex: 1 1 auto;
  min-width: 20%;
  display: block;
  padding: 0 0.5em;
  /*background-color: green;*/
}

.editemuser {
  flex: 1 1 auto;
  display: block;
  padding: 0.25em 0.5em;
  text-align: right;
  font-size: smaller;
  font-weight: lighter;
  /*background-color: blue;*/
}

.editemdesc {
  flex: 1 1 auto;
  display: block;
  padding: 0 0.5em;
  /*background-color: gray;*/
}


.editemmenuitem {
  flex: 1 1 auto;
  display: block;
  /* max-width: 40%; */
  margin: 6px;
  /*background: green; */
}

/* unvisited link */
/* visited link */
.editemmenuitem a:link, .menuitem a:visited {
  color: #e0e0e0;
  background:  #505050;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  padding: 8px 8px;
  transition: 0.3s;  
  border-radius: 8px;  
}

/* mouse over link */
.editemmenuitem a:hover {
  color: #101010;
  background:  #e0a000;
}

/* selected link */
.editemmenuitem a:active {
  color: #ffffff;
}



/*
.entry > a > img {
  max-width: 100%;
  max-height: 25em;
  height:  auto;
  flex: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.entry > a > img:hover {
  opacity: 0.7;
}
*/


.entry > table {
  flex: 1 0 auto;
  min-width: 40%;
  max-width: 60%;
  /*border: 1px solid white;*/
  
  border-spacing: 5px;
  padding: 12px 12px;
  background: #303030;  
}

.entry > thinspacer {
  flex: 0 1 auto;
  width: 2em;
}



.editbtn {
  position: absolute;
  right: -18px;
  top: 12px;
  width: 35px;
  height: 35px;
  cursor: pointer;
  z-index: 1; /* Sit on top */
  transition: 0.15s;
}

.editbtn:hover {
  opacity: 1.0;
}

.editbtnhi {
  position: absolute;
  right: -18px;
  top: 12px;
  width: 35px;
  height: 51px;
  z-index: 2; /* Sit on top */
  cursor: pointer;
  transition: 0.15s;
  opacity: 0.0;
}

.editbtnhi:hover {
  opacity: 1.0;
}

.delbtn {
  position: absolute;
  right: -18px;
  top:  64px;
  width: 35px;
  height: 35px;
  cursor: pointer;
  z-index: 1; /* Sit on top */
  transition: 0.15s;
}

.delbtn:hover {
  opacity: 1.0;
}

.delbtnhi {
  position: absolute;
  right: -18px;
  top:  64px;
  width: 35px;
  height: 53px;
  z-index: 2; /* Sit on top */
  cursor: pointer;
  transition: 0.15s;
  opacity: 0.0;
}

.delbtnhi:hover {
  opacity: 1.0;
}


.delimgbtn {
  position: absolute;
  right: -8px;
  top:  10px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1; /* Sit on top */
  transition: 0.15s;
}

.delimgbtn:hover {
  opacity: 1.0;
}

.delimgbtnhi {
  position: absolute;
  right: -8px;
  top:  10px;
  width: 30px;
  height: 45px;
  z-index: 2; /* Sit on top */
  cursor: pointer;
  transition: 0.15s;
  opacity: 0.0;
}

.delimgbtnhi:hover {
  opacity: 1.0;
}




/*
 * Search overrides
 */

.search > a:link {
  /*color:  #d0a030;*/
  color:  #e0e0e0;
  text-decoration: none;
}

.search > a:visited {
  /*color:  #d0a030;*/
  color:  #e0e0e0;
  text-decoration: none;
}

.search > a:hover {
  /*color:  #f0c000;*/
  color:  #e0e0e0;
  text-decoration: none;
}

.search > a:active {
  /*color:  #f0c000;*/
  color:  #e0e0e0;
  text-decoration: none;
}

.searchtablerowouter > a:link {
  /*color:  #d0a030;*/
  color:  #e0e0e0;
  text-decoration: none;
}

.searchtablerowouter > a:visited {
  /*color:  #d0a030;*/
  color:  #e0e0e0;
  text-decoration: none;
}

.searchtablerowouter > a:hover {
  /*color:  #d0a030;*/
  color:  #f0c000;
  text-decoration: none;
}

.searchtablerowouter > a:active {
  /*color:  #d0a030;*/
  color:  #f0c000;
  text-decoration: none;
}

.searchtable {
  border: 1px solid #aaaaaa;
  padding: 2px;
  border-spacing: 0px;
  width:  100%;
  border-radius: 8px;  
  position: relative;

}

.searchtable > th, td {
  border: 1px solid #444444;
  border-collapse: collapse;
  padding: 5px;
  border-radius: 0px;  
  vertical-align:middle;
}

.searchtablerowouter {
  border: 3px double #444444;
  border-collapse: collapse;
  border-radius: 0px;  

  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 0px;
  flex: 1 1 auto;
  /*background: gray;*/
}


.searchtablerow {
/*
  border: 1px solid #444444;
  border-collapse: collapse;
  border-radius: 0px;  
*/
  display: flex;
  flex-direction: row;
  flex: 1 1 auto;
  justify-content: flex-start;  /* x center */
  align-items: stretch;     /* y center */
  position: relative;
  flex-wrap: wrap;
  padding: 5px;
  /*background: gray;*/
}

.searchtablerowtight {
/*
  border: 1px solid #444444;
  border-collapse: collapse;
  border-radius: 0px;  
*/
  display: flex;
  flex-direction: row;
  flex: 1 1 auto;
  justify-content: flex-start;  /* x center */
  align-items: stretch;     /* y center */
  position: relative;
  flex-wrap: wrap;
  padding: 0px;
  /*background: gray;*/
}

.search5 {
/*
  border: 1px solid #444444;
  border-collapse: collapse;
  border-radius: 0px;  
*/  
  position: relative;
  padding: 0px;
  
  flex: 1 1 5%;

  /* For inner bit align cente4r*/
  display: flex;
  justify-content: center;  /* x center */
  align-items: center;

  /*background: gray;*/
}

.search10 {
/*
  border: 1px solid #444444;
  border-collapse: collapse;
  border-radius: 0px;  
*/  
  position: relative;
  padding: 5px;
  
  flex: 1 1 10%;

  /* For inner bit align cente4r*/
  display: flex;
  justify-content: center;  /* x center */
  align-items: center;

  /*background: gray;*/
}

.search20 {
/*
  border: 1px solid #444444;
  border-collapse: collapse;
  border-radius: 0px;  
*/
  position: relative;
  padding: 5px;
  
  flex: 1 1 20%;

  /* For inner bit align cente4r*/
  display: flex;
  justify-content: center;  /* x center */
  align-items: center;

  /*background: gray;*/
}

.search40 {
/*
  border: 1px solid #444444;
  border-collapse: collapse;
  border-radius: 0px;  
*/ 
  position: relative;
  padding: 5px;
  
  flex: 1 1 40%;

  /* For inner bit align cente4r*/
  display: flex;
  justify-content: center;  /* x center */
  align-items: center;

  /*background: gray;*/
}

.searchinner {
  flex: 0 1 auto;

/*
  vertical-align: middle;
  line-height: normal;
  text-align: center;
*/
}


 .colorbox {
    width: 15px;
    height: 15px;
    display: inline-block;
    background-color: #ccc;
    position: relative;
    top: 2px;
    left: 6px;
    border: 1px solid #444444;
}

.searchimg {
  width: 175px;
  height: auto;
  padding: 6px;
  border-radius: 20px;
  vertical-align:middle;
}  

.searchimgmini {
  width: 60px;
  min-width: 60px;
  height: auto;
  padding: 6px;
  border-radius: 10px;
  vertical-align:middle;
}  

/*
 * Page Buttons
 */

.pagebuttonrow {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex: 1;
  justify-content: left;  /* x center */
  align-items: center;      /* y center */
  position: relative;
  /*background: gray;*/

  border: 1px solid #505050;
  border-spacing: 5px;
  border-radius: 15px;
  padding: 12px 12px;  
}


.pagebuttons {
  display: block;
  width: 130px;
  /*background: gray;*/
  position: relative;
}


.pagebtnfirst {
  position: absolute;
  left: 0px;
  top: -5px;
  width: 30px;
  height: 30px;
  z-index: 1; /* Sit on top */
  cursor: pointer;
  transition: 0.15s;
  opacity: 1.0;
  border-radius: 20px;  
}

.pagebtnfirst:hover {
  opacity: 1.0;
}

.pagebtnfirsthi {
  position: absolute;
  left: 0px;
  top: -5px;
  width: 30px;
  height: 30px;
  z-index: 2; /* Sit on top */
  cursor: pointer;
  transition: 0.15s;
  opacity: 0.0;
  border-radius: 20px;  
}

.pagebtnfirsthi:hover {
  opacity: 1.0;
}


.pagebtnprev {
  position: absolute;
  left: 30px;
  top: -5px;
  width: 30px;
  height: 30px;
  z-index: 1; /* Sit on top */
  cursor: pointer;
  transition: 0.15s;
  opacity: 1.0;
  border-radius: 20px;  
}

.pagebtnprev:hover {
  opacity: 1.0;
}

.pagebtnprevhi {
  position: absolute;
  left: 30px;
  top: -5px;
  width: 30px;
  height: 30px;
  z-index: 2; /* Sit on top */
  cursor: pointer;
  transition: 0.15s;
  opacity: 0.0;
  border-radius: 20px;  
}

.pagebtnprevhi:hover {
  opacity: 1.0;
}

.pagebtnnext {
  position: absolute;
  left: 60px;
  top: -5px;
  width: 30px;
  height: 30px;
  z-index: 1; /* Sit on top */
  cursor: pointer;
  transition: 0.15s;
  opacity: 1.0;
  border-radius: 20px;  
}

.pagebtnnext:hover {
  opacity: 1.0;
}

.pagebtnnexthi {
  position: absolute;
  left: 60px;
  top: -5px;
  width: 30px;
  height: 30px;
  z-index: 2; /* Sit on top */
  cursor: pointer;
  transition: 0.15s;
  opacity: 0.0;
  border-radius: 20px;  
}

.pagebtnnexthi:hover {
  opacity: 1.0;
}


.pagebtnlast {
  position: absolute;
  left: 90px;
  top: -5px;
  width: 30px;
  height: 30px;
  z-index: 1; /* Sit on top */
  cursor: pointer;
  transition: 0.15s;
  opacity: 1.0;
  border-radius: 20px;  
}

.pagebtnlast:hover {
  opacity: 1.0;
}

.pagebtnlasthi {
  position: absolute;
  left: 90px;
  top: -5px;
  width: 30px;
  height: 30px;
  z-index: 2; /* Sit on top */
  cursor: pointer;
  transition: 0.15s;
  opacity: 0.0;
  border-radius: 20px;  
}

.pagebtnlasthi:hover {
  opacity: 1.0;
}


/*
 * Report overrides
 */

.reporttable {
  border: 1px solid #aaaaaa;
  padding: 2px;
  border-spacing: 0px;
  width:  auto;
  border-radius: 8px;  
  text-align: right;
}

.reportkey {
  text-align:right;
  vertical-align:middle;
/*  border: 0px;
  vertical-align:top;*/
}

.reportheader {
  color: #f0c000;
  text-align: center;
}

.reportheader > th {
  border: 1px solid #444444;
  border-collapse: collapse;
  padding: 8px;
  border-radius: 0px;  
  vertical-align:middle;
}

.reporttable > td {
  border: 1px solid #444444;
  border-collapse: collapse;
  padding: 8px;
  border-radius: 0px;  
  vertical-align:middle;
}

/*
------------
Modal Image Popup stuff
*/

/* Style the Image Used to Trigger the Modal */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10; /* Sit on top of everything 9 and below */
  padding-top: 100px; /* Location of the box */

  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
  width: 100%; 
  height: 100vh; 
  margin: 0px;

  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  display: block;
  margin: auto;
  max-height: 90%;
  width: auto;
  opacity: 1;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 90%;
  text-align: center;
  align-self: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, .modal-caption {
  animation: zoomin 0.6s; 
}

@keyframes zoomin {
  0% {
    /*transform:scale(0);*/
    opacity: 0;
  }
  100% {
    /*transform:scale(1);*/ 
    opacity: 1;
  }
}

/* The Close Button */
.modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
  color: #f0c000;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
/*
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}
*/


.sitemap {
  font-size: smaller;
  font-weight: lighter;
  text-align: center;
  color:  #303030;
  display: none;  /* hide from users but now crawlers */  
}

.sitemap > a {
  color:  #303030;
  text-decoration: none;
}

.footer {
  font-size: smaller;
  font-weight: lighter;
  text-align: center;
  color:  #505050;
}

.footer > a {
  color:  #505050;
  text-decoration: none;
}


/* At end to overlay nicely */
body.waiting * { 
  cursor: wait; 
}

body {
  cursor: default;
}


table { 
    table-layout:fixed;
}


/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media 
only screen and (max-width: 1024px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

  /* horizontal scrollbar for tables if mobile screen */
  table {
      overflow-x: auto;
      display: block;
      overflow:scroll; 
      max-width:95vw;
  }

  .search10 {
    flex: 1 1 auto;    
  }
  .search20 {
    flex: 1 1 auto;    
  }
  .search40 {
    flex: 1 1 100%;    
  }

  .flex32 {
    flex: 1 0 50%;
  }


  .genericcol20 {
    flex: 0 1 75%;
    justify-content: center;  /* x center */
    align-items: center;      /* y center */
    display: flex;
  }

  .genericcol30 {
    flex: 1 1 75%;
  }

  .genericcol40 {
    flex: 1 1 75%;
  }

  .genericcol50 {
    flex: 1 1 100%;
  }

  .genericcol60 {
    flex: 1 1 100%;
  }

  .genericcol80 {
    flex: 1 1 100%;
  }

  .genericcolcenter20 {
    flex: 1 1 50%;
  }

  .genericcolcenter30 {
    flex: 0 1 75%;
  }

  .genericcolcenter40 {
    flex: 0 1 75%;
  }

  .genericcolcenter50 {
    flex: 1 1 100%;
  }

  .genericcolcenter60 {
    flex: 1 1 100%;
  }

  .genericcolcenter80 {
    flex: 1 1 100%;
  }

}


