input.number {
  width: 80px;
  border-radius: 6px;
  transition: all 0.3s;
  background-color: var(--bg-grey);
  padding: 10px 10px;
}
.form-control {
  width: 100%;
  border-radius: 6px;
  transition: all 0.3s;
  background-color: var(--bg-grey);
  padding: 10px 10px;
}

.input-field, .full-fraction {
  position: relative;
}
.input-field input.number {
  border: 2px solid #00B0FF;
  box-shadow: 2px 3px 5px rgba(0,0,0,0.2);
}
.input-field input.number:focus {
  border-color: #33C1FF;
}

.good .input-field input.number {
  border-color: var(--green);
  box-shadow: 0 2px 3px rgba(0,0,0,0);
}
.auto-good .input-field input.number {
  border-color: #cacaca;
  box-shadow: 0 2px 3px rgba(0,0,0,0);
}


.input-field-simple {
  border: 2px solid #33C1FF;
  width: 65px;
  border-radius: 6px;
  transition: all 0.3s;
  background-color: var(--bg-grey);
  padding: 5px 10px;
}

.input-line, .auto-good {
  margin-bottom: 10px;
}

.input-line_title {
  display: inline-block;
  width: 25px;
}

.input-line_prequestion {
  display: inline-block;
  width: 180px;
}

.short-fraction, .full-fraction, .point {
  display: flex;
  align-items: center;
  border: 2px solid #00B0FF;
  box-shadow: 2px 3px 5px rgba(0,0,0,0.2);
  background-color: var(--bg-grey);
  border-radius: 6px;
  transition: all 0.3s;
}
.point {
  padding-left: 10px;
  padding-right: 10px;
}
.full-power {
  display: flex;
  align-items: top;
  border: 2px solid #00B0FF;
  box-shadow: 2px 3px 5px rgba(0,0,0,0.2);
  background-color: var(--bg-grey);
  border-radius: 6px;
  transition: all 0.3s;
}
.full-sqrt {
  display: flex;
  align-items: top;
  border: 2px solid #00B0FF;
  box-shadow: 2px 3px 5px rgba(0,0,0,0.2);
  background-color: var(--bg-grey);
  border-radius: 6px;
  transition: all 0.3s;
}
.complex-sqrt {
  display: flex;
  align-items: start;
  border: 2px solid #00B0FF;
  box-shadow: 2px 3px 5px rgba(0,0,0,0.2);
  background-color: var(--bg-grey);
  border-radius: 6px;
  transition: all 0.3s;
  padding-left: 10px;
}
.complex-sqrt-plus {
  align-self: center;
}
.good .full-sqrt, .good .full-power, .good .short-fraction, .good .full-fraction, .good .complex-sqrt, .good .complex-sqrt, .good .point {
  border-color: var(--green);
  box-shadow: 0 2px 3px rgba(0,0,0,0);
}
.auto-good .full-sqrt, .auto-good .full-power, .auto-good .short-fraction, .auto-good .full-fraction, .auto-good .complex-sqrt, .auto-good .point {
  border-color: #cacaca;
  box-shadow: 0 2px 3px rgba(0,0,0,0);
}
.short-fraction:focus-within, .full-fraction:focus-within, .full-power:focus-within, .full-sqrt:focus-within, .point:focus-within, .complex-sqrt:focus-within, .point:focus-within {
  border-color: #33C1FF;
}
.short-fraction .number, .full-fraction .number, .full-power .number, .full-sqrt .number, .complex-sqrt .number, .point .number {
  width: 60px;
  background-color: transparent;
  text-align: center;
  border-width: 0;
  border-radius: 0;
}
.full-power .number {
  width: 50px;
}
.fraction {
  width: 60px;
}
.sqrt-fraction {
  width: 100px;
  align-items: center;
}
.sqrt-fraction > span:first-child {
  display: flex;
}
.sqrt-fraction > span:first-child > input:first-child {
  width: 30px;
  padding-right: 2px;
  padding-left: 2px;
}
.full-fraction > .number, .full-power > .number, .full-sqrt > .number {
  text-align: right;
  padding-right: 3px;
  width: 40px;
}
.complex-sqrt > .number {
  padding-right: 3px;
  padding-left: 3px;
  width: 25px;
}
.full-power sup {
  top: -0.3em;
  font-size: 85%;
}
.full-power sup .number {
  text-align: left;
  width: 30px;
  padding-left: 0;
  padding-right: 10px;
}
.sqrt-sign {
  margin-right: -27px;
  margin-top: 5px;
}
.sqrt-sign + span .number {
  background-color: var(--bg-grey);
  position: relative;
  margin-top: 9px;
  padding: 0 2px;
  width: 30px;
  margin-right: 10px;
}
.fraction .sqrt-sign + span .number {
  top: 1px;
  left: -1px;
}
.fraction .number:first-child {
  padding-bottom:0;
}
.fraction .number:last-child {
  padding-top:0;
}

.short-fraction .number:focus, .full-fraction .number:focus, .full-power .number:focus, .full-sqrt .number:focus, .point .number:focus, .complex-sqrt .number:focus {
  border-width: 0;
}
.point .number {
  width: 30px;
  padding-left: 2px;
  padding-right: 2px;
}
.fraction .line:empty {
  display: block;
  width: 60%;
  margin: 0 auto;
  height: 1px;
  background-color: var(--text);
}

.group {
  position: relative;
  overflow: hidden;
}

.group.hide {
  display: block !important;
}
.group.hide .break {
  display: none;
}
.group.hide.lesson-done {
  display: none !important;
}

.group.lesson-done {
  padding-bottom: 15px;
  padding-top: 0;
}

@media (min-width: 768px) {
  .group.lesson-done {
    padding-bottom: 40px;
  }
}
.group.hide .section {
  display: none !important;
}
.part-title {
  position: relative;
  background-color: var(--primary);
  background: url("../images/bg.svg"), linear-gradient(to top, rgba(0,0,0,0.1), rgba(0,0,0,0)), var(--primary);
  background-size: 250px 250px, auto, auto;
  background-position: 0 -20px, 0 0, 0 0;
  color: white;
  padding-top: 30px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  margin-left: 0;
  margin-right: 0;
  padding-left: 10px;
  padding-right: 10px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .part-title {
    margin-left: 0;
    margin-right: 0;
    padding-left: 10px;
    padding-right: 10px;
    background:
        linear-gradient(to top, rgba(0,0,0,0.1), rgba(0,0,0,0)),
        var(--primary);
  }
}
.part-title h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 44px;
  font-weight: 500;
}
.part-title-bg {
  display: none;
}
@media (min-width: 768px) {
  .part-title-bg {
    color: white;
    display: block;
    position: absolute;
    z-index: 1;
    width: 100%;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
    pointer-events: none;
    text-align:center;
  }
}
.darkmode .part-title-bg {
  opacity: 0.02;
}

.part-title-bg svg {
  width: 360px;
  height: auto;
}

