body {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-family: Arial, sans-serif;
}

header {
  padding: 10px 20px;
  background-color: #D2A679;
  border-bottom: 1px solid #ccc;
}

h1 {
  margin: 0 0 10px;
}

.toolbar {
  display: flex;
  gap: 8px;
}

.toolbar button {
  padding: 8px 10px;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid #ccc;
  background: white;
  border-radius: 5px;
}

.toolbar button:hover {
  background-color: #e0e0e0;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: row;
  height: 100%;
}

textarea, #preview {
  flex: 1;
  padding: 15px;
  font-size: 16px;
  border: none;
  outline: none;
  height: 100%;
  box-sizing: border-box;
}

#preview {
  background-color: #f9f9f9;
  border-left: 1px solid #ddd;
  overflow-y: auto;
}

footer {
  padding: 10px;
  text-align: center;
  background-color: #D2A679;
  border-top: 1px solid #ccc;
}
#preview blockquote {
  border-left: 4px solid #d2a679;
  background-color: #fdf7ee;
  padding: 10px 15px;
  margin: 10px 0;
  color: #333;
}

@media (max-width: 768px) {
  .main {
    flex-direction: column;
  }

  textarea, #preview {
    width: 100%;
    height: 40vh;
    font-size: 14px;
  }

  .toolbar {
    flex-wrap: wrap;
    justify-content: start;
    gap: 5px;
  }

  .toolbar button {
    flex: 1 1 30%;
    min-width: 60px;
    font-size: 14px;
    padding: 6px;
  }

  footer {
    font-size: 14px;
    padding: 8px;
  }

  h1 {
    font-size: 20px;
  }
}

