/* Base styles. These reproduce the parts of the main site's stylesheet that
   this puzzle was originally designed against. */

:root {
  --bs-font-sans-serif: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
}

*,
::after,
::before {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--bs-font-sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2 {
  margin-top: 0;
  margin-bottom: .5rem;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: calc(1.375rem + 1.5vw);
}

@media (min-width: 1200px) {
  h1 {
    font-size: 2.5rem;
  }
}

h2 {
  font-size: calc(1.325rem + .9vw);
}

@media (min-width: 1200px) {
  h2 {
    font-size: 2rem;
  }
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

b {
  font-weight: bolder;
}

img {
  vertical-align: middle;
}

label {
  display: inline-block;
}

button {
  border-radius: 0;
}

button:focus:not(:focus-visible) {
  outline: 0;
}

button,
input {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  text-transform: none;
}

[type=button],
button {
  -webkit-appearance: button;
}

[type=button]:not(:disabled),
button:not(:disabled) {
  cursor: pointer;
}

::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-year-field {
  padding: 0;
}

::-webkit-inner-spin-button {
  height: auto;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-color-swatch-wrapper {
  padding: 0;
}

::file-selector-button {
  font: inherit;
}

::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}

.container {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

:root {
  --neutral-400: #c8cace;
  --neutral-500: #9b9fa6;
  --neutral-600: #71767f;
  --neutral-800: #26272a;
  --red-500: #ea5555;
  --white: #FFFFFF;
  --black: #000000;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

body {
  background-color: var(--white);
  font-family: "Alright Sans LT", Helvetica, Arial, sans-serif;
}

@media screen and (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding: 0;
  }
}

h1 {
  font-weight: 800;
  font-size: 70px;
  line-height: 70px;
  color: var(--black);
  text-transform: uppercase;
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 48px;
    line-height: 1;
  }
}

h2 {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 48px;
  margin-bottom: 20px;
  color: var(--black);
  text-transform: none;
}

@media screen and (max-width: 768px) {
  h2 {
    font-size: 30px;
    line-height: 37px;
  }
}

@media screen and (max-width: 576px) {
  h2 {
    font-size: 26px;
    line-height: 33px;
  }
}

p {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: normal;
  line-height: 24px;
  margin-bottom: 12px;
  color: var(--black);
}

@media screen and (max-width: 768px) {
  p {
    font-size: 14px;
  }
}

button {
  border: 0;
  cursor: pointer;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

.hide {
  display: none;
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 32px;
    line-height: 1.1;
  }
}


/* Puzzle styles */

.tricky-treating {
  font-family: "Alright Sans LT", Helvetica, Arial, sans-serif;
}

.tricky-treating .cc-window {
  display: none;
}

.tricky-treating input {
  font-size: 14px;
}

.tricky-treating #canvas-container-div {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-color: var(--white);
}

.tricky-treating #canvas-container-div #confetti-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.tricky-treating .tritrea-column {
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%);
      -ms-transform: translate(-50%);
          transform: translate(-50%);
  max-width: 1200px;
  min-height: 100vh;
}

.tricky-treating p {
  text-align: center;
  margin: 0;
  color: var(--neutral-800);
}

.tricky-treating img {
  max-width: none;
}

.tricky-treating .tritrea-page {
  position: relative;
  width: 100%;
  margin-top: 20px;
}

.tricky-treating .tritrea-content-container {
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%);
      -ms-transform: translate(-50%);
          transform: translate(-50%);
  max-width: 600px;
}

.tricky-treating .correct-notification {
  position: absolute;
  top: 0;
  left: 50%;
  -webkit-transform: translate(-50%, 0);
      -ms-transform: translate(-50%, 0);
          transform: translate(-50%, 0);
  width: 100%;
  display: none;
}

.tricky-treating .correct-notification .text-container {
  position: absolute;
  top: 350px;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 90%;
}

