:root {
  --pages_container_height: 760px;
  --page-left-margin: 30px;
  --page-right-margin: 30px;
  --page-top-margin: 30px;
  --interactive-margin: 0px;
}

body {
  font-family: 'Amaranth', sans-serif;
  font-size: 14px;
}

.page h1 {
  color: var(--h1-color);
}
.page h2 {
  color: var(--h2-color);
  font-size: 140%;
}
a {
  color: var(--link-text-color);
}

.note {
  border-left: 4px solid var(--note-color);
  color: var(--note-text-color);
  font-size: 100%;
}

.num_block {
  border-left: 4px solid #16a085;
}
.num_block[prefix="Teorema"] {
  border-left: 4px solid #2ecc71;
}
.num_block[prefix="Lema"] {
  border-left: 4px solid #f39c12;
}

.image_expand {
  -webkit-box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.5);
  box-shadow: 5px 5px 10px 0px rgba(0,0,0,0.5);
}

.interactive {
  text-align: center;
  border: none;
  border-radius: 2px;
  background: var(--interactive-color);
}
.btn_expand {
  display: none;
}
.image_link {
  border: 2px solid var(--image-border-color);
}


li {
  padding: 0 0 0.6em 0;
}

ol ol,
ol ul,
ul ol,
ul ul {
  padding-left: 2.2ch;
}

code, code_math {
  display: inline;
}
code, pre, code_math {
  font-family: 'UbuntuMono', monospace;
  font-size: 107%;
  color: #27ae60;
}
xmp {
  font-family: 'UbuntuMono', monospace;
  font-size: 107%;
  color: #e67e22;
  border: 1px solid #e67e22;
}

.katex {
  font-size: 100% !important;
}

.cover_title {
  position: absolute;
  top: 550px;
  bottom: 0px;
  left: 152px;
  right: 0px;
  color: #000;
  text-shadow: 1px 1px 10px #fff;
  font-size: 350%;
  text-align: center;
  padding-top: 50px;
  background-color: rgba(255,255,255,0.6);
}
.cover_title1 {
  position: absolute;
  top: 515px;
  bottom: 0px;
  left: 152px;
  right: 0px;
  color: #000;
  text-shadow: 2px 2px 6px ;
  font-size: 375%;
  text-align: center;
  padding-top: 50px;
  background-color: rgba(255,255,255,0.1);
}
.cover_title2 {
  position: absolute;
  top: 605px;
  bottom: 0px;
  left: 152px;
  right: 0px;
  color: #000;
  text-shadow: 2px 2px 6px ;
  font-size: 290%;
  text-align: center;
  padding-top: 20px;
  background-color: rgba(255,255,255,0.1);
}
.cover_subtitle {
  position: absolute;
  left: 57px;
  right: 0px;
  bottom: 45px;
  text-align: center;
  color: #0089cd;
  font-size: 220%;
  text-shadow: 1px 2px rgba(0,0,0,0.15);
}

.chap_text {
  position: absolute;
  top: 50px;
  left: 150px;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 48px;
    font-weight: bold;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.5);
  
    -webkit-text-stroke-width: 1px; 
  -webkit-text-stroke-color: black; 
}
h1.chap_name {
  position: absolute;
  top: 110px;
  left: 150px;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 56px;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.5);
     -webkit-text-stroke-width: 1px; 
  -webkit-text-stroke-color: black; 
}
.chap_author {
  position: absolute;
  top: 570px;
  left: 150px;
  right: 0;
  text-align: center;
  color: #000;
  font-size: 30px;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.5);
}

.no_border {
  border: none;
}
.no_border td {
  border: none !important;
}
.no_decoration {
  text-decoration: none;
  border-bottom: none;
}

body.dark .invertcolor {
  filter: invert(1) hue-rotate(180deg);
}

.two_col,
.three_col,
.four_col,
.five_col,
.six_col,
.seven_col {
  display: grid;
  margin: 0 auto;
  column-gap: 2ch;
  align-items: center;
}
.two_col {
  grid-template-columns: auto auto;
}
.three_col {
  grid-template-columns: auto auto auto;
}
.four_col {
  grid-template-columns: auto auto auto auto;
}
.five_col {
  grid-template-columns: auto auto auto auto auto;
}
.six_col {
  grid-template-columns: auto auto auto auto auto auto;
}
.seven_col {
  grid-template-columns: auto auto auto auto auto auto auto;
  place-items: center
}

.footnote::before{
  right: 0;
  left: 0;
}

.box{
  background-color: #ddfff1;
  padding: 8px 8px 0 8px;
  margin-bottom: 0.8em;
border-radius: 8px
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 0px dotted black;
}

.tooltip .tooltiptext {
	font-size:15px; 
	font-family: 'descartesJS_Sansserif', sans-serif;
	visibility: hidden;
    width: 180px;
    background-color: #ddfff0;
    color: #000;
    text-align: center;
    border-radius: 6px;
    padding: 5px 5px;

    /* Position the tooltip */
    position: absolute;
	left:-90px;
top: 25px;
	z-index: 1;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.tooltip2 {
    position: relative;
    display: inline-block;
    border-bottom: 0px dotted black;
}

.tooltip2 .tooltiptext {
	font-size:15px; 
	font-family: 'descartesJS_Sansserif', sans-serif;
	visibility: hidden;
    width: 250px;
    background-color: #ddfff0;
    color: #000;
    text-align: center;
    border-radius: 6px;
    padding: 5px 5px;

    /* Position the tooltip */
    position: absolute;
	left:-90px;
top: 25px;
	z-index: 1;
}

.tooltip2:hover .tooltiptext {
    visibility: visible;
}

.tooltip3 {
    position: relative;
    display: inline-block;
    border-bottom: 0px dotted black;
}

.tooltip3 .tooltiptext {
	font-size:14px; 
	font-family: 'Amaranth', sans-serif;
	visibility: hidden;
    width: 410px;
    background-color: #ddfff0;
    color: #000;
    text-align: center;
    border-radius: 12px;
    padding: 10px 10px;

    /* Position the tooltip */
    position: absolute;
	left:0px;
   top: 25px;
	z-index: 1;
}

.tooltip3:hover .tooltiptext {
    visibility: visible;
}

.tooltip4 {
    position: relative;
    display: inline-block;
    border-bottom: 0px dotted black;
}
.tooltip4 .tooltiptext {
	font-size:14px; 
	font-family: 'Amaranth', sans-serif;
	visibility: hidden;
    width: 260px;
    background-color: #ddfff0;
    color: #000;
    text-align: center;
    border-radius: 12px;
    padding: 10px 10px;

    /* Position the tooltip */
    position: absolute;
	left:0px;
   top: 25px;
	z-index: 1;
}

.tooltip4:hover .tooltiptext {
    visibility: visible;
}