* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sitePrimary: #5ccef7;
  --sitePrimaryDark: #007dcc;
  --siteBeige: rgb(254, 246, 230);
  --siteAccent: #ff6934;
  --siteBlack: #282828;
  --siteWhite: #efefef;
  --siteGrey: #888888;
  --siteWhiteSpace: 1.5rem;
  --siteBorderRadius: calc(var(--siteWhiteSpace) / 5);
  --shadowElevation02: 0px 2px 6px rgba(0, 0, 0, 0.5);
  --shadowElevation04: 0px 4px 6px rgba(0, 0, 0, 0.5);
  --shadowElevation06: 0px 6px 6px rgba(0, 0, 0, 0.5);
}

/* Change Autocomplete styles in Chrome*/
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  border: 1px solid var(--siteGrey);
  -webkit-text-fill-color: var(--siteBlack);
  -webkit-box-shadow: 0 0 0px 1000px var(--siteWhite) inset;
  transition: background-color 5000s ease-in-out 0s;
}

a {
  text-decoration: none;
  color: var(--sitePrimaryDark);
}

body {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--siteBlack);
  background: var(--siteWhite);
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.15rem;
  line-height: 1.5;
  position: relative;
  z-index: 0;
}

button,
input[type='submit'] {
  font-size: 1.5rem;
  letter-spacing: 0.2rem;
  color: var(--siteWhite);
  background-color: var(--sitePrimaryDark);
  padding: calc(var(--siteWhiteSpace) / 2) var(--siteWhiteSpace);
  border-radius: var(--siteBorderRadius);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadowElevation02);
}

fieldset {
  padding: var(--siteWhiteSpace);
  border-radius: var(--siteBorderRadius);
  border: none;
  box-shadow: var(--shadowElevation02);
}

footer {
  width: calc(100% + 2 * var(--siteWhiteSpace));
  padding-inline: var(--siteWhiteSpace);
  background-image: url('images/publication-cover.png');
  background-size: cover;
}

form {
  display: flex;
  flex-direction: column;
  /* max-width: 60ch; */
  margin: var(--siteWhiteSpace);
  padding: var(--siteWhiteSpace);
  border-radius: var(--siteBorderRadius);
  box-shadow: var(--shadowElevation02);
}

form .outer-submit {
  max-width: 200px;
  width: 50%;
  padding: 0 0 10px 0;
}

h1 {
  color: var(--sitePrimaryDark);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: var(--siteWhiteSpace);
}

h2 {
  color: var(--sitePrimaryDark);
  font-size: 1.5rem;
  font-weight: 900;
  padding: 0.5em 1em;
}

header {
  padding-inline: var(--siteWhiteSpace);
  background-image: url('images/publication-cover.png');
  background-size: cover;
  box-shadow: var(--shadowElevation04);
  position: relative;
  z-index: 4;
}

html {
  display: flex;
  flex-direction: column;
  height: 100%;
}

input,
input[type='date'] {
  color: var(--siteBlack);
  background-color: var(--siteWhite);
  padding: calc(var(--siteWhiteSpace) / 2);
  border: 1px solid var(--siteGrey);
  border-radius: var(--siteBorderRadius);
}

label {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--siteWhiteSpace);
}

legend {
  padding: 0.5rem;
}

li {
  text-align: justify;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--siteWhiteSpace);
  height: 100%;
  /* padding-top: var(--siteWhiteSpace); */
  padding-inline: var(--siteWhiteSpace);
  overflow-y: scroll;
  overflow-x: hidden;
}

p {
  color: var(--siteBlack);
  margin-bottom: var(--siteWhiteSpace);
}

section {
  display: flex;
  gap: var(--siteWhiteSpace);
  width: 100%;
  max-width: 120ch;
  padding: var(--siteWhiteSpace);
  border-radius: var(--siteBorderRadius);
  background: var(--siteBeige);
  box-shadow: var(--shadowElevation02);
  position: relative;
  z-index: 2;
}

select {
  color: var(--siteBlack);
  background-color: var(--siteWhite);
  padding: calc(var(--siteWhiteSpace) / 2);
  border-radius: var(--siteBorderRadius);
}

table {
  margin: 1em auto;
}

table,
td {
  color: var(--siteBlack);
  background-color: var(--siteWhite);
  border-width: 0px;
  border-spacing: 0px;
  border-style: none;
  border-color: transparent;
  padding: var(--siteWhiteSpace);
}

th {
  color: var(--siteWhite);
  background-color: var(--sitePrimaryDark);
  border-collapse: collapse;
  border-width: 5px;
  border-spacing: 5px;
  border-style: solid;
  border-color: transparent;
  padding: 0;
}

textarea {
  font: inherit;
  border-radius: var(--siteBorderRadius);
}

ul {
  line-height: 165%;
}

#filemanager_mainbody {
  width: 98%;
  height: 600px;
  overflow-y: scroll;
  margin-top: 150px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0px;
  z-index: 1;
  background: #ffffff;
  box-shadow: var(--shadowElevation02);
}

#file_man_header {
  height: 30px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid #aaaaaa;
}

#file_man_preview_col {
  height: 570px;
  min-width: 12em;
  display: inline-block;
}

#hamburgerIcon {
  color: var(--siteWhite);
}

div.sectionImage {
  display: flex;
  flex-direction: column;
  width: 50%;
  border-radius: var(--siteBorderRadius);
}

img.sectionImage {
  display: flex;
  border-radius: var(--siteBorderRadius);
}

