/* General */
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding:8px;
  box-sizing: border-box;
  background-color: rgb(255, 255, 255) !important; 
}

/* ========== Mobile (max-width: 767px) ========== */
@media screen and (max-width: 767px) {
  .titleunit {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0 2px;
  }
  .titleunit img {
    width: 410px;
  }


  .titleunit1 {
    display: none;
  }

h1{
  color: #62ad01;
}
  h3 {
    background-image: url(Imagenes/fraseunit5.webp);
    background-size: 100%;
    background-repeat: no-repeat;
    margin: 10px;
    padding: 28px;
    font-size: 16px;
  }
  h2.goal {
    background-image: url(Imagenes/mygoal.webp);
    background-size: 70%;
    background-repeat: no-repeat;
    padding-left: 80px;
    padding-top: 13px;
    padding-bottom: 39px;
    color: rgb(0, 94, 94);
    margin-top: 15px;
    margin-bottom: 0;
  }
h2{
  background-image: url(Imagenes/titleunitpoint.webp);
  background-size: 100%;
  background-repeat: no-repeat;
  padding-left: 75px;
  padding-top: 18px;
  padding-bottom: 39px;
  color: rgb(255, 255, 255);
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 22px;
  line-height: 18px;
}

p{
  font-size: 17px;
}


  .txtraduccion {
    font-size: 15px;
    font-style: italic;
    color: green;
    line-height: 15px;

  }

  .iconaud {
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
  }

  .Audios1 {
    display: block;
  }
  
  .audioitem {
    display: flex;

  }
  
  .iconaud{
    width: 50px;
    justify-content: center;  /* Centra horizontalmente */
    align-items: center;      /* Centra verticalmente */
    margin: 5px;
    
  }
  
  .audiostyle {
    margin: 10px;
    margin-top: 1px;
  }

  ul {
    background-color: #E2F7E5;
    margin-left: 8%;
    margin-top: 0;
    padding: 15px;
    border-radius: 30px;
    list-style: none;
  }
  .textounidad{
    margin-left: 10px;
  }
  .table-container {
    max-width: max-content;
    margin: auto;
    overflow-x: auto;
    background: #e0f2ff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  table {
    width: 100%;
    border-collapse: collapse;
  }

  th {
    background-color: #b3e0ff;
    color: #003366; /* azul oscuro */
    padding: 5px;
  }

  td.example {
    font-style: italic;
    padding: 5px;
  }

  td:first-child {
    color: #003366; /* azul oscuro para los adverbios */
    font-weight: bold;
    padding: 5px;
  }
  td.Frequency{
    text-align: center;
  }
  .verbs-container {
    margin-top: 20px;
    max-width:450px;
    margin: auto;
    background-color: #d6f5d6;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .verbs-title {
    font-weight: bold;
    color: #006400; /* verde oscuro */
    font-size: 18px;
    margin-bottom: 10px;
  }

  .verbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
  }

  .verb {
    padding: 5px 0;
  }

  .prepositions-box {
    max-width: 480px;
    margin-top: 20px;
    margin: auto;
    background: linear-gradient(to right, #d8ccf1, #f5f0ff);
    border-left: 6px solid #5c4dac;
    border-radius: 12px;
    padding: 20px;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .prepositions-box h2 {
    color: #2f2f7a;
    margin-bottom: 16px;
  }

  .prepositions-box p {
    margin: 10px 0;
  }

  .prepositions-box em {
    font-weight: bold;
    color: #000;
  }

  .example {
    margin-left: 20px;
    font-style: italic;
    color: #555;
  }

  h4.prepo {
    font-size: 20px;
    font-weight: bold;
    color: #360370;
  }

  .legend {
    margin-bottom: 20px;
  }
  
  .legend span {
    font-weight: bold;
  }
  
  .verb {
    text-decoration: underline;
    text-decoration-color: green;
    text-decoration-thickness: 4px;
  }
  
  .adverb {
    text-decoration: underline;
    text-decoration-color: blue;
    text-decoration-thickness: 4px;
  }
  
  .preposition {
    text-decoration: underline;
    text-decoration-color: purple;
    text-decoration-thickness: 4px;
  }
  
  .word {
    cursor: pointer;
    padding: 0 3px;
    display: inline-block;
  }
  
  .text-block {
    max-width: 480px;
    margin-top: 10px;
  }

  /* EJERCICIO SUBRRAYAR*/
  #text-content {
    line-height: 22px;
    margin: 8px;
  }
  
.instructions {
  margin-bottom: 20px;
  width: 480px;
}

.word {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.verb {
  text-decoration: underline;
  text-decoration-color: green;
  text-decoration-thickness: 4px;
}

.adverb {
  text-decoration: underline;
  text-decoration-color: blue;
  text-decoration-thickness: 4px;
}

.preposition {
  text-decoration: underline;
  text-decoration-color: purple;
  text-decoration-thickness: 4px;
}

.question {
  margin-bottom: 20px;
}

.input-short {
  width: 45px;
  border: 2px solid rgb(90, 90, 90); /* 🟢 borde negro inicial */
  padding: 5px;
  margin-left: 7px;

  text-align: center;
  border-radius: 20px;
}

.input-long {
  width: 300px;
  border: 2px solid rgb(124, 124, 124); /* 🟢 borde negro inicial */
  padding: 5px;
  margin-left: 7px;
  border-radius: 20px;
}

.correct {
  border-color: green !important;
  color: green !important; /* ✅ texto verde si es correcto */
}

.incorrect {
  border-color: red !important;
  color: red !important; /* ❌ texto rojo si es incorrecto */
}

input:focus {
  outline: none;
}
.egcorrecta{
  border: #006400 2px;
}

.green-box {
  border: 2px solid green;
  border-radius: 20px; /* redondeado */
  padding: 3px;
  padding-left: 20px;
  padding-right: 20px;
  display: inline-block;
  background-color: #f6fff6; /* opcional: fondo claro */
  margin-top: 10px;
  margin-left: 10px;
}
.icontext {
  display: flex;
}
  .icontext {
  display: flex;
}

.input-medium{
  width: 150px;
  border: 2px solid rgb(99, 99, 99); /* 🟢 borde negro inicial */
  padding: 5px;
   margin: auto;
  text-align: center;
  border-radius: 20px;
  display: block;
  margin-top: 5px;
  margin-bottom: 25px;
} 

.input-word {
  width: 65px;
  height: 13px;
  border: 2px solid rgb(90, 90, 90); /* 🟢 borde negro inicial */
  padding: 5px;
  margin-left: 4px;
  margin-right: 4px;
  text-align: center;
  border-radius: 12px;
  padding-right: 8px;
}


.correct {
  border-color: green !important;
  color: green !important; /* ✅ texto verde si es correcto */
}

.incorrect {
  border-color: red !important;
  color: red !important; /* ❌ texto rojo si es incorrecto */
}

.txtraduccion1 {
  line-height: 22px;
  font-size: 1.2rem;
  font-style: italic;
  color: green;
}

.input-underline {
  width: 410px;
  border: none;
  border-bottom: 2px solid rgb(59, 59, 59);
  padding: 8px 4px;
  font-size: 16px;
  outline: none;
  text-align: left;
  justify-content: center;
}
.input-underline1 {
  width: 410px;
  border: none;
  border-bottom: 2px solid rgb(59, 59, 59);
  padding: 8px 4px;
  font-size: 16px;
  outline: none;
  text-align: left;
  justify-content: center;
}
.iconaud1{
  width: 50px;
  height: 50px;
  justify-content: center;
  align-items: center;
  margin: 7px;
}
.imgsecretary{
  display: flex;
  justify-content: center;
  align-items: center;
}
.game-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

}

.game-img {
  width: 82px;
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.game-img:hover {
  transform: scale(1.1);
}

}
  


/* ========== Tablet (768px - 1023px) ========== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  main {
    width: 800px;
    margin: 20px auto 0 auto;
  }

  .titleunit {
    display: none;
  }

  .titleunit1 {
    display: block;
  }
  h1{
    color: #62ad01;
  }
  h3 {
    background-image: url(Imagenes/fraseunit5dsk.webp);
    background-repeat: no-repeat;
    margin: 20px;
    padding: 45px;
    font-size: 19px;
  }

  .txtraduccion {
    font-size: 15px;
    font-style: italic;
    color: green;
  }

  .Audios1{
    display: flex;
    margin-bottom: 20px;
  
  }
  .audiostyle {
    margin: 10px;
  
          }

          h2{
            background-image: url(Imagenes/titleunitpoint.webp);
            background-size: 70%;
            background-repeat: no-repeat;
            padding-left: 100px;
            padding-top: 25px;
            padding-bottom: 39px;
            color: rgb(255, 255, 255);
            margin-top: 12px;
            margin-bottom: 0;
            font-size: 25px;
            line-height: 18px;
          }
          

  h2.goal {
    background-image: url(Imagenes/mygoal.webp);
    background-repeat: no-repeat;
    padding-left: 90px;
    padding-top: 30px;
    padding-bottom: 39px;
    color: rgb(0, 94, 94);
  }

  ul {
    background-color: #E2F7E5;
    margin-left: 8%;
    padding: 20px;
    border-radius: 30px;
    list-style: none;
  }
  .textounidad{
    display: flex;
  }

  .textounidad1{
    margin: 5px;
    margin-left: 5px;
  }

  .table-container {
    max-width: 650px;
    margin: auto;
    overflow-x: auto;
    background: #e0f2ff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  table {
    width: 100%;
    border-collapse: collapse;
  }

  th {
    background-color: #b3e0ff;
    color: #003366; /* azul oscuro */
    padding: 5px;
  }

  td.example {
    font-style: italic;
    padding: 5px;
  }

  td:first-child {
    color: #003366; /* azul oscuro para los adverbios */
    font-weight: bold;
    padding: 5px;
  }

  td.Frequency{
    text-align: center;
  }
  
  .prepositions-box {
    margin-top: 20px;
    margin: auto;
    background: linear-gradient(to right, #d8ccf1, #f5f0ff);
    border-left: 6px solid #5c4dac;
    border-radius: 12px;
    padding: 20px;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .prepositions-box h2 {
    color: #2f2f7a;
    margin-bottom: 16px;
  }

  .prepositions-box p {
    margin: 10px 0;
  }

  .prepositions-box em {
    font-weight: bold;
    color: #000;
  }

  .example {
    margin-left: 20px;
    font-style: italic;
    color: #555;
  }

  h4.prepo {
    font-size: 20px;
    font-weight: bold;
    color: #360370;
  }
  .verbs-container {
    max-width: 600px;
    margin: auto;
    background-color: #d6f5d6;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .verbs-title {
    font-weight: bold;
    color: #006400; /* verde oscuro */
    font-size: 18px;
    margin-bottom: 10px;
  }

  .verbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 10px;
  }

  .verb {
    padding: 5px 0;
  }

  /* EJERCICIO SUBRRAYAR*/
  #text-content {
    line-height: 22px;
  }
  
