body {    
              background-image: url("C:\Users\ARTURO HAWY\Pictures\SISAL\IMG_4904.JPG");
              background-repeat: no-repeat;
              background-attachment: fixed;
              background-size: cover;
              margin: 0%;
              background-color: #41dff726;
            }

#cont    {    float: center;
              margin-left: 210px;
              margin-top: 140px;
              border-radius: 5px;
              border-color: #434343;
              min-inline-size: 50%;
              margin-bottom: 20px;
              height: fit-content;
              display: block;
              background-image: url("../imagenes/sisal/Portada_de_Libro_con_Cuaderno_a_Rayas_Blanco.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.5); /* Change the opacity to 50% */
    border-bottom: 3px solid rgb(11, 11, 11);
}

:root{
  --topbar-h: 140px;
  --navbar-h: 60px;   /* ajustá si tu navbar es más alto */
}

main    {    float: center;
              margin-left: 210px;
  margin-top: calc(var(--topbar-h) + var(--navbar-h));
              border-radius: 5px;
              border-color: #434343;
              min-inline-size: 50%;
              margin-bottom: 20px;
              height: fit-content;
              display: block;
              background-image: url("../imagenes/sisal/Portada_de_Libro_con_Cuaderno_a_Rayas_Blanco.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.5); /* Change the opacity to 50% */
    border-bottom: 3px solid rgb(11, 11, 11);
}

main h1{
  margin-top: 20px;
}


#date {
  color: rgb(243, 243, 247);
  font-size: 20px;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  text-align: right;
  position: fixed;
  right: 2%;
}

.video {
    display: flex;
    justify-content: center;
    align-items: center;
}

#topbar {
  width: 100%; /* width of the top bar */
  height: 10vh; /* height of the top bar */
  position: fixed; /* position the top bar fixed */
  top: 0; /* position the top of the top bar at the top of the viewport */
  left: 0; /* position the top bar at the left of the viewport */
  z-index: 1; /* this will make the topbar on top of the other elements */
}

#navbar {
  position: fixed;
  top: 140px;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 100;
}

/* Lista del menú */
#navbar ul {
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: 0;
  padding: 8px 12px;
  font-size: 22px;
}

/* Items */
#navbar li {
  position: relative;
  display: flex;
  align-items: center;
}

/* Links y botón dropdown */
#navbar a,
.dropbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-family: sans-serif;
  text-decoration: none;
  color: rgb(0, 0, 16);
  background-color: white;

  height: 42px;
  min-width: 150px;
  padding: 0 14px;

  border-radius: 10px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

/* Hover */
#navbar a:hover,
.dropbtn:hover {
  background-color: rgba(188, 198, 237, 0.81);
}

/* Active */
#navbar a.active {
  background-color: #0470f4ba;
  color: #fff;
}


    .dropdown  {
      position: flex;
      display: inline-flex;
      align-items: center;
      justify-content: space-evenly;
      text-align: center;
      font-family: sans-serif;
      text-decoration: none;
      color: rgb(0, 0, 16);
      background-color: white;
      height:40px;
      width: 150px;
    }

     .dropbtn {
      position: flex;
      display: inline-flex;
      align-items: center;
      justify-content: space-evenly;
      font-family: sans-serif;
      text-align: center;
      font-size: 25px;

      text-decoration: none;
      background-color: white;
      height:40px;
      width: 150px;
      border: none;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

#tbbg { 
  position: fixed;
  top: 0;
  left: 0;
  width:100%;
  opacity: .95;
  z-index: 0;
}



#leftbar {
  width: 210px;
  height: 100%; 
  position: fixed; /* position the left bar fixed */
  top: 0; /* position the top of the left bar at the top of the viewport */
  left: 0; /* position the left bar at the left of the viewport */
  background-color: white; /* background color of the left bar */
  text-align: center;
  align-items: center;
  align-content: center;
}

#nav2 {
  align-items: center;
  margin-top: 150px;
}

#nav2 ul { position: relative;
  display: flex; 
  align-items: center;
  padding-top: 10px;
  align-content: center;
  flex-direction: column;
  text-align: left;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 20px;
  z-index: 5;
  margin-top: 150px;
}

