/*EJERCICIOS*/

.result-summary {
  text-align: center;
  margin-bottom: 10px;
}

.result-title {
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
}

.result-score {
  font-size: 2em;
  color: #007bff; /* Color del puntaje */
}

.diamond-summary {
  text-align: center;
  margin-top: 35px;
}

.diamonds-earned {
  font-size: 1.1em;
  color: #333;
}

.diamond-icon {
  font-size: 1.2em; /* Tamaño del ícono de diamante */
  color: #FFD700; /* Color dorado para el diamante */
}


/* Efecto de Fade-In */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s forwards; /* Duración de 1s para el fade-in */
}

.fade-in-delay {
  animation-delay: 1.5s; /* Retraso de 0.5s para el segundo div */
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}


.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #007bff; /* Color del borde superior */
  animation: spin 1s ease-in-out infinite;
  position: absolute; /* Colocación absoluta si deseas que se superponga */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10; /* Asegura que el spinner esté por encima del contenido */
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}


#spinner {
  width: 35px;
  height: 35px;
  position: absolute;
  top: 1px;
  left: 1px;
  z-index: 2;
}



.spinner {
  border: 4px solid rgb(255 255 255 / 20%);
  border-top: 4px solid #30c902;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#playIcon {
  width: 25px;
  height: 25px;
  z-index: 1;
}


#workspace {
    position: relative;
    border: 1px solid #ccc;
    min-height: 50px;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    border-radius: 10px;
  }

  #playButton {
    position: absolute;
    bottom: -30px;
    left: -25px;
    height: 41px;
    width: 41px;
    background-color: white;
    border: 2px solid #008050;
    border-radius: 100PX;
    padding: 6px 6px;
    box-shadow: 0 0 10px rgb(40 167 69);
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: black;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    margin: auto;
  }
  #wordsContainer {
    display: flex;
    flex-wrap: wrap;
  }

  #signContainer {
    align-self: flex-end;
  }

  .workspace-word {
    margin-right: 5px;
  }

  .workspace-word:last-child {
    margin-right: 0px;
  }

  .word {
    cursor: pointer;
    margin: 5px;
    padding: 4px 8px;
    background-color: #56585b;
    color: white;
    border-radius: 3px;
    display: inline-block;
    box-shadow: 0px 3px 7px 1px rgba(0,0,0,0.53);
  }

  .correct {
    color: green;
    font-weight: bold;
  }

  .incorrect {
    color: red;
    font-weight: bold;
  }

  #wordPool {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  #checkButton, #retryButton, #nextButton, #finishButton, #retryExerciseButton, #startExerciseButton {
    width: fit-content;
    margin: 20px 10px;
    box-shadow: 0px 3px 7px 1px rgba(0,0,0,0.53);
  }


  #checkButton, #nextButton, #finishButton, #startExerciseButton {
      color: #fff;
      background-color: #125194;
      border-color: #1b4c81;
  }

  #checkButton, #nextButton, #finishButton, #startExerciseButton:hover {
      color: #fff;
  background-color: #0464ca;
  border-color: #0a5fbb;
  }


  #retryButton, #retryExerciseButton{
  color: #fff;
  background-color: #6c757d;
  border-color: #454545;
  }

  #retryButton, #retryExerciseButton:hover {
      color: #fff;
      background-color: #5a6268;
      border-color: #545b62;
  }
    

  #translation, #showTranslationDiv {
    margin-top: 15px;
    text-align: center;
  }

  
  #translation {
      font-style: italic;
      color: #de8934;
      
    }

    .cBrown {
      font-style: italic;
      color: #de8934;
    }

    #showTranslationDiv {    
      color: #020201;
      
    }

   #exerciseModeContainer {
    place-items: center;
    padding-top: 50px;
  } 
  #exerciseModeContainer div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 30px;
  }

  .btnO {
      display: inline-block;
      font-family: 'Montserrat';
      font-weight: 400;
      color: #212529;
      text-align: center;
      vertical-align: middle;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      background-color: transparent;
      border: 1px solid transparent;
      padding: .375rem .75rem;
      font-size: 1rem;
      line-height: 1.5;
      border-radius: .25rem;
      transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  }


  .btnO:not(:disabled):not(.disabled) {
      cursor: pointer;
  }

  .btns {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #e5e5e5;
  }

  #score {
    flex: 1;
    margin: 20px 0px;
  }

  .d-none {
    display: none;
  }

  #sign {
    font-size: 17px;
  }
  #pronunciation-evaluation {
    max-width: 600px;
    margin: 25px auto 70px auto;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
    text-align: center; /* Centra el texto de todos los elementos */
  }

  .alternative-title, .alternative-item {
    text-align: center;
    line-height: 1.5rem;
    font-size: 15px;
  }
  .alternative-title {
    font-weight: 700;
  }

  #pronunciation-evaluation p {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .progress {
    height: 20px;
    margin: 20px 50px;
  }


/**/

.modal1 {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
justify-content: center;
align-items: center;
z-index: 4;
}

.modal-content1 {
background-color: white;
padding: 20px;
margin-top:0px;
width: 100%;
height: 100%;
overflow-y: auto;
z-index: 4;
}



.lh1_5 {
  line-height: 1.5rem;
}


.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0 20px 0;
}

.progress-fill {
height: 100%;
width: 0;
background-color: #4caf50;
transition: width 0.4s ease;
}


#user-diamonds-display {
  position: relative;
}


#diamond-animation-container {
  position: absolute;
  z-index: 1000;
  right: -10px;
  top: 30px;
  width: 75px;
}

.diamond-animation {
position: absolute;
font-size: 24px;
font-weight: bold;
color: #00bfff;
opacity: 1;
transform: translateY(0);
transition: transform 1.5s ease-out, opacity 1.5s ease-out;
pointer-events: none;
}

.diamond-animation.hide {
opacity: 0;
transform: translateY(-50px);
}







.user-diamonds {
font-size: 18px;
font-weight: bold;
text-align: center;
color: #00bfff;
}


#lottie-animation-container {
width: 300px;
height: 300px;
margin: auto;
}


