/* CSS style for RaukR course */
/* 2019 Roy Francis */

/* define font */
@import url('https://fonts.googleapis.com/css?family=Roboto|Source+Sans+Pro:300,400,600|Ubuntu+Mono&subset=latin-ext');

:root {
  --color-primary: #DAE179;
  --color-border: #e8e8e8;
  --color-text: #1A1A1A;
  --color-code-bg: #f9f9f9;
  --color-code-inline: #d72b3f;
  --font-base: 'Source Sans Pro';
  --font-highlight: 'Source Sans Pro';
  --font-code: 'Ubuntu Mono';
}

/* body font */
/* body font family */
body,p,h1,h2,h3,h4,h5,h6 { 
  font-family: var(--font-base, 'Roboto', 'DIN', 'Helvetica', sans-serif);
  color: var(--color-text);
  font-weight: 400;
  font-size: 16px;
}

/* title font family, weight and size */
h1,h2 { 
  font-family: var(--font-highlight, 'Roboto', 'DIN', 'Helvetica', sans-serif);
  color: var(--color-text);
  font-weight: 600;
}

.math {
  font-size: 95%;
}


h1 {
  font-size: 1.802em;
  margin-top: 0.9em;
  margin-bottom: 0.8em;
}

h2 {
  font-size: 1.602em;
  margin-top: 0.2em;
  margin-bottom: 0.6em;
}

h3 {
  font-size: 1.424em;
  margin-top: 0.6em;
  margin-bottom: 0.4em;
}

h4 {
  font-size: 1.266em;
  margin-top: 0.5em;
  margin-bottom: 0.3em;
}

h5 {
  font-size: 1.266em;
  margin-top: 0.5em;
  margin-bottom: 0.3em;
}

h6 {
  font-size: 1.125em;
  margin-top: 0.5em;
  margin-bottom: 0.3em;
}

/* code style */
code {
  font-family: "Ubuntu Mono", "Consolas","Liberation Mono", "Courier New", monospace;
  font-size: 16px;
  color: var(--color-code-inline);
  background-color: var(--color-code-bg);
}

pre {
    font-family: "Ubuntu Mono", "Consolas","Liberation Mono", "Courier New", monospace;
    background-color: var(--color-code-bg) !important;
    font-size: 16px;
}

/* report title style */
.title {
  margin-top: 25px;
  margin-bottom: 10px;
  margin-right: 70px;
  font-size: 1.9em;
}

/* report subtitle style */
.subtitle {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.7em;
}

/* report author style */
.author {
  margin-top: 0;
  margin-bottom: 5px;
  font-weight: 600;
}

/* report date style */
.date {
  margin-top: 0;
  margin-bottom: 10px;
}

/* link colour */
a {
  color: #aeb460;
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
  /* opacity: 0.6; */
  text-decoration: underline;
}

/* spaced para style */
.spaced {
    line-height: 150%;
}

/* abstract size */
.abstract {
  font-size: 1.2em;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 15px;
  border-left: 5px solid var(--color-primary);
  display: inline-block;
}

/* new font size classes */
.largest { font-size: 2.488em; }
.larger { font-size: 2.074em; }
.large { font-size: 1.44em;}
.small { font-size: 0.833em; }
.smaller { font-size: 0.694em; }
.smallest{ font-size: 0.579em; }

blockquote {
  /*border-left: 5px solid var(--color-primary);*/
  border-left: 5px solid #e01b92;
  background: var(--color-code-bg);
  padding: 10px;
  padding-left: 12px;
  margin-left: 16px;
  margin-right: 0;
  border-radius: 0px 4px 4px 0px;
}


div.a {
  margin-bottom:10px;
}
div.a span {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right: 1rem;
  font-weight: bold;
  font-size: 1.5rem;
  width:25px;
  height:25px;
  top: 0;
  transform: rotate(-13deg);
  border-radius:50%;
  background-color:#2f1094;
  color:#fbfbfb;
  box-shadow: 1px 1px 0 #999;
}

/* TABLES ------------------------------------------------------------------- */

/* table even shading colour */
.even {
    background-color: var(--color-code-bg);
}

/* IMAGES ------------------------------------------------------------------- */

/* image styling */
img {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.fancyimage {
  box-shadow: 1px 1px 5px grey;
  border-radius: 2px;
}

.trlogo {
  position:absolute;
  height:70px;
  /*top:2.5em; with code folding*/
  top:1em;
  right:0;
  padding-right:40px;
  margin-top:7px;
}

/* LAYOUT ------------------------------------------------------------------- */

/* floating bar highlight */
.list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus {
  background-color: var(--color-primary);
  border-color: var(--color-border);
}

/* button */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-border);
  margin-top: 0.5em;
  margin-bottom: 0.3em;
}

/* button active states */
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary:active:focus, .open>.dropdown-toggle.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-border);
    opacity: 0.8;
}

/* panel */
.panel-default>.panel-heading, .panel-primary>.panel-heading {
  background-color: var(--color-primary);
  color: white;
}

/* hover effect footer icons */
.footericon:hover {
  opacity: 10;
}

/* right align text */
.text-right {
  text-align: right;
}

/* left align text */
.text-left {
  text-align: left;
}

/* center align text */
.text-center {
  text-align: center;
}

/* COLUMNS ------------------------------------------------------------------- */

.pull-center{
  width: 100%;
}

/* float 50%-50% width */
.pull-right-50 {
  width: 49%;
  float: right;
  margin-right: 0.5%;
  margin-left: 0.5%;
}
.pull-left-50 {
  width: 49%;
  float: left;
  margin-right: 0.5%;
  margin-left: 0.5%;
}

/* float 30% 70% width */
.pull-right-30 {
  width: 29%;
  float: right;
  margin-right: 0.5%;
  margin-left: 0.5%;
}
.pull-right-70 {
  width: 69%;
  float: right;
  margin-right: 0.5%;
  margin-left: 0.5%;
}
.pull-left-30 {
  width: 29%;
  float: left;
  margin-right: 0.5%;
  margin-left: 0.5%;
}
.pull-left-70 {
  width: 69%;
  float: left;
  margin-right: 0.5%;
  margin-left: 0.5%;
}

/* float 40% 60% width */
.pull-right-40 {
  width: 39%;
  float: right;
  margin-right: 0.5%;
  margin-left: 0.5%;
}
.pull-right-60 {
  width: 59%;
  float: right;
  margin-right: 0.5%;
  margin-left: 0.5%;
}
.pull-left-40 {
  width: 39%;
  float: left;
  margin-right: 0.5%;
  margin-left: 0.5%;
}
.pull-left-60 {
  width: 59%;
  float: left;
  margin-right: 0.5%;
  margin-left: 0.5%;
}

/* special */
hr {
  border: 2px solid var(--color-code-bg);
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.code-folding-btn {
  margin-right: 0;
}

.sourceCode {
  margin-bottom: 0.2em;
}
