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

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

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

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

body {
  font-family: "NoirPro", sans-serif;
  font-size: 32rem;
  font-weight: 400;
}

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

sub, sup {
  line-height: 0;
}

/* 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: calc(100% - 450rem);
  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;
}

.hidden {
  opacity: 0;
}

.show-on-finish {
  opacity: 0;
}

.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", sans-serif;
  font-size: 24rem;
  line-height: 28rem;
  text-align: center;
  /* color: #DBDAD4; */
  color: #17BAFF;
  text-decoration: underline;

  /* opacity: .7; */

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

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

  font-family: "NoirPro", sans-serif;
  font-weight: 600;
  font-size: 50rem;
  line-height: 1;
  letter-spacing: 0;
  text-align: left;
}

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

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

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

  height: 90rem;
  width: 260rem;

  box-sizing: border-box;

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

  font-family: "NoirPro";
  font-weight: 500;
  font-size: 32rem;
  letter-spacing: 0;
  text-align: center;
  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: 300rem;
  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: 300rem;
  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: 50rem;
  line-height: 50rem;
  font-weight: 400;
}

.text.answer {
  font-size: 50rem;
  font-weight: 600;
}

.text__spacing {
  display: inline-block;
  width: 250rem;
  margin: 0 0.1em;
}

.text p {
  margin: 0;
  margin-bottom: 0.5em;
}

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

/* radiogroup default style */
.radiogroup{
  position: absolute;
  top: 255rem;
  left: 150rem;

  font-size: 36rem;
  line-height: 1.3em;

  display: flex;
  flex-direction: column;
}

.radiogroup__item{
  display: flex;
  align-items: flex-start;
  margin-bottom: 30rem;
}

.radiogroup__item.selected{
  color: #F1000E;
}

.radiogroup__item.selected.correct{
  color: #17BAFF;
}

.radiogroup__input{
  appearance: none;
  -webkit-appearance: none;

  display: block;
  position: relative;

  height: 1em;
  width: 1em;
  margin-top: 0.1em;
  margin-left: 0;
  margin-bottom: 0;
  margin-right: 1em;

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

  font-size: inherit;

  outline: none;

  transition: 0.25s;
}

.radiogroup__input:checked{
  border-color: #F1000E;
  background-color: #F1000E;
}

.radiogroup__item.correct > .radiogroup__input:checked{
  border-color: black;
  background-color: black;
}

.radiogroup__input::after{
  content: "";
  position: absolute;
  box-sizing: border-box;
  width: 50%;
  height: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);

  display: block;
  transition: 0.25s;

  border-radius: 50%;

  background-color: #C4C4C4;
}

.radiogroup__input:checked::after{
  transform: translate(-50%, -50%) scale(1);
  background-color: black;
}

.radiogroup__item.correct > .radiogroup__input:checked::after{
  transform: translate(-50%, -50%) scale(1);
  background-color: #17BAFF;
}

/* Textfield styles */
.textfield {
  box-sizing: border-box;
  position: absolute;
  left: 150rem;
  bottom: 105rem;
  height: 70rem;
  width: 165rem;
  padding-top: 0.25em;

  background-color: #EFEFEF;
  border: 2rem solid #000000;
  box-shadow: inset 6rem 4rem 12rem rgba(0, 0, 0, 0.25);
  border-radius: 3rem;

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

.textfield:hover,
.textfield:focus,
.textfield.right {
  outline: none;
  border-bottom-color: black;
}

.textfield.right {
  background-color: black;
  color: #17BAFF!important;
}

.textfield.wrong {
  background-color: black;
  color: #F1000E!important;
}

/* Ancored Draggable */

.ancored-draggable {
  position: absolute;
  height: 100%;
  width: 100%;
}

.ancored-draggable__map {
  position: absolute;
  bottom: 50rem;
  left: 50rem;

  height: 860rem;
  width: 1510rem;
}


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

  pointer-events: none;
}

.ancored-draggable__chain-canvas {
  height: 100%;
  width: 100%;
}

/* ancored-draggable Option Styles */

.ancored-draggable-option {}

.ancor {
  position: absolute;
  z-index: 5;
  box-sizing: border-box;
  left: 1390rem;
  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");
}

.ancored-draggable-option__label {
  position: absolute;
  left: 1465rem;
  
  width: 405rem;
  height: 135rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

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

  background-color: white;

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

.ancored-draggable-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: 1rem 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;
}

/* Step-1 Styles */
/** Image styles */
.step-1.image {
  width: 555rem;
  height: 115rem;
}

.step-1#image0 {
  top: 445rem;
  left: 50rem;
}

.step-1#image1 {
  top: 445rem;
  left: 680rem;
}

.step-1#image2 {
  top: 445rem;
  left: 1310rem;
}

/* Step-2 Styles */
/** Image styles */
.step-2#image0 {
  bottom: 0rem;
  left: 273rem;
  width: 1395rem;
  height: 775rem;
}

/** Checkbox styles */
.step-2.checkbox-1 {
  top: 260rem;
  left: 50rem;
}