.instructions {
  margin-bottom: 20px;
}

.word {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.verb {
  text-decoration: underline;
  text-decoration-color: green;
  text-decoration-thickness: 4px;
}

.adverb {
  text-decoration: underline;
  text-decoration-color: blue;
  text-decoration-thickness: 4px;
}

.preposition {
  text-decoration: underline;
  text-decoration-color: purple;
  text-decoration-thickness: 4px;
}

.question {
  margin-bottom: 20px;
}

.input-short {
  width: 50px;
  border: 2px solid black; /* 🟢 borde negro inicial */
  padding: 5px;
  margin-left: 10px;
  text-align: center;
  border-radius: 20px;
}

.input-long {
  width: 300px;
  border: 2px solid black; /* 🟢 borde negro inicial */
  padding: 5px;
  margin-left: 10px;
  border-radius: 20px;
}

input.correct {
  border-color: green !important;
}

input.incorrect {
  border-color: red !important;
}

input:focus {
  outline: none;
}
.egcorrecta{
  border: #006400 2px;
}

.green-box {
  border: 2px solid green;
  border-radius: 20px; /* redondeado */
  padding: 3px;
  padding-left: 20px;
  padding-right: 20px;
  display: inline-block;
  background-color: #f6fff6; /* opcional: fondo claro */
  margin-top: 10px;
  margin-left: 10px;
}
  
.icontext {
  display: flex;
}
.input-medium {
  width: 150px;
  border: 2px solid rgb(78, 78, 78); /* borde inicial negro */
  padding: 5px;
  margin: 10px auto;
  display: block;
  text-align: center;
  border-radius: 20px;
  color: rgb(68, 68, 68); /* color inicial del texto */
}

.correct {
  border-color: green !important;
  color: green !important; /* ✅ texto verde si es correcto */
}

.incorrect {
  border-color: red !important;
  color: red !important; /* ❌ texto rojo si es incorrecto */
}
.imagelabel2{
  margin-top: 100px;
 }
 .content54{
   display: flex;
 }
 .input-word {
  width: 65px;
  border: 2px solid rgb(90, 90, 90); /* 🟢 borde negro inicial */
  padding: 5px;
  margin-left: 4px;
  margin-right: 4px;
  text-align: center;
  border-radius: 20px;
}

.correct {
  border-color: green !important;
  color: green !important;
}

.incorrect {
  border-color: red !important;
  color: red !important;
}

.txtraduccion1 {
  line-height: 30px;
  font-size: 1.4rem;
  font-style: italic;
  color: green;
}

.input-underline {
  width: 600px;
  border: none;
  border-bottom: 2px solid rgb(59, 59, 59);
  padding: 8px 4px;
  font-size: 16px;
  outline: none;
  text-align: left;
}
.input-underline1 {
  width: 780px;
  border: none;
  border-bottom: 2px solid rgb(59, 59, 59);
  padding: 8px 4px;
  font-size: 16px;
  outline: none;
  text-align: left;
  justify-content: center;
}
.iconaud1{
  width:60px;
  height: 60px;
  justify-content: center;
  align-items: center;
  margin: 10px;
}
.game-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

}

