/**
 *  Este es el block_bloque_recursos.php
 * @package    Bloque_Recursos
 * @copyright  Luis Castillo(Uniminuto)-2025
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

/* Estilos para la modal */

/* Contenedor del preloader */
#preload1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  z-index: 1055; /* Asegura que esté encima del contenido */
}

/* Loader con animación en forma de diamante */
@keyframes ocultar {
  0% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

.loader1 {
  position: relative;
  width: 64px;
  height: 64px;
  background-color: rgba(0, 0, 0, 0.5);
  transform: rotate(45deg);
  overflow: hidden;
  animation: ocultar 1s ease-in-out 1s forwards;
}

.loader1:after {
  content: '';
  position: absolute;
  inset: 8px;
  margin: auto;
  background: #222b32;
}
.loader1:before {
  content: '';
  position: absolute;
  inset: -15px;
  margin: auto;
  background: #c5efff;
  animation: diamondLoader 2s linear infinite;
}

@keyframes diamondLoader {
  0%, 10% {
      transform: translate(-64px, -64px) rotate(-45deg);
  }
  90%, 100% {
      transform: translate(0px, 0px) rotate(-45deg);
  }
}

#openWindowRecourse1{
  /*margin-top: 3px;*/
  background-color: #c5efff;
  border: none;
}

.modal-title1{
margin-bottom: 0;
line-height: 1.5;
color: #1E293B ;
font-weight: 500 !important;
}

.fa-external-link:before {
  color: white;
}

.modal {
  display: none; /* Ocultar por defecto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content1 {
  background-color: #fff;
  /*padding: 1px;*/
  /*border: 1px solid #888;*/
  width: 80%;
  position: relative;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  border-radius: 0.5rem;
  outline: 0;
}

.modal-header1 {
  background-color: #c5efff !important;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: calc(0.6rem - 1px);
   border-top-right-radius: calc(0.6rem - 1px);
}

.modal-botones1 {
  scale: 1.3;
  padding: 5px;
  margin-right: 20px;
  display: flex;
  gap: 10px;
}

.modal .close {
  margin: -.8rem -.8rem -.8rem auto;
}

.modal-header .close {
  padding: 1rem 1rem;
}

/* Estilos para el iframe */
.frame-plugin {
  width: 100%;
  height: 500px;
  border: none;
}

.modal-backdrop.show {
  display: none;
}

/*.custom-header{

  z-index: 1 !important;

}*/

#page-wrapper {
  position: relative;
  z-index: 1 !important;
}

/* CSS para que funciones con fomrato mosaico */
.format-tiles.course-53.jsenabled #format-tiles-multi-section-page{
  position: relative;
  z-index: 0 !important;
}

.modal-body1{
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

.close {
    /* float: right; */
    /* font-size: 1.40625rem; */
    /*font-weight: 700; */
    line-height: 1;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    color: #000 !important;
}

.button.close {
  padding: 0;
  background-color: transparent;
  border: 0;
}

.modal-content1 .frame-plugin .custom-header{

display: none;

}

#modalRecourse1 {
  z-index: 1050 !important;
}

/* .modal-backdrop {
    z-index: 1040 !important; /* Valor estándar de Bootstrap 
}



/*.modal-content1 {
    position: relative;
    z-index: 1051; /* Mayor que el modal 
}
*/

.drawer.drawer-right{
  z-index: 10;
}

.new-height #theme_boost-drawers-courseindex.resizeY, .new-height #theme_boost-drawers-blocks.resizeY{
  z-index: 1040 !important;
}