* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  min-width: 360px;
  font-family: "Neucha", cursive;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  background: transparent;
  color: inherit;
}

html {
  font-size: 16px;
}

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

@media (max-width: 480px) {
  html {
    font-size: 12px;
  }
}

html {
  overflow-y: scroll;
}

@media (max-width: 768px) {
  html {
    overflow-y: auto;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style-type: disc;
  padding: 20px;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

form {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  background-image: url("/build/assets/bg_paper-B-VXz1By.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  margin: 0 auto;
  padding: 0;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1019607843);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.7019607843);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.9019607843);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.7019607843) rgba(0, 0, 0, 0.1019607843);
}

input, textarea {
  background-color: transparent;
}

.wrapper {
  width: 100%;
  max-width: 800px;
  min-width: 300px;
  margin: 0 auto;
  padding: 0px 10px;
}

/* header */

header {
  width: 100%;
  z-index: 1000;
  padding: 0;
  margin-bottom: 25px;
}

.header-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 800px;
  margin: 16px 40px 30px;
}

.header-row {
  padding: 10px;
  display: flex;
  align-items: center;
}

.language-switch {
  font-size: 100%;
  line-height: 1.7;
  width: 20px;
  text-align: right;
}

.user-language {
  justify-content: space-between;
}

.menu-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0px 40px 0px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
  gap: 5px;
}

.menu-item img {
  max-width: 100%;
  cursor: pointer;
}

.menu-item:first-child img, .menu-item:last-child img {
  width: 25%;
}

.menu-item:nth-child(2) img {
  width: 78%;
  max-width: 120px;
  margin: 0 auto;
}

.menu-item:last-child img {
  width: 25%;
}

.menu-item p {
  text-align: center;
}

.menu-item a {
  font-size: 100%;
}

/* main block */

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  max-width: 960px;
  max-height: 100%;
  margin: 0 auto;
  padding: 0;
  object-fit: contain;
}

.main-content--sheet {
  background-image: url("/build/assets/old_paper-2zsc4CbN.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 20/29;
  overflow: hidden;
  padding: 90px 70px 90px 80px;
}

.main-content--form {
  padding: 5px 10px 35px;
}

.main-content--form_bg {
  background-image: url("/build/assets/bg_reg-DbPCbsKO.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 14/19;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  padding: 55px 80px 240px;
}

.main-content--form form {
  padding: 5px 0 13px 0;
}

.form-input {
  width: 100%;
  display: flex;
  flex-flow: column;
  margin: 0 0 10px 0;
}

.form-input__item {
  display: flex;
  align-items: center;
  width: 100%;
}

.form-input__error {
  color: #A60000;
}

.page-form a.link {
  padding-right: 30px;
}

.container--nosheet {
  width: 100%;
}

.container-puzzles {
  max-width: 960px;
  width: 100%;
  padding: 20px 0px;
}

.puzzles-content {
  width: 100%;
  max-width: 960px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  padding: 0;
}

.container--sheet {
  width: 100%;
  padding-right: 10px;
  aspect-ratio: 20/32;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: 90vh;
}

.puzzle {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-flow: column;
  align-items: center;
}

.puzzle img {
  transition: transform 0.1s ease-out;
}

.puzzle__title {
  width: 100%;
  text-align: center;
  font-size: 120%;
  margin: 60px auto 30px;
}

h1 {
  color: #333;
  font-size: 120%;
  margin: 0px 10px 30px;
  text-align: center;
}

p {
  font-size: 100%;
  line-height: 1.6;
}

#word-container {
  font-size: 120%;
  display: flex;
  gap: 3px;
}

.letter {
  cursor: pointer;
  transition: color 0.3s ease;
}

#logo-link {
  cursor: pointer;
}

#logo-link img {
  transition: opacity 0.3s ease;
}

#logo-link img {
  transition: all 0.3s ease;
}

#logo-link:hover img {
  content: url("/build/assets/monpax_logo_red-CLJS1TC3.png");
}

