﻿:root {
  --fellowesBlue: #5f95b2; /*rules title background */
  --fellowesYellow: #fbba00;
  --fellowesLightBlue: #dfeaf0; /* navbar background*/
  --fellowesYellowSemiTransparent: #fbba0066;
  --borderColor: var(--fellowesYellow);
  --errorColor: hsl(0 100% 50%);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  height: 100dvh;
}

body {
  font-family: Raleway, Tahoma, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

input {
  font-family: Raleway, Tahoma, sans-serif;
  font-size: 1rem;
}

header, nav, footer {
  text-align: center;
  flex-grow: 0;
}

main {
  text-align: center;
  flex-grow: 1;
  flex-basis: auto;
  margin-inline: auto;
  padding: 1rem;
}

header {
  height: 154px;
  min-height: 154px;
  max-height: 154px;
}

header, main, footer, nav {
  width: clamp(300px, 100%, 1300px);
  margin-inline: auto;
}

header a {
  overflow: hidden;
  display: flex;
  max-width: 100%;
  height: 154px;
  min-height: 154px;
  max-height: 154px;
  padding: 0;
}

header img {
  object-fit: none;
  aspect-ratio: 1367/ 154;
  max-width: 100%;
  min-height: 154px;
  max-height: 154px;
  margin: 0 auto;
  padding: 0;
}

footer {
  margin-block: 0.5em;
  font-size: clamp(12px, 0.9rem, 14px);
}

footer p {
  padding: 0.1em;
  margin: 0.2em;
}

:is(h1,h2,h3,h4,h5,h6) {
  margin-inline: auto;
  margin-block: 0.25em;
  padding: 0;
}

h2 {
  color: var(--fellowesBlue, black);
}

a {
  color: var(--fellowesBlue, #999999);
}

.navbar {
  background-image: linear-gradient(to bottom, transparent, transparent 28px, var(--fellowesLightBlue) 30px, var(--fellowesLightBlue) 48px, transparent 50px);
}

.navbar img {
  text-align: center;
}

.navbar a {
  --navBackground: transparent;
  display: inline-block;
  background-image: linear-gradient(to bottom, transparent, transparent 28px, var(--navBackground) 30px, var(--navBackground) 48px, transparent 50px);
}

.navbar a:is(:hover,:focus-visible) {
  --navBackground: var(--fellowesYellowSemiTransparent, #CCCCCC66);
}

.navbar-right {
  width: clamp(200px, 85%, 1200px);
  margin: auto;
  text-align: right;
}

.bordered {
  border: 3px solid var(--borderColor, black);
}

.bordered-light {
  border: 3px solid var(--fellowesLightBlue, #CCCCCC);
}

.padded {
  padding: 0.5em;
}

#loginForm, #changePassword {
  width: clamp(300px, 50%, 450px);
  margin-inline: auto;
  padding: 1.5em;
  background-color: var(--fellowesLightBlue, white);
}

.row {
  margin-block: 0.5em;
}

.mandatory {
  font-weight: bold;
  font-size: 1.1rem;
}

.instructions {
  font-style: italic;
}

.pwChange {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pwChange label {
  text-align: right;
  padding-right: .25em;
}

.pwChange .field-validation-error {
  grid-column: span 2 /auto;
}

.logoutLink {
  margin-right: 1em;
  text-align: right;
  color: var(--fellowesBlue, #999999);
  font-size: .8rem;
}

.leftAlign {
  text-align: left;
}

.centerAlign {
  text-align: center;
}

#homeBanner {
  max-width: 100%;
  height: auto;
}

.homeGauge {
  display: grid;
  gap: .25em;
  grid-template-rows: [gauge-start] 50px [current-start] 1fr [current-end minimum-start] 1fr [minimum-end] 50px [gauge-end];
  font-size: 1.5rem;
  grid-template-columns: [gauge-start current-start minimum-start] 1fr [minimum-end current-end gauge-end];
}


.progressGauge {
  font-size: 1.25rem;
  display: grid;
  gap: .25em;
  grid-template-rows: [gauge-start] 65px [sale-start] 1fr [sale-end current-start] 1fr [current-end minimum-start] 1fr [minimum-end] 65px [gauge-end];
  grid-template-columns: [gauge-start sale-start current-start minimum-start] 1fr [minimum-end sale-end current-end gauge-end];
}


.currently, .minimum, .sale, .gauge {
  align-self: center;
  justify-self: center;
}

.currently strong, .minimum strong, .sale strong {
  font-size: 1.25em;
}

.currently {
  grid-area: current;
}

.minimum {
  grid-area: minimum;
}

.sale {
  grid-area: sale;
}

.gauge {
  grid-area: gauge;
}


.alt-title {
  background-color: var(--fellowesBlue, black);
  color: white;
}

.rulesContainer {
  display: flex;
  gap: 1em;
  justify-items: start;
  align-items: start;
}

.rulesGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em 2em;
}

.rulesGrid section.fullWidth {
  grid-column: span 2/ auto;
}

.rulesGrid :is(h3,p) {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.questionsBox {
  min-width: 350px;
}

.travelBlurb {
  container-type: inline-size;
}

.travelBlurb p {
  padding-right: 1em;
  margin-right: 1em;
  text-align: left;
  text-wrap: pretty;
}

.travelBlurb p:first-child {
  padding-top: 1.5em;
}

.travelBlurb img {
  max-width: 100%;
}

@container(min-width:980px) {
  .travelBlurb img {
    float: right;
  }
}

@media(max-width:800px) {
  .rulesContainer {
    flex-direction: column;
  }

  .rulesGrid {
    grid-template-columns: 1fr;
  }

  .rulesGrid section.fullWidth {
    grid-column: 1;
  }

  .questionsBox {
    width: 100%;
  }
}

.input-validation-error {
  border-color: var(--errorColor, hsl(0 100% 50%));
  outline-color: var(--errorColor, hsl(0 100% 50%));
}

.field-validation-error {
  color: var(--errorColor, hsl(0 100% 50%));
}

.form-group {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: .25em;
}

fieldset {
  margin-bottom: 0.5em;
  border-color: var(--fellowesBlue, black);
}

legend {
  color: var(--fellowesBlue, black);
  font-weight: bold;
  font-size: 1.1rem;
}

.form-group label {
  text-align: right;
}

.answerBox {
  list-style-type: none;
}

.alignTop > * {
  vertical-align: top;
}

.contactForm, .poForm {
  text-align: left;
}

.poForm {
  margin: 0 auto;
  width: clamp(350px, 65%, 700px);
}

.poForm > div {
  margin-block-end: .5em;
}

.contactForm.row {
  padding: 0.25rem;
  padding-left: 0.75rem;
  padding-bottom: 1rem;
  color: #333333;
  box-sizing: border-box;
  margin: 0;
  vertical-align: top;
}

.row.first {
  padding-top: 0.5rem;
}

.row.last {
  padding-bottom: 0.5rem;
}

.note.required {
  color: var(--mainColor, #000000);
  font-weight: bold;
}

.contactForm .label, .poForm .label {
  width: 180px;
  display: inline-block;
  vertical-align: middle;
  text-align: right;
  font-size: 1rem;
  color: var(--mainColor, #000000);
  font-weight: bold;
}

.contactForm .label.required:after {
  content: "*";
}

.contactForm .field {
  width: calc( 100% - 250px - 1rem);
  display: inline-block;
  font-size: 1rem;
  vertical-align: middle;
}

.contactForm .field input,
.contactForm .field textarea {
  width: 100%;
  box-sizing: border-box;
  resize: none;
  margin: 0;
  padding: 0.5em;
  background-color: var(--secondaryColor,#FFFFFF);
}

.contactForm .field.subject input,
.contactForm .field.emailAddr input {
  width: 25rem;
}

.contactForm .field.phoneNumber input {
  width: 8rem;
}

.contactForm .field textarea {
  height: 10em;
  max-width: 100%;
}


.grecaptcha-badge {
  color: var(--fellowesLightBlue, black);
}

#frmEnroll {
  width: clamp(400px, 80%, 800px);
  margin-inline: auto;
}

#frmEnroll fieldset {
  width: 100%;
}

#frmEnroll p {
  margin-inline: auto;
  display: inline-block;
  width: 80%;
}

#frmEnroll textarea {
  margin-inline: auto;
  display: inline-block;
  width: 100%;
}

.button, input[type=button], input[type=submit], input[type=reset] {
  display: inline-block;
  margin: .25em;
  padding: .2em .5em;
  background-color: var(--fellowesBlue, #CCCCCC);
  color: var(--fellowesYellow, #FFFFFF);
  text-decoration: none;
  border: 2px outset var(--fellowesYellow, #FFFFFF);
}

.feedback {
  margin-inline: auto;
  padding: .5em;
  background-color: var(--fellowesYellow, #FFFFFF);
  width: clamp(300px, 60%, 800px);
  border: 2px solid var(--fellowesBlue, #000000);
}

.narrowBox {
  width: clamp(300px, 50%, 450px);
  margin-inline: auto;
  padding: 1.5em;
  margin-block: 0.25em;
}

.boldText {
  font-weight: bold;
}

.largerText {
  font-size: 1.1rem;
}

.recoveryDialog {
  width: 400px;
}

.recoveryRow {
  margin-bottom: .5em;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.15em;
}

.recoveryRow .label {
  text-align: right;
}

.recoveryDialog .feedback {
  width: 100%;
  max-width: initial;
}

.recoveryFeedback {
  margin-top: 0.5rem;
}

.downloadableReports, .vipReportBox {
  border: 1px solid var(--fellowesBlue, black);
  padding: 0;
  margin: 0 auto;
  margin-block-end: 1.5em;
}

.vipReportBox {
  width: clamp(200px, calc( 25% - 2.25em), 400px);
}

.downloadableReports {
  width: fit-content;
}

.downloadableReports :is(h1,h2,h3,h4,h5), .vipReportBox :is(h1,h2,h3,h4,h5) {
  margin: 0;
  padding: .25em .5em;
  background-color: var(--fellowesBlue, black);
  color: white;
}

.downloadableReports p, .vipReportBox :is(h1,h2,h3,h4,h5) {
  margin: .5em 1em;
  display: flex;
  gap: 2em;
  justify-content: center;
}

a.buttonLink {
  text-decoration: none;
}

.validation-summary-errors {
  color: var(--errorColor, red);
}

.top5DSRGraph {
  max-width: 738px;
  min-height: calc(314px + 3.2em);
  background-image: url(/Images/BarGraphs/ISR-Reports/Graph-Top-5-DSRs.png);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 738px 314px;
  display: grid;
  grid-template-columns: 60px repeat(5, 1fr);
  margin-inline: auto;
  margin-block-end: 2em;
  gap: 37px;
}

.dsrRankBar {
  display: flex;
  flex-direction: column;
  padding-top: 9px; /* this gets the bottom of the bar to align with the 0 line on the graph */
  text-align: center;
  font-size: 0.85rem;
}

.dsrRankBar img {
  width: 74px;
  height: 290px;
  margin-inline: auto;
}

.vipGraphs {
  display: flex;
  align-content: space-between;
  flex-wrap: nowrap;
  gap: 0.25em;
  margin-block-end: 1.5em;
}


.vipGraphs .graph {
  background-repeat: no-repeat;
  background-position: center top;
  vertical-align: bottom;
  width: 312px;
  height: 233px;
}

.vipGraphBox {
  width: 312px;
  height: calc(233px + 3em);
}


.vipDSRAchievement .graph {
  background-image: url('/Images/BarGraphs/VIP-Reports/Graph_DSR-Achievement.png');
  display: grid;
  grid-template-columns: 45px repeat(4, fit-content(45px)) 20px;
  gap: 10px;
}

.spacing {
  font-size: 5px;
}

.vipDSRAchievement .bar {
  display: grid;
  grid-template-rows: 102px 1fr;
  gap: 5px;
  justify-items: center;
  padding-top: 48px; /*offset so top of bar image aligns with "100" line of background image*/
  padding-bottom: 35px; /*offset so bottom is above "DSR Achievements" label at bottom of background-image */
  height: 233px; /* match height*/
  max-height: 233px; /* match height*/
}

.vipDSRAchievement img {
  align-self: end;
  width: auto;
  height: 100%;
  margin: 0 auto;
  padding: 0;
}



.vipDSRSales .graph {
  background-image: url('/Images/BarGraphs/VIP-Reports/Graph_DSR-Sales.png');
  display: grid;
  grid-template-columns: 35px repeat(7, fit-content(33px)) 20px;
  gap: 8px;
}

.vipDSRSales .bar {
  display: grid;
  grid-template-rows: 87px 1fr;
  gap: 5px;
  justify-items: center;
  padding-top: 48px; /*offset so top of bar image aligns with "100" line of background image*/
  padding-bottom: 55px; /*offset so bottom is above "DSR Achievements" label at bottom of background-image */
  height: 233px; /* match height*/
  max-height: 233px; /* match height*/
}

.vipDSRSales img {
  align-self: end;
  width: 23px;
  height: 100%;
  margin: 0 auto;
  padding: 0;
}


.vipSalesByCat .graph {
  background-image: url('/Images/BarGraphs/VIP-Reports/Graph_Sales-by-Category.png');
  display: grid;
  grid-template-columns: 40px repeat(5, 1fr) 30px;
  gap: 6px;
}


.vipSalesByCat .bar {
  display: grid;
  grid-template-rows: 87px 1fr;
  gap: 5px;
  justify-items: center;
  padding-top: 48px; /*offset so top of bar image aligns with "100" line of background image*/
  padding-bottom: 55px; /*offset so bottom is above "DSR Achievements" label at bottom of background-image */
  height: 233px; /* match height*/
  max-height: 233px; /* match height*/
  width: 100%;
}

.vipSalesByCat img {
  height: 100%;
  width: 10px;
}

.vipTopTenISR .graph {
  background-image: url('/Images/BarGraphs/VIP-Reports/Graph_Top-10-ISR-$.png');
  display: grid;
  grid-template-columns: 40px repeat(10, 1fr) 30px;
  gap: 8px;
}


.vipTopTenISR .bar {
  display: grid;
  grid-template-rows: 87px 1fr 1fr;
  gap: 2px;
  justify-items: center;
  padding-top: 48px; /*offset so top of bar image aligns with "100" line of background image*/
  padding-bottom: 55px; /*offset so bottom is above "DSR Achievements" label at bottom of background-image */
  height: 233px; /* match height*/
  max-height: 233px; /* match height*/
}

.vipTopTenISR img {
  height: 100%;
  width: 100%;
}

.singleLineLabel {
  font-size: 8px;
  white-space: nowrap;
  text-align: right;
  margin: 0;
  padding: 0;
}

.normalGraphLabel {
  font-size: 9px;
}

.verticalHolder {
  display: inline-block;
  width: 100%;
  height: 7em;
  font-size: 0.5em;
}

.verticalText {
  writing-mode: sideways-lr;
  text-align: right;
}

.angledText {
  writing-mode: sideways-rl;
  text-align: left;
}

.graphComingSoon {
  grid-column: span 5/ auto;
  align-self: center;
  margin-bottom: 49px;
  color: var(--fellowesBlue, black);
  padding: .2em;
  font-weight: bold;
}

.reportComingSoon img {
  filter: grayscale();
}

.promotions {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-content: space-between;
  justify-content: center;
  margin-block-start: 1em;
}

.promotions a {
  padding: .5em;
  margin: 0 auto;
  box-shadow: 3px 3px 6px 6px var(--fellowesBlue, #CCCCCC);
  border-radius: 9px;
  text-decoration: none;
  text-align: center;
}

.promotions img {
  padding: 0;
  margin: 0 auto;
  display: block;
}
