
body{
    display:flex;
    flex-direction: column;
    
}

img {
    max-width: none;
}

table {
    width: 70%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #f9f9f6;
    /* Fondo neutro */
}

/* Cabeceras */
th {
    background-color: #4CA452;
    /* Verde natural */
    color: white!important;
    font-weight: bold;
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

/* Filas y Celdas */
td {
    padding: 10px;
    border: 1px solid #ddd;
}
td img{
    width: 100px;
    height: 100px;
    border-radius: 8px;
}

/* Sombreado Alterno */
tr:nth-child(even) {
    background-color: #e8f5e9;
    /* Verde claro */
}

tr:nth-child(odd) {
    background-color: #f1f8e9;
    /* Beige */
}

/* Texto */
td,
th {
    font-size: 16px;
    color: #333;
}

/* Combinación de Celdas */
td[colspan] {
    text-align: center;
    background-color: #c8e6c9;
    /* Verde pastel */
    font-style: italic;
}
/*Estilos para los mensajes de error*/
.error{
    color:red;
    font-weight: bold;
    font-size: 14px;
}

/*Estilos para los tooltip*/
.mensaje {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
  }

  .tooltiptext {
    visibility: hidden;
    width: auto;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
  
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
  }


.mensaje:hover .tooltiptext {
    visibility: visible;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
  }

/*ESTILOS de index.php*/
.contenedorGeneralIndex {
    display:flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}
.contenedorIndex{
    width: 100%;
    height: 100%;
    display:flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}
#indexOpciones{
    display: flex;
    flex-direction: row;
    column-gap: 60px;
}

#indexOpciones img {
    border-radius: 8px;
    width: 300px;
    height: 300px;
    transition: width 0.2s,height 0.2s;
    &:hover{
        width: 340px;
        height: 340px;
    }
}

#indexBaseOpcion {
    width: 400px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding:20px;
    border: 1px solid transparent;
    border-radius: 8px;
}

/*Estilos para las listas de elementos*/
#tituloLista{
    width: 100%;
    display: grid;
    grid-template-columns: 200px 1fr;
    margin-left: 45%;
    margin-bottom: 10px;
}
#tituloLista button {
    margin-top: 20px;
    width: fit-content;
    height: 40px;
}
#tituloLista h2{
    margin-left: 8%;
}

#accionesElemento {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
#accionesElemento img {
    width: 30px;
    height: 30px;
    &:hover{
        border:2px solid black;
        border-radius: 5px;
    }
}

/*Estilos para los formularios de alta*/
.contenedorFormulario {
    border-radius: 8px;
    background-color: #c8e6c9;
}
#altaFormulario{
    margin-top: 20px;
    padding:10px;
}
.formularioCreador{
    display:flex;
    flex-direction: column;
    row-gap: 15px;
}

.formularioMonumento{
    display:grid;
    grid-template-columns: repeat(2,600px);
}
#altaFormulario input{
    width: 400px;
}
#altaFormulario select {
    width: 400px;
}
#altaFormulario textarea {
    width: 400px;
}
#altaFormulario input[type="checkbox"] {
    width: 15px;
    height: 15px;
}
#altaFormulario fieldset {
    border: 2px solid grey;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}

#altaMonumentoColIzq{
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}
#altaMonumentoColDer{
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}
#submitForm{
    margin-top: 20px;
    grid-column: 1 /span 2;
    display: flex;
    align-items: center;
    justify-content: center;

}

/*Estilos para vistaMonumentos.php*/
#listaMonumento{
    display:flex;
    flex-direction: column;
    row-gap: 30px;
    margin:30px;
}

.itemMonumento {
    background-color: #c8e6c9;
    border: 1px solid transparent;
    padding:20px;
    border-radius: 8px;
    display:grid;
    grid-template-columns: 500px 700px 420px;
}

#imagenMonumento img {
    width: 400px;
    height: 400px;
    border-radius: 8px;
}

#localizacion iframe {
    border-radius: 8px;
}
#datosMonumento {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

/*Estilos para vistaCreadores.php*/
#listaCreadores{
    display:flex;
    flex-direction: column;
    row-gap: 30px;
    margin:30px;
}

.itemCreador {
    background-color: #c8e6c9;
    border: 1px solid transparent;
    padding:20px;
    border-radius: 8px;
    display:grid;
    grid-template-columns: 500px 700px ;
}

#imagenCreador img {
    width: 300px;
    height: 300px;
    border-radius: 8px;
}

#datosCreador {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

/*Estilos para autor.php*/
#divAutor {
    background-color: #c8e6c9;
    border: 1px solid transparent;
    padding:20px;
    border-radius: 8px;
    display:flex;
    flex-direction: column;
    row-gap: 15px;
}