/*
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 			All Initial CSS is for a mobile phone in portrait orientation
	
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 */

* {
  margin: 0;
  padding: 0;
  font-size: 5vw;
  font-weight: normal;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

:root {
  /* Set all of the color variables */

  --siteBlack: #444444;
  --siteWhite: #f0f0f0;
  --siteRed: #c93434;
  --siteBackground: #404040;
  --siteShadow: rgba(68, 68, 68, 0.5);
  --focusPrimary: #d8692d;
  --focusPrimaryHighlight: #ff8746;
  --focusPrimaryDark: #ff7327;
  --focusSecondary: #eea177;
  --focusTertiary: #ff7327;

  /* Set other property variables */

  --siteWhiteSpace: 0.1rem;
}

body {
  min-height: 100%;
  font-family: Tahoma, Geneva, sans-serif;
  color: var(--siteBlack);
  background-color: var(--siteBackground);
}

button {
  display: block;
  padding: 2vw;
  font-size: 7vw;
  color: var(--siteWhite);
  background-color: var(--focusPrimary);
  border: 1vw solid;
  border-color: var(--siteWhite);
  border-radius: 3vw;
  cursor: pointer;
}

form {
  width: 100vw;
  display: flex;
  flex-direction: column;
  background-color: var(--focusSecondary);
  padding: var(--siteWhiteSpace);
}

form > :nth-child(1n + 2) {
  margin-top: 1vw;
}

h1 {
  /*	flex: 1;*/
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 8vw;
  color: var(--siteWhite);
  background-color: var(--focusPrimary);
  border-radius: 0.5vw;
  padding: var(--siteWhiteSpace);
}

h2 {
  font-size: 6vw;
  margin: 1%;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 1vw;
  background-color: var(--siteBackground);
  z-index: 999;
}

/* html {
  height: 100%;
  width: 100%;
} */

input {
  padding: 1vw 2vw;
  border: 0;
  border-radius: 1vw;
  background-color: var(--siteWhite);
  color: var(--siteBlack);
}

input:disabled {
  background-color: #aaaaaa;
}

input[type="button"],
[type="submit"] {
  display: block;
  padding: 2vw;
  font-size: 7vw;
  color: var(--siteWhite);
  background-color: var(--focusPrimary);
  border: 1vw solid;
  border-color: var(--siteWhite);
  border-radius: 3vw;
  cursor: pointer;
}

input[type="button"]:disabled, button:disabled {
  opacity: 0.8;
  color: #aaaaaa;
  background-color: #888888;
  border-color: #aaaaaa;
  cursor: default;
}

input[type="checkbox"] {
  height: 5vw;
  width: 5vw;
  border-radius: 0.5vw;
}

input[type="checkbox"]:checked {
  background: url(/images/check.svg) no-repeat center center;
  background-color: var(--siteWhite);
}

input[type="date"] {
  width: 100%;
}

input[type="radio"] {
  height: 5vw;
  width: 5vw;
  border-radius: 2.5vw;
}

input[type="radio"]:checked {
  background: url(/images/dot.svg) no-repeat center center;
  background-color: var(--siteWhite);
}

label {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-content: center;
}

main {
  width: 100vw;
  margin-top: 17vw;
}

nav ul {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  list-style: none;
}

nav ul li {
  flex: 0 1 auto;
}

nav ul li a {
  display: block;
  text-decoration: none;
  text-align: center;
  font-size: 7vw;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--siteWhite);
  background-color: var(--focusPrimary);
  padding: 4vw;
  border-top: 1vw solid var(--siteTertiary);
}

nav ul li ul {
  display: none;
}

nav ul li ul li a {
  color: var(--siteBlack);
  background-color: var(--focusSecondary);
  border-bottom: 0.2vw solid var(--focusPrimaryDark);
}

select {
  width: 100%;
  max-width: 90%;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 1vw 8vw 1vw 2vw;
  border: 0;
  border-radius: 1vw;
  color: var(--siteBlack);
  background: url(/images/select.svg) no-repeat right bottom;
  background-color: var(--siteWhite);
  background-size: auto 100%;
}

select[multiple] {
  overflow-y: hidden;
  background: url();
  background-color: var(--siteWhite);
  background-size: auto 100%;
}

select:disabled {
  background-color: var(--siteWhite);
}

table {
  background-color: var(--siteWhite);
}

th {
  border: 0;
  padding: 0.5vw 1vw;
  border-bottom: 1px solid var(--siteBlack);
  background-color: var(--focusPrimary);
  color: var(--siteWhite);
}

td {
  padding: 0.5vw 1vw;
  border-bottom: 1px solid var(--siteBlack);
}

textarea {
  width: 94%;
  background-color: var(--siteWhite);
  border: 0;
  border-radius: 1vw;
}

textarea:disabled {
  margin: 1vw 1%;
  padding: 1%;
}

.alignRight {
  text-align: right;
}

.documentIcon {
  width: 10vw;
}

.downloadIcon {
  width: 10vw;
}

.flexFieldset {
  display: flex;
  flex-direction: column;
  color: var(--siteWhite);
  background-color: var(--focusTertiary);
  border-radius: 1vw;
  padding: var(--siteWhiteSpace);
}

