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

h3 {
  font-size: calc(1.3rem + .6vw);
}

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

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

b {
  font-weight: bolder;
}

sup {
  position: relative;
  font-size: .75em;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -.5em;
}

a {
  color: #0d6efd;
  text-decoration: underline;
}

a:hover {
  color: #0a58ca;
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

img {
  vertical-align: middle;
}

::-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;
}

.figure {
  display: inline-block;
}

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

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--bs-gutter-y) * -1);
  margin-right: calc(var(--bs-gutter-x) * -.5);
  margin-left: calc(var(--bs-gutter-x) * -.5);
}

.row>* {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
  margin-top: var(--bs-gutter-y);
}

.col {
  flex: 1 0 0%;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

:root {
  --neutral-300: #d7d9db;
  --orange-500: #ff8000;
  --orange-600: #df7000;
  --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;
  }
}

.page-column {
  padding: 60px 100px;
  background-color: var(--white);
  border: 1px solid var(--neutral-300);
  margin-bottom: 32px;
}

@media screen and (max-width: 991px) {
  .page-column {
    padding: 60px 50px;
  }
}

@media screen and (max-width: 768px) {
  .page-column {
    padding: 20px;
  }
}

@media screen and (max-width: 576px) {
  .page-column {
    border: none;
  }
}

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

h3 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 34px;
  margin-bottom: 15px;
  color: var(--black);
}

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

@media screen and (max-width: 576px) {
  h3 {
    font-size: 18px;
  }
}

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

a,
a:visited,
a:active {
  color: var(--orange-500);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--orange-600);
}

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

.hide {
  display: none;
}

@media (min-width: 768px) {
  .page-column {
    min-height: auto;
  }
}

@media screen and (max-width: 768px) {
  .row .col {
    padding: 20px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.1;
  }
}

@media (max-width: 576px) {
  .row {
    padding-left: 0;
    padding-right: 0;
  }

  .page-column {
    margin-bottom: 0;
  }
}


/* Puzzle styles */

.imo2022 .page-column {
  padding: 60px 100px 200px;
}

.imo2022 .page-column .content-container {
  padding-bottom: 150px;
}

.imo2022 .page-column .solution {
  display: none;
}

.imo2022 .page-column h1 {
  font-size: 50px;
  color: var(--black);
}

.imo2022 .page-column h3 {
  font-size: 22px;
  font-weight: 700;
}

.imo2022 .page-column h3:not(:first-child) {
  margin-top: 30px;
}

.imo2022 .page-column .img-container {
  width: 100%;
}

.imo2022 .page-column .img-container img {
  width: 60%;
  min-width: 250px;
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%);
      -ms-transform: translate(-50%);
          transform: translate(-50%);
}

.imo2022 .page-column .img-container .attribution {
  position: relative;
  text-align: center;
  font-size: 9px;
  top: -40px;
}

.imo2022 .page-column .fig-crop {
  position: relative;
  left: 50%;
  -webkit-transform: translate(-50%);
      -ms-transform: translate(-50%);
          transform: translate(-50%);
  overflow: hidden;
  width: 295px;
  height: 275px;
  margin: 35px 0 45px;
}

.imo2022 .page-column .fig-crop img {
  max-width: none;
  width: 200%;
  -webkit-transform: none;
      -ms-transform: none;
          transform: none;
  left: 0;
}

.imo2022 .page-column .img-row {
  width: 100%;
}

.imo2022 .page-column .img-row .img-container {
  width: 50%;
  float: left;
}

.imo2022 .page-column .img-row .img-container .fig-crop {
  left: 0;
  -webkit-transform: none;
      -ms-transform: none;
          transform: none;
  width: 60%;
  margin: 35px auto 40px;
}

.imo2022 .page-column .reveal-div {
  position: absolute;
}

.imo2022 .page-column .reveal-div .reveal-button {
  position: relative;
  width: 200px;
  height: 35px;
  border-radius: 3px;
  cursor: pointer;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
  background-color: #10a5cd;
}

.imo2022 .page-column .reveal-div .reveal-button:hover {
  background-color: #39cff7;
}

.imo2022 .page-column .reveal-div .reveal-button p {
  position: relative;
  top: 50%;
  -webkit-transform: translate(0, -50%);
      -ms-transform: translate(0, -50%);
          transform: translate(0, -50%);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

.imo2022 .page-column .footnotes {
  border-top: 1px solid #ccc;
  margin-top: 80px;
  margin-bottom: -100px;
  padding-top: 30px;
  line-height: 1.2;
}

@media (max-width: 991px) {
  .imo2022 .page-column {
    padding: 60px 20px 200px;
  }
  .imo2022 .page-column .img-row .img-container {
    width: 100%;
    float: none;
  }
  .imo2022 .page-column .img-row .img-container .fig-crop {
    left: 50%;
    -webkit-transform: translate(-50%);
        -ms-transform: translate(-50%);
            transform: translate(-50%);
    width: 250px;
    margin: 35px 0 40px;
  }
}
