/***********************************************************
 * styleRead.css
 * Descripción: Estilos básicos para la incrustación de sitios,
 *              el popup de definiciones y la barra de traducción.
 ***********************************************************/

/* Contenedor principal */
.re-container {
  position: relative;
  font-family: Helvetica;
  background: white !important;
  margin-bottom: 100px; /* Para no sobreponerse con la barra de traducción si está fija */
  color: #333;
}
#re-embed-website{
    color:white;
    border-radius:0px;
    border: solid 2px white;
    background: black;
}
#re-embed-website:hover{
    color:black;
    border-radius:0px;
    border: solid 2px black;
    background: white;
}
/* Sección donde se ingresa la URL a cargar */
.re-embed-section {
  margin-bottom: 1em;
  padding:10px;
  justify-content:center;
  margin: 0 auto;
}

.re-embed-section h2 {
  margin: 0.5em 0;
  font-weight: bold;
}

.re-embed-section input[type="url"] {
  width: 70%;
  max-width: 400px;
  padding: 0.5em;
  margin-right: 0.5em;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.re-embed-section button {
  padding: 0.5em 1em;
  cursor: pointer;
  border: 1px solid #0088cc;
  background-color: #00aaff;
  color: #fff;
  border-radius: 4px;
}

/* Contenedor que mostrará el contenido remoto */
.re-viewer-container {
  border: 1px solid #ddd;
  padding: 1em;
  min-height: 200px;
  background: #fafafa;
  border-radius: 4px;
}

/* Popup Container */
#re-popup-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none; /* Permite detectar clics fuera del popup */
}

/* General popup styling */
#re-word-popup {
    position: fixed;
    z-index: 9999;
    max-width: 320px;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    font-family: Arial, sans-serif;
    color: #333;
    display: none; /* Hidden by default */
}

/* Header section */
.popup-header h2 {
    font-size: 16px;
    margin: 0 0 10px;
    color: #000;
    font-weight: bold;
}

.popup-header .word {
    color: #007BFF;
    font-weight: bold;
}

/* Definitions styling */
.popup-definitions .definition {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.popup-definitions .definition:last-child {
    border-bottom: none; /* Remove border for the last definition */
}

.popup-definitions .part-of-speech {
    font-weight: bold;
    color: #333;
}

.popup-definitions p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Smooth transition */
#re-word-popup {
    transition: all 0.2s ease-in-out;
}

#re-word-popup.active {
    display: block;
}


/* Barra de traducción (parte inferior) */
#re-translation-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #f0f0f0;
  padding: 10px;
  z-index: 9999;
  font-size: 1em;
  border-top: 1px solid #ccc;
  box-sizing: border-box;
}

#re-translation-bar strong {
  margin-right: 5px;
}

#re-translated-text {
  font-weight: bold;
  color: #333;
}
