/* ========== MODAL START ========== */

/* свойства модального окна по умолчанию */
.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 100ms ease-in; /* анимация перехода */
    pointer-events: none; /* элемент невидим для событий мыши */
    margin: 0;
    padding: 0;
}
/* при отображении модального окно */
.modal:target {
    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.25rem;
    font-weight: 500;
}
/* свойства для кнопки "Закрыть" */
.close {
    float: right;
    font-family: 'Material Icons', sans-serif;
    font-size: 40px;
    font-weight: 300;
    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;
}

/* ========== MODAL END ========== */

/* ========== ICONS START ========== */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialicons/v92/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
  }
  
  .material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 90%;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
  }

/* ========== ICONS END ========== */


/*
font-family: 'Playfair Display', serif;
font-family: 'Raleway', sans-serif;
font-family: 'Play', sans-serif;
*/
.table tr {
    border-top: 1px;
    border-bottom: 1px;
    border-color:lightgrey;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
}


h1, h2, h3, h4, h5, h6 {
    margin-top: 7px;
    margin-bottom: 5px;
    font-weight:700;
}

.sect1 > h1 {
    margin: 0;
}

body, html {
    position: relative;
    overflow-x: hidden;

}

.header {
    width: 100%;
    height: 70px;
    background: linear-gradient(to left, #2b5876, #4e4376);
    padding: 5px;
    color: white;
    display: block;
    padding-left: 15px;
    padding-right: 15px;
}
.header .brand-name, .brand-name .a {
    float:left;
    font-size: 5vh;
    font-family: 'Raleway', sans-serif;
    width: auto;
    position:unset;
    transition: 200ms ease-in-out;
    height: 70px;
    line-height: 60px;

}

.header .sect1 {
    clear:inline-end;
    width: auto;
    position: unset;
    text-align: right;

}

.header .sect2 {
    width: 64px;
}

.header a {
    color: white;
}

.catinfo {
    font-weight: 300;
    font-style: oblique;
    font-family: 'Raleway', sans-serif;
}

.menu {
    position: absolute;
    right: 2px;
    top: 4px;
    font-size: 400%;
    color: white;
    display: inline-block;
}

.brand-name > a {
    color: white;
    font-family: 'Play', sans-serif;
    font-weight: 100;
    
    
}

.brand-name > a:hover {
    color: lightgrey;
}

.content {
    font-size: 100%;
    margin-left: 4%;
    margin-right: 4%;
}

.table {
    width: 50%;
    float: left;
    padding: 20px;
    height: -moz-calc(100% - 70px);
    height: -webkit-calc(100% - 70px);
    height: calc(100% - 70px);

}
.table > table {
    width: 100%;
}

.sidebar {
    width: 30%;
    /*background: rgb(216, 216, 216);*/
    float: right;
    padding: 20px;
    /*height: calc(100%);*/
}

.table .item {
    vertical-align: middle;
    padding: 5px;
    margin: 0;
}



.table .name {
    width: 30%;
    margin: 0;
    font-weight: 800;
    font-size:100%;
}

.table .description {
    width: 70%;
    margin: 0;
    font-weight: 500;
}

.sidebar p, .sidebar a, .sidebar-new p, .sidebar-new a {
    font-family: 'Raleway', sans-serif;
    text-align: left;
}

.item {
    /*background: rgb(235, 235, 235);*/
    background: white;
    height: 60px;
    padding: 18px;
}
/*
.item:hover {
    background: rgb(172, 172, 172);
    cursor: pointer;
} 

.item:nth-child(2n) {
    background: white;
}
/*
.item:nth-child(2n):hover {
    background: rgb(172, 172, 172);
    cursor: pointer;
}*/

.auth-true {
    color:limegreen;
}

.auth-false {
    color: maroon;
}

.admin-item {
    color: rgb(172, 172, 172);
    height: 30px;
}

.admin-item:hover {
    background: rgb(172, 172, 172);
    color:white;
    height: 30px;
}

@media (min-width: 901px) {
    .header .sect2 {
        visibility: hidden;
    }
    .sect1-new {
        display: none;
    }
    /*
    * {
        overflow: hidden;
    } */
    .table {
        overflow-y: visible;
    }
    .sidebar-new {
        display: none;
    }
}
@media (min-width: 768px) and (max-width: 900px) {
    .sect1 {
        display: none;
    }
    .sect2 {
        visibility:visible;
    }
    * {
        overflow: hidden;
    }
    .table {
        overflow-y: visible;
    }
    .sidebar-new {
        display: none;
    }
}
@media (max-width: 767px) {
    .sect1 {
        display: none;
    }
    .sect2 {
        visibility:visible;
    }
    .sidebar {
        width:100%;
        float: left;
        display: none;
    }
    .table {
        width: 100%;
        float: none;
    }
}

.sect1-new {
margin-bottom:20px;
}

.card {
          padding: 20px;
          background-color: #fff;
          border-radius: 20px;
          box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
        }
        
.buttons-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.buttons-container > * {
    margin-right: 10px; /* Расстояние между элементами */
    margin-bottom: 10px; /* Отступ снизу, чтобы кнопки не слипались */
}

.upper-card-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}
.upper-card-container .card {
    margin-right: 15px;
    flex: 1 1 calc(50% - 15px); /* Изменено: Устанавливает ширину карточки */
}

