        body {
            font-family: Arial, sans-serif;
            display: flex;

            align-items: center;
			flex-direction: column;
            height: 100vh;
            background-color: #f7f7f7;
            margin: 0;
			padding: 0;
			overflow: hidden; /* Скриваме вертикалния скрол */
        }

        /* Заден фон на целия документ */
        body {
            background-image: url('');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
        }

        .drop-zone {
		    font-size: 25px;
            width: 40%;
			top: 20%;
            height: 20%;
            border: 2px dashed #999999;
            display: flex;
		    flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
			background-color: rgba(208, 226, 140, 0.3); /* Леко прозрачен фон, за да се вижда изображението зад */
          
            border-radius: 10px;
            color: #111111;
            cursor: pointer;
            position: absolute;

        }

        /* Ние добавяме фоновото изображение два пъти по-високо от зоната */
        .drop-zone::before {
            content: "";
            position: absolute;
            top: -50%; /* Позиционираме фоновото изображение на две височини */
            left: -50%;
            width: 200%;
            height: 200%; /* Двукратна височина спрямо drop зоната */
            background-image: url('main_banner.png');
            background-size: cover;
            background-position: center;
            z-index: -1; /* Поставяме изображението под текста */
        }


        .drop-zone.drag-over {
            background-color: #d0e7ff;
        }

        .drop-zone input[type="file"] {
            display: none; /* Скриваме стандартния бутон за избор на файл */
        }
		
/* Контейнер за таблицата, добавен скрол */
.table-container {
    width: 80%;
    top: 51%; /* Място между drop-zone и таблицата */
    max-height: 30%; /* Максимална височина на таблицата */
    overflow-y: auto; /* Активира вертикален скрол */
	position: absolute;

}	
		
 /* Стилове за таблицата */
        table {
			width: 100%;
            border-collapse: collapse;
			display:none;

        }


        table, th, td {
            border: 1px solid #ddd;
	
        }

        th, td {
            padding: 8px;
            text-align: center;
        }

        th {
            background-color: #f2f2f2;
        }

        button {
            padding: 5px 10px;
            background-color: #28a745;
            color: white;
            border: none;
            cursor: pointer;
        }

        button:hover {
            background-color: #218838;
        }
		

        .message {
            font-size: 18px;
            margin-top: 20px;
        }
		
		.break {
  flex-basis: 5%;
  height: 0;
}		

.link-input {
  width: 300px;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px; /* добавяме малко разстояние между полето и бутона */
}

#okButton {
  margin-top: 10px;
  padding: 5px 10px;
  cursor: pointer;
  border: 1px solid #ccc;
  background-color: #4CAF50;
  color: white;
  border-radius: 5px;
}

#okButton, .link-input {
  display: inline-block;
  vertical-align: middle;
}

    .progress-container {

    }
    .progress-bar {
      width: 100%;
      background-color: #f3f3f3;
      border-radius: 5px;
      height: 20px;
    }
    .progress {
      height: 100%;
      background-color: #4caf50;
      border-radius: 5px;
      width: 0%;
    }

/* Стил за подреждане на полетата на широчина и височина на един ред */
.size-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.size-info label {
  margin-right: 0px; /* Разстояние между елементите */
  font-size: 12px;
  width: 7%;
}

.size-info input {
  margin-right: 0px; /* Разстояние между елементите */
  font-size: 12px;
  width: 40%;
}

/* Модален прозорец */
/* Стилове за модалния прозорец */
#imageModal {
  position: fixed; /* Фиксираме модала на екрана */
  top: 50%; /* Центрираме по вертикала */
  left: 50%; /* Центрираме по хоризонтала */
  transform: translate(-50%, -50%); /* Правим точната центрираност */
  width: 70%; /* Широчина на модала 80% от широчината на екрана */
  height: 90%; /* Височина на модала 80% от височината на екрана */
border-radius: 1%; /* Променяй стойността за по-голямо или по-малко закръгляне */
  display: none; /* Скрит по подразбиране */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px); /* Замъгляване на задния фон */
  z-index: 1000; /* За да е над всички останали елементи */
  overflow: hidden; /* За да не излизат елементите извън модала */
  
  user-select: none; /* Забранява селектирането */
  -webkit-user-select: none; /* За WebKit браузъри */
  -moz-user-select: none; /* За Firefox */
  -ms-user-select: none; /* За IE/Edge */
}

/* Съдържание на модала */
.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center; 
  width: 100%;
  height: 100%;
      backdrop-filter: blur(5px); /* Замъгляване на задния фон */
  background-color: rgba(255, 255, 255, 0.7); /* Полупрозрачен фон за задната част */
  position: relative;
   /* Замъгляване на задния фон  background-color: rgba(222, 0, 255, 1); */
}
/* ------- */

/* Стилове за филтрите и бутоните отляво */
.filters {
  height: 90%;
  display: flex;
  padding: 10px;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 10px;
  /* Замъгляване на задния фон background-color: rgba(0, 0, 255, 1);*/
}

.filter-buttons {
  display: flex;
  flex-direction: row;
}

