.calc-result {
    display: none;
    flex-direction: column;
    background-color: #bce8f142;
    border-color: #bce8f1;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: 15px;
}

.calc-result-number {
    display: block;
    font-size: 50px;
    font-weight: bold;
    color: #31708f;
}

.calc-result-message {
    text-align: justify;
    font-style: italic;
    color: #000;
}
 
 .toggle {
  margin: 0 0 1.5rem;
  box-sizing: border-box;
  font-size: 0;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: stretch;
}
.toggle input {
  width: 0;
  height: 0;
  position: absolute;
  left: -9999px;
}
.toggle input + label {
    margin: 0;
    padding: 0.75rem 2rem;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    border: solid 1px #DDD;
    background-color: #FFF;
    font-size: 1rem;
    line-height: 140%;
    font-weight: 600;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transition: border-color 0.15s ease-out, color 0.25s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.toggle input:checked + label {
  background-color: #004EA8;
  color: #FFF;
  box-shadow: 0 0 10px rgba(102, 179, 251, 0.5);
  border-color: #004EA8;
  z-index: 1;
}

.toggle input + label i {
 opacity: 0;
}

.toggle input:checked + label  i{
  
  opacity: 1;
}

.grid-score {
	display: grid;
	justify-content: center;
	margin-top: 30px;
	overflow: auto;
}


.toggle input:focus + label {
  outline-offset: 0.45rem;
}
@media (max-width: 800px) {
  .toggle input + label {
    padding: 0.75rem 0.25rem;
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .grid-score {justify-content: start;}
  
}
 
 
 
.parent {
  display: grid;
  grid-template-columns: 45px repeat(5, 25px);
  grid-template-rows: repeat(4, 25px);
  grid-column-gap: 1px;
  grid-row-gap: 1px;
}

.parent-2 {
  display: grid;
  grid-template-columns: repeat(5, 25px);
  grid-template-rows: repeat(4, 25px);
  grid-column-gap: 1px;
  grid-row-gap: 1px;
}
.grid {
  margin: 5px ;
}

.grid > div:hover {
  transition: all .3s;
  filter: hue-rotate(45deg);
  transform: scale(1.1);
  cursor: pointer;

}


.age {
    display: flex;
    align-items: center;
    /* margin: auto; */
    background-color: #d6d7d9;
    width: 50px;
    height: 104px;
    padding: 15px;
    color: #3197ee;
    font-weight: 600;
}

.parent > div,
.parent-2 > div
{
  display: flex;
  align-items: center;
  justify-content: center;
}

.parent > span,
.parent-2 > span {
	text-align: center;
}

.grid-1 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.div1 { grid-area: 1 / 1 / 2 / 2; }
.div2 { grid-area: 1 / 2 / 2 / 3; }
.div3 { grid-area: 1 / 3 / 2 / 4; }
.div4 { grid-area: 1 / 4 / 2 / 5; }
.div5 { grid-area: 1 / 5 / 2 / 6; }
.div6 { grid-area: 1 / 6 / 2 / 7; }
.div7 { grid-area: 2 / 1 / 3 / 2; }
.div8 { grid-area: 2 / 2 / 3 / 3; }
.div9 { grid-area: 2 / 3 / 3 / 4; }
.div10 { grid-area: 2 / 4 / 3 / 5; }
.div11 { grid-area: 2 / 5 / 3 / 6; }
.div12 { grid-area: 2 / 6 / 3 / 7; }
.div13 { grid-area: 3 / 1 / 4 / 2; }
.div14 { grid-area: 3 / 2 / 4 / 3;}
.div15 { grid-area: 3 / 3 / 4 / 4;}
.div16 { grid-area: 3 / 4 / 4 / 5;}
.div17 { grid-area: 3 / 5 / 4 / 6; }
.div18 { grid-area: 3 / 6 / 4 / 7; }
.div19 { grid-area: 4 / 1 / 5 / 2; }
.div20 { grid-area: 4 / 2 / 5 / 3; }
.div21 { grid-area: 4 / 3 / 5 / 4; }
.div22 { grid-area: 4 / 4 / 5 / 5;}
.div23 { grid-area: 4 / 5 / 5 / 6;}
.div24 { grid-area: 4 / 6 / 5 / 7;}

.parent-2 .div1 { grid-area: 1 / 1 / 2 / 2; }
.parent-2 .div2 { grid-area: 1 / 2 / 2 / 3; }
.parent-2 .div3 { grid-area: 1 / 3 / 2 / 4; }
.parent-2 .div4 { grid-area: 1 / 4 / 2 / 5; }
.parent-2 .div5 { grid-area: 1 / 5 / 2 / 6; }
.parent-2 .div6 { grid-area: 2 / 1 / 3 / 2; }
.parent-2 .div7 { grid-area: 2 / 2 / 3 / 3; }
.parent-2 .div8 { grid-area: 2 / 3 / 3 / 4; }
.parent-2 .div9 { grid-area: 2 / 4 / 3 / 5; }
.parent-2 .div10 { grid-area: 2 / 5 / 3 / 6; }
.parent-2 .div11 { grid-area: 3 / 1 / 4 / 2; }
.parent-2 .div12 { grid-area: 3 / 2 / 4 / 3; }
.parent-2 .div13 { grid-area: 3 / 3 / 4 / 4; }
.parent-2 .div14 { grid-area: 3 / 4 / 4 / 5; }
.parent-2 .div15 { grid-area: 3 / 5 / 4 / 6; }
.parent-2 .div16 { grid-area: 4 / 1 / 5 / 2; }
.parent-2 .div17 { grid-area: 4 / 2 / 5 / 3; }
.parent-2 .div18 { grid-area: 4 / 3 / 5 / 4; }
.parent-2 .div19 { grid-area: 4 / 4 / 5 / 5; }
.parent-2 .div20 { grid-area: 4 / 5 / 5 / 6; }


input[type=range] {
  -webkit-appearance: none;
  margin: 18px 0;
  width: 100%;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #004EA8;
  border-radius: 1.3px;
  border: 0.2px solid #010101;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -14px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: #367ebd;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  background: #004EA8;
  border-radius: 1.3px;
  border: 0.2px solid #010101;
}
input[type=range]::-moz-range-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 8.4px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-width: 16px 0;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: #004EA8;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-fill-upper {
  background: #3071a9;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-thumb {
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
  border: 1px solid #000000;
  height: 36px;
  width: 16px;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}
input[type=range]:focus::-ms-fill-lower {
  background: #004EA8;
}
input[type=range]:focus::-ms-fill-upper {
  background: #367ebd;
}

.rs-label {
    position: relative;
    transform-origin: center center;
    display: block;
    width: 98px;
    height: 98px;
    background: transparent;
    border-radius: 50%;
    line-height: 30px;
    text-align: center;
    font-weight: bold;
    padding-top: 22px;
    box-sizing: border-box;
    border: 2px solid #e91515;
    margin-top: 20px;
    margin-left: -38px;
    left: attr(value);
    color: #f30000;
    font-style: normal;
    font-weight: normal;
    line-height: normal;
    font-size: 36px;
}
.rs-label::after {
  content: "kg";
  display: block;
  font-size: 20px;
  letter-spacing: 0.07em;
  margin-top: -2px;
}

.range-slider {
    display: grid;
    grid-template-columns: auto 85px;
    align-items: center;
}

.range-slider__progress {
    border: 1px solid #004EA8;
    margin-left: 20px;
    /* padding: 2px 25px; */
    text-align: center;
}

.smoke-block {
    display: flex;
    align-items: center;
    color: #3197ee;
    font-weight: 600;
    text-align: center;
    margin-left: 45px;
}

.smoke {
    background-color: #d6d7d9;
    height: 50px;
    width: 129px;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gender {
    background-color: #d6d7d9;
    color: #3197ee;
    font-weight: 600;
    margin-left: 50px;
    width: calc(134px + 134px );
    height: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}
.modal {
    position: fixed; /* фиксированное положение */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.5); /* цвет фона */
    z-index: 1050;
    opacity: 0; /* по умолчанию модальное окно прозрачно */
    -webkit-transition: opacity 200ms ease-in; 
    -moz-transition: opacity 200ms ease-in;
    transition: opacity 200ms ease-in; /* анимация перехода */
    pointer-events: none; /* элемент невидим для событий мыши */
    margin: 0;
    padding: 0;
}
/* при отображении модального окно */
.modal.open{
    opacity: 1; /* делаем окно видимым */
	  pointer-events: auto; /* элемент видим для событий мыши */
    overflow-y: auto; /* добавляем прокрутку по y, когда элемент не помещается на страницу */
}
/* ширина модального окна и его отступы от экрана */
.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
}
@media (min-width: 576px) {
  .modal-dialog {
      max-width: 500px;
      margin: 30px auto; /* для отображения модального окна по центру */
  }
}
/* свойства для блока, содержащего контент модального окна */ 
.modal-content {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: .3rem;
    outline: 0;
}
@media (min-width: 768px) {
  .modal-content {
      -webkit-box-shadow: 0 5px 15px rgba(0,0,0,.5);
      box-shadow: 0 5px 15px rgba(0,0,0,.5);
  }
}
/* свойства для заголовка модального окна */
.modal-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eceeef;
}
.modal-title {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}
/* свойства для кнопки "Закрыть" */
.close {
    float: right;
    font-family: sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    text-decoration: none;
}
/* свойства для кнопки "Закрыть" при нахождении её в фокусе или наведении */
.close:focus, .close:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    opacity: .75;
}
/* свойства для блока, содержащего основное содержимое окна */
.modal-body {
  position: relative;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 15px;
    overflow: auto;
    text-align: center;
}

.modal-body  span {
    font-size: 24px;
    font-weight: 600;
    filter: drop-shadow(1px 1px 1px black);
}

.right-legend {
    writing-mode: tb;
    transform: rotate(180deg);
    background: #d6d7d9;
    height: 555px;
    margin-top: -52px;
    text-align: center;
    color: #5197ee;
    font-weight: 600;
    padding: 2px 3px 2px 6px;
}

.bottom-legend {
    text-align: center;
    color: #5997ee;
    font-weight: 600;
    margin-left: 50px;
    width: 600px;
    background: #d6d7d9;
    padding: 0px 1px 5px 2px;
}
