/* General body styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(120deg, #0D47A1, #FFD700); /* Updated gradient */
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures footer placement at the bottom */
    overflow-x: hidden; /* Prevents horizontal scrolling */

}

/* Header styling */
.header h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 70px 0 20px; /* Slight increase for more spacing */
    text-align: center;
}

/* Centering container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers horizontally */
    justify-content: center; /* Centers vertically */
    gap: 20px;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    margin: 0 auto; /* Horizontally centers within the viewport */
    flex: 1; /* Pushes the footer to the bottom */
    text-align: center;
}

/* Card styling for facts */
.card {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)); /* Light gradient background */
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    line-height: 1.8;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    color: #f0f8ff; /* Light font color for readability */
    text-align: center;
    min-height: 100px; /* Consistent size */
    max-width: 100%;    
    word-wrap: break-word; /* Ensure long text doesn't overflow */
    margin: 0 auto; /* Center the card */
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Button styling */
button {
    margin-top: 20px; /* Consistent spacing below the card */
    background-color: #FFD700;
    color: #0D47A1;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: center;

}

button:hover {
    background-color: #FFC107;
    transform: scale(1.1);
}

/* Footer styling */
footer {
    padding: 10px 0;
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    margin-top: auto; /* Keeps footer at the bottom */
}

/* Responsive design for smaller screens */
@media only screen and (max-width: 768px) {
    .header h1 {
        font-size: 2em;
        margin: 50px 0 10px;
    }

    .container {
        padding: 10px;
    }

    .card {
        font-size: 1rem;
        padding: 15px;
    }

    button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    footer {
        font-size: 0.8rem;
        padding: 8px 0;
    }
}

@media only screen and (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
        margin: 30px 0 10px;
    }

    .card {
        font-size: 0.9rem;
        padding: 10px;
    }

    button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    footer {
        font-size: 0.7rem;
        padding: 6px 0;
    }
}