.tricky-treating .correct-notification .text-container .correct-heading {
  text-align: center;
  font-weight: 700;
  font-size: 60px;
  line-height: 1.1;
}

.tricky-treating .correct-notification .text-container .correct-subheading {
  text-align: center;
  font-size: 22px;
  margin-top: 53px;
  font-weight: 700;
  line-height: 27px;
}

.tricky-treating .correct-notification .text-container .tritrea-reset {
  margin-top: 35px;
  color: var(--neutral-500);
  font-size: 10px;
  text-align: center;
  cursor: pointer;
}

.tricky-treating .correct-notification .text-container .tritrea-reset:hover {
  color: var(--neutral-400);
}

.tricky-treating .intro-text {
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%);
      -ms-transform: translate(-50%);
          transform: translate(-50%);
  width: 100%;
}

.tricky-treating .intro-text h1 {
  color: var(--neutral-800);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
}

.tricky-treating .intro-text h2 {
  color: var(--neutral-800);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  margin: 20px 0 0 0;
}

.tricky-treating .candies-container {
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%);
      -ms-transform: translate(-50%);
          transform: translate(-50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  width: 800px;
  margin: 55px 0 0 0;
}

.tricky-treating .candies-container .column {
  -ms-flex-preferred-size: 390px;
      flex-basis: 390px;
}

.tricky-treating .candies-container .column .candy-container {
  position: relative;
  width: 100%;
  height: 110px;
  margin: 0 0 16px;
}

.tricky-treating .candies-container .column .candy-container p {
  position: absolute;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  width: 100%;
  top: 23%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.tricky-treating .candies-container .column .candy-container img {
  width: 100%;
  opacity: .6;
}

.tricky-treating .candies-container .column .candy-container .candy-field {
  height: 40px;
  border: 1px solid var(--neutral-800);
  border-radius: 4px;
  width: 100%;
  margin: 9px 0 0;
  color: var(--neutral-800);
  text-align: center;
  text-transform: uppercase;
  background-color: #f6f6f6;
}

.tricky-treating .candies-container .column .candy-container .candy-field:focus {
  outline: none;
}

.tricky-treating .sandbox-container {
  position: relative;
  width: 100%;
  margin: 55px 0 0 0;
}

.tricky-treating .sandbox-container .notice {
  position: relative;
  font-size: 12px;
  left: -265px;
  top: 30px;
  line-height: 1.5;
  -webkit-transform: rotate(-4deg);
      -ms-transform: rotate(-4deg);
          transform: rotate(-4deg);
  text-align: center;
}

.tricky-treating .sandbox-container p {
  font-weight: 500;
  font-size: 16px;
  margin: 20px 0 5px;
}

.tricky-treating .sandbox-container p .redacted {
  letter-spacing: -1px;
}

.tricky-treating .sandbox-container .fields-container {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.tricky-treating .sandbox-container .fields-container .input-container {
  position: relative;
  height: 40px;
  width: 23%;
  margin: 0 0 9px;
}

.tricky-treating .sandbox-container .fields-container .input-container .number {
  position: absolute;
  background-color: var(--white);
  height: 25px;
  width: 25px;
  border: solid 2px var(--neutral-800);
  border-radius: 50%;
  top: -6px;
  left: 117px;
}

.tricky-treating .sandbox-container .fields-container .input-container .number p {
  position: absolute;
  margin: 0;
  top: 56%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.tricky-treating .sandbox-container .fields-container .input-container .sandbox-field {
  border: 1px solid var(--neutral-800);
  border-radius: 4px;
  width: 100%;
  height: 100%;
  color: var(--neutral-800);
  text-align: center;
  text-transform: uppercase;
  padding: 0;
}

.tricky-treating .sandbox-container .fields-container .input-container .sandbox-field.yellow {
  background-color: #ffe578;
}

.tricky-treating .sandbox-container .fields-container .input-container .sandbox-field.green {
  background-color: #bafd8f;
}

.tricky-treating .sandbox-container .fields-container .input-container .sandbox-field.blue {
  background-color: #8cc7f8;
}

.tricky-treating .sandbox-container .fields-container .input-container .sandbox-field.violet {
  background-color: #d8d1fb;
}

.tricky-treating .sandbox-container .fields-container .input-container .sandbox-field:focus {
  outline: none;
}

.tricky-treating .clue-container {
  margin: 55px 0 0;
}

.tricky-treating .clue-container p {
  text-align: center;
  font-weight: 700;
  font-size: 30px;
}

.tricky-treating .clue-container p img {
  position: relative;
  display: inline-block;
  width: 30px;
  top: -2px;
}

.tricky-treating form {
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%);
      -ms-transform: translate(-50%);
          transform: translate(-50%);
  width: 90%;
  max-width: 600px;
  margin-top: 110px;
  height: 180px;
}

.tricky-treating #answer-entry {
  font-size: 14px;
  height: 40px;
  border: 2px solid var(--neutral-800);
  border-radius: 4px;
  width: 66%;
  padding: 1px 0 0 13px;
  background-color: var(--white);
  color: var(--neutral-800);
  text-transform: uppercase;
}

.tricky-treating #answer-entry:focus {
  outline: none;
}

