.contenedor-video {
    position: relative;
    width: 50%;
    aspect-ratio: 1;
}

.contenedor-video p{
   margin:0;
   width: 100%;
}

.miniatura {
    aspect-ratio: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.mi-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; 
    transition: opacity 0.3s ease;
}

.contenedor-video:hover .mi-video {
    opacity: 1;
}

video {
}


audio {
  filter: contrast(1.2) grayscale(1);
  width: 100%;
  margin-bottom: 1rem;
  float: right;
  clear: both;
}

.barra-lateral {
display: block;
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 8%;
  height: 10vh;
  color: black;
  text-align: center;
  padding: 1rem;
  z-index: 10;
  font-size: 7rem;
  font-weight: bolder;
display:none;
    }

.boton {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 8px solid black;
    text-align: center;
    padding:1rem;
    margin-bottom: 1rem;
}

.boton:hover {
    background-color: #FFCC00;
}

.artefacto {
  font-size: 1.5rem;
  line-height: normal;
}

.artefacto p{
  text-align: right;
}

.artefacto figcaption {
  margin-top: 1rem;
  font-size: 1.5rem;
  line-height: normal;
  font-family: inherit;
  padding-right: 0;
  text-align: left;
}

.artefacto figure {
  margin-bottom: 1rem;
}

.caracteristicas ul {
list-style-position: inside;
list-style: none;
padding: 2rem;
border: 8px solid black;
margin-top: 1rem;
margin-bottom:2rem;
line-height: 2;
}

math {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

h1:first-of-type {
  display:none;
}

.menu, .menu a {
    text-align:right;
    font-size: 3rem;
    line-height: 2rem;
    font-weight: normal;
    font-family: Cutive Mono;
}

.menu a:hover{
  color: black;
  background:none;
}

.menu {
   text-align: left;
}

#stl_cont {
  float: right;
  width: 50%;
  clear: both;
  margin-bottom: 0rem;
  aspect-ratio: 1/1;
  z-index: 10;
  position: relative;
}

img {
  filter:grayscale(1);
}

img:hover {
  filter:grayscale(0);
}

.logo {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.proyecto {
width: 50%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
    --fondo: #fff;
    --primario: #121212;
    --resaltado: lightgray;
}

::selection { 
    background: #FFCC00;
    color: black;
}

@font-face {
    font-family: 'Libre Baskerville';
    src: url('LibreBaskerville-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
  font-size: calc(14px + 0.390625vw);
  color: var(--primario);
}

body {
  line-height: 1.4rem;
  font-family: sans;
  background: white;
}

.littlefoot p{
  width: 100%;
}

header {

}

main {
  max-width: 1500px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

article {
position: relative;
  height: 100%;
}

#TOC {
  float: right;
  text-align: left;
  width: 40%;
  margin-bottom: 4rem;
  margin-top: 2rem;
  padding-left: 1rem;
  clear:both;
}

#TOC ul {
    list-style-type: decimal-leading-zero;
}

#TOC ul ul{
    list-style-type: none;
}

#TOC li {
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid black;
}

#TOC ul ul li{
  margin-bottom: 0;
}

#TOC ul li ul li {
  border-left: 0px solid black;
  padding-left: 0rem;
  margin-top: 1rem;
}

#TOC a{
  font-family: 'Cutive mono';
  font-size: 1.8rem;
  line-height: 1.4rem;
}

#TOC a:hover{
  background: var(--resaltado);
  color: black;
}

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

a:hover {
    background: #FFCC00;
    color: black;
}

h1 {
  font-size: 3rem;
  line-height: 3rem;
  margin-bottom: 2rem;
  margin-top: 3rem;
}

h1:not(:first-child) {

}

h2 {
  margin-top: 3rem;
  font-size: 2.5rem;
  line-height: 2.5rem;
  margin-bottom: 2rem;
}

h3 {

}

hr {

}

main p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

figure {
  float:right;
  width: 45%;
  clear: both; /* Para no solapar dos img a la misma altura */
  margin-bottom: 2rem;
}

img {
  width: 100%;
}

figcaption {
  text-align: right;
  padding-right: 0.5rem;
  font-size: 1.5rem;
}

p, h1, h2, h3, .artefacto ul {
    width: 50%;
    box-sizing: border-box;
}

h1, h2, h3, a {
  font-family: 'CC Accidenz Commons', sans;
}

figcaption {
  font-family: 'Cutive Mono', mono;
  font-weight: normal;
}

footer {

}

.footnotes {
  margin-top: 3rem;
}

.footnotes p{
  margin: 0.5rem;
}

.footnotes ol{
  margin-top: 2rem;
}

/* Resoluciones para teléfono: */

@media only screen and (max-width: 799px) {
  
  .contenedor-video {
    width: 100%;
}

.artefacto p {
text-align: left;
}

.proyecto{
  width: initial;
  margin: 2rem 2rem 0rem 2rem;
}

.logo{
  margin-bottom: 0;
}

main {
    margin-left:0.5rem;
    margin-right: 0.5rem;
    padding:0;
  }

.menu {
   text-align: center;
}
  
#TOC, figure, p, h1, h2, .artefacto ul {
    width: 100%;
    float:inherit;
}

#TOC {
    padding-left: 2.5rem;
}

#stl_cont {
    width: 100%;
    float:inherit;
    aspect-ratio:1/1;
    margin-bottom:0;
}

audio {
  width: 100%;
  float: none;
}

h1:first-of-type {
  display:inherit;
}
  
}