.flexFieldset > :nth-child(1n + 2) {
  margin-top: var(--siteWhiteSpace);
}

.flexFieldset > .formRow {
  padding: var(--siteWhiteSpace);
}

.formRow {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--siteBlack);
  background-color: var(--focusSecondary);
  border-radius: 1vw;
}

.formRow > :nth-child(1n + 2) {
  margin-top: var(--siteWhiteSpace);
}

.formRow .plusMinus {
  align-self: flex-start;
}

.formRowItem {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  color: var(--siteWhite);
  background-color: var(--focusTertiary);
  border-radius: 1vw;
  padding: var(--siteWhiteSpace);
}

.form__checkbox-set-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.form__checkbox-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 3px;
  padding-bottom: 3px;
}

.form__checkbox-row input {
  margin-right: 5px;
}

.form__checkbox-row label {
  margin-right: 11px;
}

.focusIcon {
  flex: 0 1 auto;
  height: 13vw;
  margin: 1vw;
}

.invisible {
  opacity: 0;
}

.plusMinus {
  height: 1.5rem;
  cursor: pointer;
  margin: var(--siteWhiteSpace);
}

.rightLabel {
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
}

.rightLabel > span {
  margin-left: var(--siteWhiteSpace);
}

.spinner {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stagingHeaderBackground {
  background: repeating-linear-gradient(-45deg,
      #f7f76e,
      #f7f76e 10px,
      #0f0f0f 10px,
      #0f0f0f 20px);
}

.stagingLogoBackground {
  background-color: #f7f76eaa;
}

.statusAssigned {
  color: var(--siteBlack);
  background-color: #ffa412;
}

.statusCompleted {
  color: var(--siteBlack);
  background-color: #aaaaaa;
}

.statusIssue {
  color: var(--siteWhite);
  background-color: #ff0000;
}

.statusPermit {
  color: var(--siteBlack);
  background-color: var(--siteWhite);
}

.statusReady {
  color: var(--siteBlack);
  background-color: #00ff00;
}

.statusRedesign {
  color: var(--siteBlack);
  background-color: #f5f546;
}

.statusRestore {
  color: var(--siteWhite);
  background-color: #a06312;
}

.statusWhiteline {
  color: var(--siteWhite);
  background-color: #0000ff;
}

.tableRow {
  display: flex;
  padding: 0.2vw 0;
  border-top: solid 0.1vw var(--siteShadow);
}

.thumbnail {
  flex: 1;
  width: 100%;
}

.thumbnailFrame {
  width: 90%;
  margin-bottom: 1vw;
  border: 2vw solid var(--siteWhite);
  background: url(/images/csi_logo.svg) no-repeat center center;
  background-size: contain;
  background-color: var(--siteBlack);
}

.transparent {
  opacity: 0.8;
}

#currentFocusIcon {
  flex: 0 1 auto;
  height: 13vw;
  margin: 1vw;
  cursor: pointer;
}

#downloadIcon {
  stroke: var(--siteWhite);
  width: 2vw;
  height: 2vw;
  margin: 1vw;
  cursor: pointer;
}

#focusDiv {
  flex: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
}

#focusDiv a {
  background-color: var(--siteBackground);
}

#filterIcon {
  stroke: var(--siteWhite);
  width: 2vw;
  height: 2vw;
  margin: 1vw;
}

#hamburgerIcon {
  display: block;
  height: 9vw;
  margin: 3vw;
  cursor: pointer;
}

#headerDiv {
  display: flex;
}

#killButton {
  border: 1vw solid var(--siteWhite);
  border-radius: 3vw;
  background-color: var(--siteBlack);
  height: 3rem;
}

/* #killButton > img {
  height: 10vw;
} */

#logo {
  display: block;
  height: 15vw;
}

#pdf {
  width: 100%;
  height: 80vh;
}

.paginationControls {
  flex-direction: row;
  align-items: flex-end;
  /* margin-top: 5px; */
  width: 100%;
  justify-content: end;
  padding: 0;
}

.paginationControls button {
  margin: .5vw;
  /* width: 125px; */
  font-size: 1vw;
}

input.error, select.error {
  outline: 2px solid red;  
}

/*
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 				First media query for all devices in landscape orientation
	
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 */

