:root {
  --main-bg-color: #b9b9b9;
  --main-font-color: #272727;
  --head-line-color: #515151;
  --main-color: #f75a21;
  --first-item: #ff7322;
  --second-item: #f0581c;
  --third-item: #ac3d36;
  --btn-color: #ac3d36;
  --line-item-font-size: 19px;
  --main_font_size: 27px;
  --middle-font-size:16px;
}

@font-face {
  font-family: "text";
  font-display: swap;
  src: url(Montserrat-Regular.ttf);
}
@font-face {
  font-family: "title";
  font-display: swap;
  src: url(Montserrat-Bold.ttf);
}

body {
    background-color: var(--main-bg-color);
    margin: 0px;
    font-family: "text";
    color: var(--main-font-color);
}
html, body {
    height: 100%;
    padding: 0;
    font-family: "text";
    margin: 0;
}
* {
    /* font-family: "Montserrat"; */
    box-sizing: border-box;
}

#root,
form,
#app {
    height: 100%;
}
#app {
    background-color: #cdcdcd;
}
back,
#back a{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #ac3d36;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 15px 18px;
    font-size: 120%;
    font-family: "title";
    position: fixed;
    left: 0;
    top: 40%;
    margin-top: -0.625em;
    cursor: pointer;
    width: 25px;
    min-height: 125px;
    max-height: max-content;
    -webkit-writing-mode: tb-rl;
    -ms-writing-mode: tb-rl;
    writing-mode: tb-rl;
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    z-index: 10;
    transition: 0.3s ease;
    cursor: pointer;
}
#back > a,
.hidden_back > a {
    color: white;
    text-decoration: none;
}
.back:hover,
#back:hover,
.hidden_back:hover {
    background-color: #ac3d36;
}

#root .question-variant-container.radio.right {
    background-color: #a7ffa6!important;
    /*color: #ffffff;*/
}
#root .question-variant-container.radio.error {
    background-color: #ffb0b0!important;
    /*color: #ffffff;*/
}

#root .question-variant-container.check.right {
    background-color: #a7ffa6!important;
    /*color: #ffffff;*/
}
#root .question-variant-container.check.error {
    background-color: #ffb0b0!important;
    /*color: #ffffff;*/
}

#root .question-type-lines-vertical-wrapper.right .question-type-lines-vertical-left,
#root .question-type-lines-vertical-wrapper.right .question-type-lines-vertical-right {
    background-color: #a7ffa6!important;
    /*color: #ffffff;*/
}
#root .question-type-lines-vertical-wrapper.error .question-type-lines-vertical-left,
#root .question-type-lines-vertical-wrapper.error .question-type-lines-vertical-right {
    background-color: #ffb0b0!important;
    /*color: #ffffff;*/
}

#root .question-type-lines-image-wrapper.right .question-type-lines-image-button-answer-text {
    background-color: #a7ffa6;

}
#root .question-type-lines-image-wrapper.error .question-type-lines-image-button-answer-text {
    background-color: #ffb0b0;
}


#root .wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 0px 8px 3px #c7c7c7;
    overflow: auto;
}

#root .flex {
    display: flex;
}

#root .flex-item {

}

#root .header {
    margin-bottom: 25px;
}
#root .content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 1 0 auto;
    gap: 10px;
    margin-bottom: 25px;
    background-color: #e9e9e9;
    border-radius: 10px;
    padding: 20px 20px 20px 30px;
}
#root .footer {
    padding: 20px 0;
    border-top: 1px solid #565656;
}

#root .quest-title {
    background: #ffd2cf;
    padding: 20px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 21px;
    line-height: 1;
    margin-bottom: 25px;
}
#root .quest-text {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 14px 10px 14px;
    border-bottom: 1px solid #565656;
}
#root .quest-text-left {
    flex-grow: 1;
    font-weight: 400;
    font-size: 21px;
    line-height: 1;
}
#root .quest-text-right {
    white-space: nowrap;
    padding: 10px 20px;
    background-color: #ac3d36;
    border-radius: 5px;
    color: #ffffff;
}
#root .question-variant-container {
    display: flex;
    align-items: center;
    min-width: 600px;
    max-width: 600px;
    padding: 10px 14px;
    background: white;
    border-radius: 5px;
}
/* #region Кастом радиокнопок */
#root .question-variant-container [type="radio"] {
    position: absolute;
    z-index: -1;
    opacity: 0;
    transition: 0.5s;
    cursor: pointer;
  }
  #root .question-variant-container [type="radio"] + label {
    display: inline-flex;
    align-items: center;
    user-select: none;
    transition: 0.5s;
  }
  label:hover {
    cursor: pointer;
  }
  #root .question-variant-container [type="radio"] + label::before {
    content: "";
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #ac3d36;
    border-radius: 50%;
    margin-right: 0.5em;
  }
  
  #root .question-variant-container [type="radio"]:checked + label::before {
    background-color: #ac3d36;
    background-size: cover;
  }

#root .question-variant-container [type="radio"]+label {
    flex-grow: 1;
    cursor: pointer;
    padding-left: 10px;
    font-size: 20px;
}
/* #endregion */

