.texture-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.texture-modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    max-width: 1000px;
    border-radius: 8px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    min-width: 500px;
    max-width: 70%;
    border-radius: 8px;
}

.header {
    display: flex;
    justify-content: space-between; /* Выравнивание заголовка и кнопки по краям */
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

.close {
    color: #aaa;
    float: right;
    font-size: 20px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

img#largeImage {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.texture-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.texture-placeholder {
    width: 80px;
    height: 80px;
    margin: 10px; 
    background-color: #f0f0f0;
    display: inline-block;
}

.texture-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0; /* Убираем отступ у картинки */
}

/* Стили для выбранной текстуры (с выделением рамкой) */
.texture-placeholder img.selected {
    border: 9px solid  #152e4c; /* Синяя рамка для выделенной текстуры */
}

img#largeImage {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

#project_picture {
    max-width: 70%;
}

#project_info {
    /* max-width: 28%; */
    padding-left: 20px;
}

#usedTextures ol {
    padding-left: 20px; /* Отступ слева для списка */
    margin: 0; /* Убираем внешние отступы */
    list-style-position: inside; /* Перемещаем номера внутрь блока */
}

#project_close_cross {
    position: absolute;
    right: calc(30% + 20px);
    transform: translateY(-50%); /* Центрирование */
}

.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.project-placeholder {
    position: relative;
    height: 200px;
    width: auto;
    margin: 10px; /* Оставляем как было */
    background-color: #f0f0f0;
    display: inline-block;
}

.project-placeholder img {
    display: block;
    height: 100%;
    width: auto;
    margin: 0;
}

/* Стили для кастомного tooltip */
.tooltip {
    position: absolute;
    background-color: #152e4c;
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

table {
    border-collapse: collapse;
    width: auto;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

th, td {
    border: 1px solid black;
    padding: 5px;
    vertical-align: middle;
}

.texture-cell img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.texture-cell {
    align-items: left;
    margin-left: 5px;
    vertical-align: middle;
}

.texture-cell span {
    font-size: 14px;
    vertical-align: middle;
}

.count-cell, .index-cell {
    text-align: center;
}

.area-cell {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

#re_save_project {
    display: none;
}   


#project_size {
    display: none;
}   