html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, 
caption, tbody, tfoot, thead, tr, th, td 
                  {margin: 0;padding: 0;border: 0;outline: 0;font-size: 100%;vertical-align: baseline;background: transparent;}
body              {line-height: 1;}
ol, ul            {list-style: none;}
blockquote, q     {quotes: none;}
blockquote:before, blockquote:after,
q:before, q:after {content: '';	content: none;}
:focus            {outline: 0;}
ins               {text-decoration: none;}
del               {text-decoration: line-through;}
table             {border-collapse: collapse;border-spacing: 0;}

@font-face {
  font-family: 'Source Sans Pro';
  src: url('../fonts/sourcesanspro-regular-webfont.woff2') format('woff2'),
        url('../fonts/sourcesanspro-regular-webfont.woff') format('woff');
  font-weight: lighter;
  font-style: normal;
}

@font-face {
font-family: 'System';
src: local('Segoe UI'), local('SegoeUI');
font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

html {
  /* define OA Dark Blue*/ 
  --R: 19;
  --G: 63;
  --B: 104;
  --btn-R: 133;
  --btn-G: 133;
  --btn-B: 138;
  --A: 255;
  --body-text-color: whitesmoke;
  --wb--body-text-color: #212529;
}

body {
  background-color: rgba(var(--R), var(--G), var(--B), var(--A));
  background-size: cover;
  font-family: 'Source Sans Pro';
  -ms-overflow-style: none;
  overflow: hidden;
  border: #6d6e6f 1px solid;
  height: calc(100vh - 2px);
  text-rendering: optimizeLegibility;
  color: var(--body-text-color);
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}


h1, .h1 {
  font-size: calc(1.375rem + 1.5vw);
}

@media (min-width: 1200px) {
  h1, .h1 {
    font-size: 2.5rem;
  }
}

h2, .h2 {
  font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
  h2, .h2 {
    font-size: 2rem;
  }
}

h3, .h3 {
  font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 1200px) {
  h3, .h3 {
    font-size: 1.75rem;
  }
}

h4, .h4 {
  font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 1200px) {
  h4, .h4 {
    font-size: 1.5rem;
  }
}

h5, .h5 {
  font-size: 1.25rem;
}

h6, .h6 {
  font-size: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

nav {
  position: sticky;
  display: flex;
  align-items: center;
  flex-flow: row;
  max-height: 6rem;
  min-height: 6rem;
  background-image: url("../images/oates-logo-emb-032025.webp");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: contain;
  margin: 0.5rem 2rem;
}

nav ul {
  left: 300px;
  width: calc(100% - 300px);
  display: inline-flex;
  position: absolute;
  justify-content: space-evenly;
  flex: 1;
  font-size: large;
  font-weight: bold;
}

nav ul li {
  display: inline;
}

footer {
  min-width: 100vw;
  position: sticky;
  bottom: 1rem;
  text-align: center;
}

form .control, form .control-plaintext {
  padding: 1rem .75rem;
}

form .control, form .control-plaintext, form select {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
}

form > div {
  position: relative;
  margin-bottom: 1rem !important;
}

form > div > label {
  position: relative;
  top: 5px;
  left: 0;
  padding: 1.4rem .75rem;
  overflow: hidden;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  color: var(--wb--body-text-color);
  transition: opacity .1s ease-in-out,transform .1s ease-in-out;
}

form > div > label.error {
  color: red;
  font-weight: bold;
}

form > div > label.message {
  color: lightgreen;
  font-weight: bold;
}

.err {
  display: none !important;
}

button {
  display: grid;
  grid-template-columns: 0.3rem 1rem 2px 1fr 1rem;
  grid-auto-flow: column dense;
  grid-template-areas: "left-gutter light icon label right-gutter";
  grid-column-gap: 0;
  align-items: center;
  color: var(--wb--body-text-color);
  font-size: medium;
  border-radius: 4px;
  background-color: rgb(calc(var(--btn-R) + 118), calc(var(--btn-G) + 118), calc(var(--btn-B) + 113));
  border: 1px solid rgb(calc(var(--btn-R) + 103), calc(var(--btn-G) + 103), calc(var(--btn-B) + 98));
  border-bottom: 1px solid rgb(calc(var(--btn-R) + 71), calc(var(--btn-G) + 71), calc(var(--btn-B) + 71));
  box-shadow: 1px 1px 3px 1px rgba(calc(var(--btn-R) - 40), calc(var(--btn-G) - 40), calc(var(--btn-B) - 40), 0.533);
  padding: 0.5rem 3px;
  margin: 0.8rem;
  cursor: pointer;
}

button .button-grid {
  text-align: left;
  align-items: baseline;
  align-self: center;
}

button .light {
  height: 150%;
  min-width: 4px;
  max-width:4px;
  border-radius: 2px;
  background-color: rgb(0, 95, 184);
}

button:hover {
  background-color: rgb(241, 241, 241);
  box-shadow: 1px 1px 3px 1px rgba(calc(var(--R) - 40), calc(var(--G) - 40), calc(var(--B) - 40), 0.733);
}

small:hover {
  box-shadow: 1px 1px 3px 1px rgba(209, 209, 209, 0.733);
}

button:hover .light {
  background: radial-gradient(circle, rgb(0, 225, 255) 0%, rgb(32, 183, 209) 80%, rgb(0, 95, 184) 100%);
  box-shadow: inset 0px 0px 1px 1px rgb(0, 95, 184);
}

button:active {
  background-color: #fafafa;
  box-shadow: none;
  border: 1px solid #eaeaea;
}

button:active .light {
  background: radial-gradient(circle, rgb(255, 255, 255) 2%, rgb(160, 244, 255) 30%, rgb(89, 236, 255) 100%);
  box-shadow: inset 0px 0px 1px 1px rgb(0, 95, 184), 0px 0px 1px 2px rgba(89, 236, 255, 0.25);
}

button.disabled, button.disabled:hover {
  box-shadow: none;
  border: 1px solid rgb(calc(var(--R)), calc(var(--G)), calc(var(--B)));
  background-color: rgb(225, 225, 225);
  color: rgb(125, 125, 125);
  text-shadow: 1px 1px 0px rgb(239, 239, 239);
  cursor: default;
}

button.disabled .light, .button.disabled:hover .light {
  background: rgb(209, 209, 209);
  box-shadow: none;
}

button.disabled .icon::before {
  color: rgb(180, 180, 180);
}

.main-container {
  display: flex;
  flex-direction: row;
  width: 99dvw;
  margin: 1px auto;
  min-height: calc(100vh - 10rem);
  max-height: calc(100vh - 10rem);
  justify-content: center;
}

.main-container .single-container {
  width: 30dvw;
  min-width: 30rem;
}

.main-container .twenty-container {
  flex: 1;
  max-height: 100%;
  min-height: 100%;
  align-self: center;
}

.main-container .eighty-container {
  flex: 5;
  max-height: 100%;
  min-height: 100%;
  align-self: center;
}

.workbox {
  display: flex;
  flex-direction: column;
  background-color: rgb(calc(var(--R) + 60), calc(var(--G) + 60), calc(var(--B) + 60));
  min-width: 75%;
  max-width: 85%;
  max-height: calc(100vh - 11.5rem);
  margin: 2rem auto;
  border-radius: 4px;
  box-shadow: 1px 1px 3px 1px rgba(calc(var(--R) - 40), calc(var(--G) - 40), calc(var(--B) - 40), 0.533);
  color: var(--body-text-color);
}

.workbox .title {
  margin: 2rem;
  margin-bottom: 3rem !important;
}

.workbox form {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  padding-top: 0;
}

.workbox form .control {
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;  
  color: var(--wb--body-text-color);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: .375rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.tgl_pwd_vis {
  position: absolute;
  right: 0.5rem;
  top: 1rem;
 // transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
//  font-size: 1em;
  padding: 0;
}

@media screen and (max-width: 1024px) {
  nav {
    transition: .2s all linear;
    max-height: 4rem;
    min-height: 4rem;
    margin: 0.25rem 1rem;
  }
  nav ul {
    font-size: medium;
    left: 200px;
    width: calc(100% - 200px);
  }
}

@media screen and (max-width: 768px) {
  nav {
    transition: .2s all linear;
    max-height: 3rem;
    min-height: 3rem;
    margin: 0.25rem 0.25rem;
  }

  nav ul {
    font-size: small;
    left: 150px;
    width: calc(100% - 150px);
  }
}

@media screen and (max-width: 500px) {
  nav {
    transition: .2s all linear;
    max-height: 1.5rem;
    min-height: 1.5rem;
  }

  nav ul {
    font-size: smaller;
    left: 150px;
    width: calc(100% - 150px);
  }
}
