body {
  font-family: 'Rajdhani', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #FFFFF0;
  color: #222;
  font-size: 20px;
}

.container {
  max-width: 70%;
  margin: 40px auto;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

h1 {
    text-align: center;
    color: #FF5733;
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
  text-align: center;
  color: #FF5733;
  font-weight: 700;
  margin-bottom: 20px;
}

ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

ul li {
    margin: 10px 0;
}

ul li a {
  text-decoration: none;
  color: #FF6F00;
  font-weight: 600;
  font-size: 22px;
  transition: color 0.3s ease;
}

ul li a:hover {
    text-decoration: underline;
}

p {
    text-align: justify;
    line-height: 1.7;
    color: #444;
}

.next-lesson {
    text-align: right;
    margin-top: 30px;
}

.btn-next {
    display: inline-block;
    padding: 12px 25px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background-color: #FF6F00;
    border: none;
    border-radius: 10px;
    /*float: right;*/
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-next:hover {
    background-color: #357ABD;
    transform: scale(1.05);
}

.btn-prev {
  display: inline-block;
  padding: 12px 25px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background-color: #FF6F00;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-prev:hover {
  background-color: #357ABD;
  transform: scale(1.05);
}

.button-array-up {
    position: relative;
    margin-top: 80px;
    margin-right: 10px;
    margin-left: 10px;
}

.button-array-down {
    position: relative;
    min-height: 40px;
    margin-bottom: 20px;
    margin-right: 10px;
    margin-left: 10px;
}

.btn-index {
    display: inline-block;
    padding: 10px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: bolder;
    /*float: left;*/
    color: #fff;
    background-color: #FF6F00;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.5s ease, margin-left 2s;
}

.btn-index:hover {
    background-color: #357ABD;
    transform: scale(1.05);
}

.verify-btn.scroll-top {
    display: inline-block;
    padding: 10px 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: bolder;
    color: #fff;
    background-color: #FF6F00;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    position: absolute;
    left: 50%;
}

.verify-btn:hover {
    background-color: #357ABD;
    transition: background-color 0.3s ease, transform 0.2s ease;
    transform: scale(1.05);
}


.question {
    margin-bottom: 15px;
}
.question label {
    display: block;
    margin-bottom: 5px;
}
.question input {
    width: calc(100px);
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.verify-btn {
    display: inline-block;
    padding: 10px 15px;
    margin-top: 10px;
    background-color: #FF6F00;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.border {
 border-width:3px;
 border-style:solid;
 border-color:#FF5733;
}

.result {
    margin-top: 10px;
    font-weight: bold;
}
.correct {
    color: green;
}
.incorrect {
    color: red;
}

.options {
    display: inline-block;
    margin-bottom: 5px;
}
.options input[type="radio"] {
    display: inline-block;
    margin-right: -25px;
}

.video-container {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 10px; /* Margen mínimo alrededor del video */
            margin: 0 auto;
            width: fit-content; /* Ajusta el ancho del contenedor al tamaño del video */
        }

        video {
            width: 70%; /* Ocupar una tercera parte del ancho */
            height: auto;   /* Mantener la proporción del video */
        }

        /* Sidebar Styling */
        #sidebar {
            position: fixed;
            top: 0;
            left: -250px; /* Hidden initially */
            width: 250px;
            height: 100%;
            background: linear-gradient(135deg, #4A90E2, #50E3C2);
            transition: left 0.3s ease-in-out;
            border-top-right-radius: 25px;
            border-bottom-right-radius: 25px;
            box-shadow: 5px 0 10px rgba(0, 0, 0, 0.2);
            padding-top: 60px;
        }

        /* Sidebar Links */
        #sidebar ul {
            list-style-type: none;
            padding: 0;
        }

        #sidebar ul li {
            padding: 15px;
            text-align: center;
        }

        #sidebar ul li a {
            text-decoration: none;
            font-size: 18px;
            color: white;
            display: block;
            transition: 0.3s;
            border-radius: 20px;
            padding: 10px;
        }

        /* Hover Effect */
        #sidebar ul li a:hover {
            background: rgba(255, 255, 255, 0.2);
            transition: 0.3s;
        }

        /* Close Button */
        #close-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 30px;
            background: none;
            border: none;
            color: white;
            cursor: pointer;
        }

        /* Open Button */
        #open-btn {
            position: fixed;
            top: 20px;
            left: 20px;
            font-size: 30px;
            background: none;
            border: none;
            color: #4A90E2;
            cursor: pointer;
            transition: color 0.3s;
        }

        /* Open Button Hover Effect */
        #open-btn:hover {
            color: #50E3C2;
        }

        /* Active Sidebar */
        .sidebar-active {
            left: 0 !important;
        }

        table {
            font-family: arial, sans-serif;
            border-collapse: collapse;
            width: 100%;
          }
          
          td, th {
            border: 1px solid #dddddd;
            text-align: center;
            padding: 8px;
          }
          
          tr:nth-child(even) {
            background-color: #dddddd;
          }

* {
  box-sizing: border-box;
}

.column {
  float: left;
  width: 33.33%;
  padding: 5px;
}

/* Clearfix (clear floats) */
.row::after {
  content: "";
  clear: both;
  display: table;
}

/* Contenedor flexible que acomoda los frames */
.frame-container {
  display: flex;
  flex-wrap: wrap;         /* baja los frames si no caben */
  justify-content: center; /* centra horizontalmente */
  align-items: flex-start;  /* alinea por la parte superior */
  gap: 20px;               /* separación uniforme */
  margin: 24px auto;
  max-width: 95vw;
  box-sizing: border-box;
}

/* Cada frame */
.frame {
  display: inline-flex;
  flex-direction: column;   /* imagen arriba, texto abajo */
  align-items: center;      /* centra internamente */
  border: 5px solid #ffffff;
  padding: 8px 12px;        /* margen interior */
  background: #fff;
  width: min-content;       /* ancho sólo según la imagen */
  height: fit-content;      /* altura sólo según el contenido */
  box-sizing: border-box;
}

/* Imagen: define el ancho base */
.frame img {
  display: block;
  height: auto;
  margin: 0 auto;
}

/* Pie de imagen */
.frame figcaption {
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
  width: 100%;              /* igual que la imagen */
  overflow-wrap: anywhere;
  word-break: break-word;
}
