/* Estilos básicos */
body {
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f9;
}

.main-container {
    display: flex;
    gap: 20px;
    max-width: 90%;
    width: 90%;
}

.container {
    text-align: center;
    flex: 1;
}
#dice-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.dice {
    font-size: 3em;
    padding: 20px;
    border: 2px solid #333;
    border-radius: 10px;
    width: 50%;
    height: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.history-container {
    flex: 0.5;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    max-height: 80vh;
}

.history-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

#history-list {
    list-style-type: none;
    padding: 0;
}

#history-list li {
    background-color: #f1f1f1;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
}

/* Estilo del selector de ventaja/desventaja */
#advantage-toggle {
    margin: 10px 0;
}

#advantage-toggle label {
    margin: 0 10px;
    cursor: pointer;
}

.highlight {
    font-weight: bold;
    color: #4CAF50;
}

.disadvantage-highlight {
    font-weight: bold;
    color: #FF6347;
}

#result {
    margin-top: 15px;
    font-size: 1.2em;
    color: #555;
}

/* Otros estilos existentes */

/* Contenedor de Funciones Personalizadas */
.custom-functions-container {
    flex: 0.5;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.custom-functions-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

#custom-function-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#custom-buttons-container button {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 8px;
    font-size: 1em;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#custom-buttons-container button:hover {
    background-color: #0056b3;
}

/* Estilo para el ícono de edición */
.edit-icon {
    cursor: pointer;
    margin-left: 10px;
    color: #007bff;
    font-size: 16px;
}

/* Estilos del modal de edición */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
