* {
  box-sizing: border-box;
}

*:focus {
  box-sizing: border-box;
  outline: none;
}

/*-------------SNOW-------------------*/
#snow-canvas {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
	opacity: 0;
	transition: opacity 1.2s ease;
}
#snow-toggle {
	color: white;
	position: absolute;
	right: 10px;
	top: 10px;
	background-color: transparent;
	cursor: pointer;
	/*filter: brightness(105%);*/
}
/*-------------------------------------*/


img {
    max-width: 100%;
	/*max-height: 100%;*/
	/*height: 250px;*/
	display: block;
	border-radius: 10px;
}


.imagecont {
  max-width: 480px;
	min-width: 120px;
	max-height: 140px;
	height: 140px;
  overflow: hidden;
	
	margin: auto;
	display: block;


	position: relative;

  background: #afccd4;
	border-radius: 10px;
	box-shadow: 0 0px 1px 0 rgba(0, 0, 0, 0.2), 0 0px 5px 0 rgba(0, 0, 0, 0.19);
}



/*------------------------------------------------*/

/* 1. Исходное состояние картинки */
.imagecont img {
    opacity: 0; /* Полностью прозрачная */
    transform: translateY(50px); /* Сдвинута вниз на 50px */
    transition: opacity 1s ease, transform 1s ease; /* Плавный переход */
    will-change: opacity, transform; /* Оптимизация производительности */
}

/* 2. Состояние после загрузки */
.imagecont img.is-loaded {
    opacity: 1; /* Показываем */
    transform: translateY(0); /* Возвращаем на место */
}


/*------------------------------------------------*/
.lang {
	color: white;
    position: absolute;

    left: 15px;
    top: 10px;
    background-color: transparent;
    
    cursor: pointer;
}

.lang2 {
	color: white;
    position: absolute;

    left: 49px;
    top: 10px;
    background-color: transparent;
    
    cursor: pointer;
}

.lang:active {
	color: black;
}

.lang2:active{
	color: black;
}

/* BODY общие настройки */
body {
	background-color: #dfeaee;

	font-family: "Open Sans", sans-serif;
	font-size: 90%;
}

a {
/* 	text-decoration: none; */
	color: inherit;
}

a:hover {
		color: blue;

}

em {
	font-family: "Open Sans", sans-serif;
	color: grey;
}

/* ШАПКА */
div.info {
	font-family: "Open Sans", sans-serif;
	margin: 10px auto;
  width: 100%;
  max-width: 480px;
  min-width: 120px;

  text-align: left;
	padding: 20px;
	line-height: 1.5;

	background-color: white;
	border-radius:10px;
	border-top: 10px solid #afccd4;

	box-shadow: 0 0px 1px 0 rgba(0, 0, 0, 0.2), 0 0px 5px 0 rgba(0, 0, 0, 0.19);
}

/* ШАПКА КОНФИРМАЦИОННОЙ СТРАНИЦЫ */
div.info-confirm {
	font-family: "Open Sans", sans-serif;
	margin: 50px auto 10px;
  width: 100%;
  max-width: 480px;
  min-width: 120px;

  text-align: left;
	padding: 20px;
	line-height: 1.5;

	background-color: white;
	border-radius:10px;
	border-top: 10px solid green;

	box-shadow: 0 0px 1px 0 rgba(0, 0, 0, 0.2), 0 0px 5px 0 rgba(0, 0, 0, 0.19);
}

/* ОСТАЛЬНЫЕ ФОРМЫ */
div.forma-style {
	font-family: "Open Sans", sans-serif;
	margin: 10px auto;
  width: 100%;
  max-width: 480px;
  min-width: 120px;

  text-align: left;
	padding: 20px;

	background-color: white;
	border-radius: 10px;

	box-shadow: 0 0px 1px 0 rgba(0, 0, 0, 0.2), 0 0px 5px 0 rgba(0, 0, 0, 0.19);
}