.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.ctaContainer {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ctaButton {
  color: var(--siteWhite);
  background-color: var(--siteAccent);
}

.currentPage {
  color: var(--sitePrimary);
  border-bottom: solid 1px var(--sitePrimary);
}

.file_manager {
  display: inline-block;
  margin: 0;
  vertical-align: top;
  text-align: left;
  height: 600px;
}

.file_man_col {
  height: 570px;
  min-width: 12em;
  overflow-y: scroll;
  display: inline-block;
  vertical-align: top;
  text-align: left;
  border-right: 1px solid #aaaaaa;
}

.file_man_txt {
  display: block;
  padding: 0.2em 0.5em;
  color: #000000;
  text-decoration: none;
}

.file_man_txt_select {
  display: block;
  padding: 0.2em 0.5em;
  color: #eeeeee;
  background-color: #3573dd;
  text-decoration: none;
}

.formRow {
  display: flex;
  gap: var(--siteWhiteSpace);
}

.formRow label {
  display: flex;
  flex-direction: column;
}

.gallery {
  border: none;
  background: none;
  box-shadow: var(--shadowElevation02);
}

div.hero {
  background-color: var(--siteBlack);
  padding-top: 7rem;
  padding-bottom: 5rem;
  padding-left: var(--siteWhiteSpace);
  padding-right: 5rem;
  width: 100%;
  /* max-width: 120ch; */
  background-image: url('images/cutback.jpg');
  background-size: cover;
  background-position: center;
}

h1.hero {
  display: flex;
  flex-direction: column;
  max-width: 40ch;
  color: var(--siteWhite);
  font-size: 3rem;
  text-shadow: 1px 1px 2px var(--sitePrimaryDark);
}

h1.hero .accent {
  display: block;
  color: var(--sitePrimary);
}

.justifyCenter {
  justify-content: center;
}

.logo {
  margin: calc(var(--siteWhiteSpace) / 2);
  height: 4rem;
}

.mainth {
  font-size: medium;
  text-shadow: 1px 1px var(--siteGrey);
  border-collapse: collapse;
  border-width: 1px;
  border-spacing: 0px;
  border-style: none;
  border-color: #777777;
  color: #eeeeee;
  background-color: var(--sitePrimary);
  padding: 0.25em;
}

.mobile-nav-toggle {
  display: none;
}

.modal-form {
  display: flex;
  width: 100%;
  max-width: 30ch;
  margin: var(--siteWhiteSpace);
  padding: var(--siteWhiteSpace);
  border-radius: var(--siteBorderRadius);
  box-shadow: var(--shadowElevation02);
}

.primary-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: var(--siteWhiteSpace);
  background-image: url(images/publication-cover.png);
  background-size: cover;
  color: var(--sitePrimary);
  font-size: 0.6rem;
  text-align: center;
}

.primary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 120ch;
  margin-inline: auto;
}

.primary-navigation {
  display: flex;
  gap: var(--siteWhiteSpace);
  list-style: none;
  z-index: 1000;
}

.primary-navigation a {
  text-decoration: none;
  color: var(--sitePrimary);
}

.primary-navigation li {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--siteWhiteSpace) / 2);
}

.primary-navigation > li:hover > ul {
  display: block;
}

.primary-navigation > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1005;
  list-style: none;
  width: max-content;
  background-color: var(--siteBlack);
  display: none;
}

.rowReverse {
  flex-direction: row-reverse;
}

.sr-only {
  display: none;
}

.submitContainer {
  display: flex;
  justify-content: center;
}

.sectionText {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 50%;
}

.thumbnail {
  box-shadow: var(--shadowElevation02);
}

.timecardDescription {
  max-width: 60ch;
}

.tlabel {
  color: #111111;
  background-repeat: repeat-x;
  font-size: small;
  text-align: right;
  padding: 0.2em;
  margin: 0;
}

.tdata {
  color: #222222;
  background-color: #ffffff;
  font-size: small;
  text-align: left;
  box-shadow: var(--shadowElevation02);
  padding: 0.2em 0.5em;
  margin: 0.2em 0.5em;
}

.wolist {
  border-width: 1px;
  border-spacing: 0px;
  border-bottom-style: solid;
  border-bottom-color: #cccccc;
  padding: 0.5em 0.5em;
}

/*    Smaller Screens/Larger Mobile Devices   */

@media (max-width: 70rem) {
  .logo {
    content: url('images/icon-pastel.png');
  }
}

/*    Small Mobile Device    */

@media (max-width: 50rem) {
  div.sectionImage {
    width: 100%;
  }

  .sectionText {
    width: 100%;
  }

  section {
    flex-direction: column;
    width: 100%;
  }

  .logo {
    content: url('images/code-surfer-hero.png');
  }

  .mobile-nav-toggle {
    position: absolute;
    display: block;
    z-index: 9999;
    background-color: transparent;
    background-image: url('images/hamburger_icon.svg');
    background-repeat: no-repeat;
    background-position: center center;
    width: 1rem;
    right: 2rem;
    box-shadow: none;
  }

  .mobile-nav-toggle[aria-expanded='true'] {
    background-image: url('images/close.svg');
  }

  .primary-navigation {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 18rem);
    flex-direction: column;
    padding-block: min(30vh, 10rem);
    background: hsl(0 0% 0% / 0.8);
    transform: translate(100%);
    transition: transform 350ms ease-out;
  }

  .primary-navigation[data-visible='true'] {
    transform: translate(0%);
  }

  .primary-navigation > li > ul {
    position: absolute;
    top: 100%;
    width: 100%;
  }

  .primary-navigation > li > ul > li {
    padding-left: 2rem;
  }

  .rowReverse {
    flex-direction: column;
  }

  @supports (backdrop-filter: blur(1rem)) {
    .primary-navigation {
      backdrop-filter: blur(0.5rem);
    }
  }
}

/*    Smallest Mobile Device    */

@media (max-width: 30rem) {
  .logo {
    content: url('images/icon-pastel.png');
  }
}
