@font-face {
  font-family: "Tex-Gyre";
  src: url("/fonts/texgyrechorus-mediumitalic.otf");
  }

@font-face {
  font-family: "LibreBP";
  src: url("/fonts/LibreBPlassery-Regular.ttf");
  }

@font-face {
  font-family: "LibreBP";
  src: url("/fonts/LibreBPlassery-Italic.ttf");
  font-style: italic;
  }

body {
  margin: 0;
  padding: 0;
  color: #000000;
  background-color: #ffe6c0;
  font-size: 0.95em;
  font-family: "LibreBP", "Trebuchet MS", "Liberation Mono", "Source Code Pro", "Courier New", monospace;
  }
  
a {
  text-decoration: underline;
  color: #1155cc; 
  }
  
a:visited {
  color: #8b008b;
  text-decoration: none;
  }

p {
  line-height: 18pt;
  text-align: left;
  }

h1, h2, h3 {
  text-align: center;
  font-family: "LibreBP", "Georgia", "Roboto Serif", "Cambria", serif;
  }

h1 {
  color: #ffffff;
  font-size: 1.65em;
  font-weight: bold;
  background-color: #0000a0;
  padding-top: 2px;
  padding-bottom: 2px;
  }  

h2 {
  color: #000000;
  font-size: 1.45em;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #0000a0;
  }	

h3 {
  text-align: left;
  font-size: 1.25em;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #0000ff;
  }
  
h3 a {
  text-decoration: none;
  }

blockquote {
  font-style: italic;
  border-left: 1px solid #c0c0c0;
  background: #ffffe0;
  padding: 5px 20px;
  }
  
/***

NOTE: This stylesheet uses elements instead of div classes in a few places (nav1, nav2). 
If you want to use them as classes, put "." in front of all the custom element names in the stylesheet here.
For example: nav1 .navlink {} would be .nav1 .navlink {} instead.

***/

/*Content all goes in here.*/
.wrapper {
  display: block;
  margin: 0 auto;
  width: 800px;
  position:relative;
  }
  
/*This is where the pretty header image goes.*/
.header {
  display: block;
  background: #ffffff;
  background: linear-gradient(rgb(200,200,255,0.1),rgb(255,255,255,0)), url("/images/bannerc_test.png") no-repeat;
  background-size: cover;
  height: 400px;
  top: 0;
  }
  
/*Miscellanous fancy styling for the title inside the header area.*/
.header h1 {
  color: #ffffff;
  font-family: "Tex-Gyre";
  font-size: 3.8em;
  padding-top: 100px;
  vertical-align: middle;
  background: transparent;
  text-shadow:
	-1px 0 0 #000000,
	1px 0 0 #000000,
	0 -1px 0 #000000,
	0 1px 0 #000000;
  }
  
/*Nav1 is for the link buttons on the side.*/
nav1 {
  display: block;
  position: absolute;
  float: right;
  margin-left: 800px;
  top: 200px;
  }
  
nav1 .navlink {
  display: block;
  margin: 15px 0;
  padding: 5px 2px;
  width: 100px;
  text-align: center;
  background: #980000;
  font-family: "Georgia";
  font-size: 1.25em;
  border-radius: 0 15px 5px 0;
  }
  
nav1 .navlink a {
  color: #ffffff;
  text-decoration: none;
  }

nav1 .navlink:hover, nav1 .navlink:focus-within {
  background: #555;
  padding-left: 5px;
  transition: ease 0.5s; /*So the tab button appears to 'move' instead of instantly changing and popping outwards.*/
  }
  
/*Nav2 is for the links directly below the header.*/
nav2 {
  display: block;
  width: 100%;
  background: #980000;
  color: #ffffff;
  text-align: center;
  }

nav2 a {
  text-decoration: none;
  }
  
nav2 .navlink {
  display: inline-block;
  margin: 10px 5px;
  padding: 2px;
  font-size: 1.25em;
  text-decoration: none;
  font-family: "Georgia", serif;
  }
  
nav2 .navlink a {
  color: #fff;
  text-shadow: 0 0 2px #c3cdea; 
  text-decoration: none;
  }
  
nav2 .navlink a:hover, nav2 .navlink a:focus {
  text-shadow: 0 0 3px #dae1f5;
  transition: ease 5s;
  }
  