.step-2.checkbox-2 {
  top: 330rem;
  left: 50rem;
}

.step-2.checkbox-3 {
  top: 430rem;
  left: 50rem;
}

.step-2.checkbox-4 {
  top: 530rem;
  left: 50rem;
}

.step-2.checkbox-5 {
  top: 635rem;
  left: 50rem;
}

.step-2.checkbox-6 {
  top: 740rem;
  left: 50rem;
}

/* Step-3 Styles */
/** Image styles */
.step-3#image0 {
  top: 290rem;
  left: 50rem;
  width: 1200rem;
  height: 640rem;
}

.step-3.chart {
  z-index: 1;
  top: 439rem;
  width: 395rem;
  height: 395rem;

  transition: 0.3s;
}

.step-3.chart.chart_hightlighted {
  z-index: 2;
}

.step-3.chart.chart_hightlighted.chart_red {
  filter: drop-shadow(0 0 6rem #E30613);
}

.step-3.chart.chart_hightlighted.chart_green {
  filter: drop-shadow(0 0 6rem #009640);
}

.step-3.chart.chart_hightlighted.chart_yellow {
  filter: drop-shadow(0 0 6rem #F9B233);
}

.step-3.chart.chart_hightlighted.chart_blue {
  filter: drop-shadow(0 0 6rem #36A9E1);
}

.step-3#image1 {
  left: 290rem;
}

.step-3#image2 {
  left: 430rem;
}

.step-3#image3 {
  left: 578rem;
}

.step-3#image4 {
  left: 810rem;
}

/** Text style */
.step-3.text-0 {
  top: 260rem;
  left: 50rem;
}

.step-3.text-1 {
  top: 345rem;
  left: 240rem;
}

/** Ancored label style */
.step-3 .ancor-0 {
  top: 335rem;
}

.step-3 .ancor-1 {
  top: 490rem;
}

.step-3 .ancor-2 {
  top: 645rem;
}

.step-3 .ancor-3 {
  top: 800rem;
}

.step-3 .label-0 {
  top: 285rem;
}

.step-3 .label-1 {
  top: 440rem;
}

.step-3 .label-2 {
  top: 595rem;
}

.step-3 .label-3 {
  top: 750rem;
}

.step-3.trap {
  top: 480rem;
}

.step-3.trap-2 {
  left: 480rem;
}

.step-3.trap-1 {
  left: 622rem;
}

.step-3.trap-3 {
  left: 770rem;
}

.step-3.trap-0 {
  left: 1002rem;
}

.step-3.hover-trap {
  position: absolute;
  z-index: 3;
  top: 415rem;
  height: 420rem;
}

.step-3.hover-trap-3 {
  left: 720rem;
  width: 200rem;
}

.step-3.hover-trap-1 {
  left: 570rem;
  width: 150rem;
}

.step-3.hover-trap-0 {
  left: 920rem;
  width: 290rem;
}

.step-3.hover-trap-2 {
  left: 290rem;
  width: 285rem;
}

/* Step-4 Styles */
/** Image styles */
.step-4#image0 {
  bottom: 25rem;
  left: 50rem;
  width: 1355rem;
  height: 330rem;
  
  background-image: url("./images/pic-4.png");
}

/** Text style */
.step-4.text-0 {
  top: 260rem;
  left: 50rem;
  line-height: 1.2;
}

.step-4.text-1 {
  top: 550rem;
  left: 50rem;
}

.step-4.text-2 {
  top: 680rem;
  left: 240rem;
}

/** Textfield style */
.step-4.textfield {
  width: 165rem;
  height: 70rem;
}

.step-4#figuresfield1,
.step-4#textfield1 {
  top: 670rem;
  left: 50rem;
}

/* Step-5 Styles */
/** Image styles */
.step-5#image0 {
  top: 1000rem;
  left: 1545rem;
  width: 45rem;
  height: 76rem;
}

/** Text style */
.step-5.text {
  font-size: 50rem;
  line-height: 60rem;
  letter-spacing: 0;
  text-align: left;
}

.step-5.text-0 {
  top: 260rem;
  left: 50rem;
}

.step-5.text-1 {
  top: 670rem;
  left: 50rem;
}

.step-5.text-2 {
  top: 775rem;
  left: 50rem;
}

.step-5.text-3 {
  top: 865rem;
  left: 50rem;
}

.step-5.text-4 {
  top: 1020rem;
  left: 50rem;

  font-size: 28rem;
  line-height: 50rem;
  color: #17BAFF;
}

.step-5.text-4 .text__spacing {
  width: 40rem;
}

/** Textfield style */
.step-5.textfield {
  width: 230rem;
  height: 70rem;
}

.step-5#figuresfield1,
.step-5#textfield1 {
  top: 765rem;
  left: 1150rem;

  padding-top: 0.5em;

  font-size: 36rem;
  line-height: 1;
}

.step-5#figuresfield2,
.step-5#textfield2 {
  top: 855rem;
  left: 1500rem;

  padding-top: 0.5em;

  font-size: 36rem;
  line-height: 1;
}