body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    color: #333;
    padding: 20px;
    padding-top: 70px;
    /* Adjust this value based on the height of the top bar (50px + 20px extra spacing) */

}

h1,
h2 {
    color: #444;
}

/* Center the button in its container */
.button-container {
    text-align: center;
    /* This will center the button horizontally */
    margin-top: 20px;
    /* Optional: Add some spacing at the top */
}


/* Center the button in its container */
.button-container {
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically (optional, if container has enough height) */
    margin-top: 20px;
    /* Optional: Add some spacing at the top */
}

/* Style for the button */
.btn-primary {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: 2px solid black;
    /* Adds black border */
    padding: 10px 20px;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    /* Use flexbox to align icon and text */
    align-items: center;
    /* Align icon and text vertically */
    justify-content: center;
    /* Align icon and text horizontally */
    gap: 5px;
    /* Adds spacing between icon and text */
}

/* Style for the icon inside the button */
.icon-img {
    width: 20px;
    /* Adjust size as needed */
    height: 20px;
}

/* Change hover color */
.btn-primary:hover {
    background-color: #0056b3;
}

/* Style for the icon inside the button */
.icon-img {
    width: 20px;
    /* Adjust size as needed */
    height: 20px;
}

.btn-secondary {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #218838;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 90000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}


.modal-content {
    background-color: white;
    margin: 10% auto;
    /* Reducir el margen superior para más espacio */
    padding: 20px;
    border: 1px solid #888;
    width: 60%;
    height: auto;
    /* Ajuste automático según el contenido */
    min-height: 400px;
    /* Puedes ajustar la altura mínima del modal */
    border-radius: 10px;
    overflow: hidden;
    /* Evita que el contenido se salga */
}

/* Title styling */
.modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    /* Center the title */
}

/* Textarea styling */
textarea {
    width: 100%;
    /* Make the textarea take the full width of its container */
    height: auto;
    min-height: 300px;
    /* Optional: Set a minimum height */
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 14px;
    box-sizing: border-box;
    /* Ensure padding is included in the width calculation */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

textarea {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 14px;
}


.strategyTitle {
    font-size: 16px;
    color: grey;
    font-weight: bold;
    margin-bottom: 30px;
}

.profitLoss_Label {
    font-size: 12px;
    color: white;
    background-color: #000;
    padding: 8px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    display: inline-block;
    border: 1px solid black;
    /* Borde negro */
}

.profitLoss_Dollar {
    font-size: 12px;
    color: white;
    background-color: #000;
    padding: 8px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    display: inline-block;
    border: 1px solid black;
    /* Borde negro */
    margin-left: -5px;
    /* Ajuste para eliminar el espacio entre los elementos */
}


/* Fondo verde para diferencias positivas */
.profit {
    background-color: green;
}

/* Fondo rojo para diferencias negativas */
.loss {
    background-color: red;
}

.underlying_Label {
    font-size: 12px;
    color: black;
    /* Cambiar el color del texto a negro para que sea legible sobre fondo blanco */
    background-color: white;
    /* Fondo blanco */
    padding: 8px;
    border-top-left-radius: 5px;
    /* Redondeo solo en el lado superior izquierdo */
    border-bottom-left-radius: 5px;
    /* Redondeo solo en el lado inferior izquierdo */
    display: inline-block;
    border: 1px solid black;
    /* Borde negro */
}

.underlying_Dollar {
    font-size: 12px;
    color: white;
    /* Cambiar el color del texto a negro para que sea legible sobre fondo blanco */
    background-color: black;
    /* Fondo blanco */
    padding: 8px;
    border-top-right-radius: 5px;
    /* Redondeo solo en el lado superior derecho */
    border-bottom-right-radius: 5px;
    /* Redondeo solo en el lado inferior derecho */
    display: inline-block;
    border: 1px solid black;
    /* Borde negro */
    margin-left: -5px;
    /* Ajuste para eliminar el espacio entre los elementos */
    font-weight: bold;
}




.live-indicator {
    font-size: 14px;
    color: white;
    background-color: red;
    /* Color de fondo rojo para el indicador LIVE */
    padding: 10px 10px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
}

.market-live {
    background-color: green;
    /* Verde para cuando el mercado está abierto */
    animation: blinker 1s linear infinite;
    /* Animación intermitente */

}

.market-closed {
    background-color: red;
    /* Rojo para cuando el mercado está cerrado */
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.blinking-point {
    animation: blink-animation 1s infinite;
    /* Efecto intermitente */
}

@keyframes blink-animation {
    50% {
        opacity: 0;
    }
}

/* Efecto de resplandor (Glow) */
.update-glow {
    animation: glow 0.5s ease-in-out;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.75);
        transform: scale(1.1);
    }

    100% {
        box-shadow: none;
        transform: scale(1);
    }
}