.part-title .subtitle {
  text-align: center;
  padding: 0 20px 40px 20px;
  font-size: 18px;
  font-weight: 300;
  font-size: 24px;
  margin-bottom: 0;
}
.part-title .subtitle:first-child {
  padding-top: 10px;
}

.part-title:after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 12px;
  background-image: radial-gradient(circle, var(--bg) 6px, transparent 7px);
  background-size: 18px 14px;
  z-index: 2;
}
.darkmode .part-title:after{
    bottom: -4px;
    background-image: radial-gradient(circle at center,
      transparent 5px,
      var(--bg-lightgrey) 5px,
      var(--bg-lightgrey) 6px,
      transparent 6px), radial-gradient(circle, var(--bg) 6px, transparent 7px);
}


.darkmode .part-title:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--bg-lightgrey);
  z-index: 2;
}


.group h2 {
  background-color: var(--bg);
  padding: 30px 40px;
  margin-top: -40px;
  margin-left: -40px;
  margin-right: -40px;
  margin-bottom: 0;
  transition: background-color 0.3s;
  position: relative;
}

.group h2:after {
  content: " ";
  position: absolute;
  width: 40px;
  height: 40px;
  padding: 0;
  right: 10px;
  top: 22px;
  background: transparent url(../images/expand.svg) no-repeat center;
  background-size: auto;
  background-size: cover;
  transition: transform 0.3s;
  transform: rotate(-90deg);
  z-index: 1;
}
.group.hide h2 {
  color: #b9b9b9;
}
.group.hide h2:after {
  opacity: 0.3;
}

.group.open h2:after {
  transform: rotate(0deg);
}

@media (max-width: 900px) {
  .group h2 {
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -25px;
    padding: 20px 25px;
  }
  .group.open h2 {
    margin-bottom: 15px;
  }
  .group h2:after {
    top: 11px;
  }
}

.module-list {
  list-style-type: none;
  margin: 0;
  padding: 5px 20px 110px 20px;
}
@media (min-width: 768px) {
  .module-list {
    padding: 10px 40px 120px 40px;
  }
}
.module-list > li {
  color: var(--text);
  margin-bottom: 30px;
  background-color: var(--bg-grey);
  border-radius: 10px;
  padding: 5px 20px 20px 20px;
  box-shadow: 0px 6px 3px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bg-lightgrey);
}
.module-list > li.module-blocked ul li:before {
  background: transparent url(../images/locked1.svg) no-repeat;
  background-size: 32px 32px;
  background-position: 0 50%;
  width: 32px;
  height: 32px;
  top: 8px;
}
.module-blocked-info {
  text-align: center;
  font-size: 12px;
  margin-top: -28px;
  margin-bottom: 28px;
  position: relative;
}
@media (min-width: 768px) {
  .module-blocked-info {
    font-size: 14px;
  }
}

.module-blocked-info:after {
  content: " ";
  display: inline-block;
  position: absolute;
  width: 49px;
  height: 27px;
  background: transparent url(../images/arrow.png) no-repeat;
  background-size: 49px 27px;
  transform: rotate(100deg);
  top: -25px;
  margin-left: -20px;
}

.module-blocked-info span {
  background: var(--bg-grey);
  padding: 4px 10px;
  display: inline-block;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 6px;
  max-width: 80%;
  font-family: sora, sans-serif;
  font-size: 12px;
}
.module-list h2 {
  position: relative;
  margin: 0;
  padding-top: 27px;
  margin-bottom: 20px;
}
.module-list h2 .section-info {
  margin-bottom: 5px;
}
.module-list ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.module-list ul a {
  display: block;
  padding: 8px 0;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.module-list ul a:hover {
  text-decoration: none;
}
.module-list ul li {
  padding: 6px 0 6px 40px;
  position: relative;
  border-top: 1px dashed var(--lightdark);
}
.module-list ul li:first-child {
  border-top-width: 0;
}
.module-list ul a .lesson-progress {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 20px;
}
.module-list ul a .lesson-progress span {
  width: 10px;
  height: 10px; 
  background-color: var(--bg-lightgrey);
  border-radius: 10px;
}
.module-list ul a .lesson-progress span.done {
  background-color: var(--green);
}

.module-list ul li:before {
  display: inline-block;
  width: 24px;
  height: 24px;
  content: " ";
  background: var(--extradark) url(../images/enter.svg) center;
  background-size: 24px 24px;
  background-position: 2px 50%;
  position: absolute;
  border-radius: 50px;
  left: 0px;
  top: 11px;
}

.group-title {
  list-style-type: none;
  margin: 0;
  padding: 15px 20px 0 20px;
}
@media (min-width: 768px) {
  .group-title {
    padding: 20px 40px 0 40px;
  }
}

.group-list {
  list-style-type: none;
  margin: 0;
  padding: 15px 20px 90px 20px;
}
@media (min-width: 768px) {
  .group-list {
    padding: 20px 40px 110px 40px;
  }
}
.new-group {
  margin-bottom: 30px;
  background-color: var(--bg-grey);
  border-radius: 10px;
  padding: 15px 20px;
  box-shadow: 0px 6px 3px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bg-lightgrey);
  overflow: visible;
}
.group-description {
  padding-bottom: 20px;
  padding-top: 10px;
}
.group-description p {
  padding-top: 16px;
}
.group-description .section-info {
  margin-left:0;
  margin-top: -20px;
  margin-bottom: 20px;
}
.group-description:empty, .group-description p:empty {
  display:none;
}
.group-list ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.group-list ul > li {
  color: var(--text);
  margin-bottom: 10px;
  background-color: var(--bg-grey);
  border-radius: 10px;
  padding: 1px 20px 1px 15px;
  box-shadow: 0px 6px 3px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bg-lightgrey);
  border-left: 3px solid var(--color1);
}

.group-list h2 {
  margin: 0;
}
.group-list h2 .section-info {
  margin-top: 0;
  margin-bottom: 10px;
  margin-left: 0;
}
.group-list ul > li:first-child {
  border-left: 3px solid var(--color2);
}
.group-list ul > li:last-child {
  border-left: 3px solid var(--color3);
}
.group-list .section-title {
  display: block;
}

.group-list .done h2 a:before {
  background: transparent url(../images/ok.svg);
  background-size: 30px 30px;
  position: absolute;
  left: 0;
  top: 15px;
  width: 30px;
  height: 30px;
  content: " ";
}
.group-list .active-group h2 a:before {
  width: 24px;
  height: 24px;
  content: " ";
  background: var(--extradark) url(../images/enter.svg) 3px 50%;
  background-size: 24px 24px;
  position: absolute;
  border-radius: 50px;
  left: 3px;
  top: 18px;
}
.group-list .locked h2 a:before {
  background: transparent url(../images/locked1.svg);
  background-size: 30px 30px;
  position: absolute;
  left: 0;
  top: 18px;
  width: 30px;
  height: 30px;
  content: " ";
}
.group-list .locked a {
  pointer-events: none;
}
.group-list h2 a {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-left: 44px;
  padding-top: 10px;
  padding-bottom: 15px;
  align-items: center;
  color: var(--text);
  font-size: 18px;
}
.group-list h2 a:hover {
  text-decoration: none;
}
.group-list h2 a > span:first-child {
  padding: 10px 0;
}
.group-list-tag {
  font-size: 10px;
  margin-left: 10px;
  text-transform: uppercase;
  font-family: sora, sans-serif;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--bg-lightgrey);
  white-space: nowrap;
  vertical-align: middle;
  color: var(--text);
  margin-bottom: 10px;
  display: inline-block;
}
.group-list-points {
  text-align: right;
  padding: 11px 16px;
}
.group-list-points-repeat {
  background-color: var(--important);
  border: 1px solid var(--important-border);
  padding: 10px 15px;
  border-radius: 6px;
}
.group-list-points-good {
  color: var(--green);
}
.group-list-points span {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 500;
  padding-top: 5px;
  display: block;
  font-family: sora, sans-serif;
}
.done ul a {
  border-color: var(--green);
  color: var(--green);
}
.done ul .group-next {
  background-color: var(--green); 
  color: white;
}
.locked-group ul a {
  pointer-events: none;
}