@media all and (min-aspect-ratio: 13/10) {
  * {
    font-size: 1.5vw;
  }

  :root {
    --siteWhiteSpace: 0.5vw;
  }

  button {
    padding: 0.5vw 1vw;
    font-size: 3vw;
    border-width: 0.5vw;
    border-radius: 0.5vw;
  }

  form {
    width: auto;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    border-radius: 0.2vw;
  }

  form > :nth-child(1n + 2) {
    margin-top: 0.5vw;
  }

  h1 {
    font-size: 3vw;
  }

  h2 {
    font-size: 2.5vw;
  }

  header {
    padding: 0.5vw;
  }

  input {
    padding: 0.5vw;
    border-width: 0.5vw;
    border-radius: 0.5vw;
  }

  input[type="button"],
  [type="submit"] {
    padding: 0.5vw 1vw;
    font-size: 3vw;
    border-width: 0.5vw;
    border-radius: 0.5vw;
  }

  input[type="date"] {
    width: 11vw;
  }

  input[type="number"] {
    width: 5vw;
  }

  main {
    display: flex;
    margin-top: 7vw;
  }

  /* For readability, 30em comes out to average 50-60 characters */

  p {
    max-width: 30em;
  }

  select {
    padding: 0.5vw 1.2vw 0.5vw 0.2vw;
    border-radius: 0.5vw;
  }

  .alignRight {
    text-align: right;
  }

  .documentIcon {
    width: 6vw;
  }

  .downloadIcon {
    width: 6vw;
  }

  .focusIcon {
    height: 4.5vw;
    margin: 0.25vw;
  }

  .formRow {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    font-size: 3vw;
  }

  .justifyCenter {
    justify-content: center;
  }

  .formRow > :nth-child(1n + 2) {
    margin-top: 0;
    margin-left: 0.5vw;
  }

  .formRow .plusMinus {
    align-self: center;
  }

  .plusMinus {
    height: 6vw;
  }

  .qty {
    width: 5vw;
  }

  .thumbnailFrame {
    border-width: 0.5vw;
  }

  #focusDiv {
    flex-direction: row;
  }

  #logo {
    height: 5vw;
  }

  #currentFocusIcon {
    height: 4.5vw;
    margin: 0.25vw;
  }

  #hamburgerIcon {
    height: 3vw;
    margin: 1vw;
    float: right;
  }

  #photoThumbDiv {
    flex-wrap: wrap;
    max-width: 40vw;
  }
}

/*
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

 				Second media query for all desktops and laptops
	
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 */

@media all and (min-device-width: 1200px) and (min-aspect-ratio: 13/10) {
  * {
    font-size: 1vw;
  }

  button {
    padding: 0.25vw 0.5vw;
    font-size: 1.5vw;
    border-width: 0.25vw;
    border-radius: 0.3vw;
  }

  h1 {
    font-size: 1.5vw;
    border-radius: 0.2vw;
    padding: 0.2vw;
  }

  h2 {
    font-size: 1.25vw;
  }

  input {
    padding: 0.2vw;
    border-radius: 0.2vw;
  }

  input[type="button"],
  [type="submit"] {
    padding: 0.25vw 0.5vw;
    font-size: 1.5vw;
    border-width: 0.25vw;
    border-radius: 0.3vw;
  }

  input[type="checkbox"] {
    box-sizing: content-box;
    height: 1.2vw;
    width: 1.2vw;
    /*		min-width: 2vw;*/
    border-radius: 0.2vw;
  }

  input[type="radio"] {
    box-sizing: content-box;
    height: 1.2vw;
    width: 1.2vw;
    min-width: 1vw;
    border-radius: 1vw;
  }

  input[type="number"] {
    /*		width: 3vw;*/
  }

  label {
    flex: 0 1 auto;
  }

  main {
    width: 80%;
    margin: auto;
    margin-top: 8vw;
    display: flex;
  }

  nav ul {
    flex-direction: row;
  }

  nav ul li {
    position: relative;
  }

  nav ul li:hover > ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: absolute;
    width: -webkit-max-content;
    width: max-content;
  }

  nav ul li a {
    font-size: 1.25vw;
    background-color: var(--siteBackground);
    padding: 0.25vw 0.75vw;
    border-bottom: 0;
  }

  nav ul li:hover > a {
    color: var(--siteWhite);
    background-color: var(--focusPrimaryHighlight);
    border-bottom: 0;
  }

  nav ul li a:hover {
    background-color: var(--focusPrimaryHighlight);
  }

  nav ul li ul {
    box-shadow: 0.5vw 0.5vw 0.4vw var(--siteShadow);
  }

  nav ul li ul li a {
    color: var(--siteWhite);
    background-color: var(--focusPrimary);
    border-bottom: 0;
  }

  nav ul li ul li:hover > a {
    color: var(--siteWhite);
    background-color: var(--focusPrimaryHighlight);
  }

  nav ul li ul a {
    text-align: left;
    border-bottom: 0;
  }

  select {
    padding: 0.2vw 1.4vw 0.2vw 0.2vw;
    border-radius: 0.2vw;
  }

  textarea {
    padding: 0.2vw;
    border-radius: 0.2vw;
  }

  .documentIcon {
    width: 3vw;
  }

  .downloadIcon {
    width: 2vw;
    cursor: pointer;
  }

  .flexFieldset {
    border-radius: 0.5vw;
  }

  .formRow {
    align-items: center;
    border-radius: 0.5vw;
  }

  .plusMinus {
    height: 2vw;
  }

  .qty {
    width: 3vw;
  }

  .thumbnail {
    width: 160px;
    height: 120px;
  }

  .thumbnailFrame {
    border-width: 0.5vw;
    width: auto;
  }

  #killButton {
    width: 7vw;
    border: 0.25vw solid var(--siteWhite);
    border-radius: 0.3vw;
    padding: 0;
  }

  #killButton > img {
    height: 90%;
  }
}
