* {
    margin: 0;
    padding: 0;

    &::-webkit-scrollbar {
        display: none;
    }
}

html {
    font-family: 'Nunito', sans-serif;
}

body {
    overflow: hidden;

    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100dvh;
}

header {
    user-select: none;
    text-align: center;
    font-size: 2em;
    font-weight: bolder;
    padding: .5em;

    background-color: #EEE;
    box-shadow: 0 6px 3px rgba(0, 0, 0, .2);

    display: flex;
    justify-content: center;
    align-items: center;

    & #menu {
        position: absolute;
        left: .5em;
        padding: .1em;
        border-radius: 5px;
        background-color: rgba(0, 0, 0, .2);
        width: 1em;
        height: 1em;

        display: flex;
        justify-content: center;
        align-items: center;

        cursor: pointer;

        &:hover {
            background-color: rgba(0, 0, 0, .1);
        }

        &:active {
            background-color: rgba(0, 0, 0, .3);
        }

        & svg {
            width: 1em;
        }
    }
}

main {
    display: flex;
    flex-direction: row;
    flex: 1;

    overflow: scroll;
}

[contenteditable] {
    outline: 0px solid transparent;
}

#editor,
#preview {
    width: 50vw;
    overflow: scroll;
    border: solid 2px rgba(0, 0, 0, .2);
    word-break: break-all;
}

#editior {
    display: block;
    border-right: none;
}

#preview {
    border-left: black solid 2px;
}