/**
 * Basic styles
 */
html, body {
    min-height: 100vh;
    margin: 0;

    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

a {
    color: #5B9821;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

/**
 * Standard Panel Layout
 */
.editor {
    display: flex;
    flex-direction: row-reverse;

    .panel {
        width: 50%;
        padding: 1em;
    }
}

/**
 * Layout on small screens
 */
@media (max-width: 1024px) {
    .editor {
        flex-direction: column;

        .panel {
            width: 100%;
        }
    }
}

/**
 * Editor and Output Styles
 */

.panel-editor {
    display: flex;
    flex-direction: column;

    p {
        flex-grow: 0;
        flex-shrink: 0;
    }
}

.editor {
    #editor {
        min-height: 50vh;
        width: 100%;
        flex-grow: 1;
        flex-shrink: 1;

        border: 1px solid #ccc;
    }

    #output svg {
        width: 100%;
        height: auto;
        max-height: 100vh;
        display: block;
        margin-bottom: 1em;
        padding: 1em;
        border: 1px solid #ccc;
        cursor: pointer;
    }
}

/**
 * Print Styles
 */
@media print {
    p {
        display: none;
    }

    .panel-editor {
        display: none;
    }

    .editor {
        display: block;

        #output svg {
            width: initial;
            height: initial;
            max-height: none;
            display: block;
            margin: 0;
        }

        #output svg:last-child {
            transform: rotate(180deg);
        }
    }
}
