* {
  box-sizing: border-box;
}

html {
  font-family:  Arial, Helvetica, sans-serif;
  font-size: calc(15px + 0.390625vw);
}

body {
  color: #003189;
  background-color: #ffffff;
  margin: 0px;
}

hr {
  color: #016;
}

a {
}

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

h1 {
  font-size: 1.4rem;
  font-weight: bold;
  margin:8px;
  text-align: center;
}

h2 {
  font-size: 1.0rem;
  font-weight: bold;
  margin:4px;
  padding-top: 8px;
}

h3 {
  font-size: 0.8rem;
  font-weight: bold;
  margin:4px;
  padding-top: 0.1vw;
  text-align: center;
}

h4 {
  font-size: 1.0rem;
  font-weight: bold;
  margin:4px;
  padding-top: 0.1vw;
  text-align: left;
}

th {
  font-size: max(16px,3vw);
  font-size: 1.3rem;
  font-weight: bold;
}

td {
  font-size: max(10px,2.0vw);
}

p {
  font-size: 1.0rem;
  padding: 12px 0px 0px 0px;
  margin: 0px 4px;
}

.tinytext {
  font-size:0.4rem;
}

.buttonstyle {
  color: #003189;
  border-style: solid;
  border-radius: 4px;
  border-color: #003189;
  background-color: #d6ddff;
  padding: 2px 4px;
  width: 100%;
  text-align: center;

  color: white;
  background-color: #0000aa;
  border-style: outset;
  border-color: #ffe5b4;
  border-radius: 6px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 1.0rem;
  margin: 4px 2px;
  cursor: pointer;
}

.div-box {
  border:solid #003189;
  border-radius: 20px;
}

ul {
  font-size:20px;
}

input[type=button], input[type=submit], input[type=reset] {
  color: white;
  background-color: #0000aa;
  border-style: outset;
  border-color: #ffe5b4;
  border-radius: 6px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 1.0rem;
  margin: 4px 2px;
  cursor: pointer;
}

input[type=checkbox] {
    height: 1.5rem;
    width:  1.5rem;
  }

input[type=text], input[type=password] {
  background-color: #d6ddff;
  padding: 0px 0 0 0;
  width: 50vw;
  height: max(4vw,20px);
  font-size: 1.0rem;
  border:1px solid #003189;
}

select {
  margin: 0px 0 0 0;
  width: 50vw;
  height: max(4vw,20px);
  font-size: 1.0rem;
}

select[multiple] {
  height: auto;
}

