body {
  font-family: Arial, sans-serif;
  margin: 20px;
}

.editor-preview-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .editor-preview-container {
    flex-direction: row;
  }
}

.editor-container,
.preview-container {
  flex: 1;
  border: 1px solid #ccc;
}

.CodeMirror {
  height: 50vh;
}

iframe {
  width: 100%;
  height: 50vh;
  border: none;
}

.function-button {
  margin-bottom: 30px;  
}

.function-button ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.function-button li {
  list-style: none;
}

.function-button button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
}

.function-button .fullscreen-btn1,
.function-button .fullscreen-btn2 {
  padding: 6px 12px;
  background: #333;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.fullscreen-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.fullscreen-preview iframe {
  flex: 1;
  height: 100%;
}

.close-fullscreen {
  background: #333;
  color: #fff;
  padding: 10px;
  border: none;
  cursor: pointer;
  text-align: right;
}