@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
    /* Общий стиль */
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    transform-origin: top left;
    transition: transform 0.3s ease-in-out;
}

button, .delete-button, .userinfo-button, .line-list, .line-list li, .line-list-container, .line-list-block, .line, .line_description, .search-input, .edit-input, .form-box, .form-header, .inputbox, .inputbox-readonly, .under-text-forget, .under-text, .error, .modal, .modal-content, .form-select, select {
    transition: all 0.3s ease-in-out;
}

@media (max-width: 1200px) {
    body {
        transform: scale(0.8);
    }

    button, .delete-button, .userinfo-button, .line-list, .line-list li, .line-list-container, .line-list-block, .line, .line_description, .search-input, .edit-input, .form-box, .form-header, .inputbox, .inputbox-readonly, .under-text-forget, .under-text, .error, .modal, .modal-content, .form-select, select {
        font-size: 0.8em;
    }
}

@media (max-width: 992px) {
    body {
        transform: scale(0.7);
    }

    button, .delete-button, .userinfo-button, .line-list, .line-list li, .line-list-container, .line-list-block, .line, .line_description, .search-input, .edit-input, .form-box, .form-header, .inputbox, .inputbox-readonly, .under-text-forget, .under-text, .error, .modal, .modal-content, .form-select, select {
        font-size: 0.7em;
    }
}

@media (max-width: 768px) {
    body {
        transform: scale(0.6);
    }

    button, .delete-button, .userinfo-button, .line-list, .line-list li, .line-list-container, .line-list-block, .line, .line_description, .search-input, .edit-input, .form-box, .form-header, .inputbox, .inputbox-readonly, .under-text-forget, .under-text, .error, .modal, .modal-content, .form-select, select {
        font-size: 0.6em;
    }
}

@media (max-width: 576px) {
    body {
        transform: scale(0.5);
    }

    button, .delete-button, .userinfo-button, .line-list, .line-list li, .line-list-container, .line-list-block, .line, .line_description, .search-input, .edit-input, .form-box, .form-header, .inputbox, .inputbox-readonly, .under-text-forget, .under-text, .error, .modal, .modal-content, .form-select, select {
        font-size: 0.5em;
    }
}

.nobullet {
    /* Удаление из списка точек*/
    list-style-type: none;
}

button {
    /* Общий стиль для кнопок*/
    width: 100%;
    height: 40px;
    border-radius: 15px;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    margin-top: 20px;
}

button:hover {
    /* Анимация при наведении на кнопку */
    background: #e0e0e0;
}

button:active {
    /* Анимация при нажатии на кнопку */
    background: #c0c0c0;
}

.delete-button {
    width: 40%;
    height: 30px;
    border-radius: 15px;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    margin-top: 20px;
}

.delete-button:hover {
    /* Анимация при наведении на кнопку */
    background: #e0e0e0;
}

.delete-button:active {
    /* Анимация при нажатии на кнопку */
    background: #c0c0c0;
}

.top-bar {
    /* Шапка сайта */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #15616D;
    height: 50px;
    color: #fff;
    padding-left: 10px;
}

.userinfo {
    /* Блок с инфо о юзере */
    height: 100%;
    position: relative;
    display: flex;
    align-items: start;
    background-color: #FFECD1;
    color: #001524;
    border-bottom-left-radius: 30px;
}

.userinfo-button {
    /* Кнопка в блоке с инфо о юзере */
    width: 100%;
    height: 20%;
    border-radius: 5px;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
}

.userinfo-button:hover {
    /* Анимация при наведении на кнопку в userinfo */
    background: #e0e0e0;
}

.userinfo-button:active {
    /* Анимация при нажатии на кнопку в userinfo */
    background: #c0c0c0;
}

.line-list {
    /* Блок со списком линий */
    list-style-type: none;
    width: 650px;
    height: 600px;
    color: #001524;
    overflow-y: auto;
}

.line-list li {
    /* Каждый элемент списка line-list */
    padding: 15px;
    margin-bottom: 30px;
    cursor: pointer;
    width: 615px;
    height: 20px;
    background: #fff;
    border-radius: 10px;
}

.line-list li:hover {
    /* Анимация при наведении на элемент списка line-list */
    background-color: #FFECD1;
}

.line-list-container {
    /* Пустой div для записи туда line + line_description */
    display: flex;
    margin-left: 40px;
    margin-top: 25px;
}

.line-list-block{
    width: 800px;
    height: 800px;
    background: #FF7D00;
    border-radius: 15px;
    padding: 25px;
    font-family: Roboto, serif;
    font-size: 16px;
    font-weight: bolder;
}

.line {
    /* Элемент, который выводится в line-list-container */
    background: #FFECD1;
    border-radius: 10px;
    width: 600px;
    height: 500px;
    margin: 15px;
    padding: 15px;

}

.line_description {
    /* Блок который заполняет line-list-container, когда мы выбираем элемент в line-list */
    border-radius: 15px;
    padding: 25px;
    margin-left: 10px;
    width: 650px;
    height: 800px;
    background: #FF7D00;
    font-family: Roboto, serif;
    font-size: 16px;
    font-weight: bolder;
    color: #001524;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;

}

.search-input {
  width: 650px; /* Устанавливаем ширину поля поиска */
  padding: 8px; /* Добавляем внутренний отступ, чтобы текст не прилипал к границам поля */
    margin-bottom: 25px;
  border: 1px solid #ccc; /* Устанавливаем границу поля */
  border-radius: 4px; /* Добавляем скругленные углы */
  box-sizing: border-box; /* Учитываем границы и отступы при расчете размеров */
  font-size: 16px; /* Устанавливаем размер текста */
}