.card:last-child {
    margin-right: 0;
}

.popup-button {
    width: 200px;
    height: 46px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

@media (max-width: 1200px) {
    .upper-card-container {
        flex-direction: column;
    }

    .upper-card-container  .card {
        margin-right: 0;
        margin-bottom: 20px;
        flex: 1 1 100%; /* Изменено: Устанавливает ширину карточки на 100% */
    }

    .card:last-child {
        margin-bottom: 0;
    }
}

a {
    color: #625494;
}
   A:link { 
    text-decoration: none; /* Убирает подчеркивание для ссылок */
   } 
   A:visited { text-decoration: none; } 
   A:active { text-decoration: none; }
   A:hover {
    text-decoration: none; /* Делает ссылку подчеркнутой при наведении на нее курсора */
    color: #4e4376; /* Цвет ссылки */
   } 
.highlight {background:#221d33;}
.adminlink {
    color:#F8F8FF;
    font-size:50%;
}

 /* CSS styles for the popup window */
        .popup {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 80%;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
            z-index: 9999;
            transition: opacity 0.3s;
            display:none;
        }

        .popup.open {
            display:flex;
            opacity:1;
        }

        .popup-inner {
            padding: 20px;
        }

        .popup-title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .popup-message {
            font-size: 16px;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .popup-button {
            display: inline-block;
            padding: 10px 20px;
            color: white;
            background-color: #2b5876;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
        }

        .popup-button:hover {
            background-color: #4e4376;
        }

        .popup-close {
            position: absolute;
            top: 10px;
            right: 10px;
            color: #888;
            font-size: 20px;
            cursor: pointer;
        }

        .popup-close:hover {
            color: #555;
        }
        
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 9998;
            display: none;
        }
        
        .popup-overlay.open {
            display: block;
        }
        
        .input-field {
            display: inline-block;
            padding: 10px 20px;
            color: black;
            background-color: #f5f5f5;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: text;
            outline: none;
        }

        .input-field:hover {
            background-color: #ebebeb;
        }

        .input-field:focus {
            box-shadow: 0 0 5px #ebebeb;
        }
/* Стили для опроса */
        .survey-container {
            margin-top: 20px;
            padding: 15px;
            background-color: #f1f1f1;
            border-radius: 5px;
            border: 1px solid #ccc;
        }
        .survey-container label {
            margin-right: 10px;
        }
        .survey-container input[type='submit'] {
            margin-top: 10px;
            padding: 5px 10px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }
        .survey-container input[type='submit']:hover {
            background-color: #45a049;
        }
