/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #1e1e1e;
  color: #f1f1f1;
  text-align: center;
  padding: 20px;
}

/* Heading Styling */
h1 {
  color: #61dafb;
  margin-bottom: 20px;
  font-size: 2.5rem; /* Larger font size for heading */
}

/* Editor Container Styling */
.editor-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  border: 2px solid #444;
  border-radius: 10px;
  background-color: #282c34;
  overflow: hidden;
}

/* Responsive Layout */
@media (min-width: 768px) {
  .editor-container {
    flex-direction: row;
  }
}

/* Editor Pane Styling */
.editor-pane, .preview-pane {
  width: 100%;
  padding: 20px;
  background-color: #282c34;
  border: 1px solid #444;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Responsive Editor Pane */
@media (min-width: 768px) {
  .editor-pane {
    width: 48%;
  }

  .preview-pane {
    width: 48%;
  }
}

/* Pane Headings */
.editor-pane h2, .preview-pane h2 {
  font-size: 1.8rem; /* Larger font size for pane headings */
  color: #61dafb;
  margin-bottom: 15px;
}

/* Textareas for HTML, CSS, JS */
textarea {
  width: 100%;
  height: 300px; /* Increased height for larger text areas */
  margin: 10px 0;
  padding: 15px;
  font-family: 'Source Code Pro', monospace;
  font-size: 18px; /* Larger font size for text areas */
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #444;
  border-radius: 5px;
  resize: none;
  outline: none;
  transition: border-color 0.3s ease;
}

textarea:focus {
  border-color: #61dafb;
}

/* Live Preview Block */
iframe {
  width: 100%;
  height: 700px; /* Increased height for the preview area */
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

iframe:hover {
  border-color: #61dafb;
}

/* Button Styling */
button {
  padding: 10px 20px;
  margin: 10px;
  font-size: 1.2rem; /* Larger font size for the button */
  background-color: #61dafb;
  color: #1e1e1e;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #21a1f1;
}

button:active {
  background-color: #61dafb;
}

/* Additional Styling for Improved Visuals */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Source+Code+Pro:wght@400;600&display=swap');

/* Apply custom fonts */
body {
  font-family: 'Roboto', sans-serif;
}

textarea {
  font-family: 'Source Code Pro', monospace;
}