html, body {
  height: 100%;
  margin: 0;
  font-family: "Instrument Sans", Arial, sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-y: auto;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: clamp(16px, 3vw, 48px);

  background: none;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background-image: url("background2.jfif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.coffeeLink {
  background: linear-gradient(
    135deg,
    #ffdd00 0%,
    #ffc700 45%,
    #f2a900 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  font-weight: 700;
}

.supportLink {
  color: #ffffff;
  margin-bottom: 30px;
}

.supportMail {
  background: linear-gradient(135deg, #3b3bff, #c400ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  font-weight: 600;
  text-decoration: none;
}

.supportMail:hover {
  filter: brightness(1.15);
}

.paypalLink {
  background: linear-gradient(135deg, #003087, #009cde);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  font-weight: 600;
  text-decoration: none;
}

.subheading1 {
	max-width: min(820px, 92vw);
  color: #fff;
  font-style: italic;
  margin-bottom: clamp(10px, 1.2vw, 20px);
  font-size: clamp(14px, 1.2vw, 18px);
  opacity: 0.95;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);

  width: min(1200px, 92vw);
  margin: 0;
  text-align: center;
}

.supportText {
  color: white;
  font-size: 1rem;
  margin-top: 40px; 
}

.menu-box {
  width: min(720px, 92vw);
  background: rgba(30, 30, 30, 0.5) !important;
  backdrop-filter: blur(20px) saturate(180%) !important; 
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
  max-height: 80px !important;
  border-top: 1px solid rgba(255,255,255, 0.2) !important;
  border-bottom: 1px solid rgba(255,255,255, 0.2) !important;
  border-radius: 50px;
  padding: 12px 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

}

.logo {
  font-weight: 700;
  text-decoration: none;
  color: #111;
}

.menu-links {
  position: relative;
  display: flex;
  gap: 8px;
}

.menu-item {
  position: relative;
  z-index: 1;
  padding: clamp(8px, 0.8vw, 12px) clamp(12px, 1.2vw, 18px);
  font-size: clamp(14px, 1.1vw, 16px);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

.menu-item.active {
  color: #fff;
}

.menu-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f8f86, #2d5650);
  box-shadow: 0 0 14px rgba(79, 143, 134, 0.55);
  transition: transform 280ms cubic-bezier(.2,.9,.2,1),
              width 280ms cubic-bezier(.2,.9,.2,1);
}

.cta {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 50px;
  background: rgba(0,0,0,0.06);
}

.cta:hover {
  background: rgba(0,0,0,0.1);
}

.content-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: rgba(30, 30, 30, 0.5) !important;
  backdrop-filter: blur(20px) saturate(180%) !important; 
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
  height: auto;
  border-top: 1px solid rgba(255,255,255, 0.2) !important;
  border-bottom: 1px solid rgba(255,255,255, 0.2) !important;
  border-radius: 25px;
  width: min(720px, 92vw);
  min-height: clamp(260px, 32vh, 520px);
  padding: clamp(18px, 2vw, 28px);
  box-shadow: 0 14px 45px rgba(0,0,0,0.35);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

#pdfQualityWrap {
  display: flex;
  flex-direction: column;
  align-items: center;      /* horizontálne centrovanie */
  justify-content: center;  /* ✅ vertikálne centrovanie */
  gap: 10px;
  width: 80%;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f8f86, #2d5650);
  border-top: 1px solid rgba(255,255,255, 0.2) !important;
  border-bottom: 1px solid rgba(255,255,255, 0.2) !important;
  box-shadow: 0 0 14px rgba(79, 143, 134, 0.55);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;

  width: 18px;
  height: 18px;
  border-radius: 50%;

  background: #ffffff;
  border: 2px solid #2d5650;
  box-shadow: 0 0 12px rgba(79, 143, 134, 0.6);

  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 18px rgba(79, 143, 134, 0.85);
}


.content-box:hover {
  outline: 1px solid #fff;
  outline-offset: 5px;
}

.content-box.drag-over {
  outline: 2px dashed rgba(255,255,255,0.6);
  outline-offset: 6px;
  transform: translateY(-1px);
}

.file-status {
  margin-top: 12px;
  margin-bottom: 20px;
  font-size: 18px;
  opacity: 1;
  color: #fff !important;
}

/* action buttons wrapper */
.file-actions {
  display: none;              /* zobrazí sa až po uploadnutí */
  gap: 12px;
  justify-content: center;
}

/* buttons */
.btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn.primary {
  background: linear-gradient(135deg, #4f8f86, #2d5650);
  box-shadow: 0 0 14px rgba(79, 143, 134, 0.55);
  color: #fff;
}

.btn.download {
  background: linear-gradient(135deg, #4f8f86, #2d5650);
  box-shadow: 0 0 14px rgba(79, 143, 134, 0.55);
  color: #fff;
  margin-bottom: 15px;
}

.btn.primary:hover {
  opacity: 0.7;
}

.btn.ghost {
  background: linear-gradient(135deg, #ff6b6b, #b83232);
  box-shadow: 0 0 18px rgba(255, 107, 107, 0.6);
  color: #fff !important;
}

.btn.ghost:hover {
  opacity: 0.7;
}

.content-box img {
  max-width: 128px;
  height: auto;
  margin-top: 70px;
  margin-bottom: 20px;
}

.heading {
  font-size: clamp(28px, 3.2vw, 64px);
  color: #fff;
  line-height: 1.05;
}

.dragndropTitle {
  color: #cccccc;
  font-style: italic;
  font-size: 25px !important;
  text-align: center;
}

.submenu-wrap {
  margin-top: 5px;
  display: flex;
  justify-content: center;
}

.submenu-wrap.show {
  animation: subIn 180ms ease-out;
}

@keyframes subIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* pill submenu */
.submenu-links{
  position: relative;
  display: flex;
  gap: 8px;
  padding: 6px;              /* ✅ priestor od okrajov kapsule */
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.5) !important;
  backdrop-filter: blur(20px) saturate(180%) !important; 
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
  max-height: 80px !important;
  border-top: 1px solid rgba(255,255,255, 0.2) !important;
  border-bottom: 1px solid rgba(255,255,255, 0.2) !important;
}

.submenu-item {
  position: relative;
  z-index: 1;
  padding: 8px 12px;   /* ⬅️ presná veľkosť pillu */
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  line-height: 1;      /* ⬅️ opticky vycentruje text */
}

.submenu-item.active {
  color: #fff;
}

/* INDICATOR */
.submenu-indicator{
  position: absolute;
  top: 6px;                  /* ✅ rovnaké ako padding */
  left: 6px;                 /* ✅ rovnaké ako padding */
  height: calc(100% - 12px); /* ✅ 2x padding */
  width: 0;
  border-radius: 999px;

  background: linear-gradient(135deg, #4f8f86, #2d5650);
  box-shadow: 0 0 14px rgba(79, 143, 134, 0.55);

  transition: transform 280ms cubic-bezier(.2,.9,.2,1),
              width 280ms cubic-bezier(.2,.9,.2,1);
  will-change: transform, width;
}

/* kontajner pre bloky */
.file-list {  
  display: flex !important;
  flex-wrap: wrap;          /* ✅ zalamovanie na nový riadok */
  gap: 14px;
  justify-content: center;  /* alebo flex-start ak chceš zarovnanie doľava */
  width: 100%;
  margin-top: 16px;
  margin-bottom: 20px;
}

/* jeden "štvorček" */
.file-row {
  position: relative;
  flex: 0 0 100px;
  width: 100px; 
  aspect-ratio: 1 / 1; 
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  cursor: grab;
  transition: transform 180ms ease, background 180ms ease;
}

.file-row:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.26);
}

.file-row:active {
  cursor: grabbing;
}

.file-row-left {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.drag-handle {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: grab;
  user-select: none;
}

.file-row-num {
  position: absolute;
  top: 10px;
  left: 10px;

  font-size: 12px;
  font-weight: 600;

  padding: 4px 8px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.45);
  color: #fff;

  line-height: 1;
  pointer-events: none;
}

.file-row-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: center;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-row-size {
  font-size: 13px;
  opacity: 0.75;
  text-align: center;
  color: #9AF764;
}

/* SortableJS stavy */
.drag-ghost {
  opacity: 0.45;
  transform: scale(0.98);
}

.drag-chosen {
  border-color: rgba(79, 143, 134, 0.75);
}

.drag-dragging {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  transform: scale(1.02);
}

@media (min-width: 900px) {
  .file-list {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

.file-remove {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 20px;
  height: 20px;
  border-radius: 10px;

  border: none;
  background: rgba(255, 80, 80, 0.85);
  color: #fff;

  font-size: 10px;
  font-weight: 700;
  line-height: 1;

  display: grid;
  place-items: center;

  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.file-remove:hover {
  background: rgba(255, 60, 60, 1);
  transform: scale(1.08);
}

.lang-switch {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1000; 
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(30,30,30,0.5);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(180%);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;

  display: none;
  flex-direction: column;
  gap: 6px;

  padding: 8px;
  border-radius: 16px;
  background: rgba(30, 30, 30, 0.5) !important;
  backdrop-filter: blur(20px) saturate(180%) !important; 
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
  border-top: 1px solid rgba(255,255,255, 0.2) !important;
  border-bottom: 1px solid rgba(255,255,255, 0.2) !important;
  min-width: 160px;
  z-index: 999;
}

.lang-menu.open {
  display: flex;
}

.lang-item {
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.lang-item:hover {
  border-radius: 999px;
  background: linear-gradient(135deg, #4f8f86, #2d5650);
  box-shadow: 0 0 14px rgba(79, 143, 134, 0.55);
  transition: transform 280ms cubic-bezier(.2,.9,.2,1),
              width 280ms cubic-bezier(.2,.9,.2,1);
}

/* kontajner v pravom hornom rohu */
.page-info {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 10000;

  /* 🔥 defaultne NECHYTÁ kliky */
  pointer-events: none;
}

/* ikonka */
.page-info-icon {
  width: 150px;
  height: auto;
  display: grid;
  place-items: center;

  font-weight: 700;
  font-size: 16px;

  color: #fff;

  cursor: help;

  /* 🔥 ikonka môže reagovať */
  pointer-events: auto;
}

.page-info-panel {
  position: absolute;
  top: 46px;
  right: 0;

  width: 260px;
  padding: 14px 16px;

  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);

  color: #fff;
  font-size: 14px;
  line-height: 1.4;

  opacity: 0;
  transform: translateY(-6px);

  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

/* hover otvorí panel */
.page-info:hover .page-info-panel {
  opacity: 1;
  transform: translateY(0);

  /* 🔥 panel chytá myš iba keď je viditeľný */
  pointer-events: auto;
}

/* text */
.page-info-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.note {
  margin-bottom: 20px;
}

.poweredBy {
  position: fixed;
  bottom: 16px;
  right: 18px;
  z-index: 10000;
  scale: 0.7;

  pointer-events: none;
}

#cookie-banner {
  display: none; 
  position: fixed; 
  bottom: 15px;
  left: 15px; 
  width: 20%; 
  background-color: #222; 
  color: #fff; 
  padding: 15px; 
  text-align: center; 
  z-index: 999;

  background: rgba(30, 30, 30, 0.5) !important;
  backdrop-filter: blur(20px) saturate(180%) !important; 
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
  height: auto;
  border-top: 1px solid rgba(255,255,255, 0.2) !important;
  border-bottom: 1px solid rgba(255,255,255, 0.2) !important;
  border-radius: 15px;
}

.acceptBtn {
  margin-right: 10px;
  width: 100px;
  height: 30px;
  font-size: 1rem;

  color: white;
  border: none;
  background: linear-gradient(135deg, #4f8f86, #2d5650);
  box-shadow: 0 0 14px rgba(79, 143, 134, 0.55);
  border-radius: 50px;

  transition: all 0.3s ease-out;
  cursor: pointer;
}

.acceptBtn:hover {
  box-shadow: 0 0 20px rgba(79, 143, 134, 0.8);
  transform: scale(1.05);
}

.declineBtn {
  margin-right: 10px;
  width: 100px;
  height: 30px;
  font-size: 1rem;

  color: white;
  border: none;
  background: linear-gradient(135deg, #ff6b6b, #b83232);
  box-shadow: 0 0 18px rgba(255, 107, 107, 0.6);
  border-radius: 50px;

  transition: all 0.3s ease-out;
  cursor: pointer;
}

.declineBtn:hover {
  box-shadow: 0 0 20px rgba(79, 143, 134, 0.8);
  transform: scale(1.05);
}




