/* Estilos Generales */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
}

/* Estilos de la Cuadrícula */
.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr); /* Ocho columnas */
    grid-auto-rows: minmax(70px, auto); /* Altura suficiente para mantener el tamaño de las cajas */
    gap: 12px;
    background-color: #d0d0d0;
    padding: 16px;
    border-radius: 10px;
    box-sizing: border-box;
}

.grid-item {
    background-color: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 15px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.grid-item:hover {
    transform: scale(1.05);
}

/* Estilos para las cajas de drop con imagen de fondo */
.grid-item.drop.concavos {
    background-image: url(./img/AnguloConcavo.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.grid-item.drop.convexos {
    background-image: url(./img/AnguloConvexo.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.texto {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 55px;
    text-align: center;
    font-size: 170%;
}

/* Responsividad */
@media (max-width: 1400px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
    
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(20px, auto); /* Altura suficiente para mantener el tamaño de las cajas */

    }
    
}
