@font-face {
  font-family: 'NoirPro-Medium';
  src: url('./fonts/NoirPro/3A4B9B_0_0.woff');
}

@font-face {
  font-family: 'NoirPro-Regular';
  src: url('./fonts/NoirPro/3A4B9B_1_0.woff');
  }

html {
  /* Вертикальный контейнер: вписывание в ширину */
  font-size: calc(100vw / 1920);
  font-family: "Noir Pro";
}

@media (min-aspect-ratio: 1920/1200) {
  /* Горизонтальный контейнер: вписывание в высоту */
  html {
    font-size: calc(100vh / 1200);
  }
}

body {
  font-family: 'NoirPro-Regular', sans-serif;
  font-size: 32rem;
}

html,
body,
#fieldWrapper{
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  min-width: unset;
  min-height: unset;
}

/* Layout styles */
#field{
  position: relative;
  height: 1200rem;
  width: 1920rem;
  margin: 0 auto;
  
  display: flex;
}

.astronomy-logo{
  position: absolute;
  top: 102rem;
  right: 50rem;
  height: 100rem;
  width: 94rem;
  background-image: url("./images/logo.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

.astronomy-line{
  position: absolute;
  top: 202rem;
  right: 165rem;
  width: 1255rem;
  height: 2rem;
  background-image: linear-gradient(-90deg, black, white);
}

.preloadimg{
  position: absolute;
  z-index: -100;
  left: 100%;
  top: 100%;
  width: 1px;
  height: 1px;
  opacity: 0.05;
  overflow: hidden;
}

.step{
  z-index: 2;
  height: min-content;
  margin-top: 174rem;
  margin-left: 50rem;
  margin-right: 0;

  padding-top: 5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  
  border-top: 3rem solid transparent;

  font-family: "NoirPro-Regular",sans-serif;
  font-size: 24rem;
  line-height: 28rem;
  text-align: center;
  color: #17BAFF;
  text-decoration: underline;

  cursor: pointer;
  user-select: none;
}

.step:hover {
  color: black;
  text-decoration: none;
}

.step+.step{
  margin-left: 22rem;
}

.step.right {
  color: #7CD8FF;
  text-decoration: none;
}

.step.current {
  color: #2d2d2d;
  border-color: black;
  text-decoration: none;
}

.step.current:before{
  top: -5rem;
}

#reload {
  z-index: 2;

  height: 26rem;
  width: 26rem;
  margin-top: 180rem;
  margin-left: 30rem;

  background-image: url("./images/again.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;

  cursor: pointer;
  user-select: none;
}

#reload svg {
  display: none;
}

.reload-message {
  position: absolute;
  left: 100%;
  display: none;
  opacity: 0;
}

/* image default style */
.image {
  position: absolute;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.image.bottom-stars {
  right: 50rem;
  bottom: 50rem;
  height: 100rem;

  width: calc(100% - 100rem);

  background-image: url('./images/star.svg');
  background-repeat: space;
  background-size: contain;
}

/* Description styles */
#description{
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  
  position: absolute;
  top: 15rem;
  left: 50rem;
  width: 1665rem;
  height: 150rem;

  font-family: "NoirPro-Medium",sans-serif;
  font-weight: 600;
  font-size: 36rem;
  line-height: 36rem;
  letter-spacing: 1rem;
}

.description-success{
  color: #17BAFF;
}

/* Butoon styles */
.button#checkButton {
  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  z-index: 2;
  bottom: 50rem;
  right: 50rem;

  height: 90rem;
  width: 260rem;

  box-sizing: border-box;

  border-radius: 3rem;
  
  background-color: #17BAFF;

  font-family: 'NoirPro-Regular';
  font-weight: 600;
  font-size: 32rem;
  color: white;

  cursor: pointer;
}

.button#checkButton.only-next{
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.button#checkButton.only-next.visible {
  opacity: 1;
  pointer-events: initial;
}

.button#checkButton:hover {
  border: 2rem solid #0096D7;
}

.button#checkButton.error {
  background-color: #F1000E;
  color: white;
}

.button#checkButton.disabled {
  background-color: #DADADA;
  color: white;
  cursor: default;
}

.button#checkButton.disabled:hover {
  border: none;
}

/* DnD */
#dragNDropContainer {
  position: absolute;
  top: 0rem;
  left: 0rem;
  height: 100%;
  width: 100%;
}

/* Dropables */
.droppable {
  position: absolute;
  width: 260rem;
  height: 90rem;

  background-color: #DEDEDE;
  box-shadow: inset 6rem 4rem 12rem rgba(0, 0, 0, 0.25);
  border-radius: 100rem;
  border: 2rem solid black;
}

