/* GENERAL */
body {
    font-family: Arial, sans-serif;
    background-color: #000000;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow: hidden;
}

/* FONDO hermano 1 */
.fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.wrapper {
    display: grid;
    grid-template-columns: repeat(30, 30px);
    grid-template-rows: repeat(15, 30px);
    grid-gap: 3rem;
}

.wrapper .item {
    background-color: #a72c0682;
    animation: girar 4s infinite alternate ease-in-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover {
    box-shadow: 0 0 12px 9px rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}


@keyframes girar {
    0% {
        transform: rotate(0) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(1.1);
    }
}


















/* CONTENEDOR PRINCIPAL hermano 2 */
.container {
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 1200px;
    position: relative;
    z-index: 2;
    transition: border 0.3s ease;
    overflow-y: auto; 
    max-height: 90vh; 
}

/* TITULO H1 */
.container__title {
    font-size: 2rem; 
    color: #234F9E;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

a{
    color:#333333b0;
    text-decoration:underline;
    margin-bottom: 5px;

}








/* CONTENEDOR BOTON DE CARGA DE IMAGEN URL */
.container__controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.controls__input {
    padding: 10px;
    width: 70%;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.controls__input:focus {
    border-color: #234F9E;
}

.controls__button {
    padding: 10px 20px;
    background-color: #234F9E;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.controls__button:hover {
    background-color: #1a3a7a;
    transform: translateY(-2px);
}



/* CONTENEDOR de Botones de filtros */
.container__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    
}

.filters__button {
    padding: 10px 20px;
    background-color: #E23C1B;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.filters__button:hover {
    background-color:#1a3a7a ;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}




/* CONTENEDOR de la imagen */
.container__image-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap; 
}

.image-display__image,
.image-display__canvas {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 10px;
    background-color: #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.4s ease;
}

.image-display__image:hover,
.image-display__canvas:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}















/*----------------------*/
/* Estilos responsivos */
@media (max-width: 1400px) {
    .container {
        width: 70%;
    }

    .controls__input {
        width: 60%;
    }

    .filters__button {
        padding: 10px 20px;
    }

    .container__image-display {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    .controls__input {
        width: 100%;
        margin-bottom: 10px;
    }

    .controls__button {
        width: 100%;
    }

    .filters__button {
        width: 100%; 
    }

    .container__title {
        font-size: 1.5rem;
    }
    /*----------------------*/
    /*crea dos columnas*/

    .container__filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    .container__title {
        font-size: 1.2rem; 
    }

    .filters__button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    
}