/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Keyframe animations for fade in and fade out */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Styling for the whole page */
body {
    font-family: Arial, sans-serif;
    background-color: #ffdb58; /* Mustard Yellow */
    color: #333; /* Dark text color for readability */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container for both poem and image sections */
.container {
    display: flex;
    flex-direction: column;
    width: 80%; /* Adjust as needed */
    max-width: 1200px; /* Maximum width */
    align-items: center;
}

/* Styling for each content block */
.content {
    display: none; /* Initially hide all content blocks */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* Space between blocks */
    animation-duration: 1s; /* Animation duration, adjust as needed */
    animation-fill-mode: both; /* Keep the end state after animation completes */
}

/* Additional class to control fading in */
.fadeIn {
    animation-name: fadeIn;
}

/* Additional class to control fading out */
.fadeOut {
    animation-name: fadeOut;
}

/* Styling for the poem section */
.poem {
    width: 50%;
    text-align: right;
    padding-right: 20px; /* Space between text and image */
    font-size: 4em; /* Adjust font size as needed */
    font-family: 'Mountains of Christmas', cursive; /* Festive font */
    font-weight: bold; /* Make text bold */
}

/* Styling for the image section */
.image {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styling for the images */
.image img {
    padding-left: 2em;
    height: 25em; /* Fixed height for all images */
    width: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensure the image is fully visible */
}

/* Responsive styling for mobile devices */
@media (max-width: 768px) { /* Adjust this value based on the breakpoint you prefer */
    .container {
        width: 90%; /* Adjust width for mobile */
    }

    .content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .poem, .image {
        width: 100%; /* Full width for smaller screens */
    }

    .poem {
        padding-right: 0; /* Remove right padding on mobile */
    }

    .image img {
        height: auto; /* Adjust height for mobile */
        max-width: 100%; /* Ensure image does not exceed container width */
        object-fit: contain;
    }
}

/* Styles for the riddle container */
.riddle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh; /* Adjust the height as needed */
}

/* Styles for the riddle box */
.riddle-box {
    font-family: 'Mountains of Christmas', cursive; /* Festive font */
    background-color: white; /* Or any color that fits the theme */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px; /* Adjust as needed */
}

.riddle-box h1 {
    margin-bottom: 15px;
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #D6001C; /* Same as page background, or choose another color */
    color: #ffffff; /* Text color */
    text-align: center;
    padding: 10px 0; /* Adjust the padding as needed */
    font-size: 1em; /* Adjust font size as needed */
}

.red-rounded-button {
    background-color: red; /* Red background */
    color: white;         /* White text */
    border: none;         /* No border */
    padding: 10px 20px;   /* Some padding */
    text-align: center;   /* Centered text */
    text-decoration: none; /* No underline on text */
    display: inline-block; /* Inline block element */
    font-size: 16px;      /* Font size */
    margin: 4px 2px;      /* Margin */
    cursor: pointer;      /* Pointer cursor on hover */
    border-radius: 12px;  /* Rounded corners */
}