body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f7fa;
  margin: 0;
  padding: 40px;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  text-align: center;
  color: #000000;
  font-size: 2.5em;
  margin-bottom: 20px;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.button-container button,
.button-container a {
  background-color: #000000;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.button-container button:hover,
.button-container a:hover {
  background-color: #000000;
}

/* ✅ Row ko centre me aur medium width tak constrain kar diya */
.editor-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1100px;  /* ✅ medium container width */
  margin: 0 auto;     /* ✅ centre me align */
}

/* ✅ Har box ka size control */
.editor-box {
  flex: 1;
  min-width: 350px;   /* chhoti screen pe bhi readable */
  max-width: 480px;   /* medium size limit */
  border: 2px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 auto;     /* ✅ box bhi centre me */
}

.editor-box:focus-within {
  border-color: #000000;
}

.editor-header {
  background-color: #000000;
  color: white;
  padding: 8px 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editor-tools i {
  margin-left: 10px;
  cursor: pointer;
  transition: color 0.3s;
}

.editor-tools i:hover {
  color: #ffc107;
}

#markdown-input,
#html-output {
  height: 400px;
}

.fullscreen {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999;
  background: white;
  border-radius: 0 !important;
}