.group > h2:first-child {
  position: relative;
  padding-left: 80px;
  padding-right: 50px;
}

.group:nth-last-child(2) > h2:first-child {
  margin-bottom: 20px;
}
.group.open:nth-last-child(2) > h2:first-child {
  margin-bottom: 0;
}

.group.done > h2:first-child:before {
  background: transparent url(../images/ok.svg);
  background-size: 40px 40px;
  position: absolute;
  left: 20px;
  top: 25px;
  width: 40px;
  height: 40px;
  content: " ";
}

.group.hide > h2:first-child:before {
  background: transparent url(../images/locked1.svg);
  background-size: 40px 40px;
  position: absolute;
  left: 20px;
  top: 25px;
  width: 40px;
  height: 40px;
  content: " ";
}

@media (max-width: 900px) {
  .group > h2:first-child {
    padding-left: 65px;
  }
}

.section .p-item:first-child .p-important,
h2 + .p-item .p-important {
  margin-top: 0;
}

.section h3 {
  margin-top: 25px;
  margin-bottom: 25px;
}

.p-item {
  position: relative;
  z-index: 1;
}

.p-item ul {
  list-style-type: none;
  margin: 0 0 12px 0;
  padding: 0;
}

.p-item ul li {
  padding: 6px 0 6px 40px;
  position: relative;
}

@media (min-width: 768px) {
  .p-item ul li {
    padding-left: 50px;
  }
}

.p-item ul li:before {
  display: inline-block;
  width: 24px;
  height: 24px;
  content: " ";
  background: var(--extradark) url(../images/enter.svg) center;
  background-size: 24px 24px;
  background-position: 2px 50%;
  position: absolute;
  border-radius: 50px;
  left: 0px;
  top: 6px;
}

@media (min-width: 768px) {
  .p-item ul li:before {
    left: 10px;
  }
}

.p-item ul li.center-point:before {
  top: 12px;
}

.p-important ul, .p-important ol {
  padding: 5px 0;
  counter-reset: section;
  list-style-type: none;
  margin-left: 0;
}
.p-important li {
  padding: 6px 0 6px 40px;
  position: relative;
}

@media (min-width: 768px) {
  .p-important li {
    padding-left: 50px;
  }
}

.p-important li:before {
  display: inline-block;
  width: 24px;
  height: 24px;
  counter-increment: section;
  content: counter(section);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--extradark);
  color: white;
  position: absolute;
  border-radius: 50px;
  left: 0;
  top: 6px;
}

@media (min-width: 768px) {
  .p-important li:before {
    left: 10px;
  }
}

.p-important li.center-point:before {
  top: 50%;
  margin-top: -12px;
}

.p-solution {
  counter-reset: section;
}
.p-solution-step {
  padding: 6px 0 6px 40px;
}
@media (min-width: 768px) {
  .p-solution-step {
    padding-left: 50px;
  }
}

.p-solution-step:only-child, .p-solution > p + .p-solution-step:has(+ .p-solution-result) {
  padding: 0;
}
.p-solution > p + .p-solution-step:last-child {
  padding: 0;
}
.p-solution-step p:first-child>strong:first-child {
  position: relative;
}

.p-solution-step p:first-child>strong:first-child:before {
  display: inline-block;
  width: 24px;
  height: 24px;
  counter-increment: section;
  content: counter(section);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--extradark);
  color: white;
  position: absolute;
  border-radius: 50px;
  left: -40px;
  top: -2px;
}

.saved:before {
  left: -80px;
  right: -80px;
  top: -10px;
  bottom: -10px;
  position: absolute;
  z-index: -1;
  content: " ";
  background-color: #ffffd9;
  transform: translateX(-100%);
  opacity: 0;
  animation: slideInMask 0.3s ease-out forwards;
}

