* {
    box-sizing: border-box;
 }
 
body {
  background: rgb(227,225,218);
  margin: 0;
  padding: 0;
  font-family: "Libre Baskerville", Verdana,Arial, Helvetica, sans-serif;
  font-size: 100%;
}

.center {
  margin: 0 auto;              /* centres content */
  max-width: 960px;         /* must have width for centre to work */
  background: white;
  padding: 10px 20px 10px 20px;
  color: black;
}

/* FLEXBOX CONTAINERS */
.box {                               /* flexbox container */
   display: flex;
   flex-wrap: wrap;
 }

.box1 {                               /* flexbox container with centering*/
   display: flex;
   flex-wrap: wrap;
   justify-content: space-around;
 }

.box2 {                               /* flexbox container with fixed columns*/
   display: flex;
   flex-wrap: nowrap;
}

.box2a {                               /* flexbox container with fixed columns*/
   display: flex;
   align-items:center;
   justify-content:center;
}

.box3 {                               /* flexbox container with vertical columns*/
   display: flex;
   flex-direction: column;
   flex-wrap: nowrap;
}

.box4 {                               /* flexbox left and right */
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
 }

 /* TITLE CONTAINERS */
.title-box {
  margin-right:auto;
  width:800px;
}

.homepage-box {                               /* flexbox container */
   display: flex;
   flex-wrap: wrap;
   padding: 0px 40px 0px 40px;
 }

.title-image {
  justify-content:center;
  width:800px;
}

.titlecontainer {
  position: relative;
}

.titletexttop {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  font-size: 300%;
  font-weight: bold;
  color: #cc0000;
  background: rgb(255,255,255);
  background: rgba(255,255,255,0.5);
  padding: 10px 20px 10px 20px;       /* top right bottom left */
}
.titletextbottom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  font-size: 250%;
  font-weight: bold;
  color: #334685;
  background: rgb(255,255,255);
  background: rgba(255,255,255,0.5);
  padding: 10px 20px 10px 20px;       /* top right bottom left */
}

 /* STANDARD CONTAINERS */
p  {
  font-size: 90%;
  margin: 0;
}

p.tablefont  {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 80%;
  margin: 0;
}
p.smallfont  {
  font-size: 60%;
  text-align: right;
  margin-right: 60px;
}
p a {
   color: #cc0000;
   text-decoration: none;
   font-weight: bold;
   background: #ffffff;
   /* padding: 2px 0px 2px 0px; */
   display: inline-block;
}

p a:hover  {
   color: #ffffff;
   background: #334685;
}

.topgap {
  padding: 10px 20px 10px 20px;
}

.bluetext {
  color: rgb(0,0,255);
}
h1,h2,h3,h4,h5 {
  margin: 0;
  border: 0px none;
}

h1   {
  font-size: 300%;
  font-weight: bold;
  color: #cc0000;
  padding: 20px 0px 10px 20px;
}
h2   {
  font-size: 175%;
  color: #334685;
  padding: 0px 0px 0px 20px;
}

h3   {
  font-size: 100%;
  color: rgb(128,128,128);
  padding: 5px 0px 5px 0px;
  letter-spacing: 0;
}

h3 a {
   color: #cc0000;
   text-decoration: none;
   background: #ffffff;
   padding: 5px 0px 5px 0px;
   display: inline-block;
   margin: 0px 0px 2px 0px;
}

h3 a:hover  {
   background: #334685;   /* blue */
   color: #ffffff;
}
h4   {
  font-size: 125%;
  color: rgb(0,0,0);
  padding: 5px 0px 5px 0px;
  letter-spacing: 0;
}

h5 a {
   color: rgb(255,255,255);
   text-decoration: none;
   padding: 0;
   display: inline-block;
   margin: 0;
}

h6   {      /* right justifies content */
  font-size: 100%;
  color: rgb(128,128,128);
  padding: 5px 0px 5px 0px;
  letter-spacing: 0;
}

li a {
   color: white;
   letter-spacing: 2px;
   text-decoration: none;
   background: #334685;   /* blue */
   padding: 5px 5px;
   display: inline-block;
   width: 100%;
   text-align: center;
}

li a:hover {
   background: #cc0000;   /* red */
}

.main {
   max-width: 960px;
   margin: 0 auto;
   padding: 0;
}
.navigation ul {
   border: none;
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
}

.navigation li {
   flex: 3;   
  border-left: 1px solid white;
  border-bottom: 1px solid white;
}

.navigation .user {
   flex: 1;
}