/* #region Кастом чекбоксов*/
#root .question-variant-container [type="checkbox"] {
    position: absolute;
    z-index: -1;
    opacity: 0;
    transition: 0.5s;
    cursor: pointer;
  }
  #root .question-variant-container [type="checkbox"] + label {
    display: inline-flex;
    align-items: center;
    user-select: none;
    transition: 0.5s;
  }
  label:hover {
    cursor: pointer;
  }
  #root .question-variant-container [type="checkbox"] + label::before {
    content: "";
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #ac3d36;
    border-radius: 25%;
    margin-right: 0.5em;
  }
  
  #root .question-variant-container [type="checkbox"]:checked + label::before {
    background-color: #ac3d36;
    background-size: cover;
  }

#root .question-variant-container [type="checkbox"]+label {
    flex-grow: 1;
    cursor: pointer;
    padding-left: 10px;
    font-size: 20px;
}
/* #endregion */
/*  */
line {
    stroke-width: 3;
    stroke: #ac3d36;
}
circle{
    cursor: pointer;
    fill: #ac3d36;
}
/*  */

#root .controls-answer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#root .controls-answer > input{
    cursor: pointer;
    font-family: "text";
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #ac3d36;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 12px 6px;
    font-size: 120%;
}
#root .controls-answer > input:disabled{
    background-color: #aaaaaa;
}
/*lines*/
#root .question-type-lines {
    position: relative;
    width: 100%;
}
#root .question-type-lines-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}
#root .question-type-lines-svg svg{
    width: 100%;
    height: 100%;
}
#root .question-type-lines-images {
    display: flex;
    gap: 15px;
}
#root .question-type-lines-image-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}
#root .question-type-lines-image {
    overflow: hidden;
    width: 100%;
    height: 250px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
#root .question-type-lines-image-button {
    width: 43px;
    height: 43px;
    margin-top: 20px;
    border: 6px solid #aaaaaa;
    border-radius: 50%;
}
#root .question-type-lines-image-button-answer {
    width: 43px;
    height: 43px;
    margin-top: 50px;
    border: 6px solid #aaaaaa;
    border-radius: 50%;
}
#root .question-type-lines-image-button-answer-text {
    margin-top: 25px;
    padding: 10px 25px;
    background: white;
    border-radius: 12px;
    border: 1px solid #ac3d36;
}
#root .addQuest {
    margin-bottom: 50px;
}
/*lines vertical*/
#root .question-type-lines-vertical {
    position: relative;
    width: 100%;
    max-width: 820px;
}
#root .question-type-lines-vertical .question-type-lines-vertical-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 40px;
}
#root .question-type-lines-vertical .question-type-lines-vertical-wrapper:last-child {
    margin-bottom: 0;
}
#root .question-type-lines-vertical-left,
#root .question-type-lines-vertical-right {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    max-width: 400px;
    min-width: 400px;
    border: 1px solid #ac3d36;
}
#root .question-type-lines-vertical-left {
    border-radius: 0 50px 50px 0;
}
#root .question-type-lines-vertical-right {
    border-radius: 50px 0 0 50px;
}
#root .question-type-lines-vertical-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: 6px solid #aaaaaa;
    border-radius: 50%;
}
#root .question-type-lines-vertical-button-answer {
    width: 40px;
    height: 40px;
    border: 6px solid #aaaaaa;
    border-radius: 50%;
    min-width: 40px;
    min-height: 40px;
}

#root .slide {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-bottom: 10px;
}
#root .slide-image {
    max-width: 500px;
    min-width: 500px;
}
#root .slide-image img{
    max-width: 100%;
    height: auto;
}
#root .slide-content {

}


#root .summary-title {
    background-color: white;
    border-bottom: 2px solid #ac3d36;
    font-size: 32px;
    color: #ac3d36;
    font-weight: 600;
    padding: 20px;
    text-align: center;
    margin-bottom: 50px;
}
#root .summary-container.flex {
    display: flex;
}
#root .summary-container.flex .summary-container-block {
    flex-grow: 1;
    max-width: 50%;
}

#root .summary-container {
    padding: 20px 30px;
    border: 1px solid #ac3d36;
    border-radius: 5px;
    background-color: #ffffff;
    margin-bottom: 20px;
    font-size: 20px;
}
#root .summary-container span {
    display: inline-block;
}
#root .summary-container .summary-container-block:first-child {
    padding-right: 10px;
}
#root .summary-container .summary-container-block:last-child {
    padding-left: 10px;
}
#root .summary-container .summary-container-block .accent {
    font-size: 30px;
    font-weight: 600;
    margin-left: 15px;
    color: #ac3d36;
}

.border {
    border: 3px solid var(--third-item);
    border-radius: 10px;
}

#root .question-type-lines-image
{
    background-color: #fff;
  border: 2px solid var(--third-item);
    border-radius: 10px; 
}

.slide-image img 
{
    border: 3px solid var(--third-item);
    border-radius: 10px;
}