@keyframes slideInMask {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.task-line.p-item.saved:before {
  top: 10px;
  bottom: 10px;
}

.p-important {
  padding: 20px 20px 10px 20px;
  margin: 30px 0;
  background-color: var(--important);
  border: 1px solid var(----important-border);
  border-radius: 10px;
  box-shadow: 0px 6px 3px -6px rgba(0, 0, 0, 0.2);
}
.p-important p {
  margin-bottom: 10px;
}

.done.open .section.hide {
  display: block !important;
}
.p-example.done .p-solution-step-help_info {
  display: none;
}
.p-solution-step-help_used.p-solution-step-help_hidden {
  display: block;
}
.p-example_hidden {
  _display: none;
}
.p-solution strong {
  font-weight: 500;
}
.p-solution-step {
  padding-bottom: 20px;
}
.p-solution-step_hidden {
  display: none;
}
.p-solution-step-help_used .p-solution-step-help_info {
  display: none;
}
.p-solution-step-help_hidden {
  display: none;
}
.p-solution-result_hidden {
  display: none;
}
.p-solution-step-help_button {
  cursor: pointer;
  background-color: var(--bg-grey);
  color: white;
  box-shadow: 0 2px 3px rgba(0,0,0,0.2);
  border: 1px solid var(--bg-lightgrey);
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s;
  padding: 5px 10px;
  text-transform: uppercase;
  _background-color: transparent;
  _box-shadow: none;
  color: var(--dark);
  font-family: sora, sans-serif;
  font-size: 12px;
  display: inline-flex;
}
.p-solution-step-answer_help {
  margin-top: 20px;
  padding-bottom: 10px;
  display: block;
  _background-color: rgba(204,230,255, 0.5);
  _
  _padding: 15px 0 0 15px;
}
.p-solution-step-answer {
  _background-color: rgba(204,230,255, 0.5);
  _padding: 0 0 10px 15px;
}

.p-solution-step-answer-help_used .p-solution-step-answer_help {
  display: none;
}
.p-solution-step_done .p-solution-step-answer_help {
  display: none;
}


.p-canvas {
  text-align:center;
}

.p-canvas  canvas {
  max-width: 100%;
}

.p-inline {
  display: inline-block;
  border: 1px solid rgba(204,230,255,0.2);
  background-color: rgba(204,230,255,0.2);
  border-radius: 6px;
  padding: 0 8px;
}

.p-estimation {
  margin-left: 30px;
}

.p-shortinfo {
  font-size: 14px;
  color: var(--lightdark);
}

.p-answer {
  display: flex;
  gap: 5px;
}
.p-answer-label {
  font-weight: 500;
}
.p-answer-content p {
  margin-bottom: 0;
}

.p-item strong {
  font-weight: 500;
}

.p.saved:after {
  position: absolute;
  left: 100%;
  top: 0;
  width: 40px;
  height: 40px;
  background: transparent url(../images/bookmark.svg);
  background-size: 40px 40px;
  content: " ";
}

.p.has-question:before{
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 40px;
  width: 40px;
  height: 40px;
  background: transparent url(../images/comment.svg);
  background-size: 40px 40px;
  content: " ";
  opacity: 1;
}

.p-idea {
  background: transparent url(../images/idea.svg) no-repeat 10px 20px;
  background-size: 40px 40px;
  border: 2px solid rgba(21, 101, 192,0.1));
  padding: 20px 20px 10px 60px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.p-rocket {
  _border: 1px solid #ffe5ba;
  _border-radius: 10px;
  _box-shadow: 0px 6px 3px -6px rgba(0, 0, 0, 0.2);
  
  background: var(--bg) url(../images/idea.svg) no-repeat 00px 10px;
  background-size: 60px 60px;
  padding: 20px 20px 10px 70px;
  margin-bottom: 20px;
}

.p-info {
  background: transparent url(../images/i.svg) no-repeat 10px 10px;
  background-size: 40px 40px;
  border: 2px solid rgba(21, 101, 192,0.1);
  padding: 20px 20px 10px 60px;
  border-radius: 10px;
  margin: 50px 0;
}

.p-warning {
  display: none;
  background: transparent url(../images/warning.svg) no-repeat 10px 10px;
  background-size: 40px 40px;
  border: 2px solid #ffe37f;
  padding: 20px 20px 10px 60px;
  border-radius: 10px;
  margin: 30px 0;
}

.e8 .p-warning {
  display: block;
}

@media (min-width: 768px) {
  .p-info, .p-warning {
    margin: 50px 0;
  }
}



.formula {
  display: inline-block;
}
.p-formula {
  text-align: center;
  padding: 10px 0;
}

.p-formula canvas {
  max-width: 100%;
}

@media (max-width: 767px) {
  .p-formula {
    overflow-x: auto;
    overflow-y: hidden;
  }
}
.p-important-formula {
  border: 1px dashed var(--primary);
  display: inline-block;
  padding: 10px 15px;
  margin-top: 20px;;
  margin-bottom: 20px;
}
.p-important-formula ol, .p-important-formula ul {
  text-align:left;
  margin-bottom: 0;
}

.p-table {
  margin: 30px 0 30px 0;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
}
.p-table table {
  margin: 0 auto;
}
.p-table td, .p-table th {
  vertical-align: top;
  padding: 5px 10px;
  border: 1px solid #99D9FF;
}
.p-table-small-column td, .p-table-small-column th {
  text-align: center;
  width: 200px;
  vertical-align: middle;
}
.p-table th {
  font-weight: 500;
}

.p-widget {
  border-top: 1px dashed var(--lightdark);
  border-bottom: 1px dashed var(--lightdark);
  padding: 30px 0;
  margin-top: 30px;
  margin-bottom: 30px;
  position: relative;
}

@media (max-width: 900px) {
  .p-widget {
    padding: 30px 0 20px 0;
  }
}
.p-widget_title {
  position: absolute;
  background-color: #00b0ff;
  padding: 5px 20px;
  left: 28px;
  top: -16px;
  color: white;
  text-transform: uppercase;
  font-family: sora, sans-serif;
  font-size: 12px;
  border-radius: 6px;
}
@media (max-width: 900px) {
  .p-widget_title {
    left: 18px;
  }
}

.widget-object {
  display: flex;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .widget-object {
    flex-direction: column;
  }
}
.widget-object_center {
  align-items: center;
  justify-content: center;
}
.widget-properties {
  min-width: 354px;
}

@media (max-width: 900px) {
  .widget-data {
    order: 1;
  }
  .widget-properties {
    order: 2;
    min-width: 100%;
    max-width: 100%;
  }
}
.widget-info {
  padding: 0 0 5px 0;
  text-align: right;
  font-size: 14px;
  color: var(--lightdark);
}
.widget-properties-columns {
  display: flex;
  justify-content: space-between;
}
.widget-properties-label {
  display: inline-block;
  width: 60px;
}
.widget-properties-label.small-label {
  width: 40px;
}
.widget-object .input-field-simple {
  margin: 3px 0;
}

.p-widget canvas {
  max-width: 100%;
}


.p-progress {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.p-progress li {
  padding: 5px 0 5px 40px;
  position: relative;
}
.p-progress li:before {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  opacity: 0;
  transition: opacity 0.3s;
  content: " ";
}
.p-progress li.done:before {
  background: transparent url(../images/ok.svg);
  background-size: 30px 30px;
  opacity: 1;
}

.p-progress li.in-progress {
  font-weight: 500;
}
.p-progress li.in-progress:before {
  left: 10px;
  width: 10px;
  height: 10px;
  top: 10px;
  border-radius: 20px;
  background-color: var(--selected);
  opacity: 1;
}
.p-progress li span {
  font-weight: normal;
  display: block;
}


.p-tasks {
  padding: 13px 33px 3px 33px;
  margin-top: 50px;
  position: relative;
}
.p-tasks:before {
  position: absolute;
  border: 1px dashed var(--lightdark);
  border-radius: 6px;
  content: " ";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.p-example + .p-tasks {
  margin-top: 50px;
}

@media (max-width: 900px) {
  .p-tasks {
    padding: 10px 20px 0 20px;
  }
}
.p-tasks_hidden {
  display: none;
}
.p-tasks_title {
  position: absolute;
  background-color: #00b0ff;
  padding: 5px 20px;
  left: 28px;
  top: -16px;
  color: white;
  text-transform: uppercase;
  font-family: sora, sans-serif;
  font-size: 12px;
  border-radius: 6px;
  z-index: 3;
}
@media (max-width: 900px) {
  .p-tasks_title {
    left: 18px;
  }
}
.p-tasks h3 {
  margin-top: 0;
}
.task-line {
  border-top: 1px dashed var(--lightdark);
  padding: 30px 0;
}
.fullscreen-view .task-line {
  border-top-width: 0;
}
@media (max-width: 900px) {
  .task-line {
    padding: 20px 0;
  }
}
.fullscreen-view .task-line .full-task-description {
  will-change: transform, opacity;
  opacity: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform: translateX(0px);
}
.fullscreen-view .task-line.next-task .full-task-description {
  transform: translateX(40px);
  opacity: 0;
}
.fullscreen-view .task-line.prev-task .full-task-description {
  transform: translateX(-40px);
  opacity: 0;
}
.task-line:first-child, .p-tasks_title + .task-line {
  border-top-width: 0;
}

.task-title-bar {
  display: flex;
  justify-content: space-between;
  padding-bottom: 5px;
  gap: 10px;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  padding-top: 10px;
}

.task-title {
  font-weight: 500;
  padding: 10px 0;
}
.task-title-e8 {
  font-size: 12px;
  font-family: sora, sans-serif;
  margin-left: 10px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 6px;
  background-color: rgb(255,255,180);
  white-space: nowrap;
  display: none;
  vertical-align: middle;
}
.darkmode .task-title-e8 {
  background-color: var(--bg-grey);
}
.task-title-e8:first-child {
  margin-left: 0;
}
.e8 .task-title-e8 {
  display: inline-block;
  margin-left: 10px;
}
.task-help {
  margin-left: auto;
  cursor: pointer;
  background-color: var(--bg-grey);
  color: white;
  box-shadow: 0 2px 3px rgba(0,0,0,0.2);
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s;
  padding: 5px 10px;
  text-transform: uppercase;
  _background-color: transparent;
  _box-shadow: none;
  color: var(--dark);
  font-family: sora, sans-serif;
  font-size: 12px;
  transition: all 0.3s;
  position: absolute;
  right: 0;
  top: 5px;
}

.button-wrong {
  cursor: pointer;
  background-color: var(--bg-grey);
  color: white;
  box-shadow: 0 2px 3px rgba(0,0,0,0.2);
  font-weight: 500;
  transition: all 0.3s;
  padding: 5px 10px;
  border-width: 0;
  text-transform: uppercase;
  color: var(--dark);
  font-family: sora, sans-serif;
  font-size: 10px;
  opacity: 0.5;
}
.button-wrong:hover {
  opacity: 1;
}

.submit-line-help {
  margin-bottom: 10px;
  text-align: center;
}
.submit-line .task-help {
  position: static;
  margin: auto;
  box-shadow: none;

}
.subtasks .task-help {
  display: none;
}
.task-done .task-help, .task-help.disabled {
  pointer-events: none;
  opacity: 0.5;
}
.task-group {
  position: relative;
  display: block;
  margin: 20px 0;
}
.p-example .task-group {
  display: flex;
  align-items: center;
}
.task-group.inline {
  display: flex;
  align-items: center;
}
@media (max-width: 900px) {
  .task-group.inline {
    flex-wrap: wrap;
  }
  .p-example  .task-group {
    flex-wrap: wrap;
  }
}
.task-group.inline .task-description {
  margin-bottom: 0;
  width: 250px;
}
.task-group.inline .task-question {
  flex-grow: 1;
}
.task-description {
  display: block;
  margin-bottom: 15px;
}
.task-description:empty {
  display: none;
}
.simple-task-help-content {
  background: transparent url(../images/i.svg) no-repeat 10px 10px;
  background-size: 40px 40px;
  border: 2px solid rgba(21, 101, 192,0.1);
  padding: 20px 20px 10px 60px;
  border-radius: 10px;
  margin: 20px 0;
  display: none;
}
.simple-task-help-content.show-help {
  display: block;
}

.task-help-content {
  display: none;
}


.task_plusminus {
  vertical-align: middle;
  width: 40px;
  height: 40px;
  background: transparent url(../images/plusminus.svg);
  background-size: 40px 40px;
  cursor: pointer;
  margin-right: 10px;
  margin-bottom: 5px;
  background-color: var(--bg);
  border-radius: 40px;
  display: none;
}
@media (max-width: 767px) {
  .plusminus .task_plusminus:empty {
    display: inline-block;
  }
}
.good .task_plusminus {
  display: none;
}
.task_sufix {
  margin-left: 10px;
}
.task_sufix:empty {
  display: none;
}
.single-choice-line .task_answer {
  margin-left: 0;
}
.task_answer_tf {
  display: flex;
  width: 160px;
  border-radius: 6px;
  box-shadow: 2px 3px 5px rgba(0,0,0,0.2);
  font-weight: 500;
  overflow: hidden;
  transition: all 0.3s;
  background-color: var(--bg-grey);
  text-transform: uppercase;
  font-family: sora, sans-serif;
  font-size: 12px;
}
.task_answer_t.active, .task_answer_f.active {
  background-color: var(--selected);
}
.good .task_answer_tf, .auto-good .task_answer_tf, .bad .task_answer_tf {
  box-shadow: 0 2px 3px rgba(0,0,0,0);
}
.good .task_answer_t, .good .task_answer_f {
  border-color: var(--green);
}
.bad .task_answer_t, .bad .task_answer_f {
  border-color: #C62828;
}
.auto-good .task_answer_t, .auto-good .task_answer_f {
  border-color: #cacaca;
}

.auto-good .task_answer_t.active {
  box-shadow: 2px 0 var(--green);
  position: relative;
  z-index: 1;
}

.task_answer_t, .task_answer_f {
  width: 50%;
  text-align: center;
  cursor: pointer;
  line-height: 43px;
  transition: all 0.3s;
  border: 2px solid #00B0FF;
  border-radius: 0 6px 6px 0;
}
.task_answer_t:hover, .task_answer_f:hover {
  background-color: var(--selected);
}
.good .task_answer_t.active, .good .task_answer_f.active, .auto-good .task_answer_t.active, .auto-good .task_answer_f.active {
  background-color: #e8f7e8;
  border-color: var(--green);
}

.darkmode .good .task_answer_t.active, .darkmode .good .task_answer_f.active, .darkmode .auto-good .task_answer_t.active, .darkmode .auto-good .task_answer_f.active {
    background-color: var(--green);
}

.bad .task_answer_t.active, .bad .task_answer_f.active {
  background-color: #ffe8e8;
}

.darkmode  .bad .task_answer_t.active, .darkmode  .bad .task_answer_f.active {
  background-color: #C62828;
}

.task_answer_t {
  border-right-width: 0;
  border-radius: 6px 0 0 6px;
}
.true-false-line.bad .task_answer {
  pointer-events: none;
}

.task_answer_single {
  padding: 5px 0 10px 0;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 20px;
}

.task_answer_single .task_answer {
  width: 100%;
}

.task-question {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-right: 60px;
  margin-top: 15px;
}
.p-example .task-question {
  margin-top: 0;
}
@media (max-width: 900px) {
  .task-question {
    padding-right: 50px;
    width: 100%;
  }
}

.task-question:before {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -20px;
  width: 40px;
  height: 40px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  content: " ";
  transform: scale(0);
}

@media (max-width: 900px) {
  .task-question:before {
    top: auto;
    bottom: 50%;
    margin-bottom: -20px;
  }
}

.task-question span:empty {
  display: none;
}

.svg-wrapper {
  width: 100%;
}

.radio-line, .task_answer_single {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.radio-line label, .task_answer_item {
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
  background-color: var(--bg-grey);
  padding: 5px 10px;
  border: 2px solid #00B0FF;
  box-shadow: 2px 3px 5px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  min-height: 47px;
  justify-content: center;
  min-width: 50px;
}
.radio-line label:hover, .task_answer_item:hover {
  border-color: #33C1FF;
}

.good .radio-line label, .good .task_answer_item {
  border-color: var(--selected);
  box-shadow: 0 2px 3px rgba(0,0,0,0);
}
.auto-good .radio-line label, .good .task_answer_item {
  border-color: #cacaca;
  box-shadow: 0 2px 3px rgba(0,0,0,0);
}
.auto-good .radio-line label, .auto-good .task_answer_item {
  border-color: #cacaca;
  box-shadow: 0 2px 3px rgba(0,0,0,0);
}

.radio-line label input {
  position: absolute;
  left: -10000px;
}

.good .task_answer_item.active, .good .radio-line label[data-answer="good"], .auto-good .radio-line label[data-answer="good"] {
  border-color: var(--green);
}

.bad .task_answer_item.active, .bad .radio-line label:focus-within {
  border-color: #c62828;
}

.task_answer_item.active, .radio-line label.active {
  border-color: var(--green);
  box-shadow: 0 2px 3px rgba(0,0,0,0);
}

.good .task-question:before {
  background: transparent url(../images/ok.svg);
  background-size: 40px 40px;
  opacity: 1;
  transform: scale(1);
}
.bad .task-question:before {
  opacity: 1;
  background: transparent url(../images/error.svg);
  background-size: 40px 40px;
  transform: scale(1);
}

.next-info {
  text-align: center;
  padding: 40px;
  margin: 0;
  position: relative;
}
.next-info .next-arrow {
  content: " ";
  display: inline-block;
  position: absolute;
  width: 98px;
  height: 55px;
  background: transparent url(../images/arrow.png) no-repeat;
  transform: rotate(120deg);
  top: -20px;
  margin-left: 20px;
}

@media (max-width: 900px) {
  .next-info .next-arrow {
    margin-left: -20px;
    top: -10px;
    width: 49px;
    height: 27px;
    background-size: contain;
  }
}

.darkmode .next-info .next-arrow {
  filter: brightness(0) invert(1);
}

.break > span {
  display: none;
}
.next-info .btn-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.good .task_answer, .good .radio-line, .auto-good .task_answer, .auto-good .radio-line {
  pointer-events: none;
}

#start-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  text-align:center;
  padding: 20px 0;
}
.start-label {
  text-transform: uppercase;
  font-family: sora, sans-serif;
  font-size: 12px;
  font-weight: 500;
}
.start-value {
  font-weight: 300;
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 0;
}
#finish-feedback {
  display: flex;
  justify-content: center;
  gap: 40px;
  text-align:center;
  padding: 20px 0;
}
.feedback-label {
  text-transform: uppercase;
  font-family: sora, sans-serif;
  font-size: 10px;
  font-weight: 500;
}
.feedback-value {
  font-weight: 300;
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .feedback-label {
    font-size: 14px;
  }
}

.feedback-text {
  max-width: 320px;
  margin: 0 auto 40px auto;
}

.button-help {
  border-width: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--lightdark);
  font-family: sora, sans-serif;
  font-size: 12px;
}
.button-help .icon {
  width: 30px;
  height: 30px;
  display: block;
  background: transparent url(../images/help.svg);
  background-size: 30px 30px;
}


.button-play-group {
  width: 32px;
  height: 32px;
  display: inline-block;
  border-width: 0;
  background: transparent url(../images/play.svg);
  background-size: 32px 32px;
  vertical-align: middle;
}

.button-play-group span {
  display: none;
}

.active-p {
  box-shadow: -15px 0 0 var(--bg), -20px 0 0 red;
}

.myTarget40 .not40, .myTarget60 .not60, .myTarget80 .not80, .myTarget100 .not100 {
  display: none !important;
}

.myTarget40 .only60, .myTarget40 .only80, .myTarget40 .only100,
.myTarget60 .only40, .myTarget60 .only80, .myTarget60 .only100,
.myTarget80 .only40, .myTarget80 .only60, .myTarget80 .only100,
.myTarget100 .only40, .myTarget100 .only60, .myTarget100 .only80 {
  display: none !important;
}

.test-start, #popup-question {
  text-align: center;
  padding-top: 20px;
}
.test-end {
  text-align: center;
  padding-top: 20px;
  display: none;
}
.test-finish .test-start {
  display: none;
}
.test-finish .test-end {
  display: block;
}
.test-start h3, .test-end h3, #popup-question h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 300;
  padding-top: 10px;
  margin-right: 0;
}
#popup-question h3 {
  padding-top: 20px;
}
.test-start .text-center, .test-end .text-center, #popup-question .text-center {
  padding-top: 20px;
  border-top: 1px dashed var(--dark)
}
#popup-question .text-center {
  margin-top: 30px;
}
.test-start ul {
  display: inline-block;
  list-style-type: none;
  margin: 0 0 30px 0;
  padding: 0;
  text-align: left;
}
.test-start ul li {
  position: relative;
  padding: 5px 0 5px 40px;
}
.test-start ul li:before {
  display: inline-block;
  width: 24px;
  height: 24px;
  content: " ";
  background: var(--extradark) url(../images/enter.svg) center;
  background-size: 24px 24px;
  background-position: 2px 50%;
  position: absolute;
  border-radius: 50px;
  left: 0px;
  top: 3px;
}
.test-start .btn, .test-end .btn, #popup-question .btn {
  margin-top: 5px;
}

