@charset "UTF-8";

/* base configuration of head and body */
html {
    font: 96% sans-serif;
    background: #f7f7f7;
    line-height: 1.4;
}
body {
    color: #333;
}
body #wrapper {
    margin: auto;
    width: 80%;
    min-width: 60em;
    position: relative;
}


/* our header and controls block */
header {
    text-align: right;
    padding: 0px 0px 3px 0px;
}

/* the main body */
main {
    background: white;
    padding: 1em;
    border: 1px solid #8a93e0;
    /* margin: 0.5em 0; */
    padding: 20px;
    min-height: 20em;
}

/* footer */
footer {
    margin-top: 5px;
    display: block;
    padding-top: 0;
    padding-bottom: 5px;
}
footer #version {
    float: right;
    font-size: smaller;
    font-style: oblique;
    color: #aaa;
}
footer #copyright {
    font-size: smaller;
}
footer #login_admin {
padding-bottom: 3px;
}

/* where the body of the page is shown */
#content {
    font-size: 1em;
}
#content * {
    outline: 0;
}
/* special handling for preview */
#content.preview {
    border: 3px solid #dddddd;
    background: #f9f9ff;
    padding: 8px;
}
h2#preview {
    border: 3px solid #dddddd;
    border-bottom: 0;
    background: #f0f0ff;
    padding: 0 8px;
    margin-bottom:0;
}

/* override some generic page elemnts */
h1 {
    margin-top: 0px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 0.05em;
    color: #1268b5;
    font-weight: bold;
}

/* styles for links */
a {
    color: #1268b5;
    font-weight: 550;
    text-decoration: none;
}
a:visited {
    color: #1268b5;
}
a.pending {
    color: #b51268;
}
a:hover {
    text-decoration: underline;
}
a img {
    border: none;
}
a.external:after {
    /* add an arrow after for external links */
    content: "\2197";
}

pre {
    padding: 0.5em;
    margin: 0.5em;
    border: 1px solid #8a93e0;
    background: #a4aefe;
    color: #644e22;
    overflow: auto;
    /* outline: 0.4em solid #eee !important; */
}
img {
    border: 1px solid #ccc;
    outline: 0.25em solid #eee;
    padding: 0.25em;
    margin: 0.25em 0 0.25em 0.5em;
    background: #fff;
}
hr {
    height: 0;
    border: none;
    color: #fff;
    background: transparent;
    border-bottom: 1px solid #ccc;
    margin: 0.5em 0;
}

/* form and related elements */
form {
    display: inline;
}
form input,
form textarea {
    font-size: 94%;
    border: 1px solid #999;
    background: #fff;
    color: #666;
    outline: 0.2em solid #eee;
    padding: 0px;
    line-height: 1.2;
    margin: 0.5em;
    vertical-align: middle;
}
form textarea {
    display: block;
    margin: 0.5em auto;
    width: 100%;
}

::-webkit-input-placeholder {
    color: #aaaaff;
    font-style: italic;
}
::-moz-placeholder {
    color: #aaaaff;
    font-style: italic;
}
input::placeholder {
    color: #aaaaff !important;
    font-style: italic;
}

form input[type="text"], input[type="password"] {
    padding-left:3px;
}
form input[type="submit"] {
    padding: 0 10px;
}

/* special buttons for the edit form */
form input[type="submit"].cancel_button {
    float: right;
    margin-right: 100px;
}
form input[type="submit"].delete_button {
    float: right;
    color: #b51217;
}
form input[type="submit"] {
    cursor: pointer;
    font-weight: bold;
}
form input[type="submit"]:hover {
    background-color: #8a93e0;
}

form input[type="submit"].delete_button:hover {
    color: white;
    background-color: #b51217;
}

/* simple message box */
main #message {
    border: 1px solid #b5b112;
    border-top: 5px solid #b5b112;
    border-bottom: 5px solid #b5b112;
    padding: 5px;
    margin: 5px;
    text-align: center;
    font-weight: bold;
}

/* logged in handling */
body.loggedin {
    border: 4px solid #f00;
    width: calc(100% - 18px);
}
body.loggedin main {
    outline: 4px solid #f00;
    border: 1px solid black;
}

/* external link */
a[href^="http://"]:not(.no_xlink), a[href^="https://"]:not(.no_xlink)  {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' shape-rendering='crispEdges' viewBox='0 0 12 12'><title>external link</title><path fill='%2336c' d='m6.2 0 2.3 2.5L5 5.7 6.2 7l3.5-3.2L12 6.4V0H6.2Z'/><path stroke='%2336c' d='M4 .5H1M11.5 8v3M.5 1v10m.5.5h10'/></svg>");
    background-position: center right;
    background-repeat: no-repeat;
    background-size: 0.75em;
    padding-right: 1em;
}
