body {
    margin: 0pt 0pt 50pt 0pt;
    padding: 0pt;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12pt;
    background-color: #ececec;
}

form {
    margin-bottom: 0;
    font-size: 0;
}

h1, h2, h3 {
    font-weight: normal;
    margin: 0;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Chrome/Safari/Opera */
    -khtml-user-select: none;    /* Konqueror */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently
                                  not supported by any browser */
}

.box {
    box-sizing: border-box;
    border: 1pt solid #dfdfdf;
    border-radius: 8pt;
    box-shadow: 0 1pt 3pt rgba(0,0,0,0.1);
}

#categories .box {
    margin: 10pt 7pt 6pt 10pt;
    background-color: #fff;
    padding: 5pt;
}

input, .medium-editor-element {
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12pt;

    border: 1pt solid #ccc;
    border-radius: 4pt;
    
    box-sizing: border-box;

    width: calc(100% - 100pt);
    padding: 2pt 2pt 2pt 4pt;
    margin-bottom: 0;
}

.medium-editor-element {
    min-height: 45pt;
    max-height: 300pt;
    overflow: auto;
}

.medium-editor-placeholder-relative, .medium-editor-placeholder-relative::after {
    color: gray;
    font-style: normal;
}

form.category > input {
    width: calc(100% - 120pt);
}

form > .inline {
    vertical-align: middle;
}

.categoryTitle {
    position: relative;
    padding-top: 5pt;
    padding-bottom: 5pt;
    margin-bottom: 0;
    font-size: 0;
}

.categoryContent {
    padding-left: 20pt;
}

.categoryContent > .box {
    padding-top: 10pt;
}

.inline {
    display: inline-block;
    vertical-align: top;
}

.body {
    padding-left: 20pt;
}

.wide {
    width: 100%;
}

.button {
    height: 18pt;
    width: 18pt;
    padding: 1pt;
}

.categoryTitle .button, .categoryTitle .permabox {
    height: 28pt;
}

.permabox .button {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

.categoryTitle .category {
    font-size: 25pt;
    max-width: calc(100% - 40pt);
}

.questionTitle {
    position: relative;
    font-size: 0;
}

.question {
    font-size: 15pt;
    font-weight: 200;
    max-width: calc(100% - 40pt);
}

.answer {
    font-size: 12pt;
    padding-left: 20pt;
}

header, #categories {
    margin-left: 120pt;
}

header {
    padding: 20pt;
}

#title {
    font-size: 30pt;
    color: #002f5f;
    float: left;
}

#langSwitch {
    float: right;
    background-color: #fff;
    padding: 5pt;
    font-size: 12pt;
}

#leftBar {
    box-sizing: border-box;
    background-color: #002e5f;
    height: 100%;
    width: 120pt;
    position: fixed;
    top: 0pt;
    left: 0pt;
    padding-left: 10pt;
}

.logo {
    padding-top: 10pt;
    width: 100pt;
}

#userinfo {
    width: 100pt;
    background-color: #ececec;
    padding: 0pt 5pt;
    
    position: absolute;
    left: 10pt;
    bottom: 10pt;
}

#userinfo p {
    margin: 5pt 0pt;
}

.admin {
    position: fixed;
    bottom: 10pt;
    left: 10pt;
}

.admin > img {
    width: 24pt;
}

.error {
    background-color: #EE9999;
}

.success {
    background-color: #99EE99;
}

a, a:visited {
    color: #005b7f;
    text-decoration: none;
}

.answer a, form[data-type="question"] a {
    text-decoration: underline;
}

.link {
    cursor: pointer;
}

.hidden {
    display: none;
}

.permabox {
    text-align: right;
    position: absolute;
    right: 0pt;
    height: 18pt;
    padding: 1pt;
}

.permabox > * {
    display: inline-block;
    vertical-align: middle;
}

.permabox > input {
    display: none;
}

.permabox.show > input {
    display: initial;
}

.permabox > button > img {
    opacity: 0.4;
    width: 18pt;
    height: 100%;
}

.permabox.show > button > img {
    opacity: 1.0;
}

@media(max-width: 768px) {
    #leftBar {
	width: 100%;
	height: initial;
	position: relative;
    }
    #leftBar .logo {
	width: 18%;
    }
    header {
	margin-left: 0;
    }
    #categories {
	margin-left: 0;
    }
    #userinfo {
	right: 10pt;
	left: initial;
	width: initial;
    }
    #userinfo p {
	display: inline-block;
	font-size: 10pt;
    }
    .admin {
	position: absolute;
	left: initial;
	right: 10px;
	top: 10px;
    }
}
