body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
    font-family: 'Gruppo', sans-serif;
    background: #000;
}
.container {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    z-index: 0;
}
#currentImage {
    opacity: 1;
}
.overlay-rectangle {
    position: absolute;
    /* Remove fixed width and height */
    min-width: 30vmin;
    max-width: 80vmin;
    /* Use padding instead of fixed height to fit content */
    padding: 3vmin 4vmin;
    border-radius: 2vmin;
    background-color: rgba(0, 0, 0, 0.7);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Allow content to determine the height */
    box-sizing: border-box;
}
.circle-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
}
.circle-content h1 {
    font-size: 5vmin;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    margin: 0;
    line-height: 1.2; /* Add line height for better spacing */
}
.circle-content p {
    font-size: 3vmin;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    margin: 0;
    line-height: 1.4; /* Add line height for better spacing */
}
.logos {
    position: absolute;
    bottom: 5vmin;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
}
.logo-image {
    width: 8vmin;
    height: auto;
    margin: 0 1vmin;
}
.logo-nasa {
    width: 10vmin;
    height: auto;
    margin: 0 1vmin;
}
/* Circular mask styles - positioning handled by JavaScript */
.circular-mask {
    /* Base styles - positioning done in JS */
    border-radius: 50%;
    overflow: hidden;
    pointer-events: auto;
}
.masked-content {
    position: absolute;
    /* Dimensions and positioning handled by JavaScript */
}
/* Ensure elements stay properly positioned when container is moved */
.container.circle-positioned .overlay-rectangle {
    position: absolute;
    /* Remove fixed width and height here too */
    min-width: 30vmin;
    max-width: 80vmin;
    padding: 3vmin 4vmin;
    border-radius: 2vmin;
    background-color: rgba(0, 0, 0, 0.7);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
.container.circle-positioned .logos {
    position: absolute;
    bottom: 5vmin;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
}
.container.circle-positioned .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    z-index: 0;
}