.tricky-treating #answer-entry::-webkit-input-placeholder {
  color: var(--neutral-600);
  text-transform: none;
}

.tricky-treating #answer-entry:-ms-input-placeholder {
  color: var(--neutral-600);
  text-transform: none;
}

.tricky-treating #answer-entry::-ms-input-placeholder {
  color: var(--neutral-600);
  text-transform: none;
}

.tricky-treating #answer-entry::placeholder {
  color: var(--neutral-600);
  text-transform: none;
}

.tricky-treating #answer-entry:focus::-webkit-input-placeholder {
  opacity: 0;
}

.tricky-treating #answer-entry:focus:-ms-input-placeholder {
  opacity: 0;
}

.tricky-treating #answer-entry:focus::-ms-input-placeholder {
  opacity: 0;
}

.tricky-treating #answer-entry:focus::placeholder {
  opacity: 0;
}

.tricky-treating button {
  height: 40px;
  border-radius: 27.5px;
  color: var(--white);
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  cursor: pointer;
}

.tricky-treating button#submit-button {
  float: right;
  width: 32%;
  background-color: var(--neutral-800);
}

.tricky-treating button#submit-button:hover {
  background-color: #5b9f2f;
}

.tricky-treating button .label {
  position: relative;
  top: 0px;
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  color: var(--white);
}

.tricky-treating .incorrect-notification {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 16px;
  top: 60px;
  color: var(--red-500);
  display: none;
}

@media (max-width: 1200px) {
  .tricky-treating .tritrea-column .intro-text {
    margin-top: 50px;
  }
}

@media (max-width: 850px) {
  .tricky-treating input {
    font-size: 11px;
  }
  .tricky-treating .tritrea-column {
    padding: 0 5px;
  }
  .tricky-treating .tritrea-column .candies-container {
    width: 365px;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .tricky-treating .tritrea-column .candies-container .candy-container {
    -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
  }
  .tricky-treating .tritrea-column .candies-container .candy-container p {
    top: 21%;
    font-size: 12px;
  }
  .tricky-treating .tritrea-column .sandbox-container {
    width: 365px;
    left: 50%;
    -webkit-transform: translate(-50%);
        -ms-transform: translate(-50%);
            transform: translate(-50%);
  }
  .tricky-treating .tritrea-column .sandbox-container .notice {
    top: 5px;
    left: -130px;
  }
  .tricky-treating .tritrea-column .sandbox-container .fields-container .input-container .number {
    left: 62px;
  }
  .tricky-treating .tritrea-column .clue-container p {
    font-size: 25px;
  }
  .tricky-treating .tritrea-column .clue-container p img {
    width: 20px;
  }
}