#logo-link:active img {
  content: url("/build/assets/monpax_logo_red-CLJS1TC3.png");
}

#logo-link.disabled {
  pointer-events: none;
  cursor: default;
}

#logo {
  transition: all 0.3s ease;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

#logo:active {
  animation: blink 0.5s linear 3;
}

.menu {
  justify-content: space-between;
}

.menu a {
  margin: 0 15px;
  text-decoration: none;
  color: #000;
}

.page-wrapper {
  overflow: hidden;
}

.page-title {
  width: 90%;
  margin: 30px auto 20px;
  text-align: center;
  font-size: 140%;
  letter-spacing: 1px;
}

.page-title-reg {
  width: 100%;
  padding: 5px 20px 20px 0;
  text-align: center;
  font-size: 140%;
}

.page-form {
  width: 100%;
}

.page-form a.link, .form-input__error {
  text-shadow: 0 0 2px #eae1c5, 0 0 4px #eae1c5, 0 0 6px #eae1c5, 0 0 8px #eae1c5, 0 0 10px #eae1c5;
}

.form-button {
  margin-bottom: 40px;
}

footer {
  width: 100%;
  padding: 10px 40px;
  font-size: 120%;
  color: #333;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 10px 0px;
  font-size: 80%;
  color: #333;
}

.footer-links {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.footer-link {
  text-decoration: none;
  color: #333;
}

.popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 20%;
  transform: translate(-50%, -50%);
  border: 1px solid #ccc;
  padding: 20px;
  background-color: #fff;
  z-index: 1000;
}

.popup.active {
  display: block;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.overlay.active {
  display: block;
}

input[type=text], input[type=email], input[type=password] {
  width: 160px;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #000;
  outline: none;
  padding: 0 5px;
}

@keyframes inkBorder {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124;
  }
}

input[type=submit]:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.warning {
  opacity: 0.7;
  text-align: center;
}

input[type=submit] {
  border: 2px solid #090c22;
  padding: 10px 20px;
  margin: 15px auto 15px;
  background-color: transparent;
  color: #090c22;
  cursor: pointer;
  font-size: 100%;
  font-weight: bold;
  text-transform: uppercase;
  font-family: "Neucha", cursive;
  letter-spacing: 1px;
  transform: rotate(-1deg);
  transition: all 0.3s ease;
}

input[type=submit]:hover, input[type=submit]:active {
  border-color: #030b64;
  color: #030b64;
  animation: inkBorder 1s linear infinite;
}

button[type=submit] {
  border: 1px solid black;
  padding: 10px 20px;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  width: 100%;
  font-size: 140%;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
  margin-top: 10px;
}

button[type=submit]:hover {
  background-color: #444;
}

#toggleForm {
  text-decoration: underline;
}

.close-btn {
  position: absolute;
  top: 0px;
  right: 10px;
  cursor: pointer;
  font-size: 200%;
  color: #333;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.pagination a {
  text-decoration: none;
  padding: 5px 10px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  color: #333;
}

.pagination a.active {
  background-color: #333;
  color: #fff;
}

