
:root{

    --MAIN-TEXT-color:#323232; /* Color of text by default */
    --MAIN-TITLES-TEXT-color: #599a3e; /* 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:#fff; /* Background color of menu header */
    --MENU-HEADER-BORDER-color:#eee; /*Color of menu header border */

    --MENU-SEARCH-BG-color:#f1f1f1; /* Search field background color (by default borders + icons) */
    --MENU-SEARCH-BOX-color: #505d6b; /* Override search field border color */
    --MENU-SEARCH-BOX-ICONS-color: #505d6b; /* Override search field icons color */

    --MENU-SECTIONS-ACTIVE-BG-color:rgba(204, 204, 204, 0.17); /* Background color of the active section and its childs */
    --MENU-SECTIONS-BG-color:#fff; /* Background color of other sections */
    --MENU-SECTIONS-LINK-color: #505d6b; /* Color of links in menu */
    --MENU-SECTIONS-LINK-HOVER-color: #599a3e;  /* Color of links in menu, when hovered */
    --MENU-SECTION-ACTIVE-CATEGORY-color: #599a3e; /* Color of active category text */
    --MENU-SECTION-ACTIVE-CATEGORY-BG-color: rgba(204, 204, 204, 0.17); /* Color of background for the active category (only) */

    --MENU-VISITED-color: #599a3e; /* Color of 'page visited' icons in menu */
    --MENU-SECTION-HR-color: #eee; /* Color of <hr> separator in menu */

}

body {
    color: var(--MAIN-TEXT-color) !important;
}

#body-inner a {
  font-weight: 700;
}

#body img, #body .video-container {
  margin: 1rem 0;
  text-align: left;
}

#homelinks {
  background-color: #fff;
  color: #fff;
  padding: 7px 0;
  border-bottom: 2px solid var(--MENU-SEARCH-BG-color);
}

#chapter p {
  text-align: left;
}

#chapter ul {
  padding-left: 20px;
}

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 {
    color: var(--MAIN-TITLES-TEXT-color) !important;
}

h2 {
  font-size: 1.8rem;
}
h3 {
  font-size: 1.4rem;
}
h4 {
  font-size: 1.2rem;
}
h5 {
  font-size: 1rem;
  margin-top: 40px;
}
h6 {
  font-size: 0.8rem;
}

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);
}

#sidebar .topics ul>li>ul>li {
    font-weight: 700;
}

#sidebar .topics ul>li>ul>li>ul>li {
    font-weight: 300;
}

#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);
    border-right: 1px solid var(--MENU-HEADER-BORDER-color);
}

#sidebar ul li li {
  text-indent: 0;
}

#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 .searchbox #search-by::placeholder {
    color: var(--MENU-SEARCH-BOX-ICONS-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);
}

#sidebar ul ul li.dd-item { /* hide all sub items */
  display: none;
}

/* show active and parent items */
#sidebar li.parent,
#sidebar li.parent > ul > li,
#sidebar li.active > ul,
#sidebar li.active > ul > li {
  display: block;
}

/*
#sidebar li.parent,
#sidebar li.parent > ul,
#sidebar li.active ul>li.dd-item {
  display: block;
}*/


/**
 * Some little helper
 **/

#body .tags a.tag-link:before { border-color: transparent #7abfbc transparent transparent; }
#body .tags a.tag-link { background-color: #7abfbc; }

/** style table for cms overview / need to add very root cms page **/
body[data-url="https://pdir.de/docs/de/contao/"] section table,
body[data-url="https://pdir.de/docs/de/contao/"] section table td { border: 0; }
body[data-url="https://pdir.de/docs/de/contao/"] section table th { background: none; padding: 10px 30px; }

body[data-url="https://pdir.de/docs/de/contao/themes/"] section table,
body[data-url="https://pdir.de/docs/de/contao/themes/"] section table td { border: 0; }
body[data-url="https://pdir.de/docs/de/contao/themes/"] section table th { background: none; padding: 10px 30px; }

body[data-url="https://pdir.de/docs/de/contao/extensions/"] section table,
body[data-url="https://pdir.de/docs/de/contao/extensions/"] section table td { border: 0; }
body[data-url="https://pdir.de/docs/de/contao/extensions/"] section table th { background: none; padding: 10px 30px; }

body[data-url="https://pdir.de/docs/de/wordpress/"] section table,
body[data-url="https://pdir.de/docs/de/wordpress/"] section table td { border: 0; }
body[data-url="https://pdir.de/docs/de/wordpress/"] section table th { background: none; padding: 10px 30px; }

body[data-url="https://pdir.de/docs/de/wordpress/themes/"] section table,
body[data-url="https://pdir.de/docs/de/wordpress/themes/"] section table td { border: 0; }
body[data-url="https://pdir.de/docs/de/wordpress/themes/"] section table th { background: none; padding: 10px 30px; }

body[data-url="https://pdir.de/docs/de/wordpress/extensions/"] section table,
body[data-url="https://pdir.de/docs/de/wordpress/extensions/"] section table td { border: 0; }
body[data-url="https://pdir.de/docs/de/wordpress/extensions/"] section table th { background: none; padding: 10px 30px; }

.expand {
  border: 1px solid #dedede;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.expand .fas:before {
  font-size: 16px;
  margin-right: 10px;
}

.expand-label {
  background: var(--MAIN-LINK-color);
  color: #fff;
  padding: 15px 25px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.expand-label:hover {
  background: var(--MAIN-LINK-HOVER-color);
}

.expand-content {
  padding: 10px 25px;
}

.expand img {
  border: 1px solid #e8e8e8;
}

hr {
  border-bottom: 2px solid #020202;
  border-radius: 5px;
  margin-top: 50px;
}

img[alt=maxWidth200],
img[alt=maxWidth400],
img[alt=maxWidth50Percent] {
  border: 2px solid var(--MAIN-LINK-color);
}

img[alt=maxWidth200] { width: 200px; }
img[alt=maxWidth400] { width: 400px; }
img[alt=maxWidth50Percent] { width: 50%; }

img[src*='#border'] {
  border: 1px solid #dbdbdb;
}

#body img.banner {
  max-width: 60%;
  margin-left: 20%;
  margin-bottom: 30px;
}
@media only all and (max-width: 59.938em) {
  #body img.banner {
    max-width: 90%;
    margin-left: 5%;
  }
}

/* TABS */

#body .tab-nav-button {
  border-width: 1px 1px 1px 1px !important;
  border-color: #ccc !important;
  border-radius: 4px 4px 0 0 !important;
  background-color: #ddd !important;
  float: left;
  display: block;
  position: relative;
  margin-left: 4px;
  bottom: -1px;
}
#body .tab-nav-button:first-child {
  margin-left: 0px;
}
#body .tab-nav-button.active {
  background-color: #fff !important;
  border-bottom-color: #fff !important;
}

#body .tab-panel {
  margin-top: 32px;
  margin-bottom: 32px;
}
#body .tab-content {
  display: block;
  clear: both;
  padding: 8px;
  border-width: 1px;
  border-style: solid;
  border-color: #ccc;
}
#body .tab-content .tab-item{
  display: none;
}

#body .tab-content .tab-item.active{
  display: block;
}

#body .tab-item pre{
  margin-bottom: 0;
  margin-top: 0;
}