.droppable.filled {
  border: none;
}

.droppable:hover {
    background-color: #e4e4e4;
}

.droppable.droppable-error{
  background-color: #F1000E;
  border-color: #F1000E;
}

/* Draggables */
.draggable {
  position: absolute!important;;
  z-index: 1;
  box-sizing: border-box;
  width: 260rem;
  height: 90rem;
  padding-top: 0.25em;

  display: flex;
  align-items: center;
  justify-content: center;
  
  border: 2rem solid black;
  
  background-size: contain!important;
  background-position: center center!important;
  background-repeat: no-repeat!important;
  background-color: white;
  border-radius: 100rem;

  font-size: 32rem;
  line-height: 32rem;
  font-weight: 400;
  text-align: center;
  
  overflow: hidden;
  
  box-shadow: 3rem 2rem 5rem rgba(0, 0, 0, 0.25);
  
  user-select: none;
  transition-duration: .1s;
  transition-property: transform;
}

.draggable.draggable-right {
  background-color: black;
  color: #17BAFF;
}

.draggable .inner-element {
  /* display: none; */
}

.draggable:hover {
  box-shadow: 3rem 2rem 12rem rgba(0, 0, 0, 0.25);
}

.draggable.ui-draggable-dragging {
  box-shadow: 6rem 4rem 12rem rgba(0, 0, 0, 0.25);
}

.draggable.draggable-wrong {
  color: #F1000E;
  border-color: #F1000E;
}

/* Text styles */
.text {
  position: absolute;
  font-size: 40rem;
  line-height: 46rem;
}

/* Checkbox styles */
.checkbox {
  position: absolute;
  display: flex;

  font-size: 38rem;
  line-height: 1;

  cursor: pointer;
}

.checkbox.checked {}

.checkbox.checkbox_disabled {
  pointer-events: none;
}

.checkbox.checkbox_correct {
  color: #17BAFF;
}

.checkbox.checkbox_wrong {
  color: #F1000E;
}

.checkbox__indicator {
  position: relative;
  height: 35rem;
  width: 35rem;

  margin-right: 20rem;

  border: 2px solid black;
}

.checkbox__indicator::before {
  content: "";
  position: absolute;
  height: 50%;
  width: 120%;
  transform: scale(0) rotate(-50deg) translate(5rem, -3rem);

  border-left: 5rem solid currentColor;
  border-bottom: 5rem solid currentColor;

  transition: 0.3s;
}

.checkbox.checked > .checkbox__indicator::before {
  transform: scale(1) rotate(-50deg) translate(5rem, -3rem);
}

.checkbox.checkbox_correct > .checkbox__indicator {
  background-color: black;
}

.checkbox.checkbox_wrong > .checkbox__indicator {
  background-color: currentColor;
}

.checkbox.checkbox_wrong > .checkbox__indicator::before {
  border-color: black;
}

.checkbox__label {
  padding-top: 0.1em;
}

/* Skymap */

.skymap {
  position: absolute;
  height: 100%;
  width: 100%;
}

.skymap__map {
  position: absolute;
  bottom: 50rem;
  left: 50rem;

  height: 860rem;
  width: 1510rem;
}


.skymap__chain-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;

  pointer-events: none;
}

.skymap__chain-canvas {
  height: 100%;
  width: 100%;
}

/* Skymap Option Styles */

.skymap-option {}

