
:root {
    --MAIN-TEXT-color:#323232; /* Color of text by default */
    --MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5 */
    --MAIN-LINK-color:#599a3e; /* Color of links */
    --MAIN-LINK-HOVER-color:#3f6d2c; /* Color of hovered links */
    --MAIN-ANCHOR-color: #599a3e; /* color of anchors on titles */

    --MENU-HEADER-BG-color:#74b559; /* Background color of menu header */
    --MENU-HEADER-BORDER-color:#9cd484; /*Color of menu header border */

    --MENU-SEARCH-BG-color:#599a3e; /* Search field background color (by default borders + icons) */
    --MENU-SEARCH-BOX-color: #84c767; /* Override search field border color */
    --MENU-SEARCH-BOX-ICONS-color: #c7f7c4; /* Override search field icons color */

    --MENU-SECTIONS-ACTIVE-BG-color:#1b211c; /* Background color of the active section and its childs */
    --MENU-SECTIONS-BG-color:#222723; /* Background color of other sections */
    --MENU-SECTIONS-LINK-color: #ccc; /* Color of links in menu */
    --MENU-SECTIONS-LINK-HOVER-color: #e6e6e6;  /* Color of links in menu, when hovered */
    --MENU-SECTION-ACTIVE-CATEGORY-color: #777; /* Color of active category text */
    --MENU-SECTION-ACTIVE-CATEGORY-BG-color: #fff; /* Color of background for the active category (only) */

    --MENU-VISITED-color: #599a3e; /* Color of 'page visited' icons in menu */
    --MENU-SECTION-HR-color: #18211c; /* Color of <hr> separator in menu */
}

body {
    color: var(--MAIN-TEXT-color) !important;
}

textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus {
    border-color: none;
    box-shadow: none;
}

h2, h3, h4, h5 {
    color: var(--MAIN-TITLES-TEXT-color) !important;
}

a {
    color: var(--MAIN-LINK-color);
}

.anchor {
    color: var(--MAIN-ANCHOR-color);
}

a:hover {
    color: var(--MAIN-LINK-HOVER-color);
}

#sidebar ul li.visited > a .read-icon {
	color: var(--MENU-VISITED-color);
}

#body a.highlight:after {
    display: block;
    content: "";
    height: 1px;
    width: 0%;
    -webkit-transition: width 0.5s ease;
    -moz-transition: width 0.5s ease;
    -ms-transition: width 0.5s ease;
    transition: width 0.5s ease;
    background-color: var(--MAIN-LINK-HOVER-color);
}
#sidebar {
	background-color: var(--MENU-SECTIONS-BG-color);
}
#sidebar #header-wrapper {
    background: var(--MENU-HEADER-BG-color);
    color: var(--MENU-SEARCH-BOX-color);
    border-color: var(--MENU-HEADER-BORDER-color);
}
#sidebar .searchbox {
	border-color: var(--MENU-SEARCH-BOX-color);
    background: var(--MENU-SEARCH-BG-color);
}
#sidebar ul.topics > li.parent, #sidebar ul.topics > li.active {
    background: var(--MENU-SECTIONS-ACTIVE-BG-color);
}
#sidebar .searchbox * {
    color: var(--MENU-SEARCH-BOX-ICONS-color);
}

#sidebar a {
    color: var(--MENU-SECTIONS-LINK-color);
}

#sidebar a:hover {
    color: var(--MENU-SECTIONS-LINK-HOVER-color);
}

#sidebar ul li.active > a {
    background: var(--MENU-SECTION-ACTIVE-CATEGORY-BG-color);
    color: var(--MENU-SECTION-ACTIVE-CATEGORY-color) !important;
}

#sidebar hr {
    border-color: var(--MENU-SECTION-HR-color);
}

#body .tags a.tag-link {
    background-color: var(--MENU-HEADER-BG-color);
}

#body .tags a.tag-link:before {
    border-right-color: var(--MENU-HEADER-BG-color);
}

.apple-mail-icon {
    background-image: url(../images/apple-mail-icon.png);
}

.cloud-share-icon {
    background-image: url(../images/cloud-share-icon.svg);
}

.enpass-icon {
    background-image: url(../images/enpass-icon.png);
}

.fd-edit-icon {
    background-image: url(../images/fd-edit-icon.png);
}

.fd-remove-icon {
    background-image: url(../images/fd-remove-icon.png);
}

.fd-upload-icon {
    background-image: url(../images/fd-upload-icon.png);
}

.macos-icon {
    background-image: url(../images/macos-icon.png);
}

.gmail-icon {
    background-image: url(../images/gmail-icon.svg);
}

.google-calendar-icon {
    background-image: url(../images/google-calendar-icon.svg);
}

.google-contacts-icon {
    background-image: url(../images/google-contacts-icon.svg);
}

.nextcloud-icon {
    background-image: url(../images/nextcloud-icon.png);
}

.onlyoffice-icon {
    background-image: url(../images/onlyoffice-icon.png);
}

.outlook-icon {
    background-image: url(../images/outlook-icon.svg);
}

.thunderbird-icon {
    background-image: url(../images/thunderbird-icon.png);
}

.icon-image {
    background-position: 50% 50%;
    background-size: 1em 1em;
    background-repeat: no-repeat;
    width: 1em;
    height: 1em;
    top: 0;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    margin-bottom: 2px;
}

figure {
    display: inline-block;
    margin: 0;
}

figure a img {
    margin: 0 !important;
}

figcaption {
  color: var(--MAIN-TITLES-TEXT-color) !important;
  text-align: center;
  font-weight: 300 !important;
  opacity: .85;
  font-size: 1em;
  text-align: center;
  margin: 0.5em 0 0 0;
}

table + figure {
    /* border: 1px dotted red; */
    margin: 1.5em 0 0 0;
}

.do-hdr {
  color: green;
}

.dont-hdr {
  color: #c00000;
}

.do-hdr, .dont-hdr {
  font-size: larger;
	font-weight: bold;
}

#chapter p {
	text-align: left;
}

a.internal {
    font-weight: 600;
}

a.external {
	font-variant: small-caps;
	font-weight: 600;
}

.fa, .fab, .fal, .far, .fas {
    display: inline ! important;
}
