body {
    margin: 0;
    font-family: 'Inclusive Sans', sans-serif;
    background: linear-gradient(70deg, blue, purple, pink);
}

h1 {
    text-align: center;
    font-size: 8vw; /* Se ajusta según el tamaño de la pantalla */
}

.Con-2 {
    display: none;
}

canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.Contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column; /* Cambia la dirección en pantallas pequeñas */
}

.Con {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap; /* Permite que los botones se ajusten en pantallas pequeñas */
}

.Texto {
    display: none;
    flex-direction: column; /* Alinea los elementos en una columna */
    align-items: center; /* Centra horizontalmente */
    justify-content: center; /* Centra verticalmente, si el contenedor tiene altura */
    text-align: center; /* Centra el texto */
    margin: 20px; /* Añade margen alrededor */
}


.Texto h2 {
    font-size: 5vw; /* Tamaño de fuente adaptable */
}

#B12 {
    margin-left: 30px;
}

.Button {
    font-family: monospace;
    font-size: 4vw; /* Tamaño adaptable */
    transition-duration: 0.2s;
    padding: 10px;
    border-radius: 8px;
    background-color: greenyellow; 
    color: black; 
    border: 2px solid green;
    cursor: pointer;
    margin: 10px; /* Añadir margen para separarlos */
}
  
.Button:hover {
    transform: scale(1.1);
    border-radius: 14px;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
    color: black;
    background-color: white;
}

.Contenedor-Binicio {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.Con-Emergente {
    align-items: center;
    text-align: center;
    padding: 20px;
    display: flex;
}

.cua {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw; /* Ajuste en dispositivos móviles */
    padding: 20px; /* Menor padding en móviles */
    background-color: #f9f9f9;
    border: 2px solid greenyellow;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: aparecer 0.5s ease-out;
}

@keyframes aparecer {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Media query para pantallas pequeñas */
@media (max-width: 468px) {
    body {
        background: linear-gradient(100deg, blue, purple, pink);
    }
    
    .Button {
        font-size: 6vw; /* Aumentar el tamaño de fuente en móviles */
        padding: 8px;
    }

    .Texto h2 {
        font-size: 6vw; /* Ajustar el tamaño del texto en móviles */
    }

    h1 {
        font-size: 8vw; /* Ajuste para h1 */
    }

    .cua {
        width: 90vw; /* Más ancho en móviles */
    }
}