.push {
    margin-left: auto;
}

img {
  border-left: 50px;
}

/* TABLE FORMATS */

table        {
  border-collapse: collapse;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 80%;
  width: 100%;
}
th           {
  background-color: rgb(0,0,0);
  color: rgb(255,255,255);
  font-weight: bold;
  text-align: left;
  padding: 2px 0px 2px 2px;
}
.whiteout  {
  background-color: rgb(255,255,255);
  color: rgb(0,0,0);
}
/* tr:nth-child(even) {background: rgb(220,220,220)}*/
/* tr:nth-child(odd) {background: rgb(255,255,255)} */

.whitetable td {background: rgb(255,255,255)}

td           {
  vertical-align: top;
  text-align:left;
  /* background-color: #e7efed;  green */
  background-color: #ffe6ce;  /* khaki */
  border: 1px solid rgb(255,255,255);
}
.rh td           {
  text-align: right;
}

.rh th           {
  text-align: right;
}
td a {
   color: #cc0000;
   text-decoration: none;
}

td a:hover  {
   background: #334685; /* blue */
   color: #ffffff;
}

.tablegreenback th {
   color: #000000;
   background-color: #dcdcdc;  /* grey */
}

.tablegreenback td {
   background-color: #e7efed;  /* green */
}
.redback {
   background-color: #ffcee7;  /* red */
}
.blueback {
   background-color: #cee7ff;  /* blue */
}
.greenback {
   background-color: #cff2e0;  /* green */
}

.c3          {width: 3%; }
.c4          {width: 4%; }
.c5          {width: 5%; }
.c6          {width: 6%; }
.c7          {width: 7%; }
.c8          {width: 8%; }
.c9          {width: 9%; }
.c10        {width: 10%;}
.c11        {width: 11%;}
.c12        {width: 12%;}
.c15        {width: 15%;}
.c16        {width: 16%;}
.c20        {width: 20%;}
.c22        {width: 22%;}
.c25        {width: 25%;}
.c30        {width: 30%;}
.c35        {width: 35%;}
.c40        {width: 40%;}
.c45        {width: 45%;}
.c50        {width: 50%;}
.c60        {width: 60%;}
.c65        {width: 65%;}
.c70        {width: 70%;}
.c72        {width: 72%;}
.c80        {width: 80%;}
.c85        {width: 85%;}
.c90        {width: 90%;}
.c95        {width: 95%;}
.c100       {width: 100%;}

.blankcol   {
   width: 25%;
   color: #ffffff; 
   background-color: #ffffff;
}


 /* media */
@media all and (max-width: 1000px) {
   .navigation ul {
      flex-wrap: wrap;
   }
   
   .navigation li {
      flex: 1 1 50%;
   }

   .navigation .user {
      flex: 1 1 33.33%;
   }
}

@media all and (max-width: 480px) {
   .navigation li {
      flex-basis: 100%;
   }

   .navigation .user {
      flex-basis: 50%;
   }
}

/* tooltip dropdown */

.tip{
      position: relative;
}
.tooltip{
       display: none;
       position: absolute; 
       z-index: 100;
       border: 1px;
       background-color: white;
       border: 1px solid #cc0000;
       padding: 2px 0;
       font-size: 90%;
       font-weight: normal;
       color: black; 
       top: 6px; 
       left: 60px;
       border-radius: 0 5px 5px 5px;
}
.tip:hover span.tooltip{
      display:block;
}

.tooltip::after {
  content: " ";
  position: absolute;
  top: 4px;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #cc0000 transparent transparent;
}

/* popup window */
.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  visibility: hidden;
  opacity: 0;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 50px auto;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
  width: 600px;
  position: relative;
  transition: all 1s ease-in-out;
}

.popup h2 {
  margin-top: 0;
  color: #333;
  font-family: Tahoma, Arial, sans-serif;
}
.popup .close {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 100ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup .close:hover {
  color: #FF0000;
}
.popup .content {
  max-height: 30%;
  overflow: auto;
}

/* page navigation */

.page-nav ul {
   border: none;
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
}

.page-nav li {
   border-left: 5px solid white;
   flex: 3;   
}

.page-nav .user {
   flex: 1;
}

.page-nav li a {
   border-radius: 10px;
   background: white;
   font-weight: bold;
   color: #cc0000;
   border: 2px solid #C0C0C0;
   width:120px;
   height: 32px;
}
.page-nav li a:hover {
   background-color: #cc0000;
   color:  white;
   border: 2px solid #C0C0C0;
}
