/* @media (min-width: 800px) {
  .ballot {
    grid-template-columns: min-content auto min-content;
  }
}

@media (max-width: 800px) {
  .ballot {
    grid-template-rows: min-content auto min-content;
  }
} */

:root {
  --teal: #00b2a9;
  --orange: #e54c3d;
  --navy: #012b5c;
  --navymid: #005177;
  --white: #dcdcdc;
  --yellow: #ffb400;
  --header-height: 8vh;
  --silver: #81a6b3;
}

img.view {
  height: 10em;
  margin: auto;
}


.share {
  display: flex;
}

.share .share-right {
  display: flex;
  /* grid-template-rows: 100%; */
  flex-direction: column;
}

.share-right * {
  display: flex;
  justify-content: right;
}

form.ballot {
  display: flex;
  margin: 0em auto;

}

.right-test {
  justify-content: right;
  justify-self: right;
  justify-items: right;
  text-align: right;
}

.editor-tabs {
  min-width: fit-content;
  width: 10%;
  background-color: var(--navymid);
  position: sticky;
  top: var(--header-height);
  /* height: 100vh - var(--header-height); */
  display: flex;
  height: min-content;
  flex-direction: column;
  border-bottom-left-radius: 1em;
  border-bottom-right-radius: 1em;
}

.editor-tabs button {
  cursor:pointer;
  padding: 0.1em;
  border-radius: 1em;
  border-style: solid;
  background: #00000000;
  margin: 0.5em;
  border-color: var(--white);
  color: var(--white);
  width: 15em;
}

.editor-tabs-content {
  margin: auto;
  min-width: 80%;
  max-width: 75vw;
}

.editor-area {
  display: grid;
  grid-template-columns: min-content auto;
  background-color: var(--navymid);
  box-shadow: -5px 5px 5px #00000055;
}

.editor-personalize {
  background-color: var(--navymid);
  box-shadow: -5px 5px 5px #00000055;
  padding: 2em;
}

.editor {
  padding: 1em;
}

button.selected-tab {
  color: var(--navy);
  background: var(--white);
}


button.selected-tab h3 {
  color: var(--navy);
  text-shadow: 0.05em 0.05em var(--orange);

}
button.selected-tab  h2 {
  color: var(--orange);
  text-shadow: 0.05em 0.05em var(--navy);

}

.center-text {
  text-align: center;
}

.nest {
  padding-left: 1em;
  border-left: 0.1em solid var(--white);
  /* border: solid; */
  /* border-color: var(--white) */
}

.location-input {
  display: inline-flex;
  justify-content: center;
}

.three-stock-photos {
  display: grid;
  grid-template-columns: 30% 40% 30%;
}

.three-stock-photos * {
  margin: 1em;
  padding: 1em;
  justify-content: center;
  justify-self: center;
  justify-items: center;
  align-items: center;
  align-self: center;
  align-content: center;
}

.stock-l {
  position: relative;
  left: -5%;
}

.stock-r {
  position: relative;
  right: -5%;
}

/* 
.three-stock-photos > img {
height: 33%;
width: 33%;
} */

/*.printer-view {
display: flex;
flex-flow: column wrap;
height: 11in;
} 
.printer-view > * {
width: 33%;
} */

.printer-view {
  column-count: 3;
}

/* 
.printer-view {
display: grid;
grid-template-columns: repeat(3, 1fr);
} */
.hide {
  display: none;
}


.tabs {
  display: flex;
  flex-flow: row wrap;
}

.tabs>[type=radio] {
  display: none;
}

.tabs>[type=radio]+label {
  order: 1;
  cursor: pointer;
  font-stretch: ultra-condensed;
  font-weight: bold;
}

.tabs>[type=radio]+label+* {
  width: 100%;
  order: 2;
}

.tabs>[type=radio]:not(:checked)+label+* {
  display: none;
}


.tabs>[type=radio]:not(:checked) #toc {
  display: none;
}

.tabs>[type=radio]:not(:checked)+label {
  /* background: var(--navy); */
  color: var(--navy);
}


.tab-button {
  padding: 0.5em 0.5em;
}

hr {
  color: var(--white);
}