.search-input:focus {
  outline: none; /* Убираем обводку при фокусе на поле */
  border-color: #007bff; /* Изменяем цвет границы при фокусе */
}

.edit-input {
  width: 500px; /* Устанавливаем ширину поля редактирования */
  padding: 8px; /* Добавляем внутренний отступ, чтобы текст не прилипал к границам поля */
  border: 1px solid #ccc; /* Устанавливаем границу поля */
  margin-bottom: 30px;
  border-radius: 10px; /* Добавляем скругленные углы */
  box-sizing: border-box; /* Учитываем границы и отступы при расчете размеров */
  font-size: 16px; /* Устанавливаем размер текста */
}

.edit-input:focus {
  outline: none; /* Убираем обводку при фокусе на поле */
  border-color: #007bff; /* Изменяем цвет границы при фокусе */
}


/* Цвет полосы прокрутки */
::-webkit-scrollbar {
    width: 10px; /* Ширина полосы прокрутки */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Цвет фона трека (фон, по которому перемещается ползунок) */
}

::-webkit-scrollbar-thumb {
    background: #888; /* Цвет ползунка */
}

::-webkit-scrollbar-thumb:hover {
    background: #555; /* Цвет ползунка при наведении */
}



@keyframes fadeIn {
    /* Анимация появления line_description */
    0% {
        opacity: 0;
        transform: translateX(0);
    }
    100% {
        opacity: 1;
        transform: translateX(20px);
    }
}

section {
    /* Блок на странице, который содержит блок формы */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-position: center;
    background-size: cover;
}

.form-box {
    /* Блок формы */
    position: relative;
    max-width: 90%;
    background-color: #FF7D00;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    padding: 20px;
}

.form-header {
    /* Оглавление формы */
    font-size: 2em;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

.inputbox {
    /* Блок поля ввода */
    position: relative;
    margin: 40px 0;
    width: 400px;
    border-bottom: 2px solid #fff;
}

.inputbox-readonly {
    /* Блок поля ввода которое нельзя редактировать */
    position: relative;
    margin: 40px 0;
    width: 400px;
    border-bottom: 2px solid #fff;
}

.inputbox label {
    /* Заголовок поля ввода */
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1em;
    pointer-events: none;
    transition: .5s;
}

.inputbox-readonly label {
    /* Заголовок поля ввода, которое нельзя редактировать */
    position: absolute;
    top: -5px;
    left: 5px;
    color: #fff;
    font-size: 1em;
    pointer-events: none;
}

input:focus ~ label, input:valid ~ label {
    /* Анимация для заголовка поля ввода */
    top: -5px;
}

.inputbox input {
    /* Поле ввода */
    width: 100%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 0 10px;
    color: #fff;
}

.inputbox-readonly input {
    /* Поле ввода, которое нельзя редактировать */
    width: 100%;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 0 10px;
    color: #fff;
}

.inputbox input:-webkit-autofill {
    /* Стиль для очистки стилей автозаполнения браузера */
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

.under-text-forget {
    /* Ссылка "Забыли пароль?" */
    font-size: .9em;
    text-align: center;
    margin: 25px 0 10px;
    font-weight: bolder;
}

.under-text {
    /* Текст внизу формы */
    font-size: .9em;
    color: #fff;
    text-align: center;
    margin: 25px 0 10px;
}

.under-text p a {
    /* Блок параграфа в котором находится текст внизу формы */
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

.under-text p a:hover {
    /* Анимация для текста внизу формы */
    text-decoration: underline;
}

.error {
    /* Стили для ошибок */
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
}


/* МОДАЛЬНОЕ ОКНО */
/* Скрыть модальное окно по умолчанию */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

/* Контейнер содержимого модального окна */
.modal-content {
  border-radius: 15px;
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 30%;
}

/* Кнопка закрытия модального окна */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
/* МОДАЛЬНОЕ ОКНО */

.form-select {

    background: #ffffff;
    overflow: hidden;
    border: 1px solid #cbcbcb;
    border-radius: 3px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.07);


    &:focus,
    &:hover {
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    }

    &:after {
        content: '▾';
        position: absolute;
        top: 0;
        right: 12px;
        z-index: 1;
        color: #bbbbbb;
        line-height: 40px;
        font-size: 14px;

        .ie & {
            display: none;
        }
    }
}

select {
    position: relative;
    background: transparent;
    background-image: none;
    display: block;
    width: 100%;
    outline: none;
    color: #888888;
    cursor: pointer;
    z-index: 2;
    border: none;
    padding: 10px 10px 10px 5px;
    // This is so hacky.. (for Firefox)
    // Removes the default select arrow.
    text-overflow: '';
    text-indent: 5px;
    // End of brutal hack


    &[multiple=multiple] {
        height: auto;
        border: 1px solid #cbcbcb;
        border-radius: 3px;
        box-shadow: 0 0 1px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.07);

        &:hover {
            border-color: #cccccc;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        }
    }

    option[disabled] {
        color: #eeeeee;
        text-shadow: none;
        border: none;
    }
}

select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #888888;
}

select::-ms-expand {
    display: none;
}

/*.column-6 {*/
/*   position: absolute;*/
/*   top: 50%;*/
/*   left: 50%;*/
/*   margin: -20px 0 0 -150px;*/
/*   width: 300px;*/
/*}*/