/* ==================== */
/* WATERMARKPRO СТИЛИ   */
/* ==================== */

/* Подключение шрифтов */
@font-face {
    font-family: 'Artika_font-Regular';
    src: url('../../fonts/Artika_font-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'AstakhovFlacon_0';
    src: url('../../fonts/AstakhovFlacon_0.otf') format('opentype');
}

@font-face {
    font-family: 'DejaVuSans';
    src: url('../../fonts/DejaVuSans.ttf') format('truetype');
}

@font-face {
    font-family: 'DesyatiyRegular';
    src: url('../../fonts/DesyatiyRegular.ttf') format('truetype');
}

@font-face {
    font-family: 'DmitrievaSP';
    src: url('../../fonts/DmitrievaSP.otf') format('opentype');
}

@font-face {
    font-family: 'DreiFraktur';
    src: url('../../fonts/DreiFraktur.ttf') format('truetype');
}

@font-face {
    font-family: 'GeneralFailureRegular';
    src: url('../../fonts/GeneralFailureRegular.ttf') format('truetype');
}

@font-face {
    font-family: 'Kuhlenbach';
    src: url('../../fonts/Kuhlenbach.ttf') format('truetype');
}

@font-face {
    font-family: 'LiberationSans-Regular';
    src: url('../../fonts/LiberationSans-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'MolliWrites-Script';
    src: url('../../fonts/MolliWrites-Script.otf') format('opentype');
}

@font-face {
    font-family: 'NotoSans-Regular';
    src: url('../../fonts/NotoSans-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'PassionsConflictRUS-Regular';
    src: url('../../fonts/PassionsConflictRUS-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'PastryChefCyrillic-Script';
    src: url('../../fonts/PastryChefCyrillic-Script.otf') format('opentype');
}

@font-face {
    font-family: 'UraBumBumSP';
    src: url('../../fonts/UraBumBumSP.otf') format('opentype');
}

@font-face {
    font-family: 'Verdana';
    src: url('../../fonts/Verdana.ttf') format('truetype');
}

/* Модальное окно */
.modal {
    z-index: 1050 !important;
}

.modal-backdrop.show {
    z-index: 1040 !important;
}

/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1, h2, h3 {
    color: #007bff;
}

/* Форма загрузки файлов */
#uploadForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#uploadForm label {
    font-weight: bold;
}

#uploadForm input[type="file"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
}

#uploadForm input[type="text"],
#uploadForm input[type="color"],
#uploadForm input[type="number"],
#uploadForm select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
}

#uploadForm button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#uploadForm button:hover {
    background-color: #0056b3;
}

/* Прогресс-бар */
#progressBar {
    width: 100%;
    margin: 20px 0;
}

.progress-bar {
    background-color: #007bff;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
}

/* Предпросмотр файлов */
#previewSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.preview-image {
    width: 300px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.file-name {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

.download-button {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.download-button:hover {
    background-color: #0056b3;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    margin: 10% auto;
    width: 80%;
    max-width: 600px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.modal-header h5 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-header button {
    background: none;
    border: none;
    font-size: 18px;
    color: #007bff;
    cursor: pointer;
}

.modal-body {
    padding: 20px 0;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Скрываемый контент (спойлер) */
.spoiler-content {
    display: none;
    padding: 10px;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #f0f0f0;
}

.spoiler-header {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
    text-align: center;
}

.spoiler-header:hover {
    color: #0056b3;
}

/* Кукис-баннер */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    display: none;
    z-index: 9999;
}

.cookie-banner button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.cookie-banner button:hover {
    background-color: #0056b3;
}

/* Слайдер прозрачности */
.opacity-slider {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.opacity-slider .slider-progress {
    position: relative;
    top: 0;
    left: 0;
    height: 20px;
    background-color: #fff;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.opacity-slider .slider-progress .progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Контейнеры примеров */
.sample-container {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

.sample-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.sample-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    font-family: 'Artika_font-Regular', sans-serif;
}

.sample-container-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .modal-content {
        width: 90%;
    }

    .sample-container-wrapper {
        flex-direction: column;
        align-items: center;
    }
}