body {
    background-color: white;
    padding: 20px;
    margin: 0;
}

#text-container {
    font-size: 32px;
    color: grey;
    font-family: 'Courier New', Courier, monospace;
    transition: opacity 1s ease-out;
}

#text-container .sentence {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: block;
    margin-bottom: 1em; /* Add space between sentences */
}

#text-container .sentence.visible {
    opacity: 1;
}

#image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 1s ease-in;
    margin-top: 20vh;
}

#image-container.visible {
    visibility: visible;
    opacity: 1;
}

#image-container img {
    width: 15%;
    height: auto;
    flex-grow: 0;
    flex-shrink: 0;
    transition: transform 0.2s ease-in-out;
}

#image-container img:hover {
    transform: scale(1.5);
}

#gif-container {
    display: block; /* Each GIF on its own row */
    text-align: center; /* Center each GIF */
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 1s ease-in;
    margin-top: 20vh;
}

#gif-container.visible {
    visibility: visible;
    opacity: 1;
}

#gif-container img {
    width: auto; /* Let height determine width to maintain aspect ratio */
    height: 48vh; /* Enlarge size, relative to viewport height */
    max-width: 96vw; /* Max width to prevent excessive stretching */
    margin-bottom: 30px; /* Space between GIFs */
    display: block; /* Ensure each img takes its own line */
    margin-left: auto; /* Center the block image */
    margin-right: auto; /* Center the block image */
}

#cursor-circle {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: yellow;
    border-radius: 50%;
    pointer-events: none;
    display: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}