@media(min-width:1400px){
    main#main {
        padding:15px !important;
    }
}
h2.tool-heading {
    margin-bottom: 25px;
}
main#main {
    width: 100% !important;
}
@media(max-width:767px){
    .tool-main-div {
        padding: 30px 15px;
    }
}
@media(max-width:1200px){
    .container-box {
        flex-direction:column;
        height:100% !important;
    }
    .editor, #preview {
        width: 100% !important;
        margin-bottom: 40px;
        border-bottom: 1px solid #ccc;
        max-height: 500px;
        overflow: auto;
        position:relative;
    }
    .live-preview{
        top:0 !important;
    }
}
div#preview {
    padding: 0;
}
#preview-inner-div {
    padding: 20px;
}
p.edit-heading, p.live-preview {
    display: block !important;
    position: sticky;
    top: 0px;
    z-index: 10;
    background: #383838;
    color: #fff;
    padding: 4px 10px;
    margin-top: 0px !important;
}
p.live-preview{
    border-left:1px solid #fff;    
}
.eidtor, #preview {
    overflow: auto;          
}
.editor::-webkit-scrollbar, #preview::-webkit-scrollbar {
    display: none;          
}
h6{
    margin-bottom: .5rem;
}
.tool-main-div header {
    background-color: #117eef;
    color: white;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: 600;
}
.container-box {
    display: flex;
    height: calc(100vh - 60px);
    overflow:auto;
}
.editor {
    width: 50%;
    border-right: 1px solid #ccc;
}
.CodeMirror {
    height: 100%;
    font-size: 16px;
    line-height: 1.5;
}
#preview {
    width: 50%;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
}
#preview h1, #preview h2, #preview h3, #preview h4, #preview h5, #preview h6 {
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    text-transform: none !important;
}
#preview pre {
    background: #efefef;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}
#preview code {
    background: #e6e6e6;
    padding: 2px 4px;
    border-radius: 4px;
}
#preview table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5em;
}
#preview th, #preview td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
}
#preview th {
    background-color: #eaeaea;
}
#preview img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}
#preview blockquote {
    border-left: 4px solid #ccc;
    padding: 10px 15px;
    margin: 15px 0;
    background-color: #f1f1f1;
}
#preview blockquote blockquote {
    border-left: 4px solid #999;
    background-color: #e6e6e6;
    margin-left: 10px;
}
#preview blockquote blockquote blockquote {
    border-left: 4px solid #666;
    background-color: #dddddd;
    margin-left: 10px;
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .editor, #preview {
        width: 100%;
        height: 50%;
    }
}
/* Headings */
.tool-main-div h1 { 
    font-size: 2em !important;  
}
.tool-main-div h2 { 
    font-size: 1.5em !important;  
}
.tool-main-div h3 { 
    font-size: 1.17em !important;
}
.tool-main-div h4 { 
    font-size: 1em !important;  
}
.tool-main-div h5 { 
    font-size: 0.83em !important;  
}
.tool-main-div h6 { 
    font-size: 0.75em !important; 
}
/* Paragraphs and text */
.tool-main-div p:not(.live-preview, .edit-heading) {
    font-size: 1em !important;
    margin: 1em 0 !important;
}
.tool-main-div strong, .tool-main-div b {
    font-weight: bold !important;
    font-size: 1em !important;
}
.tool-main-div em, .tool-main-div i {
    font-style: italic !important;
    font-size: 1em !important;
}
.tool-main-div u {
    text-decoration: underline !important;
    font-size: 1em !important;
}
.tool-main-div small {
    font-size: 0.8em !important;
}
.tool-main-div del {
    text-decoration: line-through !important;
    font-size: 1em !important;
}
.tool-main-div mark {
    background: yellow !important;
    font-size: 1em !important;
}
.tool-main-div abbr {
    text-decoration: underline dotted !important;
    cursor: help !important;
    font-size: 1em !important;
}
/* Code blocks and inline code */
.tool-main-div code {
    font-family: monospace !important;
    background: #f5f5f5 !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
    font-size: 0.95em !important;
}
.tool-main-div pre {
    font-size: 0.95em !important;
}
/* Lists */
.tool-main-div ul, .tool-main-div .tool-main-div ol {
    padding-left: 2em !important;
    margin: 1em 0 !important;
    font-size: 1em !important;
}
.tool-main-div li {
    margin: 0.3em 0 !important;
}
/* Blockquotes */
.tool-main-div blockquote {
    border-left: 4px solid #ccc !important;
    margin: 1em 0 !important;
    padding: 0.5em 1em !important;
    color: #666 !important;
    background: #f9f9f9 !important;
    font-style: italic !important;
    font-size: 1em !important;
}
/* Horizontal rule */
.tool-main-div hr {
    border: none !important;
    border-top: 1px solid #ccc !important;
    margin: 2em 0 !important;
}
/* Links */
.tool-main-div a {
    color: #0077cc !important;
    text-decoration: underline !important;
    font-size: 1em !important;
}
.tool-main-div a:hover {
    color: #005fa3 !important;
}
/* Images */
.tool-main-div img {
    max-width: 100% !important;
    height: auto !important;
}
/* Tables */
.tool-main-div table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1em 0 !important;
    font-size: 1em !important;
}
.tool-main-div th, .tool-main-div td {
    padding: 0.5em 1em !important;
    border: 1px solid #ccc !important;
    text-align: left !important;
}
.tool-main-div thead {
    background-color: #f0f0f0 !important;
}
/* Details/Summary */
.tool-main-div details {
    margin: 1em 0 !important;
    font-size: 1em !important;
}
.tool-main-div summary {
    font-weight: bold !important;
    cursor: pointer !important;
    font-size: 1em !important;
}