/* Efecto de cascada */
.update-cascade {
    animation: cascade 0.8s ease-out;
}

@keyframes cascade {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}



/* Modal Style for Donation */
.donation-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.donation-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
}

.donation-modal-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.donation-modal p {
    font-size: 16px;
    margin-bottom: 20px;
}

.donation-modal .close-donation {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.donation-modal .close-donation:hover,
.donation-modal .close-donation:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.donation-modal-button {
    background-color: #ff6347;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

.donation-modal-button:hover {
    background-color: #ff4500;
}


/* -------------- Black Top Bar Styling -------------- */
/* Black Top Bar Styling */
.top-bar {
    background-color: #000;
    color: white;
    padding: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    z-index: 1001;
    display: flex;
    justify-content: space-between; /* El título a la izquierda y los botones a la derecha */
    align-items: center;
    height: 50px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Estilo del encabezado dentro de la franja negra */
.header-title {
    font-size: 24px;
    margin: 0;
    padding-left: 20px;
    color: white;
}

/* Contenedor de botones a la derecha */
.button-containerTop {
    display: flex;               /* Flexbox para alinear los botones en una fila */
    justify-content: flex-end;    /* Alineamos los botones a la derecha */
    gap: 10px;                   /* Espaciado entre los botones */
}

/* Estilo del botón de donación */
.top-bar .donation-button {
    background-color: #ff6347;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    margin-right: 0;
}

.top-bar .donation-button:hover {
    background-color: #ff4500;
}

/* Estilo del botón de tutorial */
.top-bar .tutorial-button {
    background-color: #31046b;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.top-bar .tutorial-button:hover {
    background-color: #3500f7;
}



#extractStrikesBtn {
    display: block;
    margin: 20px auto;
    /* Adjust vertical spacing and center horizontally */
}

.hidden {
    display: none;
}


.close-error-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-error-modal:hover,
.close-error-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Close button for the modal */
.close-settings-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-settings-modal:hover,
.close-settings-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos específicos para el modal de settings */
.settings-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    /* Reduce la separación superior */
    padding: 15px;
    /* Reduce el padding */
    border: 1px solid #888;
    width: 250px;
    /* Ancho reducido solo para este modal */
    border-radius: 8px;
    /* Bordes redondeados */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Sombra más ligera */
    position: relative;
}

/* Botón de cerrar para el modal de settings */
.close-settings-modal {
    color: #aaa;
    float: right;
    font-size: 22px;
    /* Ajusta el tamaño de la "X" */
    font-weight: bold;
    cursor: pointer;
}

.close-settings-modal:hover,
.close-settings-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Título del modal de settings */
.settings-modal-content h2 {
    margin-top: 0;
    font-size: 18px;
    /* Reduce el tamaño del título */
    text-align: center;
}

/* Campo de entrada numérica en el modal de settings */
.settings-modal-content input[type="number"] {
    width: 100%;
    /* Ocupa todo el ancho disponible */
    padding: 8px;
    /* Reduce el padding */
    margin: 10px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    /* Reduce el tamaño de la fuente */
}

/* Botón en el modal de settings */
.settings-modal-content button {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    /* Reduce el tamaño del botón */
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    /* Botón a ancho completo */
    font-size: 14px;
    /* Reduce el tamaño de la fuente */
}

.settings-modal-content button:hover {
    background-color: #45a049;
}



.strategy-info-section,
.difference-info-section {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Permite que ambos bloques crezcan o se reduzcan proporcionalmente */
    padding: 10px;
    display: flex;
    flex-direction: row;
    /* Coloca todos los elementos en la misma fila */
    align-items: center;
    /* Alinea verticalmente al centro */
    gap: 20px;
    /* Espacio entre cada bloque */
    justify-content: flex-start;
    /* Alinea los elementos a la izquierda */
}

.label {
    padding: 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.label-time {
    padding: 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    background-color: #000;
    color: white;
}

.label-green {
    background-color: #d4edda;
    color: #155724;
}

.label-red {
    background-color: #f8d7da;
    color: #721c24;
}


#enlargedChart {
    margin-top: 10px;
    width: 99%;
    height: 700px;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.labels-container {
    display: flex;
    flex-wrap: wrap;
    /* Hace que los labels puedan moverse si no hay espacio suficiente */
    gap: 10px;
}


.strategy-and-performance {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
}


.profit-loss-info,
.underlying-info {
    align-items: center;
    font-size: 14px;
    justify-content: space-between;
    font-weight: bold;

}

.enlarge-icon,
.settings-icon {
    display: inline-flex;
    /* Alinear ícono y texto en la misma línea */
    align-items: center;
    /* Centrar ícono y texto verticalmente */
    justify-content: center;
    /* Centrar el contenido horizontalmente */
    border: 2px solid #333;
    /* Color del borde: gris oscuro */
    border-radius: 10px;
    /* Bordes redondeados */
    padding: 5px 10px;
    /* Espacio alrededor del ícono y texto */
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* Transición suave al cambiarz color */
    font-size: 14px;
    /* Tamaño del texto */
    color: #333;
    /* Color del texto: gris oscuro */
}

.enlarge-icon i,
.settings-icon i {
    font-size: 16px;
    /* Tamaño del ícono */
    color: #333;
    /* Color del ícono: gris oscuro */
    margin-right: 5px;
    /* Espacio entre el ícono y el texto */
}

.enlarge-icon:hover,
.settings-icon:hover {
    background-color: #333;
    /* Color de fondo gris oscuro al pasar el ratón */
    color: white;
    /* Cambia el color del texto a blanco al pasar el ratón */
}

.enlarge-icon:hover i,
.settings-icon:hover i {
    color: white;
    /* Cambiar color del ícono a blanco al pasar el ratón */
}




.strategies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 600px) {
    .strategies-grid {
        grid-template-columns: 1fr;
    }
}

.strategy {
    background-color: #f9f9f9;
    /* Color de fondo para cada estrategia */
    border: 1px solid #ddd;
    /* Borde de cada estrategia */
    padding: 15px;
    border-radius: 10px;
    /* Bordes redondeados */
}




.difference-info-section {
    display: flex;
    flex-wrap: wrap;
    /* Permite que los bloques se ajusten y salten a la siguiente línea si es necesario */
    /* gap: 10px;  */
}


.modal-enlarge {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal-content-enlarge {
    background-color: #f4f4f4;
    margin: 2% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 1800px;
    max-height: 90vh;
    /* Limita la altura del modal al 90% de la ventana */
    overflow-y: auto;
    /* Permite scroll vertical si el contenido es muy alto */
    overflow-x: hidden;
    /* Evita el scroll horizontal */
    z-index: 1001;
    position: relative;

}


.close-enlarge {
    position: absolute;
    top: 10px;
    /* Ajustamos su posición vertical */
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-enlarge:hover,
.close-enlarge:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-note {
    margin-top: 20px;
    /* Espacio superior */
    font-size: 14px;
    color: #555;
    /* Color gris suave para que sea menos prominente */
    text-align: center;
    /* Alinea el texto al centro */
}

/* Estilo similar al modal-enlarge */
.modal-tutorial {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden; /* Eliminamos el scroll del modal */
}

.modal-content-tutorial {
    background-color: #fff;
    margin: 2% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 70vw; /* 70% del ancho de la ventana */
    max-height: 90vh; /* Altura máxima del modal */
    position: relative;
    overflow: hidden; /* Evita el scroll del modal, el carrusel gestionará el scroll */
}
/* Estilo del botón de cerrar del tutorial */
.close-tutorial {
    position: absolute;
    top: 10px;
    /* Ajustamos su posición vertical */
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-tutorial:hover,
.close-tutorial:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Estilo del título del modal */
.modal-tutorial-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/* Limitar el tamaño del iframe para evitar distorsiones */
iframe {
    max-width: 100%;
    /* El ancho máximo es el 100% del contenedor */
    height: 800px;
    /* La altura se ajusta automáticamente para mantener proporciones */
}



/* Hacer el carrusel con scroll cuando sea necesario */
.carousel-inner {
    max-height: 80vh; /* Ajustamos la altura máxima del carrusel */
    overflow-y: auto; /* Permite el scroll vertical solo en el carrusel */
}

/* Opcional: Ajustar el tamaño de las imágenes para que no causen scroll innecesario */
.carousel-item img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Centrar los botones "Previous" y "Next" en el pie del modal */
.carousel-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    margin-top: 10px;
}

.carousel-footer button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.carousel-footer button:hover {
    background-color: #0056b3;
}
