body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: transparent; /* Прозрачный фон */
	font-family: 'Comfortaa', sans-serif;
	font-size: 14pt;
}

.button-container {
    display: none;
    width: 70%;
    /*display: grid;*/
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
}

.button-container-single {
    width: 20%;
}

.button {
    padding: 60px 20px;
    text-align: center;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

.login-form-container {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75); /* Задний фон с прозрачностью */
}

.login-form {
    background-color: #fefefe;
    margin: 20% auto;
    padding: 20px;
    border: 1px solid #888;
	border-radius: 10px;
    width: 30%;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
	font-family: 'Comfortaa', sans-serif;
	font-size: 14pt;
}




/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

/* Контейнер модального окна – теперь с flexbox для центрирования */
.prelogin-form-container {
    display: none;  /* при показе меняем на flex */
    position: fixed;
    /*top: 0;
    left: 0;*/
    width: 100%;
    height: 100%;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    overflow: auto;
}

/* Белое окно с адаптивной шириной и пропорциональными отступами */
.prelogin-form {
    background-color: #fefefe;
    padding: 2rem;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    min-height: 400px;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;   /* центрирование внутренних элементов */
    text-align: center;    /* выравнивание текста по центру */
}

/* Стилизация элементов формы с использованием относительных размеров */
.prelogin-form input[type="text"],
.prelogin-form input[type="password"],
.prelogin-form button {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: 'Comfortaa', sans-serif;
    font-size: 1em;
}

/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/

/*************************************************************************************************/
.login-code-container {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75);
}

.login-code {
    background-color: #fefefe;
    margin: 20% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
}

.login-code input[type="text"],
.login-code input[type="password"],
.login-code button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
	font-family: 'Comfortaa', sans-serif;
	font-size: 14pt;
}
/*************************************************************************************************/
/*************************************************************************************************/
.confirm-code-container {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75);
}

.confirm-code {
    background-color: #fefefe;
    margin: 20% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
}

.confirm-code input[type="text"],
.confirm-code input[type="password"],
.confirm-code button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
	font-family: 'Comfortaa', sans-serif;
	font-size: 14pt;
}
/*************************************************************************************************/
.big-text {
    font-size: 25pt;
    line-height: 1.5;
}
/*************************************************************************************************/

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


#wait_recall {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 999;
}

#wait_recall_popup {
    background-color: #fff;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    min-height: 400px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



#overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.75);
z-index: 999;
}

#popup {
background-color: #fff;
width: 300px;
padding: 20px;
border-radius: 10px;
text-align: center;
position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

#loading {
margin-top: 20px;
}

#overlay2 {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.75);
z-index: 999;
}

#popup2 {
background-color: #fff;
width: 45%;
padding: 20px;
border-radius: 10px;
text-align: center;
position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

#loading2 {
margin-top: 20px;
}

.logo {
    width: 100%; /* Ширина изображения равна ширине родительского контейнера */
    height: auto; /* Высота автоматически рассчитывается, чтобы сохранить пропорции изображения */
    border: 1px solid #ccc; /* Граница вокруг изображения */
    box-sizing: border-box; /* Граница включена в расчеты размеров */
    cursor: pointer; /* Изменение курсора при наведении */
    border-radius: 10px; /* Скругление углов для обрамления */
	padding:15px;
}

.logo:hover {
    box-shadow: 0 2px 6px #bfb8b8;
}