
.sidenav {
  height: 100%; /* 100% Full-height */
  max-width: 90vw;
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  background-color: var(--color1); /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: var(--color3);
  display: block;
  transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: var(--color2);
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .5s;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}



/* The Overlay (background) */
@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */   
    height: 100%;
    z-index: 6;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    background-color: var(--color1); /* Black fallback color */
    opacity: 0.95;
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
  }
  
  /* Position the content inside the overlay */
  .overlay-content {
    position: relative;
    top: 25%; /* 25% from the top */
    width: 900px; /* 100% width */
    max-width: 90%; /* 100% width */
    text-align: left; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
    margin: auto; 
  }
  
  /* The navigation links inside the overlay */
  .overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: var(--color2);
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
  }
  
  /* When you mouse over the navigation links, change their color */
  .overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
  }
  
  /* Position the close button (top right corner) */
  .overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
  }
  
  /* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
  @media screen and (max-height: 450px) {
    .overlay a {font-size: 20px}
    .overlay .closebtn {
      font-size: 40px;
      top: 15px;
      right: 35px;
    }
  }
  
  
  /* MODAL PRINCIPIOS */
  
  /* The Overlay (background) */
  .modal {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */   
    height: 0%;
    width: 100%;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    background-color: var(--color3); /* Black fallback color */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
  }
  
  
  
  /* Position the content inside the overlay */
  .modal-content {
    position: relative;
    max-width: 90%; /* 100% width */
    height: 100%;
    max-height: 100dvh;
    text-align: left; /* Centered text/links */
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
  }
  
  
  
  .modal-content video {
    max-width: 100%;
    width: 700px;
    padding: 1em;
    margin: auto;
  }

  
  
  .modal-box {
    width: 800px;
    max-width: 90vw;
    max-height: 100dvh;
    max-height: 90vh;
    overflow-y: scroll;
  }

  .modal-box h1 {
    margin-bottom: 0.5em;
    color: var(--color1);
    font-weight: 600;
  }

  .modal-box p {
    font-size: 1.3em;
    color: var(--color1);
    margin-bottom: 0.5em;
  }
  
  /* The navigation links inside the overlay */
  .modal a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: var(--color2);
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
  }

  .subseccion {
    padding-left: 3em !important;
    font-size: 1.2em !important;
    }
  
  /* When you mouse over the navigation links, change their color */
  .modal a:hover, .modal a:focus {
    color: #f1f1f1;
  }
  
  /* Position the close button (top right corner) */
  .modal .closebtn {
    position: absolute;
    z-index: 2;
    text-align: end;
    top: 15px;
    right: 15px;
    padding-right: 15px;
    font-size: 80px;
  }
  
  /* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
  @media screen and (max-height: 450px) {
    .modal a {font-size: 20px}
    .modal .closebtn {
      font-size: 40px;
      top: 15px;
      right: 15px;
    }
  }