body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e0f7fa;
}

header {
    background-color: #00796b;
    color: white;
    text-align: center;
    padding: 20px;
}

main {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.tips {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

.tip {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: center;
    width: calc(100% / 2 - 20px); /* 2 tips por fila con margen */
    max-width: 250px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip img {
    max-width: 80%;
    height: auto;
    margin-bottom: 10px;
}
/*Transición: Se ha añadido transition a la clase .tip para que los cambios en transform y box-shadow sean suaves y duren 0.3 segundos.

Efecto de Movimiento:

transform: scale(1.05) rotate(2deg); hace que el tip se amplíe ligeramente y rote un poco cuando se pasa el mouse por encima. Puedes ajustar el valor de scale y rotate para obtener el efecto deseado.
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); aumenta la sombra alrededor del tip para que destaque más cuando el mouse está encima.*/
.tip:hover {
    transform: scale(1.05) rotate(2deg); /* Escala y rota al pasar el mouse */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Aumenta la sombra al pasar el mouse */
}

footer {
    background-color: #00796b;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .tip {
        width: calc(100% - 20px); /* 1 tip por fila */
    }
}

@media (max-width: 480px) {
    .tip img {
        max-width: 60%;
    }
}
