body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  color: #000000; /* Added black text color */
}

h1 {
  color: #000000;
  margin-bottom: 20px;
}

.buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

button {
  padding: 10px 15px;
  background-color: #000000;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #333333;
}

.editor-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 90%;
  max-width: 1000px; /* ✅ medium width limit */
}

.editor-box {
  flex: 1;
  min-width: 45%;
  max-width: 480px;
  border: 2px solid #ccc;   /* ✅ Default gray border */
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}


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

.editor-tools i {
  margin-left: 10px;
  cursor: pointer;
  color: white;
  font-size: 16px;
  transition: color 0.3s ease;
}

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

.code-editor {
  border: 2px solid #cccccc;
  border-radius: 0 0 8px 8px;
  font-size: 1rem;
  height: 400px;
  width: 100%;
  transition: border-color 0.3s ease;
  background-color: #fefefe;
  font-family: "Courier New", monospace;
  color: #000000;
  box-sizing: border-box;
}

.code-editor:hover {
  border-color: #000000;
}

.CodeMirror {
  height: 100% !important;
  font-family: "Courier New", monospace;
  font-size: 14px;
  background-color: #fefefe;
  color: #000000;
}

.exit-fullscreen-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  background-color: #000000;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: none;
}

@media (max-width: 768px) {
  .editor-box {
    min-width: 100%;
  }
}