* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow: hidden;
    height: 100%;
    width: 100%;
    user-select: none;
}

#scroll-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
}

#scroll-container:active {
    cursor: grabbing;
}

#image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

#background-image {
    display: block;
    width: 2380px;
    height: 3364px;
    max-width: none;
    image-rendering: crisp-edges; /* Consider pixelated for sharper edges on pixel art if needed */
}

.hotspot {
    position: absolute;
    width: 100px; /* Default/fallback, will be overwritten by data attributes */
    height: 100px; /* Default/fallback, will be overwritten by data attributes */
    background-color: transparent;
    cursor: pointer;
    /* For debugging: uncomment the next line to see the hotspot areas */
    /* border: 1px solid red; */
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: none;
    z-index: 1000;
    pointer-events: none;
}

#overlay-image {
    position: absolute;
    max-width: 400px;
    max-height: 400px;
    border: 2px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    background-color: white;
    pointer-events: auto;
}

/* === New Mimolette Navigation Styles === */
#nav-mimolette-container-new {
    position: fixed;
    top: 20px;    /* MODIFIED: Position from top */
    right: 20px;   /* MODIFIED: Position from right */
    /* bottom: 20px; */ /* REMOVE or comment out */
    /* left: 20px;   */ /* REMOVE or comment out */
    display: flex;
    flex-direction: column; /* MODIFIED: Arrange mimolettes vertically */
    gap: 15px; /* Space between mimolettes */
    z-index: 100; /* Ensure they are above scroll-container, below overlay */
}

/* All other .nav-mimolette-new, .nav-mimolette-new img, .mimolette-text-new styles remain UNCHANGED */
.nav-mimolette-new {
    display: block; 
    width: 60px; 
    height: 60px;
    border-radius: 50%; 
    overflow: hidden; 
    position: relative; 
    text-decoration: none; 
}

.nav-mimolette-new img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    filter: grayscale(100%); 
    transition: filter 5s ease; 
}

.nav-mimolette-new:hover img {
    filter: none; 
}

/* Specific styles for the envelope nav link */
.nav-envelope {
    border-radius: 10px; /* Less round */
}

.nav-envelope .mimolette-text-new {
    color: #000000; /* Blue text */
    top: 40%;
}

.mimolette-text-new {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    color: rgb(0, 0, 0); 
    font-family: 'Times New Roman', Times, serif; 
    font-size: 12px; 
    font-weight: bold; 
    text-align: center;
    text-shadow: 0 0 2px white, 0 0 2px white, 0 0 2px white; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
    pointer-events: none; 
    white-space: nowrap; 
    user-select: none; 
}

.nav-mimolette-new:hover .mimolette-text-new {
    opacity: 1; 
}