* {
  font-family: "Domine", "Palatino Linotype", "Book Antiqua", Palatino, serif;
}
tt {
  font-family: 'Roboto Mono', 'Lucida Console', monospace;
}
p {
    text-align: justify;
}
.code {
  font-family: 'Roboto Mono', 'Lucida Console', monospace;
}

:root {
    --bg: #fff;
    --bg-navbar: #f8f9fa;
    --bg-cse: #f8f9fa;
    --bg-table: #fdfdfe;
    --bg-tooltip: #f2f2f2;
    --bg-navlink-active: #eee;
    --border-color: rgba(0, 0 , 0, 0.125);
    --text: #000;
    --text-navbar: rgb(0, 0, 0, 0.5);
    --landing-title: #eee;
    --link: #355090;
    --link-active: blue;
    --table-outline: #dee2e6;
    --text-red: #ff0000;
    --text-midred: #a00000;
    --fig-outline: #404040;
    --legend: #000;
    --footnote-btn: #6080e0;
    --footnote-btn-bg: #fff;
    --icon: url("/3ed-2018/light.svg");
}

body {
    background-color: var(--bg);
    color: var(--text);
}

footer {
    background-color: var(--bg);
    color: var(--text);
}

figure {
    outline: var(--fig-outline) solid thin;
    margin: auto;
    width: 80%;
    padding: 10px;
}
/* Extra space above subsections and threeheads */
h3, h4 {
    padding-top: 30px;
}

.opener-image {
    background-repeat:no-repeat;
    background-size:cover;
    min-height:300px;
}
.landing-image {
    background-repeat:no-repeat;
    background-size:cover;
}
.landing-container {
    position: relative;
    text-align: center;
}
.landing-title {
    position: absolute;
    bottom: 80px;
    text-align: center;
    font-size: 48px;
    width: 100%;
    font-style: italic;
    color: var(--landing-title);
}
.landing-subtitle {
    position: absolute;
    bottom: 42px;
    text-align: center;
    font-size: 40px;
    width: 100%;
    font-style: italic;
    color: var(--landing-title);
}
.landing-authors {
    position: absolute;
    bottom: 8px;
    text-align: center;
    font-size: 24px;
    width: 100%;
    color: var(--landing-title);
}

@media (max-width: 768px) {
  .landing-title {
      bottom: 58px;
      font-size: 28px;
  }
  .landing-subtitle {
      bottom: 36px;
      font-size: 22px;
  }
  .landing-authors {
      font-size: 16px;
  }
}

@media (max-width: 500px) {
    .landing-title {
/*        top: 6px;
        bottom: auto;*/
        font-size: 20px;
    }
    .landing-subtitle {
        font-size: 16px;
    }
    .landing-authors {
        font-size: 12px;
        bottom: 6px;
  }
}

.landing-text {
    font-size: 14pt;
}

.h3h4marginlink {
    padding-top: 30px;
}
.legend {
    font-style: normal;
    font-weight: normal;
    color: var(--legend);
}
.fragmentname {
    font-style: italic;
}
.fragmentcode {
    display: block;
    unicode-bidi: embed;
    font-family: 'Roboto Mono', 'Lucida Console', monospace;
    font-size: 15px;
    white-space: pre;
    line-height: 1.35;
    padding-bottom: 5px;
}
.invisible {
  font-size: 0;
}
.redtext {
  color: var(--text-red);
}
.midredtext {
  color: var(--text-midred);
}
.eqno {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
a:link {
    color: var(--link) !important;
    text-decoration: none;
}
a:visited {
    color: var(--link) !important;
    text-decoration: none;
}
a:hover {
    color: var(--link-active);
    text-decoration: underline;
}
a:active {
    color: var(--link-active);
    text-decoration: none;
}
.codecarat.collapsed:after {
    content: "\f0fe";
    font-weight: 400;
    font-size: 75%;
}
.codecarat:after {
    content: "\f0fe";
    font-weight: 900;
    font-size: 75%;
}

.table thead th {
    border-bottom: 2px solid var(--table-outline);
}

.table th {
    border-top: 2px solid var(--table-outline);
}

.table td {
    border-top: 1px solid var(--table-outline);
}

.table-light {
    background-color: var(--bg-table);
}

.tooltip-inner {
    max-width:300px !important;
    text-align:left !important;
    padding:3px 8px;
    color: var(--text) !important;
    background-color: var(--bg-tooltip) !important;
    border-radius:.25rem
}

.footnote-button {
    background-color: var(--footnote-btn-bg);
    border: none;
    color: var(--footnote-btn);
    padding: 0px 0px !important;
}

.footnote {
    font-size: 80%;
}

.leftcolumn {
    font-size: 20px;
}

.bluelink {
    color: var(--link);
}

.exerciseicon {
    color: var(--link);
    position: absolute;
    left: 5px;
    width: 0;
}

.navbar {
    background-color: var(--bg-navbar);
    color: var(--text--navbar);
}

.navbar-text {
    color: var(--text-navbar);
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color: var(--bg-navlink-active);
}

.displaymode {
    overflow: hidden;
    cursor: pointer;
    background-color: transparent;
    background-image: var(--icon);
    background-size: 25px 25px;
    border-width: 0px;
    margin-left: 4em;
    margin-right: 1em;
    opacity: 0.75;
    outline: none;
    padding: 0px;
    width: 25px;
    height: 25px;
}

.displaymode:hover {
    opacity: 1.0;
}

.displaymode:focus {
    outline: none;
}

@media (min-width: 767px) {
    .fixed-top-lg-navbar {
        position:fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 10;
    }
    .fixed-bottom-lg-navbar {
        position:fixed !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        z-index: 10;
    }
    .maincontainer {
        padding-top: 110px;
        padding-bottom: 50px;
    }
    .maincontainer-extra {
        padding-top: 130px;
        padding-bottom: 50px;
    }
    .leftcolumn {
        text-align: right;
    }
}

.card {
    border: none;
}

.card-body {
    background-color: var(--bg);
    border: 1px solid var(--border-color)
}

div.figure-row {
    color: var(--text);
    background-color: var(--bg);
    width: 100%; 
    margin: 6px auto;
    padding: 2px;
    text-align: center;
}

.figure-row img {
    padding: 8px;
    display: inline;
}

@media (max-width: 768px) {
    .figure-row img {
        display: block;
        margin: 5px auto;
    }
}

button.difficult-button {
    background-color: var(--bg);
}

.horkKF {
    background-color: var(--bg);
    color: var(--text);
    border: 1px solid var(--border-color);
}

.yojeri {
    background-color: var(--bg);
    color: var(--link);
    padding: 6px 0px !important;
}

.fa-border {
    border: solid 0.08em var(--border-color);
}

figcaption.caption {
    margin-top: 10pt;
    color: var(--link);
}

div.figure {
    padding-top: 3pt;
}

li.exercise {
    margin: 20px 0;
}

li.bibitem {
    margin: 10px 0;
}

div.outerfigure {
    margin-top: 10px;
    margin-bottom: 30px;
}

div.MathJax_Display {
    padding-bottom: 15px;
}

div.displaymath {
    text-align: center;
    padding-bottom: 18px;
}

.container-fluid {
    max-width: 1280px;
    background-color: var(--bg);
    color: var(--text);
}

.cse, .gsc-control-cse {
    background-color: var(--bg-cse) !important;
    border: none !important;
    width: 300px !important;
}
