/* -- Font Definitions -------------------------------- */
@font-face {
  /* Bundled here, copied from the Fedora package:
   *     mozilla-fira-sans-fonts-3.111-3.fc23.noarch */
  font-family: fira-sans-extra-italic;
  src: url(/fonts/FiraSans-ExtraBoldItalic.otf);
}
@font-face {
  /* Bundled here, copied from the Fedora package:
   *     adobe-source-sans-pro-fonts-1.050-5.fc23.noarch */
  font-family: source-sans-pro;
  src: url(/fonts/SourceSansPro-Regular.otf);
}
@font-face {
  /* Bundled here, copied from the Fedora package:
   *     adobe-source-code-pro-fonts-2.010.1.030-1.fc23.noarch */
  font-family: source-code-pro;
  src: url(/fonts/SourceCodePro-Light.otf);
}

/* -- Don't show the... ------------------------------- */
.print-only {
  display: none;
}

/* -- Transitions ------------------------------------- */
#layout, #menu, .menu-link, #lang-selector {
  transition: all 0.2s ease-out;
}
#menu a:hover {
  transition: all 0.4s ease-out;
}

/* -- Body, Layout and Content ------------------------ */
body {
  color: #4e4e4e;
  font-family: source-sans-pro;
  font-size: 16px;
  line-height: 1.5em;
}

.right {
    float: right;
}

#layout {
    position: relative;
    padding-left: 0;
}
#layout.active #menu, #layout.active #lang-selector {
  left: 0;
  width: 300px;
}

#layout.active .menu-link {
  left: 300px;
}

#main {
  margin: 5em auto 8px;
  padding: 0 2em;
  max-width: 800px;
}

/* -- Navigation Menu --------------------------------- */

#menu {
  background-color: #2b3233;

  width: 300px;

  position: fixed;
  top: 0;
  left: -300px; /* "#menu" width */
  bottom: 0;
  z-index: 1000; /* so the menu or its navicon stays above all content */

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#menu .pure-menu ul.social-buttons {
  text-align: center;
  list-style-type: none;
  font-size: 40px;
  padding: 0;
  margin: 30px auto;
}
#menu .pure-menu ul.social-buttons li {
  display: inline-block;
  margin: 0 10px;
}
#menu .pure-menu ul.social-buttons a {
  color: #c0c0c0;
  text-decoration: none;
}
#menu .pure-menu ul.social-buttons a:hover {
  color: #fff;
}

#menu .pure-menu .pure-menu-list {
  border-top: 0;
  margin-top: 2em;
}

#menu .pure-menu-item {
  border-top: solid 1px #3c4548;
}
#menu .pure-menu-item:first-of-type {
  border-top: 0;
}

#menu li.pure-menu-selected a {
  border-left: solid 4px #005699;
  color: #fff;
}

#menu a.pure-menu-link {
  color: #eee;
  border: none;
  padding-left: 1em;
}
#menu a.pure-menu-link:hover, #menu a.pure-menu-link:focus {
  background-color: #2b3233;
  border-left: solid 4px #005699;
}

#menu a.pure-menu-heading {
  color: #eee;
  font-family: fira-sans-extra-italic;
  font-size: 20px;
  padding: 1em 0 0;
  text-align: center;
}

.menu-link {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;

  background-color: #2b3233;
  background: rgba(43, 50, 51, 0.6); /* Same as the previous line, but with alpha */
  font-size: 10px;

  height: auto;
  width: 2em;
  padding: 2.1em 1.6em;
}

.menu-link:hover, .menu-link:focus {
  background-color: #2b3233;
}

.menu-link span {
  display: block;
  position: relative;
}

.menu-link span, .menu-link span:before, .menu-link span:after {
  background-color: #fff;
  height: 0.2em;
  width: 100%;
}
.menu-link span:before, .menu-link span:after {
  position: absolute;
  margin-top: -0.6em;
  content: " ";
}
.menu-link span:after {
  margin-top: 0.6em;
}

/* -- Language Selector ------------------------------- */
#lang-selector {
  position: fixed;
  bottom: 0;
  left: -300px; /* "#menu" width */
  width: 300px; /* '.menu' width */
  font-size: 90%;
  z-index: 1001; /* so it's above the menu */
}

#lang-selector-button {
  background-color: #1a2122;
  color: #eee;
  display:block;
  padding: 0.5em 1em;
  cursor: pointer;
}
#lang-selector-button span {
  padding: 0 0.5em;
}

#lang-selector-menu {
  background-color: #2b3233;
  max-height: 0;
  transition: all 0.3s linear;
}
#lang-selector-menu.visible {
  margin-bottom: 30px;
  max-height: 6em;
  transition: all 0.3s linear;
}

