@import "common.css";

div.body {
    margin: 5px 0;
}

#top {
    padding: 5px;
    margin: 0;
}

#top div {
    float:right;
    padding: 3px;
    margin-left: 3px;
}
#top a {
    text-decoration: none;
    font-weight: bold;
}
#top a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 18px;
}
h2 {
    font-size: 14px;
}
.flex {
    display: flex;
    flex: 1 auto;
    flex-direction: row;
    align-items: stretch;
}

/** first lines */
body > div.tree > .flex > div.line,
body > div.tree > div > .flex > div.line {
    width:0;
}
div.line {
    flex-grow: 0;
    flex-shrink: 0;
    width: 4px;
    margin: 0;
}
div.text {
    flex-grow: 1;
    flex-shrink: 1;
    margin: 0;
}
/* div.post > div.text > div.body  {
     max-height: 30em;
     overflow-y: scroll;
 }*/

article.post div.body a {
    color: #208040;
    text-shadow: 0 0 2px white;
}
div.body {
    padding: 0 5px;
    background-color: transparent;
}

article.post > div.text {
    border-left-width: 0;
    border-top-width: 2px;
    border-right-width: 2px;
    border-bottom-width: 2px ;
    border-style: solid;
    background-color: rgb(221, 255, 221);

    border-image:
            linear-gradient(
                    135deg,
                    black 0%,
                    #77bb88 50%,
                    #77bb88 100%
            ) 1 1;
}

div.text {
    max-width: calc(100% - 5px);
}
div.body {
    max-width: 100%;
    overflow-x: auto;
}
div.text img {
    max-width: calc(100% - 5px);
    height: auto;
}
div.text fieldset {
    width: calc(95% - 10px);
    min-inline-size: 340px;
    border-color: #228844;
    border-radius: 5px;
}
div.text fieldset legend {
    color: #228844;
    font-style: italic;
}
article.post > div.line {
    border-right: 2px solid black;
    border-top: 2px solid black;
}

div.child:not(:nth-last-child(2)) > div.line {
    border-right: 2px solid black;
}

/* childless post */
article.post:nth-last-child(2) > div.line {

}

div.spacer {
    display: none;
}

div.spacer:not(:last-child) {
    display: block;
    height: 5px;
}
div.spacer:not(:last-child) div.line {
    display: block;
    border-right: 2px solid black;
    height: 100%;
}

div.text > p, div.meta {
    padding: 2px 5px;
}

div.meta {
    background-image: linear-gradient(to right, #228844 0%, #449966 50%, #77bb88 100%);
    color: white;
    text-shadow: 0 0 5px #208040, 0 0 2px black;
}

div.meta > h3 {
    margin: 0;
    font-size: 16px;
}
div.meta > div {
    font-style: italic;
    font-size: 12px;
    background-color: transparent;
    color: white;
}

div.meta > div.perma {
    float:right;
}
div.meta > div.perma > a {
    color: white;
    text-decoration: none;
}