.tabs [type=radio]:checked+label {
  border-bottom: 2px solid var(--white);
}

.tabs [type=radio]:checked+label,
.tabs [type=radio]:checked+label+* {
  color: var(--white)
  /* background: var(--orange); */
}

form.address {

  margin: auto;
  margin-top: 0.5em;
}
form.address * {
  margin: 0.1em;
}

.toc-inner {
  padding-left: 1em;
}



.toc-contents {
  overflow-y: scroll;
  max-height: 80vh;
  border-right: 2px dashed var(--orange);
}



.table-of-contents {
  /* background-color: var(--white); */
  width: 18em;
  position:sticky;
  top: var(--header-height);
  height: 90vh;
  padding: 1em;
}




a {
  color: var(--white);
}


span.orange {
  color: var(--orange);
}

.error {
  color: var(--orange);
}

.success {
  color: lightgreen;
}

.inner {
  padding-left: 1em;
  padding-right: 1em;
  padding-bottom: 1.5em;
}



.viewer {
  max-width: 39em;
  padding-top: 0em;
  margin-top: 0em;
  margin: 0em auto;
  background-color: var(--navymid);
  padding: 2em;
}

.viewer label {
  font-size: 1.5em;
  padding-left: 1em;
}

.viewer p {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

.election {
  break-inside: avoid;
  display: grid;
  text-transform: uppercase;
  grid-template-columns: 100%;
}

.election>h4 {
  margin-top: 0;
  color: var(--white);
  font-weight: bold;
  padding: 0.5em;
  text-transform: uppercase;
  margin-bottom: 0;
  font-size: 1.7em;
}


.election-choices label {
  border-radius: 0.5em;
  margin: 0.3em;
  padding: 0.5em;
  border: var(--navy);
  border-width: 0.1em;
  border-style: solid;
  text-transform: uppercase;
  display: flex;
  width: auto;
  color: var(--white);
  border-color: var(--white);
}

.election-choices {
  display: flex;
  flex-flow: row wrap;
}

.election-choices>* {
  width: min-content;
}


input {
  accent-color: var(--orange);
  font-size: inherit;
}

.select-images {
  display: grid;
  grid-template-columns: 25% 25% 25% 25%;
}

.select-images>label {
  padding: 0.5em;
  height: 5em;
}

.select-images>label>img {
  display: flex;
  height: 100%;
  max-width: 100%;
}

p.navigate a {
  color: var(--yellow);
  text-decoration: none;
}

p.navigate a:hover {
  color: var(--white);

}

p.navigate {
  line-height: 1.2em;
  font-size: 2em;
  text-align: center;
}

.center-title {
  text-align: center;
}

.navigate * {
  color: var(--yellow);
  text-shadow: none;
}

.navigation-buttons {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
}

.navigation-buttons button {
  margin: 0 1em 1em;
  padding: 0.7em 0;
  width: 8em;
  color: var(--navy);
  border-color: var(--white);
  background-color: var(--yellow);
  border-radius: 1em;
  border-style: solid;
  font-size: 1.4em;
  font-weight: 300;
}


.navigation-buttons button:hover {
  background-color: var(--white);
}



footer>*>button {
  margin: 1em;
  font-weight: bold;
  padding: 0.3em;
  background-color: var(--white);
  color: black;
  box-shadow: none;
  border: 0;
  width: 7em;
  border-color: var(--white);
  border-radius: 0.5em;
}

footer>*>button:hover {
  background-color: var(--orange);
  color: var(--white);
}

.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}


.three > * {
  padding: 0.5em;
}

.three > * > * {
  margin-top: 0;
  margin-bottom: 0.2em;
}

.three img {
  width: auto;
  height: 6em;
}

.three h3 {
  text-align: center;
  margin-bottom: 0;
}

.three p {
  text-align: center;
  margin-top: 0;
}


main {
  padding: 2rem;
}

body {
  padding-top: 0em;
  margin-top: 0em;
  margin: 0em auto;
  background: linear-gradient(var(--teal), var(--navymid));
  background-color: var(--navy);
  background-attachment: fixed;
  font-family: "Open Sans", sans-serif;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Antonio", sans-serif;
  margin-top: 0;
  /* font-stretch: ultra-condensed; */
}

