body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 20px;
    background-color: #f4f4f4;
    color: #333;
}

h1, h2 {
    text-align: center;
    color: #C8102E; /* Rojo principal */
}

p {
    text-align: center;
    margin-bottom: 20px;
}

/* Contenedor para centrar el input del nombre */
.name-input-wrapper {
    text-align: center;
    margin-bottom: 15px;
}

/* Estilo para el campo de texto del nombre */
#nameInput {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    width: 80%;
    max-width: 400px;
    box-sizing: border-box;
}


/* Contenedor para centrar el botón de carga */
.upload-button-wrapper {
    text-align: center;
    margin: 20px 0;
}

/* Estilo para el label que actúa como botón de carga */
.upload-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.upload-button:hover {
    background-color: #333;
}

.image-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 20px;
}

.image-box {
    flex-basis: 45%;
    min-width: 300px;
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.image-box.original-box {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.image-box h2 {
    margin-top: 0;
    color: #555;
}

#originalImage,
#popArtCanvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border: 1px solid #eee;
}

#popArtPlaceholder {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    border: 1px dashed #ccc;
    margin: 10px auto;
    max-width: 100%;
    box-sizing: border-box;
}

/* Botón de descarga */
button#downloadBtn {
    padding: 10px 15px;
    background-color: #C8102E;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

button#downloadBtn:hover {
    background-color: #a00d23;
}

button#downloadBtn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* === ESTILOS AÑADIDOS PARA NOTAS === */
.footer-notes {
    margin-top: 40px; /* Espacio sobre las notas */
    padding-top: 20px;
    border-top: 1px solid #ddd; /* Línea separadora opcional */
    font-size: 0.85em; /* Texto un poco más pequeño */
    color: #555; /* Color de texto grisáceo */
    text-align: center; /* Centrar el contenedor */
}

.footer-notes p {
    text-align: left; /* Alinear texto dentro de los párrafos a la izquierda */
    max-width: 800px; /* Ancho máximo para mejor lectura */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px; /* Espacio entre párrafos */
    line-height: 1.5;
}

.copyright-note {
    font-style: italic; /* Estilo cursiva para copyright */
    color: #777;
}

.copyright-note a, .copyright-note a:visited {
    color: #C8102E; /* Usar color principal para el enlace */
    text-decoration: none;
}

.copyright-note a:hover {
    text-decoration: underline;
}
/* === FIN DE ESTILOS PARA NOTAS === */