* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: darkgreen;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#body-container {
    max-width: 700px;
    width: 100%;
    margin: 25px auto;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);

    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

body.editor #body-container {
    max-width: 100%;
}

p {
    margin-top: 10px;
}

.browser {
    margin-top: 10px;

    overflow-x: scroll;
    flex: 1 0 auto;
}

.line {
    margin-left: calc(var(--indentation) * 24px);
}

.line img {
    vertical-align: bottom;
    image-rendering: pixelated;
}

.line a {
    text-decoration: none;
    display: inline-block;
    padding: 3px;
    width: 100%;
}

a, a:visited {
    color: blue;
}

.line.dir {
}

.line:hover {
    background-color: lightgrey;
    border-radius: 5px;
}

.line:hover a {
    text-decoration: underline;
}

form.edit-form {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

textarea#editor {
    width: 100%;
    flex: 1 0 auto;
}

pre {
    max-width: 100%;
    overflow-x: scroll;
}