textarea {
  width: 50vw;
  height: max(20vw,100px);
  font-size: 1.0rem;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/*
.firstrow {
  min-height:600px;
  text-align:center;
}
*/

.errormsg, .warningmsg, .message {
  height: 100%;
  padding: 10px 0px 10px 0px;
  width: 100%;
  text-align: center;
  font-size: 1.0rem;
  border-top: 2px solid;
  border-bottom: 2px solid;
}
.errormsg {
  color: red;
  background-color: #fbb;
}
.warningmsg {
  color: black;
  background-color: #ffa;
}
.message {
  color: green;
  background-color: #afa;
}

/* =================== */
/*  For image pop-ups  */
/* =================== */
img[id^='myImg'] {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}
img[id^='myImg']:hover {opacity: 0.7;}
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}
/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}
/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}
/* Add Animation */
.modal-content, #caption {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}
@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)}
  to {-webkit-transform:scale(1)}
}
@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}
/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 2rem;
  font-weight: bold;
  transition: 0.3s;
}
.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}
/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}
/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}
@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* =================== */
/*  FLEXBOX            */
/* =================== */
.flex-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.toprow-flex {
  justify-content: space-between;
  align-items: center;
  background-color: #2833f9;
  background-color: #050C9F;
  background-image: radial-gradient(at bottom,#ff66ff 1%,#050C9F);

  overflow: hidden;
  width: 100%;
  font-size: 0.7rem;
  margin: 0px;
  padding: 4px;
/*
  position: -webkit-sticky;
  position: sticky;
  top:0;
*/
}

.titlerow-flex {
  flex-basis: 100%;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background-image: url("../images/galaxy.png");
  background-position: center center;
  background-repeat:no-repeat;
  height: 15vw;
  height: 15vw;
  height: 9rem;
  text-shadow: 4px 4px 3px #000055;
/*  width: 100%;  */
  background-size:cover;
  align-items: center;
}

.headerrow-flex {
  color:#ff66ff;
  background-color: #2833f9;
  background-color: #656CFB;
  background-color: #050C9F;
  background-image: radial-gradient(at top,#ff66ff 1%,#050C9F);
  text-shadow: 3px 3px #000055;
  padding: 18px 8px;
}

.topnav-flex {
  display: flex;
  flex-direction: row;
}

.topnav-flex a {
  text-align: center;
  text-decoration: none;
}

.topnav-flex .icon {
  display: none;
}

.icon {
  padding: 8px 20px;
  border: none;
  outline: none;
  margin: 0px;
  align-self: flex-start;
}

.icon a {
  color: #ffffff;
}

.showUser {
  padding: 0vw 2vw;
  background-color: #003189;
  color: white;
  font-size: 0.6rem;
}

.dropdown {
  padding: 8px 20px;
  border: none;
  outline: none;
  margin: 0px;
  transition: color,background-color 0.3s ease-in-out;
  -webkit-transition: color,background-color 0.3s ease-in-out;;
}

.dropdown a, .dropdown-content a {
  color: #ffffff;
  text-decoration: none;
  text-align: left;
}

.dropdown-content {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  padding: 2px;
  min-width: 160px;
  transition: opacity 0.3 ease-in-out;
  -webkit-transition: opacity 0.3s ease-in-out;;
  height: 0;
  opacity: 0;
  text-decoration: none;
  overflow: hidden;
}

.dropdown-content a {
  color: #003189;
  float: none;
  display: block;
  padding: 2px 2px;
  background-color: #d6ddff;
  transition: background-color,color 0.3 ease-in-out;
  -webkit-transition: background-color,color 0.3s ease-in-out;;
}

.dropdown-content hr {
  color: #003189;
  background-color: #d6ddff;
  margin: 0px 0;
}

.buttonstyle:hover {
  color: white;
  background-color: #999;
}

.dropdown:hover, .dropdown:hover > a, .dropdown:hover > div {
  color: white;
  background-color: #003189;
  border: 0px solid white;
  border-radius: 6px;
  opacity: 1;
  height:auto;
}

.dropdown-content a:hover {
  color: white;
  background-color: #003189;
}

.header, .flex-footer {
  width: 100%;
  text-align: center;
}

.header {
/*  background-color: #d0d0ff;  /* was #0c0cff */
  padding: 6px 6px 0px 6px;
  height: 63px;
  position: fixed;
  top: 0;
  left: 0;
}

.flex-2col {
  align-items:top;
  }

.flex-footer {
  background-color: #d6ddff;
  text-align: center;
  font-size: 12px;
  padding: 0px;
  border-color: #003189;
  border: 2px solid;
  justify-content: space-between;
}

.flex-footer-content {
  flex-basis: 30%;
  padding: 6px 6px;
  border: none;
}

.flex-blog-container {
  display: flex;
  width: 100%;
  flex-basis: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}


.smallCal { display:none; }
.largeCal { display:block; }

@media only screen and (max-width: 600px) {
  .flex-container {
    flex-direction: column;
  }

  .flex-2col {
    flex-direction: column;
  }

  .toprow-flex {
    flex-direction: row;
  }

  .topnav-flex {
    flex-direction: column;
    justify-content: flex-start;
  }

  .topnav-flex.icon {
    display: block;
  }

  .topnav-flex div.icon {
    float: none;
    display: block;
    text-align: left;
    color: red;
  }

  .topnav-flex .dropdown {
    display: none;
  }

  .topnav-flex.responsive .dropdown-content {position: relative;}

  .topnav-flex.responsive .icon,
  .topnav-flex.responsive .dropdown {
    float:none;
    display: block;
    width: 100%;
    text-align: right;
  }

  .titlerow-flex {
    flex-direction: row;
  }

  .flex-footer {
    align-items: center;
  }
  .flex-footer-content {
    width: 100%;
  }

  .flex-2colCollapse {
    justify-content:center;
    align-items:center;
  }

  .smallCal { display:block; }
  .largeCal { display:none; }
}

@media only screen and (min-width: 600px) {
  .flex-container {
    flex-direction: row;
  }

  .topnav-flex {
    flex-direction: row;
  }

  .flex-footer {
    align-items: center;
  }

  .flex-2colCollapse {
    justify-content:space-around;
    align-items:flex-start;
  }

  .smallCal { display:none; }
  .largeCal { display:block; }
}

.flex-content {
  padding-left: 3vw;
  padding-right: 3vw;
  flex-direction: column;
}

.cal-popup {
  position:fixed;
  top: 50%;
  left: 0%;
  transform: translate(5%,-50%);
  width:90%;
  display: block;
  opacity:0;
  z-index: -1000;
  float:left;
  padding:24px 20px 28px 22px;
  border:2px solid #335ea1;
  background:#fff;
  -moz-box-shadow:0px 0px 13px #000;
  -webkit-box-shadow: 0px 0px 13px #000;
  box-shadow: 0px 0px 13px #000;
  font-size: 3rem;
  line-height: 1rem;
  color:#3a3b3d;
  text-align:left;
  transition: 0.5s ease-in-out 0.25s;
  -webkit-transition: all 0.5s ease-in-out 0.25s;
}

.input-grid {
  display: grid;
  grid-template-columns: 30% 60%;
  gap: 10px 10px;
  background-color: #ffff;
  padding: 10px 10px 10px 10px;
  width: 100%;
  margin:0 0 0 0;
}

.input-prompt {
  font-size: max(3vw,16px);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1vw;
  text-align: right;
  margin-top:auto;
  margin-bottom:auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: 14% 14% 14% 14% 14% 14% 14%;
  gap: 2px;
  background-color: #335ea1;
  padding: 10px 10px 10px 10px;
  width: 100%;
  margin:0 0 0 0;
}

.calendar-grid-gap {
  background-color:#ffffff;
  grid-column: 1 / span 7;
  height:5px;
  margin:1px 1px 0px 1px;
}

.calendar-grid .grid-title {
  background-color:#ffffff;
  grid-column: 1 / span 7;
  font-weight:bold;
  font-size:1.5rem;
  color:#53316c;
  font-family:"Myriad Pro", Arial, Helvetica;
  letter-spacing:-1px;
  text-transform:uppercase;
  text-align:center;
  margin:1px 1px 0px 1px;
  padding:15px 3vw;
}

.calendar-grid .dayList {
  background-color:#ffffff;
  color:#53316c;
  text-transform:uppercase;
  font-size:0.8rem;
  font-weight:bold;
  font-family:"Myriad Pro",Arial;
  text-align:center;
  margin:1px 1px 1px 1px;
  padding:6px;
}

.calendar-grid .date {
  overflow:auto;
  height:10vw;
  background-color: #ffffff;
  padding: 5px 8px 5px 0px;
  margin:1px 1px 1px 1px;
}

.calendar-grid .date .numb {
  float:right;
  font-size: 0.8rem;
  color:#53316c;
  font-weight:bold;
  font-family:"Myriad Pro", Arial;
}

.calendar-grid .date p {
  margin: 0px 0 0 3;
  padding: 1vw 0 0 0;
}

.calendar-grid .date p a {
  color:#335ea1;
  font-size:min(max(1.5vw,10px),16px);
  text-decoration:none;
}

.cal-popup-box {
  width: 100%;
  border: solid;
  border-color: #335ea1;
  padding: 6px 6px;
  font-family:"Myriad Pro", Arial, Helvetica;
  transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
}

.cal-popup-box h1 {font-size:1.5rem;line-height:1.5rem;color:#3a3b3d; font-weight:normal; margin:0; font-family:Arial; letter-spacing:0;text-align:left;}
.cal-popup-box ul {font-size:1.3rem;line-height:1.3rem;list-style:none; padding:0; margin:0rem 0 1rem 0;}
.cal-popup-box ul li {font-weight:bold; margin:0; padding:0.3rem 0 0 0;font-family:"Myriad Pro", Arial, Helvetica;}
.date .cal-popup .cal-popup-box p {padding:1rem 0 0 0;color:#335ea1;}
.date .cal-popup .cal-popup-box p a {color:#335ea1;text-decoration:underline;}

#dim {
  display: block;
  opacity: 0;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: url('semitransparent1x1.png');
  background: rgba(0, 0, 0, 0.7);
  z-index:-100;
  transition: 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
}

.fontawesome-icon {
  color: #335ea1;
}

.left {
  text-align:left;
}
.right {
  text-align:right;
}
.center {
  text-align: center;
}
.underline {
  text-decoration: underline;
}

.blogtile-box {
  margin: 12px 0.5rem;
  padding: 6px 6px;
  width: 300px;
  height: 250px;
  border: 2px solid #003189;
  border-radius: 10px;
  background-image:  url("../images/starfield.jpg");
  background-position-x: center;
  background-position-y: center;
  overflow: hidden;
  display: block;
}
.blogtile-topline {
  max-height: 104px;
  width: 100%;
  position: relative;
}
.blogtile-pic {
  margin: 2px 2px;
  width: 79px;
  height: 104px;
  border: 2px solid #ffff00;
  border-radius: 6px;
  float: left;
}
.blogtile-date {
  color: yellow;
  position: absolute;
  font-size: 0.7rem;
  right: 0;
  top: 0;
}
.blogtile-title {
  color: #ffffff;
  height: 104px;
  font-size: 1.0rem;
  font-weight: bold;
  padding: 0px;
  padding-top: 24px;
  overflow: hidden;
}
.blogtile-content p {
  margin: 6px;
  height: 110px;
  color: #ff66ff;
  font-size: 0.7rem;
  font-style: italic;

  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blogtable, .blogtable td, .blogtable th {
  font-size: 0.6rem;
  border:none;
  padding:none;
  margin:none;
  border-spacing: 0px;
}

.blogtable td {
  text-align:center;
}

.blogtable th {
/*  border: 1px solid; */
  font-size: 0.4rem;
  margin:0px;
  padding:0px;
}

.blogtable tr:nth-child(odd) {
  background-color: #eeeeee;
}
.blogtable tr:nth-child(even) {
  background-color: #cccccc;
}

.blogbtn {
  cursor:pointer;
}

.blog-published, input[type=button].blog-published {
  background-color: #00aa00;
  background-clip: content-box;
  color: white;
  padding: 2px;
}

input[type=button].blog-published {
  background-clip: border-box;
  height:25px;
  font-size: 0.6rem;
}

.blog-draft {
  background-color: #aaaaaa;
  background-clip: content-box;
  color: black;
  padding: 2px;
}

select.blogselect {
  margin: 0px 0 0 0;
  max-width: 150px;
  height: max(2vw,14px);
  font-size: 0.6rem;
}

input[type=checkbox].blogcheck {
    height: 0.6rem;
    width:  0.6rem;
    margin:none;
    padding:none;
  }

.updatebox {
  border: 1px solid #003189;
  border-radius: 10px;
/*  width: 80vw;  */
/*  min-width:  270px; */
/*  max-height: 180px; */
  padding: 8px;
  font-size: 0.8rem;
  font-weight: bold;
/*  overflow: auto; */

/*  inline-size: min-content; */
/*  word-break: break-all; */

/*  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
*/
}
input[type=button].button-small {
  color: white;
  background-color: #0000aa;
  border-style: outset;
  border-color: #ffe5b4;
  border-radius: 3px;
  padding: 3px 8px;
  text-decoration: none;
  font-size: 0.5rem;
  margin: 4px 2px;
  cursor: pointer;
}


/* FOR DRAG AND DROP FILE UPLOAD */
[id^='drop-area-'] {
  border: 2px dashed #003189;
  border-radius: 20px;
  width: 80%;
  height: 100px;
  margin: 20px 50px 20px 50px;
  padding: 0px;
  overflow: clip;
}
.drop-highlight {
  border-color: blue;
  color:blue;
  background-color: #CCC;
}
[id^='gallery-'] {
  margin-top: 10px;
}
[id^='gallery-'] img {
  max-height: 75px;
  margin-bottom: 4px;
  margin-right: 4px;
  vertical-align: middle;
}
[id^='fileElem-'] {
  display: none;
}

[id^='table-'] td {
  overflow: hidden;
  white-space: nowrap;
  font-size: 1rem;
}