/* Див с временами (в зависимости от принятия условий пациентом должен быть виден/невидим) */
div.forma-style-time {

	font-family: "Open Sans", sans-serif;
	margin: 10px auto;
  width: 100%;
  max-width: 480px;
  min-width: 120px;

  text-align: left;
	padding: 20px;

	background-color: white;
	border-radius: 10px;

	box-shadow: 0 0px 1px 0 rgba(0, 0, 0, 0.2), 0 0px 5px 0 rgba(0, 0, 0, 0.19);
}

/* Межстрочный интервал для чекбоксов ДИАГНОЗА */
span.checkboxesList {
	line-height: 2.4;
}



input[type=checkbox], input[type=checkbox] + label {
	user-select: none;
	cursor: pointer;
}

input[type=checkbox]:checked + label {
  color: green;
}

input[type=checkbox]:disabled + label {
  color: #ffcccc;
}

/* Лэйблы радиокнопок времени */
input[type=radio], input[type=radio] + label {
	user-select: none;
	cursor: pointer;
}

input[type=radio] + label {
	color: black;
	margin-right: 15px;
	margin-left: -3px;
}

/* Делаем розовым текст у недоступных радиокнопок */
input[type=radio]:disabled + label {
	color: #ffe6e6;
}

input[type=radio]:checked + label {
	color: green;
}




/* СКРЫТЫЕ ФОРМЫ для разметочных целей (окоймляют кнопки внизу) типа wrapper */
/*div.forma-style-hidden {*/
/*    font-family: "Open Sans", sans-serif;*/
/*    margin: 0px auto;*/
/*    width: 100%;*/
/*    max-width: 480px;*/
/*    min-width: 120px;*/
    
/*    display: flex;*/
/*    justify-content: flex-start;*/
/*    align-items: center;*/
    
/*    text-align: left;*/
/*    padding: 0px;*/

	/* background-color: transparent; */
/*}*/
div.forma-style-hidden {
	font-family: "Open Sans", sans-serif;
	margin: 0px auto;
	width: 100%;
	max-width: 480px;
	min-width: 120px;
	display: flex;
	justify-content: center;
	align-items: center;
	/* text-align: left; */
	padding: 0px;
	/* background-color: transparent; */
	flex-direction: column;
	gap: 10px;
}

/* ПОЛЯ ДЛЯ ВВОДА ДАННЫХ при ВЫБОРЕ (текст и числа) */
input[type=text], input[type=number], select {
  width: 100%;
  padding: 10px 10px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 7px;
  box-sizing: border-box;
  font-size: 16px;
}

/* Меняем цвет оконтовки при наведении на поля ввода */
input[type=text]:focus { border: 1px solid #afccd4; }

/* КНОПКИ (все) */
input[type=button], input[type=submit], input[type=reset] {
    text-align: center;
    width: 120px;
    background-color: #3c8091;
    color: white;
    padding: 12px 15px;
    margin-right: 20px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    
    align-self: flex-start;
    
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* КНОПКА ОТПРАВИТЬ ПРИ НАВЕДЕНИИ МЫШЬЮ */
input[type=submit]:hover {
  background-color: #448fa2;
}

input[type=button]:hover {
  background-color: #448fa2;
}

input[type=submit]:disabled {
/* 	filter: brightness(10%); */
	background-color: grey;
	cursor: not-allowed;
}

/* Disabled для кнопки, когда не все условия выполнены
.disabled {
  opacity: 0.6;
  cursor: not-allowed;
} */

fieldset {
	border: 1px dotted grey;
	margin: 10px auto;
}

/*#SendSubm {*/
/*    float: left;*/
/*	margin-right: 20px;*/
/*	font-size: 16px;*/
/*    padding: 16px 32px;*/
/*    width: auto;*/
/*}*/
#SendSubm {
    margin: 0;
	font-size: 16px;
	padding: 16px 32px;
	width: 99.8%;
	align-self: center;
	box-shadow: 0 20px 25px -5px rgba(134, 130, 130, 0.48),0 8px 10px -6px rgb(60, 128, 145), -0px -1px 4px 1px #fff, 1px 1px 2px 1px #dfdfdf6e inset;
}
#SendSubm:active {
	transform: translateY(2px);
	box-shadow: none;
}

