/* =========================
   Chéret - Estilos principales
========================= */

/* -------------------------
   Tipografía y base
------------------------- */
body, #pagina {
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    color: gray;
    max-width: 1280px;
    min-height: 100vh;
    margin: 0 auto;
    font-style: normal;
}

.titulo {
    font-size: 2em;
    font-weight: bold;
}

/* -------------------------
   Header y navegación
------------------------- */
/* Menú */
#menu {
    display: flex;
    justify-content: right;   /* centra horizontal */
    align-items: center;       /* centra vertical */
    height: 4rem;              /* ajusta la altura de la barra de menú */
}

#menu ul {
    display: flex;
    gap: 1.5em;                /* separación entre items */
    margin: 0;
    padding: 0;
}

#menu ul li {
    list-style: none;
}

#menu ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: gray;
    padding: 0.5em 1em;
}

#menu ul li button {
    background: none;
    border: none;
    color: #007acc; /* mismo color que tus enlaces */
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline; /* opcional, para parecer link */
}

#menu ul li button:hover {
    color: #005b99; /* hover similar a tus links */
}


/* -------------------------
   Mensajes
------------------------- */
.mensaje {
    text-align: center !important;
    color: red !important;
}

/* -------------------------
   Contenidos
------------------------- */
#contenidos {
    padding-bottom: 1rem;
    flex: 1;
}

#contenidos ul li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* -------------------------
   Opciones de menú
------------------------- */
#contenidos.opciones ul li {
    display: block;
    margin: 1.5em 0;
}

#contenidos.opciones ul li a {
    background-color: #00adee;
    color: white;
    width: 100%;
    height: 3rem;
    border: none;
    border-radius: 1em;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* -------------------------
   Formularios y inputs
------------------------- */
.formulario ul li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.formulario input,
select {
    width: 100%;
    padding: 0.5em 1em;
    height: 3em;
    text-align: center;
    margin: 1em 0;
    display: block;
    border-radius: 1em;
    border: 1px solid #00adee;
    outline: none;
    color: gray;
    background-color: white;
}

input[type="file"] {
    padding: 4px;
    margin: -4px;
    position: relative;
    width: 100%;
}

/* -------------------------
   Botones
------------------------- */
button {
    background-color: #00adee;
    color: white;
    width: 100%;
    height: 2em;
    border: none;
    border-radius: 1em;
    text-align: center;
    text-decoration: none;
    display: block;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
    color: white;
}

.boton {
    background-color: #00adee !important;
    color: white !important;
    width: 100%;
    height: 2em;
    padding-top: 5px;
    border: none;
    border-radius: 1em;
    text-align: center;
    text-decoration: none;
    display: block;
    font-weight: bold;
    cursor: pointer;
}

.boton:hover {
    background-color: #0056b3 !important;
    color: white;
}

/* -------------------------
   Números y etiquetas
------------------------- */
.numero {
    background-color: #00adee;
    font-size: 1em;
    padding: .3em;
    border-radius: .2em;
    color: white;
}

.tab {
    text-indent: 100px;
}

/* -------------------------
   Canvas y paleta
------------------------- */
canvas {
    max-width: 70em;
    border: 1px solid #ccc;
    margin-top: 10px;
}

#palette {
    margin-top: 10px;
}

#dominantColor {
    margin-top: 5px;
}

#report {
    margin-top: 15px;
    white-space: pre-line;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
}

/* Paleta web mejorada */

.palette-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 200px;
    gap: 5px 10px;
}

.palette-item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.palette-box {
    width: 20px;
    height: 20px;
    border: 1px solid #000;
    flex-shrink: 0;
}

.palette-label {
    font-size: 10px;
    white-space: nowrap;
}

/* =========================
   Colores y armonías
========================= */

.color-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-block;
    margin: 5px;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    vertical-align: middle;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-circle:hover {
    transform: scale(1.1);
}

.color-name {
    text-align: center;
    font-size: 12px;
    margin-top: 2px;
    color: #333;
}

.color-category {
    text-align: center;
    font-size: 11px;
    color: #666;
}

#paletteContainer,
#harmonyRules {
    margin-top: 15px;
}

.section {
    margin-bottom: 30px;
}


/* -------------------------
   Footer
------------------------- */
#pie {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3rem;
}

#pie p {
    font-size: 1.2em;
}

.docente {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5rem;
    padding: 10px;
    background-color: #00adee;
    color: white; 
}

/* -------------------------
   Tablas
------------------------- */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 15px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

.analisis-text {
    max-width: 300px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.miniatura {
    max-width: 80px;
    border: 1px solid #ccc;
}

.color-box {
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 1px solid #000;
    vertical-align: middle;
}

/* -------------------------
   Columnas y layout
------------------------- */
.col1, .col2, .col3, .col4, .col5, .col6 {
    float: left;
    margin: 0 1% 0 0;
    display: block;
}

.col1 { width: 15%; }
.col2 { width: 31%; }
.col3 { width: 45%; }
.col4 { width: 63%; }
.col5 { width: 79%; }
.col6 { width: 99%; }

.fila { margin: 0; }
hr { clear: both; border: none; height: 2em; }

.col1 img, .col2 img, .col3 img, .col4 img, .col5 img, .col6 img {
    width: 100%;
    display: block;
}

.centrado { margin-top: 5em; }

/* -------------------------
   Responsive
------------------------- */
@media all and (max-width: 800px) {
    
    .col1, .col2, .col3, .col4, .col5, .col6 { width: 99%; display: block; }
    
    .col1 img, .col2 img, .col3 img, .col4 img, .col5 img, .col6 img { width: 100%; display: block; }
}
