/*****

myBus Manage User Guide

*****/

:root {
  --black: #2f2f2f;
  --green: #007f41;
  --orange: #dda000;
  --primary: #0275d8;
  --secondary: #5bc0de;
  --success: #218838;
  --danger: #dc3545;
  --soft-danger: #d9534f;
  --warning: #ffc107;
}

h1, h2, h3, p, li, a {
  color: var(--black);
}

:target {
  outline: var(--green) dashed 3px;
  background-color: #00924611;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;

  margin: 50px 5% 20px;

  background-image: radial-gradient(#d6e4e6 0.9px, #ffffff 0.9px);
  background-size: 18px 18px;
}

/* MARK: Block elements */

h1 {
  font-size: 52px;
  line-height: 1.1;
  padding: 12px 0 8px;
  margin-bottom: 26px;
  border-bottom: 5px solid var(--orange);
}

h2 {
  font-size: 36px;
  line-height: 1.1;
  margin: 50px 0 26px;
  padding-top: 10px;
  border-bottom: 3px solid var(--orange);
}

h1 i,
h2 i {
  margin-right: 10px;
  font-size: 40px !important;
  background-color: var(--green);
  padding: 10px 16px;
  color: #fff;
  border-radius: 8px;
  margin-bottom: -10px;
  min-width: 18px;
  text-align: center;
  transform: translateY(-10px);
}

h2 i {
  font-size: 24px !important;
  padding: 8px 12px;
  border-radius: 6px;
}

h3 {
  font-size: 26px;
  line-height: 32px;
  margin: 40px 0 20px;
  padding-left: 34px;
}

h3::before {
  font-family: FontAwesome;
  content: "\f0a9";
  color: var(--orange);
  position: absolute;
  margin-left: -34px;
}

h4 {
  font-size: 21px;
  line-height: 26px;
  padding: 0;
  margin: 30px 0 0;
  color: var(--black);
}

ul li {
  margin-bottom: 8px;
}

ul ul {
  margin-top: 10px;
}

img {
  max-width: 100%;
  max-height: 100%;
}

video {
  width: 100%;
  height: auto;
}

aside {
  font-size: 15px;
  font-style: italic;
  background-color: #fffad199;
  border: 1px solid #ccc9;
  padding: 0 20px;
  margin: 24px 0;
}

aside a {
  font-size: 14.5px;
}

aside ul {
  margin-top: -12px;
}

blockquote {
  font-family: monospace;
  background-color: #0001;
  border-left: 5px solid #ccc;
  padding: 10px 20px;
  margin: 20px 0;
}

a {
  color: var(--green);
  font-weight: 600;
}

/* MARK: Text styles */

/* texto destacado */
strong {
  font-weight: 700;
}

/* apartados de la web */
em {
  outline: 1px solid;
  padding: 0 5px;
  margin: 0 2px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  background: #ddd;
  text-wrap: nowrap;
}

/* key words (bus, línea, ruta...) */
strong em {
  font-weight: 600;
  background: var(--green);
  background: var(--orange);
  text-transform: uppercase;
  font-size: 12px;
  color: white;
  padding: 0 6px;
  letter-spacing: .5px;
  display: inline-block;
  transform: scale(.9);
}

q {
  quotes: none;
  font-size: 14px;
  text-decoration: underline;
}

hr {
    border: 2px dashed var(--green);
    margin-top: 40px;
    opacity: .3;
}


/* MARK: Hea&Foo */

#page-title {
  font-size: 14px;
  background: var(--orange);
  display: inline-block;
  padding: 10px 20px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 2px;
  color: white;
  border-radius: 0 10px 10px 10px;
}

header a {
  display: inline-block;
}

header img {
  display: block;
  width: 80%;
  max-width: 250px;
  height: auto;
}

footer {
  border-top: 2px solid #ccc;
  margin: 50px 0 30px;
  text-align: left;
  font-size: 14px;
  line-height: 16px;
  color: #555;
}

footer .block1 {
  display: flex;
}

footer .block1 p::after {
  content: " ––––";
  letter-spacing: -1px;
  margin-left: 10px;
}

footer ul {
  padding-left: 20px;
  list-style-type: none;
}

footer ul li {
  margin-right: 10px;
}

footer ul ul {
  padding: 0;
  margin: 0;
  display: flex;
}

footer li li {
  flex-direction: row;
}

footer li li a {
  margin-right: 0;
}

footer a {
  color: inherit;
  margin-right: 10px;
  text-decoration: none;
  font-weight: 400;
}

footer a:hover {
  text-decoration: underline;
}

footer .block2 {
  margin-top: -30px;
  font-size: 13px;
  font-style: italic;
}

html[lang="es"] a.es {
  text-decoration: underline;
}

html[lang="ca"] a.ca {
  text-decoration: underline;
}

html[lang="en"] a.en {
  text-decoration: underline;
}

/* no translated banner */

#no-translated {
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 10px 20px;
  background-color: var(--orange);
  opacity: .95;
  border: none;
  display: flex;
  justify-content: center;
  z-index: 99999;
  box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}

#no-translated div {
  color: #404040;
  font-size: 14px;
  line-height: 1.4;
  font-style: normal;
  max-width: 800px;
  text-align: center;
}