.how-it-works {
  display: grid;
  grid-template-columns: 40% auto;
}

.how-it-works h1 {
  margin-top: 0;
  margin-bottom: 0;
}
  
.how-it-works img {
  width: 100%;
  margin-top: 1em;
}

h1 {
  text-shadow: 0.05em 0.05em var(--orange);
  text-transform: uppercase;
  font-size: 5em;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: 0;
}

h2 {
  text-shadow: 0.05em 0.05em var(--navy);
  text-transform: uppercase;
  font-size: 2.6em;
  color: var(--white);
  margin-bottom: 0;
}

h3 {
  text-shadow: 0.05em 0.05em var(--orange);
  text-transform: uppercase;
  font-size: 1.8em;
  color: var(--white);
  margin-bottom: 0;
}

p {
  color: var(--white);
  font-size: 1.3em;
}

.line-box-test {
  border-style: dashed;
  border-color: var(--orange);
  border-width: 2px;
  padding: 5%;
  padding-top: 0.3em;
  max-width: 43em;
  margin: 2% auto 5% auto;
}

.screen {
  height: 100vw;
  width: auto;
}


.outer {
  padding: 7em;
  max-width: 100em;
  margin-top: 0em;
  margin: 0em auto;
  /* background-color: var(--white); */
}

.outer img {
  width: 100%;
}

header {
  /* font-family: "Patrick Hand"; */
  /* text-transform: uppercase;  */
  /* font-stretch: ultra-expanded; */
  /* display:grid; */
  /* grid-template-columns: min-content auto min-content; */
  /* position: fixed; */
  position: sticky;
  top: 0;
  display: flex;
  width: auto;
  height: var(--header-height);
  justify-content: space-between;
  margin-top: 0;
  margin-bottom: 0;
  color: var(--white);
  background-color: var(--navy);
  z-index: 100;
}

header a.contact-us {
  padding-left: 1em;
  padding-right: 1em;
  margin-right: 1em;
  display: inline-flex;
  font-weight: bold;
  justify-content: right;
  text-decoration-line: none;
  color: var(--white);
  align-items: center;
}

header * {
  align-content: center;
}

a.logo {
  /* position: fixed; */
  font-size: 3vh;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  color: var(--yellow);
  line-height: 0.9em;
  border-radius: 1em;
  padding: 0.3em;
}

.logo img {
  height: 1.5em;
}


.left {
  display: inline-flex;
  justify-content: left;
}

.right {
  display: inline-flex;
  justify-content: right;
}

.center {
  display: inline-flex;
  justify-content: center;

}

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

footer {
  position: sticky;
  display: grid;
  grid-template-columns: 33.333% 33.333% 33.333%;
  background-color: var(--navy);
  box-shadow: 0px -5px 5px #00000055;
  accent-color: var(--white);
  color: var(--white);
  bottom: 0;
  z-index: 999;
}

/* .share-columns {
  display: grid;
  grid-template-columns: auto auto;
  margin-top: 1em;
}

.share-columns h1 {
  text-align: right;
  padding-right: 0.5em;
} */

table, td, th {
  border: 2px solid var(--white);
  background-color: #012b5c;
}

td, th {
  padding: 0.2em;
}

table * {
  color: var(--white);
  font-size: 1.1em;
}

table {
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
}

.print-only {
  display: none;
}

.viewer-header {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 1rem;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  /* padding:1rem; */
  margin-bottom: 1rem;
}

.viewer-header p {
  margin-bottom: 0.0em;
  margin-top: 0.2rem;
}

.header-hero {
  display: flex;
  flex-direction: row;
  text-align: center;
  gap: 0.8rem;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-direction: row;
  background-color: var(--silver);
  padding: 0.5rem;
  border-radius: 0.4rem;
}

img.qr {
  height: 4rem;
  width: 4rem;
  border-radius: 0.3rem;
}

img.big-qr {
  height: 10rem;
  width: 10rem;
}

img.share-buttons {
  height: 2rem;
}

.share-buttons {
  display: grid;
  grid-template-columns: auto auto;
}
