:root{
    --tool-button-color: rgb(156, 156, 156);
}

body{
    font-family: Arial, Helvetica, sans-serif;
}

.header-container{
    position: fixed;
    top:0;
    left:0;
    right:0;
    height: 50px;
    box-sizing: border-box;
    background-color: black;
    color: white;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}
.header-container h4{
    padding: 0; margin: 0;
}
.header-container a{
    color: white;
    text-decoration: none;
}
.editor-container{
    position: fixed;
    top: 50px;
    left: 0;
    bottom: 0;
    width: 550px;
    box-sizing: border-box;
}
.editor-container .tools{
    position: absolute;
    left:0;
    top:0;
    left:0;
    width: 100%;

    height: 32px;
    background-color: #2c2c2c;
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0 5px;
}
.editor-container .tools button{
    cursor: pointer;
    padding: 2px;
    display: grid;
    background-color: transparent;
    border: none;
}

.editor-container textarea{
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: rgb(222, 222, 222);
    border: none;
    outline: none;
    padding: 14px;
    resize: none;
}
.viewer-container{
    position: fixed;
    top: 50px;
    right: 0;
    bottom: 0;
    left: 550px;
    box-sizing: border-box;
    background-color: rgb(255, 255, 255);
    padding: 20px;
    overflow: auto;
}

.modal-options{
    position: absolute;
    background-color: white;
    width: 100px;
    height: fit-content;
}
.modal-options div{
    padding: 5px;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
}
.modal-options div:hover{
    background-color: #f0f0f0;
}


@media screen and (max-width: 950px) {
    .editor-container{
        bottom: 50%;
        width: 100%;
    }
    .viewer-container{
        top: 50%;
        left: 0;
        right: 0;
        bottom: 0;
    }
    .editor-container .tools{
        z-index: 1;
        height: 45px;
        overflow: auto;
    }
    .editor-container textarea{
        top: 45px;
        bottom: 0;
    }
}