#btnCancel {
    background-color: #b30000;
}

#btnCancel:hover{
    background-color: #ff4d4d;
}

#btnCancel:active{
  color: #e6e6e6;
  background-color: #800000;
  transform: translateY(1px);
  box-shadow: 1px 1px 1px grey inset, -1px -1px 0 white inset;
}

.loading {
	background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8' standalone='no'%3F%3E%3Csvg xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.0' width='32px' height='32px' viewBox='0 0 128 128' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M64 9.75A54.25 54.25 0 0 0 9.75 64H0a64 64 0 0 1 128 0h-9.75A54.25 54.25 0 0 0 64 9.75z' fill='%23ffffff'/%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 64 64' to='360 64 64' dur='1800ms' repeatCount='indefinite'%3E%3C/animateTransform%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: 25px;
	background-position: 48px 7px;
	margin: 0px;
	padding: 0px;
}

.invalid {
    background-color: #ffe6e6;
}

.errorMessage {
    font-style: italic;
    color: red;
    font-size: 0.8rem;
    margin: 0 auto;
}

/* RADIO NEW VERSION********20-11-2022***************** */
input[type=radio] {
  display: none;
}

input[type=radio] + label {
  content: '';
  padding: 5px 20px;
  
  background-color: white;
  
  border: 1px dashed darkgray;
  border-radius: 7px;
  
  display: inline-block;
  width: 76px;
  margin: 0;
  margin-bottom: 10px;
  margin-right: 5px;
  
  transition-duration: 0.1s;
}

input[type=radio]:disabled + label {
  color: #f26d6d;
  text-shadow: -1px -2px 1px white;
    border-color: #f26d6d;
	cursor: not-allowed;
  
  background-color: #ffe6e6;
  background-color: #ffe6e675;
  
  position: relative;
}

input[type=radio]:disabled + label:before {
  /* Если переменная не задана, по умолчанию будет 'ЗАНЯТО' */
  content: var(--status-text, 'ЗАНЯТО');
  font-size: 0.5rem;
  position: absolute;
  /*margin: 0 auto;*/
  margin-top: 18px;
  left: 0;
  right: 0;
  text-align: center;
}

input[type=radio]:checked + label {
  border-style: solid;
  border-color: green;
  background-color: hsla(120deg 41% 33% / 17%);
  box-shadow: 0 0 4px green, 1px 1px #0a560a, 1px 1px 0 1px white inset;
  padding-right: 30px;
  padding-left: 10px;
  font-weight: bolder;
}

input[type=radio]:checked + label:before {
  content: '';
  position: absolute;
  margin-top: 0;
  margin-left: 40px;
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='30' fill='green' title='check'%3E%3Cpath d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z' /%3E%3C/svg%3E");
  filter: drop-shadow(1px 2px 0px white);
}

/* OVERRIDING************ */
fieldset {
    border: 0 dotted grey;
    border-radius: 10px;
    background-color: #dfeaee3d;
    margin: 10px auto;
    padding-bottom: 3px;
    padding-top: 15px;
}

legend {
    position: relative;
    top: 15px;
}


/* EXPERIMENTAL ANIMATION OF DISABLED RADIOS 28-12-2022 */
.shaker {
/*   animation: kf_shake 0.4s 1 linear; */
  animation: kf_shake2 0.5s 1 linear;
}

/* .ahashakeheartache {
-webkit-animation: kf_shake 0.4s 1 linear;
-moz-animation: kf_shake 0.4s 1 linear;
-o-animation: kf_shake 0.4s 1 linear;
} */
/* @-webkit-keyframes kf_shake {*/
@keyframes kf_shake {
  0% { transform: rotate(15deg); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}

@keyframes kf_shake2 {
  0% { transform: translatex(7px); }
  20% { transform: translatex(-7px); }
  40% { transform: translatex(4px); }
  60% { transform: translatex(-4px); }
  80% { transform: translatex(2px); }
  100% { transform: translatex(0); }
}