*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: #eee;
}

.grid-container {
  border: solid gray;
  max-width: 1500px;
  min-height: 100vh;
  margin-left: auto;
  margin-right: auto;
  overflow: scroll;
}
.grid-container:after {
  display: table;
  clear: both;
  content: '';
}
.grid-container .grid-item {
  background-color: #fff;
}
@media (min-width: 1000px) {
  .grid-container .grid-item {
    padding-left: 5px;
    padding-right: 5px;
    height: 100vh;
    float: left;
  }
}
.grid-container .editor {
  border: solid pink;
  max-width: 100%;
}
@media (min-width: 1000px) {
  .grid-container .editor {
    width: 41.6666666667%;
  }
}
.grid-container .preview {
  border: solid lightblue;
  max-width: 100%;
  margin-top: 10px;
  min-height: 400px;
}
@media (min-width: 1000px) {
  .grid-container .preview {
    width: 58.3333333333%;
    margin-top: 0;
  }
}
.grid-container .maximized {
  background-color: #fff;
}

.content {
  display: block;
  background-color: #fff;
  width: 100%;
  max-height: 100%;
  padding: 5px;
}
@media (min-width: 1000px) {
  .content {
    min-height: calc(100% - 25px);
    width: 100%;
  }
}

#editor {
  min-height: 200px;
  resize: vertical;
}
@media (min-width: 1000px) {
  #editor {
    min-height: calc(100% - 25px);
    resize: none;
  }
}

#preview {
  height: calc(100% - 25px);
  overflow: scroll;
}

.title-bar {
  background-color: black;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 8px;
  padding-right: 3px;
  width: 100%;
  height: 25px;
}
.title-bar i {
  width: 25px;
  text-align: center;
  font-size: 15px;
}
.title-bar i:hover {
  color: #F9B379;
  cursor: pointer;
}