/* Main page content goes in here. */
.main {
  display: block;
  margin: 0;
  position: relative;
  background-color: #ffe6c0;
  background-size: 900px auto;
  background-position: bottom center;
  }
  
/*Inside div. I don't remember why this was a div and nothing else, but it is. 
  If you do change that, remember to add display:block; to the element first.*/
.inner {  
  display:block;
  padding: 1px 15px 10px 15px; /*The 1px is to prevent paragraph margin overflow from mucking up the background. CSS is weird sometimes.*/
  background-color: #ffffff;
  }
  
/*Prevent image overflow.*/
.inner img {
  max-width: 100%;
  height: auto;
  }
  
/*Footer with small text at the bottom of the page.*/
.footer {
  display: block;
  color: #ffffff;
  padding: 0.75em 20px;
  font-family: "Trebuchet MS", serif;
  text-align: center;
  font-size: 0.85em;
  background: #ffffff;
  background-color:#044f5e;
  line-height: 150%;
  }
  
.footer a {
  color: #dfdfdf;
  }
  
/* cajas para la biblioteca */

.box {
	width: 330px;
	background-color: #ffffff;
	padding: 2px 8px 15px 0;
	text-align: left;
	overflow: auto;
  }

.cover {
	width: 140px;
	background-color: #ffffff;
	padding: 2px 8px 15px 5px;
	text-align: center;
	overflow: auto;
  }

.cover2 {
	width: 180px;
	background-color: #ffffff;
	padding: 2px 8px 15px 0;
	text-align: center;
	overflow: auto;
  }

.wrapperbox {
	display: flex;
	justify-content: center;
	background-color: #ffffff;
  }

.mainbox {
	width: 900px;
	background-color: #ffffff;
	text-align: left;
	overflow: auto;
	margin-top: 5px;
  }

/* botones */

.button {
	width: 250px;
	border: 2px #c0c0c0;
	border-radius: 5px;
	color: #ffffff;
	background-color: #15317e;
	margin: 20px 32px 0 32px;
	padding: 10px 10px 10px 10px;
	text-align: center;
	overflow: auto;
	vertical-align: middle;
  }

.button a {
	color: #ffffff;
	text-decoration: none;
	font-size: 0.95em;
  }

/* Y acá viene el marquee */

.marquee {
  height: 25px;
  overflow: hidden;
  position: relative;
  background: #ffffe0;
  color: #454545;
  border: 2px solid #ff8c00;
	display: block;
	margin: 2px 2px 0 0;
	padding: 0;
  width: 100%;
	border-radius: 5px 5px 5px 5px;
  }

.marquee p {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  line-height: 25px;
	font-family: "Trebuchet MS", serif;
  text-align: center;
  -moz-transform: translateX(100%);
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
  -moz-animation: scroll-left 2s linear infinite;
  -webkit-animation: scroll-left 2s linear infinite;
  animation: scroll-left 20s linear infinite;
  }

@-moz-keyframes scroll-left {
  0% {
  -moz-transform: translateX(100%);
    }
  100% {
  -moz-transform: translateX(-100%);
    }
  }

@-webkit-keyframes scroll-left {
  0% {
  -webkit-transform: translateX(100%);
    }
  100% {
  -webkit-transform: translateX(-100%);
    }
  }

@keyframes scroll-left {
  0% {
  -moz-transform: translateX(100%);
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
    }
  100% {
  -moz-transform: translateX(-100%);
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
    }
  }

/***

For narrower screens that can't handle the full version of the page.

***/

/*For desktop screens that are too narrow for the default width, keep the default layout, but with a narrower column.*/
@media(max-width:1050px) {
  .wrapper {
    width: 600px;
    }
  nav1 {
    margin-left:600px;
    }
  }

/*For smallest screens, switch to percentage-based width, and move the side tab buttons to the space under the header as centered buttons.*/
@media(max-width:900px) {
  .wrapper {
    width: 80%;
    }
  nav1 {
    position: static;
    margin-left: 0;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    }

  nav1 .navlink {
    display: inline-block;
    border-radius: 15px 5px;
    margin: 15px 0;
    padding: 5px 15px 10px 15px;
    width: auto;
    }
    
  nav1 .navlink:hover {
    padding-left: 15px;
    }
  }

/*If on mobile, maximize the space available by increasing width to 95%.*/
@media(orientation:portrait) {
  .wrapper {
    width: 95%;
    }
  }