/* 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;
}

ul {
  padding-left: 2rem;
}

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

ul ul {
  margin-bottom: 0;
}

b {
  font-weight: bolder;
}

img,
svg {
  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-300: #d7d9db;
  --neutral-600: #71767f;
  --neutral-800: #26272a;
  --green-500: #81d004;
  --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,
li {
  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,
  li {
    font-size: 14px;
  }
}

ul {
  padding: 0;
  margin: 0;
}

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 */

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

.ctc-postcards .cc-window {
  display: none;
}

.ctc-postcards input {
  font-size: 14px;
  padding: 2px 0 0 6px;
  text-transform: uppercase;
  width: 150px;
  border: 1px solid var(--neutral-800);
  border-radius: 2px;
}

.ctc-postcards input:focus {
  outline: none;
}

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

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

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

.ctc-postcards img {
  max-width: none;
}

.ctc-postcards .page {
  position: relative;
  width: 100%;
  margin-top: 20px;
}

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

.ctc-postcards .text h1 {
  color: var(--black);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
}

.ctc-postcards .text h2 {
  color: var(--black);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  margin: 50px 0 0 0;
}

.ctc-postcards .text p,
.ctc-postcards .text li {
  color: var(--black);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  margin: 10px 0 0 0;
  list-style-type: none;
}

.ctc-postcards .text li {
  margin: 30px 0;
}

.ctc-postcards .text ol {
  padding-left: 15px;
  margin-top: 20px;
}

.ctc-postcards .text ol li {
  padding-left: 5px;
  margin: 0 0 20px 0;
  font-weight: 300;
  font-size: 15px;
}

.ctc-postcards .text ol li p {
  margin: 0;
}

.ctc-postcards .content-container {
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%);
      -ms-transform: translate(-50%);
          transform: translate(-50%);
  max-width: 700px;
}

.ctc-postcards .content-container ul {
  margin: 20px 0;
}

.ctc-postcards .content-container ul li p {
  font-size: 13px;
  margin: 0 0 5px;
}

.ctc-postcards .content-container .puzzle-container {
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%);
      -ms-transform: translate(-50%);
          transform: translate(-50%);
  width: 800px;
  aspect-ratio: 3/2;
  margin: 70px 0;
}

.ctc-postcards .list-container {
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%);
      -ms-transform: translate(-50%);
          transform: translate(-50%);
  width: 700px;
  overflow: hidden;
}

.ctc-postcards .list-container ul {
  width: 50%;
}

.ctc-postcards .list-container ul.left {
  float: left;
}

.ctc-postcards .list-container ul.right {
  float: right;
  padding-left: 40px;
}

.ctc-postcards .flip-card {
  background-color: transparent;
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-perspective: 2500px;
          perspective: 2500px;
}

.ctc-postcards .flip-card .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transition: -webkit-transform 0.8s;
  transition: -webkit-transform 0.8s;
  -o-transition: transform 0.8s;
  transition: transform 0.8s;
  transition: transform 0.8s, -webkit-transform 0.8s;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-box-shadow: 0px 15px 50px var(---black-opacity-20);
          box-shadow: 0px 15px 50px var(---black-opacity-20);
  cursor: pointer;
}

.ctc-postcards .flip-card .flip-card-inner.flipped {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.ctc-postcards .flip-card .flip-card-side {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  /* Safari */
  backface-visibility: hidden;
}

.ctc-postcards .flip-card .flip-card-side.front {
  background-color: var(--black);
}

.ctc-postcards .flip-card .flip-card-side.back {
  background-color: var(--black);
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.ctc-postcards .flip-card .flip-card-side img {
  width: 100%;
  border: 1px solid var(--neutral-300);
}

.ctc-postcards .icon-flip-container {
  position: relative;
  width: 100%;
  height: 75px;
  margin-bottom: 50px;
}

.ctc-postcards .icon-flip-container .icon-flip {
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translate(-50%);
      -ms-transform: translate(-50%);
          transform: translate(-50%);
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.ctc-postcards .sorting-area {
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%);
      -ms-transform: translate(-50%);
          transform: translate(-50%);
  width: 100%;
  max-width: 700px;
  margin: 40px 0 100px;
}

.ctc-postcards .sorting-area p {
  font-size: 13px;
  margin: 20px 0 5px;
}

.ctc-postcards .sorting-area input {
  width: 100%;
}

.ctc-postcards .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;
}

.ctc-postcards .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%;
}

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

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

.ctc-postcards .correct-notification .text-container .reset {
  margin-top: 35px;
  color: var(--neutral-600);
  font-size: 10px;
  text-align: center;
  cursor: pointer;
}

.ctc-postcards .correct-notification .text-container .reset:hover {
  color: var(--black);
}

.ctc-postcards form {
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%);
      -ms-transform: translate(-50%);
          transform: translate(-50%);
  width: 90%;
  max-width: 700px;
  margin-top: 85px;
  height: 180px;
}

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

.ctc-postcards #answer-entry:focus {
  outline: none;
}

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

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

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

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

.ctc-postcards #answer-entry:focus::-webkit-input-placeholder {
  opacity: 0;
}

.ctc-postcards #answer-entry:focus:-ms-input-placeholder {
  opacity: 0;
}

.ctc-postcards #answer-entry:focus::-ms-input-placeholder {
  opacity: 0;
}

.ctc-postcards #answer-entry:focus::placeholder {
  opacity: 0;
}

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

.ctc-postcards button#submit-button {
  float: right;
  width: 32%;
  background-color: var(--black);
}

.ctc-postcards button#submit-button:hover {
  background-color: var(--green-500);
}

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

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

@media (max-width: 1200px) {
  .ctc-postcards .column .text.intro {
    margin-top: 50px;
  }
  .ctc-postcards .content-container .puzzle-container {
    width: 100%;
  }
  .ctc-postcards .content-container .puzzle-container .flip-card .flip-card-inner {
    -webkit-box-shadow: none;
            box-shadow: none;
  }
  .ctc-postcards .value {
    font-size: 90%;
  }
}

@media (max-width: 850px) {
  .ctc-postcards .column {
    padding: 0 5px;
  }
  .ctc-postcards .list-container {
    width: 100%;
  }
  .ctc-postcards .list-container ul {
    float: none;
    width: 100%;
    margin: 0;
  }
  .ctc-postcards .list-container ul.right {
    padding: 0;
    margin-top: -30px;
  }
}
