/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: 'Luckiest Guy', cursive;
    background-color: #f4e1c1;
    display: flex;
    justify-content: center;  /* Horizontally center the content */
    align-items: center;      /* Vertically center the content */
    text-align: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;   /* Stack all elements vertically */
    overflow: auto;           /* Allow scrolling if needed */
}

/* Content Wrapper */
.content {
    display: flex;
    flex-direction: column;   /* Stack content vertically */
    align-items: center;      /* Horizontally center the content */
    justify-content: flex-start;  /* Align items at the start */
    width: 100%;  /* Allow content to take up full width */
    max-width: 100%; /* Prevent content from overflowing */
    padding: 20px;  /* Padding to prevent content from touching edges */
    text-align: center; /* Center the text */
}

/* Header Styles */
.header {
    margin-bottom: 20px;  /* Space between header and image */
}

h1 {
    font-size: 5em;
    color: black;
    margin: 0;
}

h2 {
    font-size: 1.5em;
    color: black;
    margin: 0;
}

/* Image Container */
.image-container {
    margin-bottom: 20px;  /* Space between image and paragraph */
    width: 80%; /* Limit the image container size */
    flex-shrink: 0;  /* Prevent the image from shrinking */
}

img {
    max-width: 100%; /* Ensure the image does not overflow the container */
    max-height: 40vh; /* Limit image height to 40% of the viewport height */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Optional: rounded corners for the image */
}

/* Paragraph Styles */
p {
    font-family: 'Amatic SC', cursive;
    font-size: 2em;
    color: black;
    margin-top: 20px;
    padding: 10px;
}

/* Media Queries for Larger Screens (Desktop) */
@media (min-width: 768px) {
    /* Adjust image size for desktop */
    img {
        max-height: 40vh; /* Reduce image height for large screens */
    }

    /* Adjust font size for larger screens */
    h1 {
        font-size: 6em;
    }

    h2 {
        font-size: 2em;
    }

    p {
        font-size: 2.5em;
    }
}

/* Media Queries for Small Screens (Mobile) */
@media (max-width: 767px) {
    /* Adjust image size for mobile */
    img {
        max-height: 35vh; /* Reduce image height on mobile */
    }

    /* Adjust font size for mobile */
    h1 {
        font-size: 4em;
    }

    h2 {
        font-size: 1.2em;
    }

    p {
        font-size: 1.5em;
        margin-top: 10px; /* Reduce margin on mobile for more space */
    }
}