.filter-penSize {
  margin-bottom: 10px;

  background-color: #f0f0f0;
  color: #04AA6D;
  border: 1px solid #04AA6D;
  cursor: pointer;
  text-align: left;
    border-radius: 5px;
}

.filter-btn {

  padding: 7px;
  background-color: #f0f0f0;
  color: #04AA6D;
  border: 1px solid #04AA6D;
  cursor: pointer;
  border-radius: 5px;
}

.filter-btn-crop {
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f0f0f0;
  color: #04AA6D;
  border: 1px solid #04AA6D;
  cursor: pointer;
  text-align: left;
    border-radius: 5px;
}

.filter-btn:hover {
  background-color: #ddd;
}


/* Стил за натиснатия бутон */
.filter-btn.active {
  background-color: #ddd; /* Променя фона на бутон, когато е активен */
  color: 04AA6E; /* Променя цвета на текста, когато бутонът е активен */
  transform: scale(1.05); /* Малко уголемяване за ефект */
}

/* Стилове за слайдерите */
.filter-sliders {
  display: none; /* Скрити слайдери по подразбиране */
  margin-top: 20px;
}

         .textbox {
            position: absolute;
            min-width: 100px;
            min-height: 30px;
            background: transparent;
            border: none;
            cursor: move;
            user-select: none;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            transform-origin: center;
            color: black;
            font-size: 16px;
            font-weight: bold;
            white-space: nowrap;
            pointer-events: auto;
        }
        .textbox.selected {
            border: 1px dashed black;

        }


/* Стили за дръжките за промяна на размера */
.top-left, .top-right, .bottom-left, .bottom-right {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 10;
}
.top-left { top: -3px; left: -3px; cursor: nwse-resize; }
.top-right { top: -3px; right: -3px; cursor: nesw-resize; }
.bottom-left { bottom: -3px; left: -3px; cursor: nesw-resize; }
.bottom-right { bottom: -3px; right: -3px; cursor: nwse-resize; }
		
		
        .rotate-handle {
            width: 8px;
            height: 8px;
            background: red;
            cursor: grab;
        }
		
		
        .textBoxContainer {
position: absolute
            background: red;
			background-color: Gray;
	height: 111px;
  width: 333px; 
  left: 1px;
  top:: 1;
        }

#progressBarContainer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 80%;
    height: 5px;
    background: #ccc;
    transform: translateX(-50%);
    display: none;
}

#progressBar {
    width: 0%;
    height: 100%;
    background: #007bff;
    transition: width 0.3s;
}

.wait-cursor {
    cursor: wait !important;
}

.slider-container {
 display: flex;
  justify-content: space-between; /* Едното вляво, другото вдясно */
  align-items: center;
    margin-left: 10px;
	  margin-right: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  /* background-color: #ddd; */
}


/* Нов стил за елементите слайдери и стойности */
.filter-control {
  display: flex;
  align-items: center;
  background-color: #00a700;

}

/* Стилове за всеки слайдер */
.filter {
  margin-bottom: 15px;
}

input[type="range"] {
	  margin-top: 5px;
}



/* Контейнер за изображението */
.image-container {
 /*  width: 85%; Изображението заема по-голямата част от прозореца */
  height: 85%;

   width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
	position: relative;
            
      background-color: rgba(0, 255, 0, 1); /* Полупрозрачен фон за задната част */
}

.image-slider-container{
 /*  width: 85%; Изображението заема по-голямата част от прозореца */
  height: 90%;
  text-align: center;
    width: 100%;
    background-color: rgba(0, 0, 255, 1); /* Полупрозрачен фон за задната част */
}

#hardmixSliderContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#hardmixSliderContainer > div {
  flex: 1;
  display: flex;
}

#hardmixSliderContainer > div:last-child {
  gap: 10px; /* разстояние между бутоните */
}

#hardmixSliderContainer button,
#hardmixSliderContainer a {
  white-space: nowrap; /* предотвратява пренасяне на нов ред */
}

/* Стилове за изображението */
#modalImage {
  width: 100%;
  height: auto;
  max-height: 100%;
position: absolute;
 display: block;
}

#imageCanvas {
  position: absolute;
  background-color: transparent; /* За да е невидим фонът */
  z-index: 5; /* Канвасът да е над снимката */
  
}

#imageCanvasPreview {
  position: absolute;
  pointer-events: none; /* Мишката да минава през кръгчето */
  border: 1px solid #888; /* Сив контур */
  border-radius: 50%; /* Кръгла форма */
  background: rgba(222, 0, 0, 0.1); /* Лека сянка */
  transform: translate(-50%, -50%);  /*Центриране по средата на курсора */
  /*display: none;  Първоначално скрито */
  z-index: 1000; /* Най-отгоре */
}


/* Бутон за затваряне */
#closeModal {
  position: absolute;
  top: 3%;
  right: 1%;
  font-size: 24px;
  color: #333;
  background-color: transparent;
  border: none;
  cursor: pointer;

}

/* Бутон за изтегляне на изображението */
.download-btn {
  position: relative;
  width: 10%;
  top: 10%;

  padding: 10px;


  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

.download-btn:hover {
  background-color: #0056b3;
}