#nav2 li {position: relative;
  display: flex;
  padding: 10px;
  border-color: #382091;
  text-align: center;
  align-items: center;
  align-content: center;
  margin-top: 0px;
}

#nav2 a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
    font-family: sans-serif;
    text-decoration: none;
    color: rgb(0, 0, 16);
    background-color: rgba(146, 123, 250, 0.744);
    height:50px;
    width: 150px;
    border: none;
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
      border-bottom-left-radius: 10px;
      border-bottom-right-radius: 10px;
}

h1, h2  {
    color: rgb(35, 35, 40);
    text-align: center;
    font-family:  'Trebuchet MS', sans-serif; 
    margin-top: 20px;

}

h4  {
  color: rgb(35, 35, 40);
  text-align: left;
      font-family: sans-serif;
      margin-left: 50px;
      margin-right: 50px;
      font-style: italic;

}

p {
    font-size: 20px;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    text-align: justify;
    margin: 20px 50px 20px 50px;
    text-indent: 20px; /* establece una sangría de 20 píxeles */
}

#time {
  position: absolute;
  top: 0;
  right: 1;
}

#bandera { 
  position: fixed;
  top: 140px;
  left: 0;
  opacity: .5;
  z-index: 1;
}



.container {
  display: flex; /* enables flexbox layout */
  justify-content: space-evenly; /* separates the elements evenly */
  padding:20px;
  align-items: center;
  max-width: 100%;
}

.imgsisal { 
  position: relative;
  width: 500px;
  height: auto;
  max-inline-size: 80%;
  margin: auto;
  min-width: 200px;
}

.imgsisal1 {text-align: center;
        font-family: sans-serif;
        font-size: 20px;
        position: relative;
          width: 80%;
          height: auto;
}

.imgsisal1 .hover-shadow {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.imgsisal1:hover .hover-shadow {
  transform: scale(1.3);
  box-shadow: 0 10px 10px 10px rgba(0, 0, 0, 0.5);
}

#fig1 {text-align: center;
  font-family: sans-serif;
  font-size: 15px;
  position: relative;
  align-items: center;
  align-content: center;
  display: block;
        margin: auto;
        justify-content: center;
}




.dropdown-content {
  display: none;
  width: 200px;
  position: absolute;
  align-items: left;
  background-color: #f9f9f9;
  max-width: fit-content;
  text-align: center;
  z-index: 1;
  top: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.dropdown-content a {
  float: none;
  color: black;
  margin-top: 0px;
  padding: 5px 5px;
  font-family: sans-serif;
  font-size: 20px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

 .imagen {float:right;
                 margin-left:20px;
                 }

.link {
        margin-left:50px;
        font-style:verdana;
        font-size:20px;
        }

.hr { size:3px;
            color:black;
            width:80%;
      }

  a:hover:not(.active) {
  background-color: none;
}

 footer {
      background-color: #272525;
      padding: 5px;
      color: white;
      position: relative;
      margin-top: 10px;
      text-align: center;
      z-index: 3;
    }

    footer p {
            font-size: 15px;
            text-align: center;
    }

    .responsive-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}


@media screen and (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column; /* makes content stack vertically */
    align-items: center;
    margin: 0;
    padding: 0;
  }

  main {
  width: 100vw;              /* Use full viewport width */
  max-width: 100%;
  margin: 0 auto;            /* Center it if it has a max-width */
  padding: 15px;
  margin-top: 250px;
  box-sizing: border-box;    /* Includes padding in width */
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid #434343;
  border-radius: 5px;
  border-bottom: 3px solid #0b0b0b;
  background-image: url("../imagenes/sisal/Portada_de_Libro_con_Cuaderno_a_Rayas_Blanco.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


  main p {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  line-height: 1.6; /* Improves readability */
}


  #leftbar {
    display: none; /* hide left sidebar */
  }

  #navbar {
    margin-top: 100px;
  }

  #navbar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  #navbar li {
    display: inline-block;
  }

  .dropdown-content {
    position: relative;
    width: 100%;
    text-align: center;
  }

  .dropbtn {
    width: 100%;
  }

  #topbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  z-index: 1000;
}


#tbbg img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.video iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
}

* {
  box-sizing: border-box;
}


}


