/* Font import remains the same */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&display=swap');

html {
    height: 100%;
}

body {
    /* Set the background image */
    background-image: url(cookie.jpg);

    /* Make the background image cover the entire screen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Ensure the body takes up the full height */
    height: 100%;
    margin: 0;

    /* Flexbox to center the fortune text container */
    display: flex;
    justify-content: center;
    align-items: center;

    font-family: 'Playfair Display', serif;
    color: #fff;
    /* Set default text color to white for contrast */
}

.fortune-container {
    text-align: center;
    padding: 2rem;
}

#fortune {
    /* Add a semi-transparent background for readability */
/*    background-color: rgba(0, 0, 0, 0.4); */

    /* Change text color to dark gray for readability */
    color: #333;

    /* Use a very light gray to distinguish the "paper" from the white background */
    background-color: #f9f9f9;

    /* Add a subtle border to define the edges */
    border: 1px solid #ddd;

    /* A soft shadow adds depth and makes it stand out */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    padding: 1.5rem;
    border-radius: 8px;

    /* Style the text */
    font-size: 3rem;
    /* font-style: italic; */
    line-height: 1.8;

    /* Set a max-width for better readability on large screens */
    max-width: 500px;
}

/* --- Media Query for Mobile Devices --- */
@media (max-width: 480px) {
    #fortune {
        font-size: 1.5rem;
        /* Adjust font size for smaller screens */
        padding: 1rem;
    }
}