.ancor {
  position: absolute;
  z-index: 5;
  box-sizing: border-box;
  left: 1600rem;
  height: 35rem;
  width: 35rem;

  padding: 7rem;

  border-radius: 50%;
  border: 2rem solid;

  background-image: url("./images/arrows.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-origin: content-box;
  background-color: white;

  cursor: pointer;
}

/* Ancor styles */

.ancor.setted {
  background-color: black;
  background-image: url("./images/arrows-white.svg");
}

.ancor.correct {
  opacity: 0;
  pointer-events: none;
}

.ancor.error {
  color: #F1000E;
  background-image: url("./images/arrows-red.svg");
}

.ancor.setted.error {
  color: #F1000E;
  background-color: white;
  background-image: url("./images/arrows-red.svg");
}

.skymap-option__label {
  position: absolute;
  left: 1680rem;

  width: min-content;
  padding: 10rem 20rem 8rem 20rem;

  border-radius: 50rem;
  border: 2rem solid black;

  background-color: white;

  font-size: 24rem;
  line-height: 1;
  text-align: center;
}

.skymap-option__label.setted {
  color: white;
  background-color: black;
}

.label.correct {
  color: #17BAFF;
}

.label.error {
  color: #F1000E;
  border-color:  #F1000E;
}

.label.setted.error {
  background-color: white;
}

.trap {
  position: absolute;
  z-index: 4;
  height: 35rem;
  width: 35rem;

  border: 1px solid #DEDEDE;
  border-radius: 50%;
  background-color: #EFEFEF;
  box-shadow: inset 6rem 4rem 12rem rgba(0, 0, 0, 0.25);

  pointer-events: none;
}

.trap[data-complite] {
  display: none;
  opacity: 0;
}

.chain {
  stroke-linecap: round;
  stroke-dasharray: 0, 7;
  fill: none;
  stroke:black;
  stroke-width: 3;
  opacity: 1;

  pointer-events: none;
}

.chain.error {
  stroke: #F1000E;
}

/* .stellar-name {
  position: absolute;

  font-size: 24rem;
  line-height: 1;
  color: #A5A5A5;

  pointer-events: none;
}

.stellar-name.hidden {
  opacity: 0;
} */

/* Step-1 Styles */
/** Text styles */
.step-1.text-0 {
  top: 290rem;
  left: 50rem;
  width: 520rem;
}

.step-1.text-1 {
  top: 290rem;
  left: 670rem;
  width: 520rem;
}

.step-1.text-2 {
  top: 290rem;
  left: 1290rem;
  width: 520rem;
}

.step-1.text-3 {
  top: 475rem;
  left: 50rem;
  width: 520rem;
}

.step-1.text-4 {
  top: 475rem;
  left: 670rem;
  width: 520rem;
}

.step-1.text-5 {
  top: 475rem;
  left: 1290rem;
  width: 520rem;
}

/* Step-2 Styles */
/** Text styles */
.step-2.text-0 {
  bottom: 755rem;
  left: 50rem;
  width: 250rem;
}

.step-2.text-1 {
  bottom: 555rem;
  left: 50rem;
  width: 250rem;
}

.step-2.text-2 {
  bottom: 355rem;
  left: 50rem;
  width: 250rem;
}

/** Image styles */
.image.step-2-1 {
  bottom: 815rem;
  left: 50rem;
  height: 100rem;
  width: 100rem;

  background-image: url("./images/stellars.svg");
}

.image.step-2-2 {
  bottom: 615rem;
  left: 50rem;
  height: 100rem;
  width: 100rem;

  background-image: url("./images/asterizms.svg");
}

.image.step-2-3 {
  bottom: 415rem;
  left: 50rem;
  height: 100rem;
  width: 100rem;

  background-image: url("./images/stars.svg");
}

/** Draggable styles */
.draggable.step-2 {
  width: 250rem;
  
  font-size: 28rem;
}

/** Droppable styles */
.droppable.step-2 {
  width: 250rem;
  
  font-size: 28rem;
}

/* Step-3 Styles */
/** Image styles */
.image.step-3 {
  top: 260rem;
  right: 50rem;
  height: 670rem;
  width: 580rem;

  background-image: url("./images/big-dipper.svg");
}

/** Checkbox styles */
.step-3.checkbox {
  left: 50rem;
}

.step-3.checkbox-1 {
  top: 260rem;
}

.step-3.checkbox-2 {
  top: 340rem;
}

.step-3.checkbox-3 {
  top: 420rem;
}

.step-3.checkbox-4 {
  top: 500rem;
}

.step-3.checkbox-5 {
  top: 580rem;
}

.step-3.checkbox-6 {
  top: 685rem;
}

.step-3.checkbox-7 {
  top: 765rem;
}

.step-3.checkbox-8 {
  top: 870rem;
}

/* Step-4 Styles */
/** Text styles */
.step-4.text {
  left: 50rem;
  width: 100%;

  line-height: 60rem;
  height: 60rem;

  font-size: 38rem;
}

.step-4.text-0 {
  top: 300rem;
}

.step-4.text-1 {
  top: 440rem;
}

.step-4.text-2 {
  top: 580rem;
}

.step-4.text-3 {
  top: 720rem;
}

.step-4.text-4 {
  top: 860rem;
}

.step-4.text-5 {
  top: 1000rem;
  padding-top: 15rem;
  line-height: 1;
}

/** Image styles */
.image.step-4 {
  display: none;
  top: 395rem;
  right: 50rem;
  height: 580rem;
  width: 580rem;

  background-image: url("./images/skymap.png");
}

.image.arrow {
  top: 395rem;
  right: 50rem;
  height: 0;
  width: 300rem;

  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

.image.arrow > .inner-element {
  position: absolute;
  top: -1px;
  right: -3px;

  height: 10rem;
  width: 10rem;

  border-right: 1px solid black;
  border-bottom: 1px solid black;

  transform: rotate(-45deg) translateY(-50%);
}

.image.step-4-1 {
  top: 328rem;
  width: 400rem;
  left: 255rem;
}

.image.step-4-2 {
  top: 467rem;
  left: 454rem;
  width: 200rem;
}

.image.step-4-3 {
  top: 607rem;
  left: 394rem;
  width: 258rem;
}

.image.step-4-4 {
  top: 748rem;
  left: 470rem;
  width: 180rem;
}

.image.step-4-5 {
  top: 885rem;
  left: 433rem;
  width: 220rem;
}

.image.step-4-6 {
  top: 1030rem;
  left: 555rem;
  width: 98rem;
}

/** Draggable styles */
.draggable.step-4 {
  height: 130rem;
  width: 500rem;
}

/** Droppable styles */
.droppable.step-4 {
  height: 130rem;
  width: 500rem;
}

/* Step-5 Styles */
/** Image styles */
.image.step-5 {
  top: 280rem;
  right: 50rem;
  width: 580rem;
  height: 600rem;

  background-image: url("./images/skymap-5.png");
}

/** Checkbox styles */
.step-5.checkbox {
  left: 50rem;
}

.step-5.checkbox-1 {
  top: 260rem;
}

.step-5.checkbox-2 {
  top: 360rem;
}

.step-5.checkbox-3 {
  top: 460rem;
}

.step-5.checkbox-4 {
  top: 530rem;
}

.step-5.checkbox-5 {
  top: 630rem;
}

.step-5.checkbox-6 {
  top: 730rem;
}

/* Step-6 Styles */
/** Draggable styles */
.draggable.step-6 {
  height: 90rem;
  width: 140rem;
}

.draggable.step-6::after {
  content: "m";
  font-style: italic;
  font-size: 50%;

  transform: translateY(-30%);
}

/** Droppable styles */
.droppable.step-6 {
  height: 90rem;
  width: 140rem;
}

/** Image styles */
/*** Stars */
.image.star {
  right: 500rem;

  transform: translateX(50%);
}

.image.step-6-1 {
  top: 255rem;
  height: 200rem;
  width: 200rem;
  background-image: url("./images/star.svg");
}

.image.step-6-2 {
  top: 485rem;
  height: 150rem;
  width: 150rem;
  background-image: url("./images/star.svg");
}

.image.step-6-3 {
  top: 680rem;
  height: 100rem;
  width: 100rem;
  background-image: url("./images/star.svg");
}

.image.step-6-4 {
  top: 845rem;
  height: 50rem;
  width: 50rem;
  background-image: url("./images/star.svg");
}

.image.step-6-5 {
  top: 970rem;
  height: 25rem;
  width: 25rem;
  background-image: url("./images/star.svg");
}


/*** Arrows */
.image.step-6-11 {
  top: 301rem;
  left: 297rem;
  width: 203rem;
}

.image.step-6-12 {
  top: 414rem;
  left: 190rem;
  width: 308rem;
}

.image.step-6-13 {
  top: 529rem;
  left: 140rem;
  width: 360rem;
}

.image.step-6-14 {
  top: 642rem;
  left: 200rem;
  width: 300rem;
}

.image.step-6-15 {
  top: 759rem;
  left: 195rem;
  width: 303rem;
}

.image.step-6-16 {
  top: 873rem;
  left: 198rem;
  width: 300rem;
}

.image.step-6-17 {
  top: 988rem;
  left: 374rem;
  width: 126rem;
}

/** Text styles */
.step-6.text {
  left: 50rem;

  line-height: 60rem;
  height: 60rem;

  font-size: 38rem;
}

.step-6.text-0 {
  top: 273rem;
}

.step-6.text-1 {
  top: 387rem;
}

.step-6.text-2 {
  top: 500rem;
}

.step-6.text-3 {
  top: 614rem;
}

.step-6.text-4 {
  top: 730rem;
}

.step-6.text-5 {
  top: 844rem;
}

.step-6.text-6 {
  top: 960rem;
}

/* Step-7 Styles */
/** Image styles */
.image.step-7 {
  top: 280rem;
  right: 50rem;
  width: 575rem;
  height: 585rem;

  background-image: url("./images/skymap-7.png");
}

/** Checkbox styles */
.step-7.checkbox {
  left: 50rem;
}

.step-7.checkbox-1 {
  top: 260rem;
}

.step-7.checkbox-2 {
  top: 360rem;
}

.step-7.checkbox-3 {
  top: 460rem;
}

.step-7.checkbox-4 {
  top: 530rem;
}

.step-7.checkbox-5 {
  top: 630rem;
}

.step-7.checkbox-6 {
  top: 730rem;
}

.step-7.checkbox-7 {
  top: 830rem;
}

.step-7.checkbox-8 {
  top: 930rem;
}

/* Step-8 Styles */
/** Ancors */
.step-8 .ancor-0 {
  top: 310rem;
}

.step-8 .ancor-1 {
  top: 440rem;
}

.step-8 .ancor-2 {
  top: 566rem;
}

.step-8 .ancor-3 {
  top: 685rem;
}

.step-8 .ancor-4 {
  top: 783rem;
}

/** Labels */
.step-8.skymap-option-0 > .skymap-option__label {
  top: 290rem;
}

.step-8.skymap-option-1 > .skymap-option__label {
  top: 420rem;
  left: 1678rem;
}

.step-8.skymap-option-2 > .skymap-option__label {
  top: 550rem;
  left: 1690rem;
}

.step-8.skymap-option-3 > .skymap-option__label {
  top: 680rem;
  left: 1696rem;
}

.step-8.skymap-option-4 > .skymap-option__label {
  top: 778rem;
  left: 1704rem;
}

/** Traps */
.step-8 .trap-0 {
  top: 960rem;
  left: 620rem;
}

.step-8 .trap-1 {
  top: 665rem;
  left: 900rem;
}

.step-8 .trap-2 {
  top: 430rem;
  left: 610rem;
}

.step-8 .trap-3 {
  top: 530rem;
  left: 300rem;
}

.step-8 .trap-4 {
  top: 660rem;
  left: 1160rem;
}

/* Step-9 Styles */
/** Ancors */
.step-9 .ancor-0 {
  top: 296rem;
}

.step-9 .ancor-1 {
  top: 430rem;
}

.step-9 .ancor-2 {
  top: 556rem;
}

.step-9 .ancor-3 {
  top: 684rem;
}

.step-9 .ancor-4 {
  top: 814rem;
}

/** Labels */
.step-9.skymap-option-0 > .skymap-option__label {
  top: 292rem;
  left: 1680rem;
}

.step-9.skymap-option-1 > .skymap-option__label {
  top: 422rem;
  left: 1680rem;
}

.step-9.skymap-option-2 > .skymap-option__label {
  top: 552rem;
  left: 1680rem;
}

.step-9.skymap-option-3 > .skymap-option__label {
  top: 682rem;
  left: 1680rem;
}

.step-9.skymap-option-4 > .skymap-option__label {
  top: 812rem;
  left: 1680rem;
}

/** Traps */
.step-9 .trap-0 {
  top: 580rem;
  left: 800rem;
}

.step-9 .trap-1 {
  top: 470rem;
  left: 330rem;
}

.step-9 .trap-2 {
  top: 620rem;
  left: 160rem;
}

.step-9 .trap-3 {
  top: 780rem;
  left: 590rem;
}

.step-9 .trap-4 {
  top: 980rem;
  left: 1150rem;
}

/* Step-10 Styles */
/** Ancors */
.step-10 .ancor-0 {
  top: 296rem;
}

.step-10 .ancor-1 {
  top: 430rem;
}

.step-10 .ancor-2 {
  top: 556rem;
}

.step-10 .ancor-3 {
  top: 684rem;
}

.step-10 .ancor-4 {
  top: 814rem;
}

/** Labels */
.step-10.skymap-option-0 > .skymap-option__label {
  top: 292rem;
  left: 1680rem;
}

.step-10.skymap-option-1 > .skymap-option__label {
  top: 422rem;
  left: 1680rem;
}

.step-10.skymap-option-2 > .skymap-option__label {
  top: 552rem;
  left: 1680rem;
}

.step-10.skymap-option-3 > .skymap-option__label {
  top: 682rem;
  left: 1680rem;
}

.step-10.skymap-option-4 > .skymap-option__label {
  top: 812rem;
  left: 1680rem;
}

/** Traps */
.step-10 .trap-0 {
  top: 690rem;
  left: 690rem;
}

.step-10 .trap-1 {
  top: 790rem;
  left: 1030rem;
}

.step-10 .trap-2 {
  top: 960rem;
  left: 300rem;
}

.step-10 .trap-3 {
  top: 600rem;
  left: 390rem;
}

.step-10 .trap-4 {
  top: 400rem;
  left: 530rem;
}