@media (max-width: 720px) {
  .header-container {
    margin: 8px 30px 20px;
  }
  header {
    margin-bottom: 15px;
  }
  .main-content--sheet {
    padding: 70px 60px 90px 70px;
  }
  .menu-container {
    align-items: center;
    padding: 0 30px 0px;
  }
  .main-content--form_bg {
    padding: 50px 86px 240px;
  }
  .menu-item {
    width: 31%;
  }
  .menu-item:nth-child(2) img {
    width: 60%;
  }
  .menu-item:first-child img, .menu-item:last-child img {
    width: 28%;
  }
  .page-title {
    text-align: center;
    margin: 20px auto 20px;
    font-size: 120%;
  }
  .footer-container {
    flex-direction: row;
    text-align: center;
  }
  .footer-links {
    flex-direction: row;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  h1 {
    margin: 0px 10px 10px;
  }
  .header-container {
    margin: 8px 16px 16px;
  }
  header {
    margin-bottom: 10px;
  }
  .menu-item:first-child img, .menu-item:last-child img {
    width: 40%;
  }
  .main-content--sheet {
    padding: 55px 30px 45px 40px;
  }
  .main-content--form {
    padding: 5px 0px 35px;
  }
  .main-content--form_bg {
    padding: 40px 30px 30px 60px;
  }
  .menu-container {
    align-items: center;
    padding: 0 20px 0px;
  }
  .page-title {
    text-align: center;
    margin: 0px auto 10px;
    font-size: 110%;
  }
  input[type=text], input[type=email], input[type=password] {
    width: 120px;
  }
  input[type=submit] {
    border: 2px solid #090c22;
    padding: 3px 10px;
    margin: 10px auto 10px;
  }
  .container-puzzles {
    padding: 30px 0px;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-direction: row;
    gap: 40px;
  }
}

@media (max-width: 390px) {
  h1 {
    margin: 0px 10px 10px;
  }
  .main-content--sheet {
    padding: 40px 30px 45px 40px;
  }
  .main-content--form_bg {
    padding: 40px 30px 30px 50px;
  }
  .main-content--form form {
    padding: 0px 0 15px 0;
  }
  .main-content--form {
    padding: 0px 0px 3px;
  }
  input[type=text], input[type=email], input[type=password] {
    width: 120px;
  }
  input[type=submit] {
    border: 2px solid #090c22;
    padding: 3px 10px;
    margin: 10px auto 10px;
  }
  .page-title-reg {
    padding: 0 20px 16px 0;
  }
  .puzzle__info {
    font-size: 95%;
  }
}

.link {
  color: #512b1a;
  text-decoration: underline;
}

.button {
  border: 1px solid black;
  padding: 10px 20px;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none !important;
}

.puzzle-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 25px 20px;
  max-width: 960px;
  margin: 0 auto;
}

.puzzle-item {
  position: relative;
  flex: 0 0 calc(33.333% - 20px);
  aspect-ratio: 19/27;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 45px 40px 40px;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-image: url("/build/assets/task_card_background-BgzJEutD.png");
}

.puzzle-item.puzzle-item--is-solved::after {
  position: absolute;
  top: 30%;
  content: "";
  width: 100px;
  height: 100px;
  background-size: cover;
  background-position: center;
  background-image: url("/build/assets/solved-4tahB2Nu.png");
  z-index: 99;
  pointer-events: auto;
}

.puzzle-item--is-expected .puzzle-item__image {
  opacity: 0.4;
}

.puzzle-item a {
  width: 100%;
  height: 100%;
}

