@import "common.css";

:root {
  --pages_container_width  : 1280px;
  --pages_container_height : 825px;
  --left_right_margin_pages : 30px;

  --page-left-margin: 50px;
  --page-right-margin: 50px;
  --page-top-margin: 30px;
  --page-bottom-margin: 20px;
}

#book_container {
  position: relative;
  width: 100%;
  height: 100%;
  /* position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0; */
  background-color: #ecf0f1;
}

#go_to_table_of_content {
  position: absolute;
  left: 0;
  top: 0;

  /* set from javascript */
  /* width: 2vw;
  height: 2vw; */

  cursor: pointer;
  outline: none;
  border: none;
  z-index: 1;
  background-color: #ecf0f1;
  background-size: cover;
  padding: 0;
}
#go_to_table_of_content {
  background-image: url("../images/table_of_content.svg");
}

#btn_back_page, #btn_next_page {
  position: absolute;
  
  /* set from javascript */
  /* width: 2vw;  */
  
  height: 100%;
  top: 0;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
  z-index: 1;
}
#btn_back_page {
  background-image: url("../images/back.svg");
  left: 0;
}
#btn_next_page {
  background-image: url("../images/next.svg");
  right: 0;
}
.page {
  position: relative;
  width: calc(var(--pages_container_width) / 2);
  height: 100%;
  background-color: white;
  box-sizing: border-box;
  padding: var(--page-top-margin) var(--page-right-margin) var(--page-bottom-margin) var(--page-left-margin);
  text-align: justify;
}
#pages_container .page:nth-child(odd) {
  border-right: 1px solid rgba(0,0,0,0.1);
}

.cover_title {
  position: absolute;
  top: 595px;
  left: 57px;
  right: 0px;
  color: #0089cd;
  font-size: 350%;
  text-align: center;
  text-shadow: 1px 2px rgba(0,0,0,0.15);
}
.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;
  right: var(--page-right-margin);
  top: 200px;
  color: #0089cd;
  font-size: 500%;
  text-shadow: 1px 2px rgba(0,0,0,0.15);
}
.chap_name {
  position: relative;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  left: 58px;
  width: 582px;
  top: 395px;
  height: 170px;
  color: #0089cd;
  font-size: 250%;
  text-shadow: 1px 2px rgba(0,0,0,0.15);
}

.page h2 {
  color: #000099;
  font-size: 140%;
}
.toc_link {
  font-size: 95%;
  padding: 0;
  margin-bottom: 0.5em;
  color: #222f3e;
  cursor: pointer;
  background-image: url("../images/dot.svg");
}
.toc_link:hover, .toc_link:hover a, .toc_link:hover .toc_number {
  background-color: hsl(205, 87%, 90%);
}
.toc_link a {
  padding-left: 1em;
  padding-right: 0.2em;
  background-color: white;
  text-decoration: none;
  color: inherit;
}
.toc_number {
  background-color: white;
  float: right;
}

.page_number {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  font-weight: bold;
  font-size: 80%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
   -khtml-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.footnote {
  display: block;
}
.footnote::before {
  content: attr(number);
  position: absolute;
  display: inline;
  font-size: 75%;
  left: -0;
}
.footnote_container {
  position: absolute;
  width: calc(100% - var(--page-left-margin) - var(--page-right-margin));
  bottom: 48px;
  font-size: 75%;
  border-top: 2px solid #3c6382;
  padding-left: 1em;
}

.fondo_check {
	 margin:25px 5px 0px 5px;  background-color: #cff9f9; padding:10px 15px 10px 15px; border: 2px solid #cff9f9;
	}
	
.fondo_check0 {
	 margin:25px 5px 0px 5px;  background-color: #e1faad; padding:10px 15px 10px 15px; border: 2px solid #e1faad;
	}
	
.fondo_check1 {
	 margin:25px 5px 0px 5px;  background-color: #ffffff; padding:10px 15px 10px 15px; border: 2px solid #0d6cee;
	}