:root {
    --background-color-light: #ffffff;
    --text-color-light: #000000;
    --background-color-dark: #000000;
    --text-color-dark: #ffffff;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--background-color-light);
    color: var(--text-color-light);
    font-family: Arial, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

[data-theme="dark"] {
    --background-color-light: var(--background-color-dark);
    --text-color-light: var(--text-color-dark);
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0; /* Ensure no default margin */
    text-align: center; /* Center the text for wider compatibility */
}

.emoji {
    font-size: 10rem;
    /* Ensure there's no default padding or margin that could affect alignment */
    margin: 0;
    padding: 0;
}

figcaption {
    font-size: 2rem;
    margin-top: 1rem;
    /* Ensure there's no default padding or margin that could affect alignment */
    margin: 0;
    padding: 0;
    /* Additional centering for text */
    text-align: center;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    text-align: center;
}