#lang-selector-list {
  margin: 0;
  padding: 0;
}
#lang-selector-list li {
  margin: 0;
  border-top: solid 1px #3c4548;
}
#lang-selector-list li:first-of-type {
  border-top: 0;
}
#lang-selector-list a {
  color: #eee;
  display: block;
  padding: 0.5em 2em;
  text-decoration: none;
  transition: text-shadow 0.5s ease 0s;
}
#lang-selector-list a:hover, #lang-selector-list a:focus {
  text-shadow: white 0px 0px 1px;
}

/* Hide the menu at `48em` */
@media (min-width: 48em) {
  #main {
    padding-left: 2em;
    padding-right: 2em;
  }

  #layout {
    padding-left: 300px; /* left col width "#menu" */
    left: 0;
  }
  #menu, #lang-selector {
    left: 0;
  }

  .menu-link {
    position: fixed;
    left: 300px; /* left col width "#menu" */
    display: none;
  }

  #layout.active .menu-link {
    left: 300px; /* left col width "#menu" */
  }
}

@media (max-width: 48em) {
  #menu #lang-selector {
    margin-top: 30px;
    position: static;
  }
  #menu #lang-selector-caret {
    display: none;
  }
  #layout.active {
    position: relative;
    left: 300px;
  }
}

/* -- Search ------------------------------------------ */
#tipue_search_input {
  border-radius: 4px;
  padding: 3px 12px 3px 30px;
  background: #FFF url("tipuesearch/img/search.png") no-repeat scroll 9px 9px;

  display: block;
  margin: 0 auto;

  font-family: source-sans-pro;
  font-size: 16px;
}


/* -- Inline and Block Code --------------------------- */
code, pre {
  font-family: source-code-pro;
  overflow: auto;
}
code {
  background-color: inherit;
  color: inherit;
  font-size: 15px;
  white-space: nowrap;
}
pre {
  border-radius: 5px;
  border: solid 1px #9d9d9d;
  font-size: 14px;
  padding: 1em;
}


/* -- Misc -------------------------------------------- */
hr {
  border: none;
  background-color: #edeeef;
  font-size: 24px;
  height: 1px;
  margin: 0 2em;
}

h2.page-title {
  font-size: 24px;
  text-align: center;

  border-bottom: solid 1px #edeeef;
  margin: 0 2em 1em 2em;
  padding: 0 1em 1em 1em;
}

h3 {
  font-size: 20px;
}

h4 {
  font-size: 16px;
  margin-left: 1em;
}

h5 {
  font-size: 16px;
  margin-left: 2em;
}

img {
  padding: 0;
  margin: 0 0 -1px;
}

p img:only-child {
  clear: both;
  display: block;
  margin: 2em auto;
  max-width: 700px;
}

#main a {
  color: #005699;
  text-decoration: none;
  text-shadow: none;
  transition: text-shadow 0.5s ease 0s;
}
#main a:hover, #main a:focus {
  color: #0069ba;
  text-decoration: underline;
  text-shadow: #0090ff 0px 0px 1px;
}

#main p.paginator {
  margin: 2em 0;
  text-align: center;
}

#main p.paginator a, #main p.paginator span {
  color: #777;
  font-family: source-sans-pro;
  font-size: 14px;
  padding: 10px 17px 11px;
  border-radius: 1px;
  margin-right: 7px;
}
#main p.paginator a {
  background-color: #fff;
  border: 1px solid #e2e2e2;
}
#main p.paginator a:hover, #main p.paginator a:focus {
  color: #777;
  text-decoration: none;
  text-shadow: none;
  background: #f6f6f6;
}
#main p.paginator .current {
  background: #f6f6f6;
  border: 1px solid #e2e2e2;
}

#main .admonition {
  border-radius: 5px;
  padding: 0.5em;
  max-width: 700px;
  margin: 1em auto 1em auto;
}
#main .admonition p.admonition-title {
  font-weight: bold;
}
#main .admonition p {
  margin: 5px 0;
}
#main .admonition p:first-child {
  margin-top: 0;
}
#main .admonition p:last-child {
  margin-bottom: 0;
}
#main .admonition.note {
  background-color: #EEF8FF;
  border: solid 1px #9d9d9d;
}
#main .admonition.warning {
  background-color: #FDF6E3;
  border: solid 1px #9d9d9d;
}

div.post-info {
  border-top: solid 1px #edeeef;
  margin: 2em 2em 0 2em;
  padding: 1em 1em 0 1em;
  text-align: right;
  font-style: italic;
}
div.post-info p {
  margin: 0;
}
div.post-info abbr {
  border: none;
}

p.post-info {
  font-style: italic;
  margin-top: -1em;
}

#tipue_search_foot_boxes li {
  color: #777;
  font-family: source-sans-pro;
  font-size: 14px;
}

#tipue_search_foot_boxes li a.tipue_search_foot_box {
  cursor: pointer;
  color: #777;
}
#tipue_search_foot_boxes li a.tipue_search_foot_box:hover,
#tipue_search_foot_boxes li a.tipue_search_foot_box:focus {
  color: #777;
  text-decoration: none;
  text-shadow: none;
}