.game-img {
  width: 155px;
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.game-img:hover {
  transform: scale(1.1);
}

}


/* ========== Desktop (min-width: 1024px) ========== */
@media screen and (min-width: 1024px) {
  main {
    width: 800px;
    margin: 20px auto 0 auto;
  }

  .titleunit {
    display: none;
  }

  .titleunit1 {
    display: block;
  }

  h1{
    color: #62ad01;
  }

  h3 {
    background-image: url(Imagenes/fraseunit5dsk.webp);
    background-repeat: no-repeat;
    margin: 10px;
    padding: 45px;
    font-size: 19px;
  }
  P{
    font-size: 20px;
    line-height: 25px;
  }

  .txtraduccion {
    font-size: 1rem;
    font-style: italic;
    color: green;
  }
  .txtraduccion1 {
    line-height: 30px;
    font-size: 1.4rem;
    font-style: italic;
    color: green;
  }


  .Audios1 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
  }
  
  .audioitem {
    display: block;
    flex-direction: column;
    align-items: center;
  }
  
  .iconaud {
    width: 60px;
    margin-bottom: 8px; 
    padding: 8px;
  }
  
  .audiostyle {
    width: 300px;
  }
h2.excunit{
  background-image: url(Imagenes/titleunitpoint.webp);
  background-size: 65%;
  background-repeat: no-repeat;
  padding-left: 90px;
  padding-top: 20px;
  padding-bottom: 39px;
  color: rgb(255, 255, 255);
  margin-top: 15px;
  margin-bottom: 0;
  font-size: 25px;
  line-height: 18px;
  
}

  h2.goal {
    background-image: url(Imagenes/mygoal.webp);
    background-repeat: no-repeat;
    padding-left: 90px;
    padding-top: 30px;
    padding-bottom: 39px;
    color: rgb(0, 94, 94);
  }

  ul {
    background-color: #E2F7E5;
    margin-left: 8%;
    padding: 20px;
    border-radius: 30px;
    list-style: none;
  }

  .textounidad{
    display: flex;
  }

  .textounidad1{
    margin: 5px;
    margin-left: 20px;
    background-color: rgba(241, 241, 241, 0.555);
    border-radius: 30px;
    padding: 10px;
  }

  .tablasunidad{
    display: flex;
  }


  .tabla-60 {
   block-size: 0 0 50%;
  }
  
  .tabla-40 {
    flex: 0 0 34%;
    margin-left: 10px;
  }

  .table-container {
    max-width: cover;
    margin: auto;
    overflow-x: auto;
    background: #e0f2ff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  table {
    width: 100%;
    border-collapse: collapse;
  }

  th, td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #ccc;}
  

  th {
    background-color: #b3e0ff;
    color: #003366; /* azul oscuro */
  }

  td.example {
    font-style: italic;
  }

  td:first-child {
    color: #003366; /* azul oscuro para los adverbios */
    font-weight: bold;
  }
  td.Frequency{
    text-align: center;
  }

  .verbs-container {
    max-width: 600px;
    margin: auto;
    background-color: #d6f5d6;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .verbs-title {
    font-weight: bold;
    color: #006400; /* verde oscuro */
    font-size: 18px;
    margin-bottom: 10px;
  }

  .verbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }

  .verb {
    padding: 5px 0;
  }
  
  .prepositions-box {

    margin-top: 20px;
    margin: auto;
    background: linear-gradient(to right, #d8ccf1, #f5f0ff);
    border-left: 6px solid #5c4dac;
    border-radius: 12px;
    padding: 20px;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .prepositions-box h2 {
    color: #2f2f7a;
    margin-bottom: 16px;
  }

  .prepositions-box p {
    margin: 10px 0;
  }

  .prepositions-box em {
    font-weight: bold;
    color: #000;
  }

  .example {
    margin-left: 20px;
    font-style: italic;
    color: #555;
  }

  h4.prepo {
    font-size: 20px;
    font-weight: bold;
    color: #360370;
  }

  /* EJERCICIO SUBRRAYAR*/
  #text-content {
    line-height: 22px;
    padding: 10px;
  }
  
.instructions {

  margin-left: 20px;
}

.word {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.verb {
  text-decoration: underline;
  text-decoration-color: green;
  text-decoration-thickness: 4px;
}

.adverb {
  text-decoration: underline;
  text-decoration-color: blue;
  text-decoration-thickness: 4px;
}

.preposition {
  text-decoration: underline;
  text-decoration-color: purple;
  text-decoration-thickness: 4px;
}
  

.question {
  margin-bottom: 20px;
}

.input-short {
  width: 50px;
  border: 2px solid rgb(87, 87, 87); /* 🟢 borde negro inicial */
  padding: 5px;
  margin-left: 10px;
  text-align: center;
  border-radius: 20px;
}

.input-medium{
  width: 150px;
  border: 2px solid rgb(99, 99, 99); /* 🟢 borde negro inicial */
  padding: 5px;
   margin: auto;
  text-align: center;
  border-radius: 20px;
  display: block;
} 
.input-long {
  width: 300px;
  border: 2px solid rgb(94, 94, 94); /* 🟢 borde negro inicial */
  padding: 5px;
  margin-left: 10px;
  border-radius: 20px;
}
.input-word {
  width: 65px;
  border: 2px solid rgb(90, 90, 90); /* 🟢 borde negro inicial */
  padding: 5px;
  margin-left: 4px;
  margin-right: 4px;
  text-align: center;
  border-radius: 20px;
}


.correct {
  border-color: green !important;
  color: green !important; /* ✅ texto verde si es correcto */
}

.incorrect {
  border-color: red !important;
  color: red !important; /* ❌ texto rojo si es incorrecto */
}
input:focus {
  outline: none;
}
.egcorrecta{
  border: #006400 2px;
}

.green-box {
  border: 2px solid green;
  border-radius: 20px; /* redondeado */
  padding: 3px;
  padding-left: 20px;
  padding-right: 20px;
  display: inline-block;
  background-color: #f6fff6; /* opcional: fondo claro */
  margin-top: 10px;
  margin-left: 10px;
}
.icontext {
  display: flex;
}
.imagelabel{
  display: block;
}

.imagelabel2{
 margin-top: 100px;
}
.content54{
  display: flex;
}
.input-word {
  width: 65px;
  border: 2px solid rgb(90, 90, 90); /* 🟢 borde negro inicial */
  padding: 5px;
  margin-left: 4px;
  margin-right: 4px;
  text-align: center;
  border-radius: 20px;
}

.correct {
  border-color: green !important;
  color: green !important;
}

.incorrect {
  border-color: red !important;
  color: red !important;
}
.input-underline {
  width: 600px;
  border: none;
  border-bottom: 2px solid rgb(59, 59, 59);
  padding: 8px 4px;
  font-size: 16px;
  outline: none;
  text-align: left;
}
.iconaud1{
  width:60px;
  height: 60px;
  justify-content: center;
  align-items: center;
  margin: 10px;
}
.input-underline1 {
  width: 780px;
  border: none;
  border-bottom: 2px solid rgb(59, 59, 59);
  padding: 8px 4px;
  font-size: 16px;
  outline: none;
  text-align: left;
  justify-content: center;
}

.game-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;

}

.game-img {
  width: 155px;
  height: auto;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.game-img:hover {
  transform: scale(1.1);
}

}
