body {
    font-family: "Trebuchet MS", sans-serif;
    margin: 0;
}

*, ::after, ::before {
    box-sizing: border-box;
}

.container {
    display: flex;
    flex-direction: column;
}

.editor-container {
    display: flex;
    padding-left: 80px;
}

.editor, .preview {
    width: 50%;
}

.editor {
    min-height: 100vh;
}

.preview {
    min-height: 100vh;
    overflow: clip;
    background-color: #f4f4f4;
}

#previewFrame {
    width: 100%;
    height: 100%;
    border: none;
}

.copy-button, .load-button {
    margin: 5px;
    position: relative;
    background-color: #2d2d2d;
}

.load-button span {
    padding: 4px;
    font-size: 12px;
    font-weight: 700;
    position: absolute;
    right: 5px;
    bottom: 5px;
    color: #fff;
    opacity: 0;
    transition: all 0.3s;
}

.load-button:hover span {
    opacity: 1;
}

.tools {
    position: fixed;
    left: 0;
    top: 0;
    width: 80px;
    max-width: 80px;
    height: 100%;
    background-color: #0082c9;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    -webkit-box-shadow: 0 0 10px 0 rgba(0,0,0,0.4);
    -moz-box-shadow: 0 0 10px 0 rgba(0,0,0,0.4);
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.4);
}

.tools button {
    width: 70px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    padding: 10px 0;
    background-color: #2d2d2d;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 10px;
    margin: 0 0 5px 0;
    cursor: pointer;
}

.tools .separator {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-top: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.layer-tools button {
    padding: 0;
    margin-bottom: 5px;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
}

.layer-tools button:last-of-type {
    margin-bottom: 0;
}

.layer-tools button img {
    width: 100%;
    display: block;
    transition: all 0.3s;
}

.layer-tools button:hover img {
    opacity: 0.4;
}

.layer-tools button:hover {
    border: none;
}

.tools button i {
    font-size: 20px;
    margin-bottom: 6px;
    margin-top: 2px;
    transition: all 0.3s;
}

.tools button:hover i {
    color: #0082c9;
}

.CodeMirror {
    font-size: 15px;
    min-height: 100vh;
    overflow: hidden;
}

.layer-tools {
    position: fixed;
    left: -200px;
    top: 0;
    width: 170px;
    max-width: 170px;
    height: 100%;
    background-color: #2d2d2d;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    -webkit-box-shadow: 0 0 10px 0 rgba(0,0,0,0.4);
    -moz-box-shadow: 0 0 10px 0 rgba(0,0,0,0.4);
    box-shadow: 0 0 10px 0 rgba(0,0,0,0.4);
    transition: all 0.3s;
}

.layer-tools .close-layer-tools {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #2d2d2d;
    right: -40px;
    top: 19px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.layer-tools .close-layer-tools i {
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s;
}

.layer-tools .close-layer-tools:hover i {
    color: #0082c9;
}

.layer-tools-normal-open .layer-tools-normal {
    left: 80px;
}

.design-tools-normal-open .design-tools-normal {
    left: 80px;
}

.layer-tools-green-open .layer-tools-green {
    left: 80px;
}

.design-tools-green-open .design-tools-green {
    left: 80px;
}

.add-button .remove {
    display: none;
}

.layer-tools-normal-open .add-button-normal .remove, .layer-tools-green-open .add-button-green .remove, .design-tools-normal-open .add-design-button-normal .remove, .design-tools-green-open .add-design-button-green .remove {
    display: block;
}

.layer-tools-normal-open .add-button-normal .add, .layer-tools-green-open .add-button-green .add, .design-tools-normal-open .add-design-button-normal .add, .design-tools-green-open .add-design-button-green .add {
    display: none;
}

.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -85px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    position: fixed;
    z-index: 1;
    left: 25%;
    bottom: 30px;
    font-size: 17px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
    padding: 16px;
    transition: opacity 0.5s, visibility 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

.toast.hide {
    visibility: hidden;
    opacity: 0;
}