html, body {
  height: 100%;
  margin: 0;
}

body {
    font-family: sans-serif;
    text-align: center;
    background: #f0f0f0;
    padding: 20px;
    margin: 0;
}

h1 {
    color: #333;
}

.controls {
    margin-bottom: 15px;
}

.controls button {
    font-size: 18px;
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    border: none;
    background-color: #0078d7;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.controls button:hover {
    background-color: #005a9e;
}

#editor {
    max-width: 900px;
    margin: 0 auto;
}

.slide {
    position: relative;
    border: 2px dashed gray;
    padding: 20px;
    min-height: 150px;
    border-radius: 8px;
    outline: none;
    user-select: text;
    background: transparent; /* <--- zmena z white na transparent */
}

.slide:focus {
    border-color: #0078d7;
    box-shadow: 0 0 5px #0078d7;
}

.slide.empty::before {
    content: attr(data-placeholder);
    color: #999;
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.slide {
    position: relative;
    /* pre placeholder */
}

.slide {
    position: relative;
    /* už máš */
    /* ostatné štýly ostávajú */
}

.deleteBtn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e63946;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    padding: 0;
    user-select: none;
}

.deleteBtn:hover {
    background: #b32a37;
}

/* Nadpis */
h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #0078d7;
  text-shadow: 1px 1px 4px rgba(0, 120, 215, 0.6);
  margin-bottom: 30px;
  user-select: none;
}

/* Input pre názov prezentácie */
#presentationName {
  font-size: 22px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 12px;
  border: 2px solid #0078d7;
  outline: none;
  color: #0078d7;
  background: linear-gradient(135deg, #e0f0ff 0%, #c0e0ff 100%);
  letter-spacing: 1.5px;
  box-shadow: 0 4px 8px rgba(0, 120, 215, 0.4);
  transition: all 0.3s ease;
  width: 250px;
  text-align: center;
  margin-right: 10px;
}

#presentationName::placeholder {
  color: #a0bcd9;
  font-style: italic;
}

#presentationName:focus {
  border-color: #005a9e;
  box-shadow: 0 6px 12px rgba(0, 90, 158, 0.7);
  background: linear-gradient(135deg, #d0e8ff 0%, #a0c8ff 100%);
  color: #004080;
}

/* Tlačidlá */
.controls button {
  font-size: 18px;
  padding: 10px 22px;
  margin: 0 5px;
  cursor: pointer;
  border: none;
  background-color: #0078d7;
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 120, 215, 0.6);
  transition: background-color 0.3s, box-shadow 0.3s;
  font-weight: 700;
  user-select: none;
}

.controls button:hover {
  background-color: #005a9e;
  box-shadow: 0 6px 14px rgba(0, 90, 158, 0.8);
}

.controls button:active {
  background-color: #003f66;
  box-shadow: 0 3px 7px rgba(0, 60, 102, 0.9);
  transform: translateY(1px);
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* zaberie všetok voľný priestor */
}

footer {
  text-align: center;
  padding: 15px 10px;
  color: #666;
  font-size: 14px;
  background: #f1f1f1;
  border-top: 1px solid #ccc;
}

.slide {
  position: relative;
}

.slide-content {
  position: relative;
  min-height: 150px;
  padding: 10px;
  border: 2px dashed gray;
  border-radius: 8px;
  font-size: 20px;
  outline: none;
  user-select: text;
}

/* Placeholder štýl, keď je prázdne */
.slide-content.empty::before {
  content: attr(data-placeholder);
  color: #999;
  position: absolute;
  top: 10px;
  left: 10px;
  pointer-events: none;
  user-select: none;
  font-style: italic;
}


.close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}

.close-btn:hover {
  color: red;
}