.puzzle-item__title {
  height: 20%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.puzzle-item__img {
  height: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.puzzle-image {
  width: 100%;
  padding-bottom: 128%;
  background-size: cover;
  background-position: center;
}

.puzzle-title {
  margin-top: 10px;
  text-align: center;
  font-size: 100%;
  color: #333;
}

.puzzle__article {
  position: relative;
  margin-top: 10px;
  width: 100%;
}

.puzzle__info {
  width: 95%;
  margin: 0 auto 20px;
}

.puzzle__questions {
  max-width: 95%;
  margin: 0 auto 20px;
}

.puzzle__questions form {
  display: flex;
  width: 100%;
  flex-flow: column;
  justify-content: center;
  margin: 0 auto;
}

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

.form-input__label {
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 60%;
}

.form-input__label a {
  text-decoration: underline;
}

.form-input__input {
  flex: 1;
  min-width: 0;
  max-width: 50%;
}

.privacy-policy__item, .terms-of-service__item, .donats__article, .article-container {
  flex-grow: 1;
  overflow-y: auto;
  max-height: 100%;
  min-height: 0;
  padding: 10px;
  box-sizing: border-box;
}

.article-container ul, .article-container p, .article-container h2, .terms-of-service__item ul, .privacy-policy__item ul, .terms-of-service__item p, .privacy-policy__item p, .terms-of-service__item h2, .privacy-policy__item h2 {
  margin-bottom: 15px;
}

.article-container h2, .privacy-policy__item h2, .terms-of-service__item h2, .donats__article h2 {
  font-size: 120%;
}

.donats__article p, .donats__article h2, .donats__article ul {
  margin-bottom: 15px;
}

.article-container p, .terms-of-service__item p, .privacy-policy__item p, .donats__article p {
  text-indent: 5%;
}

.donats__article ul {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding: 0px !important;
  list-style-type: none !important;
}

.donats__images_top_item, .donats__images_bottom_item {
  width: 100%;
  display: flex;
  justify-content: center;
}

.donats__images_top_item img {
  width: 40%;
}

.donats__images_bottom_item img {
  width: 60%;
}

.puzzle__errors {
  width: 100%;
  text-align: center;
  background: rgba(255, 0, 0, 0.2);
}

.puzzle__success {
  margin: 0 auto 20px;
  text-align: center;
  background: rgba(170, 233, 170, 0.2);
  border: 1px solid #888;
  border-radius: 5px;
  padding: 5px;
}

.puzzle__success a {
  text-decoration: underline;
}

.puzzle__attachments {
  width: 100%;
  display: flex;
  flex-flow: row;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 3%;
  margin-top: 10px;
}

.puzzle__attachment {
  text-align: right;
}

.puzzle__attachment a {
  color: #4d2d15;
  text-decoration: underline;
}

.form-input--disabled .form-input__label {
  color: gray;
}

@media screen and (max-width: 720px) {
  .puzzle-item {
    flex: 0 0 calc(50% - 20px);
    padding: 40px 23px 40px;
  }
  .puzzle-item__title {
    height: 15%;
    line-height: 1.3;
  }
  .puzzle-list {
    gap: 25px 21px;
  }
  .puzzle__title {
    margin: 10px auto;
  }
}

@media screen and (max-width: 480px) {
  .puzzle-item {
    flex: 0 0 calc(50% - 10px);
    padding: 27px 23px 27px;
  }
  .puzzle-item__title {
    height: 20%;
    line-height: 1.3;
  }
  .puzzle-list {
    gap: 16px 10px;
  }
}

@media screen and (max-width: 360px) {
  .puzzle-item__title {
    height: 27%;
    line-height: 1.3;
  }
  .puzzle__info {
    margin: 0 auto 10px;
  }
}

.language-switch {
  width: 20px;
  height: 15px;
  overflow: visible;
  cursor: pointer;
}

.language-switch-item__name {
  font-size: 100%;
}

.language-switch__current-item {
  border-bottom: 1px solid #000;
  background-color: transparent;
}

.language-switch__list {
  position: relative;
  background-color: transparent;
  z-index: 99;
}

.language-switch-item {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.language-switch-item:hover {
  background-color: #c89e72;
}

.main-info-block_top, .main-info-block_bottom {
  margin-top: 15px;
  padding: 20px;
}

.main-info-block_top p {
  text-align: center;
  text-indent: 2em;
}

.main-info-block_top a, .main-info-block_bottom a {
  text-decoration: underline;
}

.main-info-block_bottom p {
  text-align: justify;
  text-indent: 2em;
  margin-bottom: 10px;
}

.main-map-wrapper {
  margin-top: 20px;
  width: 100%;
  aspect-ratio: 1/1;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-image: url("/build/assets/big_map_paper-CJjJKwNW.png");
}

.main-map-image {
  width: 100%;
  margin: 0 auto;
}

.main-map-image-activated {
  width: 100%;
  aspect-ratio: 1/1;
  margin: 0;
}

.main-form-block {
  display: flex;
  flex-flow: column;
  align-items: center;
  margin-top: 20px;
  padding: 20px;
}

.main-ad-block {
  margin-top: 2px;
  padding: 2px;
}

.error_404_item {
  width: 100%;
  display: flex;
  flex-flow: column;
  align-items: center;
}

.error_404 {
  width: 50%;
}

[x-cloak] {
  display: none !important;
}