: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:#1C90F3; /* Color of links */
    --MAIN-LINK-HOVER-color:#167ad0; /* Color of hovered links */
    --MAIN-ANCHOR-color: #1C90F3; /* color of anchors on titles */

    --MENU-HEADER-BG-color:white; /* Background color of menu header */
    --MENU-HEADER-BORDER-color:#1F283C; /*Color of menu header border */

    --MENU-SEARCH-BG-color:#1F283C; /* Search field background color (by default borders + icons) */
    --MENU-SEARCH-BOX-color: #33a1ff; /* Override search field border color */
    --MENU-SEARCH-BOX-ICONS-color: #FFFFFF; /* Override search field icons color */

    --MENU-SECTIONS-ACTIVE-BG-color:#20272b; /* Background color of the active section and its childs */
    --MENU-SECTIONS-BG-color:#1F283C; /* Background color of other sections */
    --MENU-SECTIONS-LINK-color: #ccc; /* Color of links in menu */
    --MENU-SECTIONS-LINK-HOVER-color: #FFF;  /* 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: #33a1ff; /* Color of 'page visited' icons in menu */
    --MENU-SECTION-HR-color: #20272b; /* 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);
}







/**** content ****/

p {
  line-height:1.4!important;
  font-size: 1.1rem!important;
}


/* blockquotes */
.citation > p {
  color: #333333;
}


/* sections */
.section { /* fix for section opacity */
  opacity:1!important;
}

table h2 {
  margin: 0.85rem 0 0.85rem 0;
}



/* notices */

.notices > pre {
  margin: 0px;
}

div.notices > p:not(:first-child) {
  border-top: 0px solid;
}

div.notices.future p:first-child:before {
  content: "\f0f3";
}

div.notices.future p:first-child:after {
  content: "Future work";
}

div.notices.future p {
  border-top: 30px solid rgba(124, 72, 177, 0.7);
  background: #e7deef;
}


/* filenames on top of codeblocks (specified manually) */

div.filename {
  background-color: #CCCCCC;
  margin-bottom: -2rem;
  padding: 10px;
  color: #333333;
  font-style: italic;
}

div.filename:before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color:#555555;
  content: "\f15b";
  font-style: normal;
}

/* code blocks with non-R languages */

pre.bash:hover:before {
  content: "bash";
  opacity: 0.5;
  font-size: 10px;
}

pre.dockerfile:hover:before {
  content: "Dockerfile";
  opacity: 0.5;
  font-size: 10px;
}

pre.python:hover:before {
  content: "Python";
  opacity: 0.5;
  font-size: 10px;
}

pre.yaml:hover:before {
  content: "YAML";
  opacity: 0.5;
  font-size: 10px;
}


/**** menu ****/

/* menu items */

#sidebar ul.topics > li {
  border-bottom: solid rgba(255, 255, 255, .4) 1px;
}
#sidebar ul.topics > li {
  border-bottom: solid rgba(255, 255, 255, .4) 1px;
}

#sidebar ul.topics > li:hover > a {
  font-weight: bolder;
}


/* menu logo */

.menu-logo {
  float: right;
  max-width: 25%;
  margin-top: 10px;
  margin-right: 10px;
}

.zoom {
  transition: transform .2s; /* Animation */
}

.zoom:hover, .zoomed {
  transform: scale(1.2);
  filter: drop-shadow(0px 0px 4px #888);
}


/**** blogdown TOC ****/
div#TOC {
  background-color: #F4F4F4;
  border: 1px solid #AAAAAA;
}


/* top level */

div#TOC > ul {
  margin-top: 1em;
  margin-bottom: 1em;

	position: relative;
	list-style: none;
	margin-left: 1em;
	padding-left: 1.2em;
}
div#TOC > ul > li > a:before {
  color: #333333;
	content: "➠";
	position: absolute;
	left: 0;
}

/* second level */
div#TOC > ul > li > ul {
	position: relative;
	list-style: none;
	margin-left: 0;
	padding-left: 1.2em;
}
div#TOC > ul > li > ul > li > a:before {
  color: #333333;
	content: "➥";
	position: absolute;
	left: 0;
}


/* second level */
div#TOC > ul > li > ul > li > ul {
	position: relative;
	list-style: none;
	margin-left: 0;
	padding-left: 1.2em;
}
div#TOC > ul > li > ul > li > ul > li > a:before {
  color: #333333;
	content: "↪";
	position: absolute;
	left: 0;
}




/***** layout ******/

div.container {
  width: 100%;
  max-width: 2000px;
}







/****** code examples ******/

pre div.input {
  background-color: #333333;
  padding-left: 5px;
  border-left: 1px solid #DDD;
  margin-bottom: 5px;
}

pre div.input:not(:first-child) {
  margin-top: 20px;
}