.lesson-done {
  background-color: var(--bg);
  text-align: center;
}
.lesson-success {
  margin: 0 -40px -40px -40px;
  padding-bottom: 40px;
  padding-top: 40px;
}
@media (max-width: 900px) {
  .lesson-success {
    margin: 0 -20px -20px -20px;
  }
}

.your-progress {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.your-progress a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  display: block;
  background-color: var(--bg-grey);
  border-radius: 10px;
  border: 1px solid var(--bg-lightgrey);
  box-shadow: 0px 6px 3px -6px rgba(0, 0, 0, 0.2);
  padding: 15px 15px 15px 15px;
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  justify-content: space-between;
  min-height: 80px;
}
.your-progress a > span:first-child:first-letter {
  margin-right: 5px;
}

.your-progress a:hover {
  text-decoration: none;
}
.item-info {
  display: block;
  font-size: 12px;
  color: var(--lightdark);
  margin-left: 30px;
  font-weight: normal;
}
@media (min-width: 540px) {
  .item-info {
    font-size: 14px;
    margin-left: 28px;
  }
}

.percent {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--bg-lightgrey) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
}

.percent-inner {
  width: 38px;
  height: 38px;
  background: var(--bg-grey);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  font-weight: 500;
}

.your-progress li.blocked a {
  position: relative;
  padding-left: 25px;
}
.your-progress li.blocked a:before {
  width: 48px;
  height: 48px;
  position: absolute;
  right: 16px;
  top: 14px;
  content: " ";
  background: transparent url(../images/locked1.svg) no-repeat;
  background-size: 48px 48px;
}
.your-progress li:first-child h3 {
  border-top-width: 0;
  margin-top: 0;
  padding-top: 0;
}
.your-progress ul li a:hover {
  text-decoration: none;
  background-color: var(--bg-grey);
}

