html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent body scroll */
    font-family: 'Space Mono', monospace;
    background-color: #0d1117; /* Dark background */
    color: #e6edf3; /* Light text */
    display: flex;
    justify-content: center;
    align-items: center;
}

.size-of-space-app {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 1200px; /* Max width for larger screens */
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #58a6ff; /* A nice blue for the title */
}

.scale-viewer-container {
    width: 100%;
    height: calc(100vh - 120px); /* Adjust height based on header/footer if any */
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-behavior: smooth;
    position: relative;
    border-radius: 10px;
    background-color: #161b22; /* Slightly lighter dark background for container */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.scale-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%; /* Each item takes full height of container */
    scroll-snap-align: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0.3; /* Non-active items are slightly faded */
    transform: scale(0.9);
}

.scale-item.active {
    opacity: 1;
    transform: scale(1);
}

.scale-item img {
    max-width: 80%;
    max-height: 50%; /* Image takes up to 50% of item height */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Styling for the Nullpoint item when it's active */
.scale-item.nullpoint-item.active {
    background-color: #030406; /* Even darker background to emphasize the 'void' */
    transition: background-color 0.5s ease-in-out;
}

.scale-item.nullpoint-item.active img {
    /* Add a very subtle border/glow to show the image boundary for a transparent image */
    border: 1px solid rgba(255, 255, 255, 0.05); /* Barely visible light gray border */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05); /* Faint glow */
}

.scale-item h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #79c0ff; /* Light blue for headings */
}

.scale-item p {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.5;
    max-width: 800px;
}

.scale-item .size-info {
    font-size: 1.3em;
    font-weight: bold;
    color: #a371f7; /* Purple for size info */
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .scale-item img {
        max-height: 40%;
    }

    .scale-item h2 {
        font-size: 1.6em;
    }

    .scale-item p {
        font-size: 0.9em;
    }

    .scale-item .size-info {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
        margin-bottom: 10px;
    }

    .size-of-space-app {
        padding: 10px;
    }

    .scale-viewer-container {
        height: calc(100vh - 100px);
    }

    .scale-item img {
        max-height: 35%;
    }

    .scale-item h2 {
        font-size: 1.4em;
    }

    .scale-item p {
        font-size: 0.8em;
    }

    .scale-item .size-info {
        font-size: 1em;
    }
}