/* MARK: TOC */

#toc h1 {
  border: none;
}

#toc h1 i {
  display: none;
}

#toc a {
  color: inherit;
  text-decoration: none;
}

#toc ul {
  list-style: none;
  padding: 0;
}

#toc .header-h1 {
  font-size: 30px;
  line-height: 38px;
  border-bottom: 3px solid var(--orange);
  padding-right: 80px;
}

#toc .header-h2 {
  font-size: 25px;
  line-height: 28px;
  padding-left: 80px;
  display: inline-block;
  position: relative;
}

#toc .header-h1 i,
#toc .header-h2 i {
  margin-right: 4px;
  font-size: 20px;
  background-color: var(--green);
  padding: 6px;
  color: #fff;
  border-radius: 6px;
  margin-bottom: -10px;
  min-width: 16px;
  text-align: center;
  transform: translateY(-6px);
}

#toc .header-h2 i {
  font-size: 16px !important;
  border-radius: 4px;
  position: absolute;
  margin-top: 4px;
  margin-left: -38px;
}

#toc .header-h3 {
  font-size: 20px;
  line-height: 24px;
  padding-left: 120px;
  display: inline-block;
  position: relative;
}

#toc .header-h3 i {
  color: var(--orange);
  position: absolute;
  margin-top: 3px;
  margin-left: -22px;
}

/* tree branchs */

#toc p:has(.header-h1) {
  margin-bottom: 30px;
  margin-top: 30px;
}

#toc p:has(.header-h2)::before,
#toc p:has(.header-h3)::before {
  content: "";
  display: block;
  width: 20px;
  height: 26px;
  border: 2px solid #ccc;
  border-right: none;
  border-top: none;
  position: absolute;
  margin-top: -12px;
  margin-left: 10px;
}

#toc p:has(.header-h3)::before {
  margin-top: -60px;
  margin-left: 20px;
  height: 72px;
  width: 66px;
}

#toc p:has(.header-h2) + p:has(.header-h3)::before {
  margin-top: -31px;
  height: 44px;
}

#toc p:has(.header-h1) + p:has(.header-h3)::before {
  height: 22px;
  margin-top: -10px;
}


/* MARK: Shortcodes */

.fa-icon {
  display: inline-block;
  outline: 1px solid gray;
  border-radius: 2px;
  padding: 2px 6px;
  transform: scale(.8);
  margin-right: 3px;
  text-wrap: nowrap;
  min-width: 10px;
  text-align: center;
}

.fa-icon i+i {
  margin-left: 3px;
}

span.app-button {
  background: #fff;
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  padding: 2px 10px 3px;
  border: 1px solid #ccc;
  border-radius: 3px;
  white-space: nowrap;
}

span.app-button i {
  margin-left: 4px;
}

span.app-button.notext {
  padding-left: 6px;
  padding-right: 6px;
}

span.app-button.notext i {
  margin-left: 0;
}

p>img,
.vidContainer {
  display: block;
  margin: 30px auto;
  /*width: 98%;*/
}

p>img,
.vidContainer video {
  outline: 1px solid #ccc;
}

.mb-lock {
  color: var(--orange);
  font-size: 16px;
}


/* MARK: Nav */

#nav-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 0 10px 30px 10px;
  border: 1px solid #ccc;
  background: #fffe;
  border-top-right-radius: 30px;
  transition: transform 0.2s ease-out;
}

#nav-buttons a {
  display: block;
  font-family: FontAwesome;
  color: var(--green);
  font-size: 50px;
  text-decoration: none;
  margin-bottom: -30px;
  opacity: .7;
  transition: all .25s ease-out;
}

#nav-buttons a:hover {
  opacity: .9;
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -o-transform: scale(1.1);
  transform: scale(1.1);
}

#nav-buttons a#bt-home::after {
  content: "\f192";
}

#nav-buttons a#bt-up::after {
  content: "\f0aa";
}

#nav-buttons a#bt-back::after {
  content: "\f0a8";
}

#nav-buttons a#bt-info::after {
  content: "\f05a";
}

.page- #nav-buttons a#bt-home {
  opacity: .9;
}

.page-info #nav-buttons a#bt-info {
  opacity: .9;
}

/* MARK: M-queries */


@media only screen and (min-width: 600px) {

  footer ul {
    display: flex;
  }

}

@media only screen and (min-width: 1000px) {

  body {
    margin-left: auto;
    margin-right: auto;
    width: 700px;
  }

  #nav-buttons {
    top: 270px;
    left: 50%;
    margin-left: -420px;
    border: none;
  }

  #nav-buttons a {
    opacity: .3;
  }

}

/* MARK:Tooltip Lock theme */

.tippy-tooltip.lock-theme {
  background-color: var(--orange);
}

.tippy-tooltip.lock-theme[data-placement^='top'] .tippy-arrow {
  border-top-color: var(--orange);
}
.tippy-tooltip.lock-theme[data-placement^='bottom'] .tippy-arrow {
  border-bottom-color: var(--orange);
}
.tippy-tooltip.lock-theme[data-placement^='left'] .tippy-arrow {
  border-left-color: var(--orange);
}
.tippy-tooltip.lock-theme[data-placement^='right'] .tippy-arrow {
  border-right-color: var(--orange);
}