body {
  background-color: #f1f1f1;
  font-family: 'Helvetica Neue', 'Helvetica', arial, sans-serif;
}

header {
  position: relative;
  width: 90%;
  height: 140px;
  margin: 5px auto;

  display: flex;
  border-radius: 5px;
}

header .logo {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

header .logo img {
  width: 100%;
}

section.content {
  width: 90%;
  margin: 50px auto;
}

.vanilla-modal
{
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 600px;
    padding: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    background: #fff;
    visibility: hidden;
    opacity: 0;
    transition: 0.75s;
    pointer-events: none;
}

.vanilla-modal.active
{
    top: 50%;
    visibility: visible;
    opacity: 1;
    pointer-events: visible;
}

@media screen and (max-width: 991px) {
    .vanilla-modal
    {
        width: 90%;
    }
}

.editor {
  width: 100%;
  min-height: 18rem;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.3);
  border-top: 6px solid #4a4a4a;
  border-radius: 3px;
}
.editor .toolbar {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.editor .toolbar .line {
  display: flex;
  border-bottom: 1px solid #e2e2e2;
}
.editor .toolbar .line:last-child {
  border-bottom: none;
}
.editor .toolbar .line .box {
  display: flex;
  border-left: 1px solid #e2e2e2;
}
.editor .toolbar .line .box .editor-btn {
  display: block;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: 0.2s ease all;
}
.editor .toolbar .line .box .editor-btn:hover, .editor .toolbar .line .box .editor-btn.active {
  background-color: #e1e1e1;
  cursor: pointer;
}
.editor .toolbar .line .box .editor-btn.icon i,
.editor .toolbar .line .box .editor-btn.icon img {
  width: 36px;
  padding: 8px;
}
.editor .toolbar .line .box .editor-btn.icon.smaller i,
.editor .toolbar .line .box .editor-btn.icon.smaller img {
  width: 28px;
}
.editor .toolbar .line .box .editor-btn.has-submenu {
  width: 20px;
  padding: 0 10px;
}
.editor .toolbar .line .box .editor-btn.has-submenu::after {
  content: '';
  width: 6px;
  height: 6px;
  position: absolute;
  background-image: url(https://image.flaticon.com/icons/svg/25/25243.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  right: 4px;
}
.editor .toolbar .line .box .editor-btn.has-submenu .submenu {
  display: none;
  position: absolute;
  top: 36px;
  left: -1px;
  background-color: #fff;
  border: 1px solid #b5b5b5;
  border-top: none;
}
.editor .toolbar .line .box .editor-btn.has-submenu .submenu .editor-btn {
  width: 39px;
}
.editor .toolbar .line .box .editor-btn.has-submenu:hover .submenu {
  display: block;
}
.editor .content-area {
  padding: 15px 12px;
  line-height: 1.5;
  position: relative;
  min-height: 250px;
  overflow: auto;
}

.editor .content-area img {
  max-width: 100%;
}

.editor .content-area .visual-view,
.editor .content-area .html-view {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
}

.editor .content-area .visual-view {
  outline: none;
  opacity: 0;
  visibility: hidden;
}
.editor .content-area .visual-view p {
  margin: 12px 0;
}
.editor .content-area .html-view {
  outline: none;
  border: none;
  resize: none;
  opacity: 0;
  visibility: hidden;
}

.editor .content-area .visual-view.active,
.editor .content-area .html-view.active {
  opacity: 1;
  visibility: visible;
}
