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

body {
  background: #0f0f10;
  color: white;
  font-family: "Poppins", sans-serif;
}

header {
  padding: 15px 25px;
  background: #343434;
  border-bottom: 1px solid #333;
}

h2 {
  font-weight: 500;
}

.container {
  display: flex;
  height: calc(100vh - 70px);
  border-top:1px solid #000
}

/* Editor section */
.editor-section {
  width: 45%;
  background: #1a1a1d;
  border-right: 1px solid #333;
  display: flex;
  flex-direction: column;
}

.tab {
  display: flex;
  background: #232325;
}

.tab button {
  flex: 1;
  padding: 12px;
  background: transparent;
  color: #aaa;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.tab button.active {
  background: #343436;
  color: #fff;
}

.editor-container {
  flex: 1;
  position: relative;
}

.editor-block {
  display: none;
  height: 100%;
}

.editor-block.active {
  display: block;
  height: 100%;
}

.CodeMirror {
  height: 100% !important;
  font-size: 15px;
  border-radius: 6px;
}

/* Preview section */
.preview-section {
  width: 55%;
  padding: 20px;
  background: #121212;
}

.preview-section h3 {
  margin-bottom: 10px;
  color: #00eaff;
}

iframe {
  width: 100%;
  height: 90%;
  background: white;
  border-radius: 8px;
  border: none;
}

@media (max-width: 640px){
.container {display:block}
.editor-section {width:100%}
.preview-section h3 {padding:20px}
.preview-section {width:100%; height:300px; padding:0}
.editor-block {height:275px !important}
header h2 span{ display:block}
}