.groups-progress {
  display: block;
  white-space: nowrap;
  margin-left: 10px;
}
.groups-progress span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #dadada;
  border-radius: 10px;
}
.groups-progress span.done {
  background-color: var(--green);
}

@media (min-width: 768px) {
  .your-columns {
    display: flex;
    gap: 20px;
  }
}


.stats-cols {
  flex-grow: 1;
}
.chart-col {
  min-width: 320px;
  width: 320px;
  padding-top: 20px;
}

.stats {
  display: flex;
  flex: 1;
  gap: 20px;
}
.stats-user {
  border-bottom: 2px solid var(--bg-lightgrey);
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.stats-box {
  flex-grow: 1;
  max-width: 50%;
}
.stats-box .section-info {
  margin-bottom: 0;
  display: flex;
  margin-top: 0;
  gap: 5px;
  align-items: center;
}
.stats-label {
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 0;
  font-family: sora, sans-serif;
  font-size: 12px;
}
.stats-number {
  color: #00b0ff;
  font-size: 50px;
  font-weight: 300;
  margin-bottom: 0;
  line-height: 1;
  display: flex;
  gap: 10px;
  align-items: start;
}
.stats-box svg {
  width: 24px;
  height: 24px;
}

.fullscreen-view {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fullscreen-view .group {
  min-height: 0;
  flex: 1;
  display: flex !important;
  flex-direction: column;
}

.fullscreen-view .section {
  min-height: 0;
  flex: 1;
  display: flex !important;
  flex-direction: column;
}
.fullscreen-view .task-line {
  min-height: 0;
  flex: 1;
  display: none;
  flex-direction: column;
}

.fullscreen-view .task-line.active, .day-task .task-line {
  display: flex !important;
}
.day-task h3 {
  margin-top: 0;
  margin-bottom: 0;
}
.fullscreen-view .full-task-description {
  overflow: auto;
  flex: 1;
  min-height: 150px;
  padding-top: 20px;
}
.fullscreen-view .full-task-description-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0;
}
.full-task-description-inner .simple-task-help-content {
  margin: 10px 0;
}

.fullscreen-view .group, .fullscreen-view .task-line {
  padding-top: 0;
  padding-bottom: 0;
}
.fullscreen-view .submit-line {
  margin-bottom: 0;
  margin-top: 10px;
  margin-left: -40px;
  margin-right: -40px;
  position: relative;
  padding: 20px 40px 20px 40px;
}
.fullscreen-view-scroll {
  min-height: auto;
}
.fullscreen-view-scroll .group {
  padding-top: 30px;
}

.day-task .submit-line {
  padding-bottom: 110px;
}

@media (min-width: 768px) {
  .day-task .submit-line {
    padding-bottom: 120px;
  }
}

.task-answer .btn_full {
  margin-top: 15px;
}

.user-settings, .user-ranking, .user-list {
  padding-bottom: 110px;
}

.user-list {
  padding-top: 30px;
}

@media (min-width: 768px) {
  .user-settings, .user-ranking, .user-list {
    padding-bottom: 120px;
  }
  .user-list {
    padding-top: 40px;
  }
}
.user-ranking {
  padding-top: 30px;
}

.user-settings h3, .user-progress h3, .user-ranking h3, .user-list h3 {
  font-size: 24px;
  font-weight: 500;
}
.user-settings h3, .user-progress h3, .user-ranking h3, .user-list h3 {
  margin-bottom: 10px;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .user-settings h3, .user-progress h3, .user-ranking h3, .user-list h3 {
    font-size: 22px;
  }
}
.user-settings > h3:first-child, .user-settings .p-important h3:first-child, .user-ranking h3:first-child, .user-progress h3:first-child, .user-ranking > h3:first-child, .user-list > h3:first-child {
  margin-top: 0;
  border-top-width: 0;
  padding-top: 0;
}

.user-settings .p-important {
  padding: 25px;
  margin-top: 0;
}

.user-settings label {
  font-weight: normal;
}

.user-settings .input-field {
  margin-bottom: 10px;
}

.form-checkbox label {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0;
}

.checkbox-label {
  display: flex;
  min-height: 34px;
  align-items: center;
}
.checkbox-input {
  margin-left: 20px;
}

.checkbox-input input {
  position: absolute;
  left: -10000px;
}
.checkbox-input input:checked + span {
  border-color: var(--green);
}
.checkbox-input input:checked + span span {
  background-color: var(--green);
  margin-left: 26px;
}

.checkbox-input > span {
  display: inline-block;
  border: 2px solid var(--lightdark);
  padding: 3px;
  width: 60px;
  border-radius: 20px;
  transition: border-color 0.3s;
}

.checkbox-input > span span {
  display: block;
  width: 24px;
  height: 24px;
  background-color: var(--lightdark);
  margin-left: 0;
  border-radius: 20px;
  transition: border-color 0.3s, margin-left 0.3s;;
}

.form-info {
  font-size: 14px;
  color: var(--lightdark);
  display: block;
  margin-bottom: 10px;
  margin-top: 0;
  font-weight: normal;
}

.form-error {
  color: #C62828;
  font-size: 14px;
  margin-top: 10px;
  display: block;
}
.form-error:empty {
  display: none;
}

.friend-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.friend-list li {
  margin-bottom: 5px;
}
.friend-list li a:last-child {
  padding-right: 0;
}

.friend-list .friend-list-item {
  color: var(--text);
  background-color: var(--bg-grey);
  border-radius: 10px;
  border: 1px solid var(--bg-lightgrey);
  box-shadow: 0px 6px 3px -6px rgba(0, 0, 0, 0.2);
  padding: 10px 25px;
  display: flex;
  justify-content: space-between;
}
.friend-list-nickname span {
  display: block;
  font-size: 12px;
  padding-top: 3px;
}
.friend-list .friend-list-link {
  color: var(--text);
  display: block;
  width: 100%;
}
.friend-list .friend-list-link:hover {
  text-decoration: none;
}
.friend-list .friend-list-link .btn {
  color: var(--lightdark);
}

.settings-buttons {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.settings-buttons a {
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  text-align: left;
  position: relative;
}

.settings-active {
  background-color: var(--bg-grey);
  margin-left: -40px;
  margin-right: -40px;
  padding: 20px 40px 0 40px;
  margin-bottom: 10px;
}

.settings-group {
  padding: 10px 0 20px 0;
  display: none;
}
.settings-active .settings-group {
  display: block;
}

.section-info {
  font-size: 10px;
  margin-left: 10px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--bg-lightgrey);
  white-space: nowrap;
  vertical-align: middle;
  font-family: Sora, sans-serif;
  display: inline-block;
}

.can-anim-success {
  position: relative;
}
.can-anim-success:after {
  position: absolute;
  right: 10px;
  top: 50%;
  margin-top: -20px;
  width: 40px;
  height: 40px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  content: " ";
  transform: scale(0);
  background: transparent url(../images/ok.svg);
  background-size: 40px 40px;
}
.anim-success:after {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.profile-box {
  padding: 0 0 30px 0;
  flex: 1;
}
.profile-box h1 {
  margin-top: 0;
}
.profile-box-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.profile-title {
  margin-top: 5px;
}
.profile-title strong {
  display: inline-block;
  background-color: var(--bg-grey);
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 12px;
}
.profile-points {
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: sora, sans-serif;
}
.profile-points > span {
  display: inline-block;
}
.profile-progress {
  display: block;
  height: 2px;
  margin-top: 5px;
  background-color: #e1e1e1;
}
.profile-progress span {
  background-color: var(--primary);
  height: 2px;
  display: block;
}

.user-awards {
  padding-bottom: 110px;
}

.user-awards h4 {
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
  
.user-awards ul {
  list-style-type: none;
  margin: 0;
  padding: 0 0 15px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

@media (min-width: 540px) {
  .user-awards ul {
    gap: 20px;
    justify-content: start;
  }
}

.user-awards ul li {
  width: 46%;
  height: 210px;
  display: flex;
  border-radius: 10px;
  border: 2px solid var(--bg-lightgrey);
  align-items: center;
  justify-content: center;
  text-align:center;
  padding: 10px;
  color: #9eaeae;
  position: relative;
  background-color: var(--bg);
  min-width: 140px;
}

@media (min-width: 560px) {
  .user-awards ul li {
    width: 30%;
  }
}

@media (min-width: 768px) {
  .user-awards ul li {
    width: 180px;
  }
}

.user-awards ul span {
  display: block;
}
.award-number {
  font-size: 26px;
  font-weight: 300;
}
.trophy {
  position: relative;
}
.trophy svg {
  width: 100px;
}
.award-number {
  width: 100%;
  height: 100%;
  position: absolute;
  color: white;
  top: 34px;
}
.award-number_small {
  font-size: 20px;
}
.award-number_flame {
  font-size: 18px;
  padding-left: 5px;
  top: 59px;
}
.award-number_padding {
  top: 20px;
}
.award-title {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  
}
.award-next {
  font-size: 12px;
  display: block;
  font-weight: normal;
  position: absolute;
  background-color: var(--bg-lightgrey);
  border-radius: 6px;
  bottom: -12px;
  padding: 4px 10px;
  left: 50%;
  white-space: nowrap;
  transform: translate(-50%, 0);
  font-weight: 500;
  text-transform: uppercase;
}
.award-date {
  font-size: 12px;
  color: white;
  display: block;
  font-weight: normal;
  position: absolute;
  background-color: var(--green);
  border-radius: 6px;
  bottom: -12px;
  padding: 4px 10px;
  left: 50%;
  white-space: nowrap;
  transform: translate(-50%, 0);
  font-weight: 500;
  text-transform: uppercase;
}

.user-summary {
  background-color: var(--bg-grey);
  margin-bottom: 0;
  margin-left: -40px;
  margin-right: -40px;
  position: relative;
  padding: 30px 40px 100px 40px;
}

.user-summary:before {
  content: "";
  position: absolute;
  left: 0;
  top: -6px;
  width: 100%;
  height: 12px;
  background-image: radial-gradient(circle, var(--bg) 6px, transparent 7px);
  background-size: 20px 13px;
}

.user-awards ul li.active {
  border-color: var(--green);
  color: var(--green);
}

.ranking-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.ranking-list .item {
  color: var(--text);
  display: block;
  background-color: var(--bg-grey);
  border-radius: 10px;
  border: 1px solid var(--bg-lightgrey);
  box-shadow: 0px 6px 3px -6px rgba(0, 0, 0, 0.2);
  padding: 5px 25px 5px 15px;
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.ranking-list .item-me {
  font-weight: 500;
}

.ranking-list-number {
  width: 48px;
  margin-right: 10px;
  font-size: 22px;
  font-weight: 300;
  position: relative;
  text-align: center;
}
.ranking-list-number:before {
  position: absolute;
  left: 0;
  width: 100%;
  top: 10.5px;
  font-size: 13px;
  font-weight: 500;
}
.ranking-list-number svg {
  width: 48px;
  height: 48px; 
}
.ranking-list-number-1 {
  color: gold;
}
.ranking-list-number-1:before {
  content: "1";
}
.ranking-list-number-2 {
  color: silver;
}
.ranking-list-number-2:before {
  content: "2";
}
.ranking-list-number-3 {
  color: brown;
}
.ranking-list-number-3:before {
  content: "3";
}
.ranking-list-score {
  margin-left: auto;
}
.ranking-list a:hover {
  text-decoration: none;
}
.ranking-list-nickname span {
  display: block;
  font-size: 12px;
  padding-top: 3px;
}

.switcher {
  list-style-type: none;
  margin: 0 0 30px 0;
  padding: 0;
  display: inline-flex;
  background-color: var(--bg-grey);
  border-radius: 100px;
  padding: 4px;
}

.switcher .btn {
  font-size: 12px;
}

.switcher li a {
  border-radius: 100px;
}
.switcher li.active a {
  background-color: var(--bg);
}

.fullscreen-view .switch-panel, .fullscreen-view .switch-panels {
  display:flex;
  flex: 1;
  flex-direction: column;
}



.empty {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 40px;
  background: transparent url(../images/wait.svg?1) no-repeat 50% 20px;
  background-size: 48px 48px;
  font-size: 14px;
  color: var(--lightdark);
  margin: 0 auto;
  max-width: 200px;
}
@media (min-width: 540px) {
  .empty {
    font-size: 14px;
  }
}

.new-achievement {
  background: var(--bg) url(../images/retrobg.svg) center;
  text-align: center;
  width: 340px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.darkmode .new-achievement {
  background-image: url(../images/retrobgdark.svg);
}

.new-achievement:before {
    content: "";
    position: absolute;
    inset: -50%;
    background: url(../images/retrobg.svg) center / cover no-repeat;
    animation: spin 60s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.darkmode .new-achievement:before {
  background-image: url(../images/retrobgdark.svg);
}

.new-achievement > * {
    position: relative;
    z-index: 1;
}
    

.new-achievement h3 {
  font-size: 26px;
  font-weight: 300;
  margin-right: 0;
}

@media (max-width: 900px) {
  .new-achievement h3 {
    font-size: 22px;
  }
}
.new-achievement .user-awards {
  padding: 20px 0;
}
.new-achievement .user-awards ul {
  justify-content: center;
  
}

.new-achievement .user-awards ul li {
  animation: popSpin 1s ease-out forwards;
  transform-origin: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.toogle-box .toggle-content {
  display: none !important;
}
.toogle-box.show .toggle-button {
  display: none;
}
.toogle-box.show .toggle-content {
  display: block !important;
}


.debug .group-list .locked a {
  pointer-events: auto;
}
.debug .task_answer_tf {
  position: relative;
}
.debug .task_answer_tf:after, .debug .single-choice-line:after {
  content: attr(data-answer);
  position: absolute;
  right: 0;
  top: 0;
  background-color: orange;
  padding: 5px 10px;
  opacity: 0.5;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes popSpin {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}